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