This page (revision-184) was last changed on 21-Apr-2017 08:27 by Dieter Käppel

This page was created on 09-Aug-2012 13:29 by Dieter Käppel

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
184 21-Apr-2017 08:27 36 KB Dieter Käppel to previous
183 21-Apr-2017 08:27 36 KB Dieter Käppel to previous | to last
182 15-Jan-2016 10:18 36 KB Dieter Käppel to previous | to last
181 15-Jan-2016 10:16 36 KB Dieter Käppel to previous | to last

Page References

Incoming links Outgoing links

Version management

Difference between version and

At line 354 changed one line
<f:ajax/>
<f:ajax render=":popup:form"/>
At line 359 added 2 lines
__Erklärung:__ Das Attribut render=":popup:form" ist eigentlich überflüssig. Dies ist ein Workaround für einen Bug in JSF 2.2 (evtl. andere Versionen ebenfalls betroffen). Wird eine Komponente durch AJAX neu gerendered, die eine FORM enthält, geht der View-State der FORM verloren. Dies kann nur verhindert werden, indem die Form explizit neu gerendert wird. Das bedeutet die Id der FORM muss im render-Attribut auftauchen.
At line 363 changed 5 lines
<f:ajax/>
<e:load scopeId="popup" value="Load Popup">
<f:param name="someParam" value="someValue"/>
<f:param name="someExpression" value="#{bean.someValue}"/>
</e:load>
<f:ajax render=":popup:form"/>
<e:load scopeId="popup" value="Load Popup">
<f:param name="someParam" value="someValue"/>
<f:param name="someExpression" value="#{bean.someValue}"/>
</e:load>
At line 371 removed 2 lines
Das Expression-Binding ist momentan Read-Only, das heiße es kann nicht in Input-Tags verwendet werden. Das wird sich in zukünftigen Versionen erweitert werden.
At line 388 changed 7 lines
<h:form id="form">
<rich:popupPanel id="popup-panel" show="true" autosized="true" modal="false">
<f:facet name="header">
<h:outputText value="Loaded Popup"/>
</f:facet>
<f:facet name="controls">
<h:commandButton value="X">
<rich:popupPanel id="popup" show="true" autosized="true" modal="false">
<f:facet name="header">
<h:outputText value="Loaded Popup"/>
</f:facet>
<f:facet name="controls">
<h:form id="controls-form">
<h:commandButton value="X" immediate="true">
At line 397 changed one line
<e:behavior script="#{rich:component('popup-panel')}.hide(event);"/>
<e:behavior script="#{rich:component('popup')}.hide(event);"/>
At line 399 changed 2 lines
</f:facet>
<h:outputText value="#{bean.popupText}"/>
</h:form>
</f:facet>
<h:form id="form">
<h:panelGrid columns="2">
<h:outputLabel for="popupText" value="Popup Text"/>
<h:outputText id="popupText" value="#{bean.popupText}"/>
<h:outputLabel for="someParam" value="Some Param"/>
<h:outputText id="someParam" value="#{scope.someParam}"/>
<h:outputLabel for="someExpression" value="Some Expression"/>
<h:inputText id="someExpression" value="#{scope.someExpression}"/>
</h:panelGrid>
At line 403 changed one line
<f:ajax/>
<f:ajax execute="@form"/>
At line 405 changed one line
<e:behavior script="#{rich:component('popup-panel')}.hide(event);"/>
<e:behavior script="#{rich:component('popup')}.hide(event);"/>
At line 407 changed one line
<h:commandButton id="cancel" value="Cancel">
<h:commandButton id="cancel" value="Cancel" immediate="true">
At line 410 changed one line
<e:behavior script="#{rich:component('popup-panel')}.hide(event);"/>
<e:behavior script="#{rich:component('popup')}.hide(event);"/>
At line 413 changed 2 lines
</rich:popupPanel>
</h:form>
</h:form>
</rich:popupPanel>