-
1. Re: rich:popupPanel - no element focussed
datenklo Oct 24, 2012 8:57 AM (in response to datenklo)1 of 1 people found this helpfulpopupPanel can be closed with the usage of <rich:hotKey>:
<rich:hotKey key="Esc">
<rich:componentControl target="popup" operation="hide" />
</rich:hotKey>
<rich:popupPanel id="popup">
...
-
2. Re: rich:popupPanel - no element focussed
rhanus Oct 25, 2012 4:10 AM (in response to datenklo)Hi Sebastian,
inspire yourself by following code snippent which I use to enable password change in popup:
<rich:popupPanel id="pp_changepasswd" autosized="true" modal="false" resizeable="false" moveable="true" onshow="#{rich:element('pp_currentPasswd')}.focus()">
<f:facet name="header">
<h:outputText value="#{labels.changePassword}"/>
</f:facet>
<h:form>
<rich:panel>
<h:panelGrid columns="3">
<h:outputText value="#{labels.currentPassword}:"/>
<h:inputText id="pp_currentPasswd"
value="#{changePasswordBean.currentPassword}"
size="30">
<rich:validator event="blur"/>
</h:inputText>
<rich:message for="pp_currentPasswd"/>
...
R.
-
3. Re: rich:popupPanel - no element focussed
datenklo Oct 25, 2012 4:26 AM (in response to rhanus)Works like a charm!
Thanks a lot Radim.