-
1. Re: Submitting on enter at rich:popupPanel
rhanus Feb 2, 2012 8:56 AM (in response to nadushka)similar facelet works for me well
you should have both popup and "content" in separate forms
-
2. Re: Submitting on enter at rich:popupPanel
nadushka Feb 2, 2012 9:26 AM (in response to rhanus)I have separate forms for my popup and page content, nevertheless it's not working for me.
Code for page is like:
<h:form id="contentForm>
// some content
</h:form>
<a4j:outputPanel id="searchPopupPanel">
<c:if test="#{searchPopupVisible}">
<ui:include src="path/searchPopup.xhtml"/>
</c:if>
</a4j:outputPanel>
-
3. Re: Submitting on enter at rich:popupPanel
rhanus Feb 8, 2012 8:36 AM (in response to nadushka)I would try to execute @form in popup's a4j:commandButton
e.g. delete execute attribute of a4j:commandButton since @form is the default
<f:facet name="controls">
<a4j:commandButton
value=" "
immediate="true"
render="searchPopupPanel"
title="Close"
action="hideCustomerPopup"/>
</f:facet> -
4. Re: Submitting on enter at rich:popupPanel
vi_mahe_ka1 Feb 12, 2012 8:18 AM (in response to rhanus)try using this
onkeydown='if(event.keyCode == 13) document.getElementById("searchPopupForm:searchButton").click();'
it will work.