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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Facing issue for document.getElementById(...) is null in jsp page

User_LWFOQJun 3 2016 — edited Jun 16 2016

Hi All,

Facing document.getElementById('itemInfo:wildcardSearchForm:goButton').click()  is null  in webcenter portal application . All code is in portlet and portlet is registered with portal application.

Following is the JSP code on click on button is not working (document.getElementById('itemInfo:wildcardSearchForm:goButton').click()

<h:panelGrid columns="7">

<h:panelGroup style ="margin-bottom:50px; height:100px;">

<h:inputText value="#{ItemLookupPortletBean.wildcardInputText}"

size="35" id="wildcardInputText" disabled="#{ItemLookupPortletBean.dummyStoreSelected}"/>

<%--ie explorer bug requires multiple input boxes to allow enter to submit--%>

<h:inputText style="display:none;" size="0"/>

<h:commandButton id="goButton1" onclick="document.getElementById('itemInfo:wildcardSearchForm:goButton').click();"

value="#{itmMsg.search}" disabled="#{ItemLookupPortletBean.dummyStoreSelected}"/>

<h:commandButton id="goButton" action="#{ItemLookupPortletBean.wildcardSearchAction}"

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

value="#{itmMsg.search}" styleClass="hidden"/>

</h:panelGroup>


Add simple function like myFunction() on Onclick event also not working.


Please help to resolve this issue  it is very urgent..


Thanks in Advance...



Thanks,

Jaysing

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jul 14 2016
Added on Jun 3 2016
4 comments
1,140 views