Skip to Main Content

Application Development Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

document.getElementById(...) is null

User_LWFOQJun 9 2016 — edited Jun 9 2016

Hi All,

Portlet Java script is not working Portal application .

We have migrated webcenter portlet from 10g to 11 g , then  created wencenter portal framework application to consume portlet by registering portlet wsdl with portal application .

Code :

<h:commandButton value="#{itmMsg.search}" type="button"

                                                         onclick="document.getElementById('itemInfo:wildcardSearchForm:goButton').click();"

                                                         disabled="#{ItemLookupPortletBean.dummyStoreSelected}"/>

<h:commandButton id="goButton" value="#{itmMsg.search}"

                                                         onclick="return noSearchString(\'#{itmMsg.Nosearchstring}\');"

                                                         action="#{ItemLookupPortletBean.wildcardSearchAction}"

                                                         type="submit"

                                                         styleClass="hidden"/>

When we click on  search/Go button nothing happen just like refresh page.

On browser debugger show error as follow

document.getElementById(...) is null

Also if we put simple function sayHello()  on onClick and defined in js file with alert message that also not working.

Jdeveloper version: 11.1.1.7.0

Webcenter portal : 11.1.1.8.0

Please help me to resolve this issue due to this we stuck in SIT phase.

Thank you in advance.

Thanks,

Jaysing

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 7 2016
Added on Jun 9 2016
2 comments
906 views