I have the following view. When I try to open the overlay, the activeAddress
in my component sit.app.core.components.Address
is null. But I resolve values for the directly displayed properties
#{data.bean.activeAddress.zipCode}
#{data.bean.activeAddress.firstName}
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:ic="http://ivyteam.ch/jsf/component"
xmlns:p="http://primefaces.org/ui"
xmlns:pe="http://primefaces.org/ui/extensions">
<h:body>
<ui:composition template="/layouts/sievert-frame-8.xhtml">
<ui:define name="title">AddressBookDialog</ui:define>
<ui:define name="content">
<h3>AddressBook</h3>
<h:form id="form">
<p:growl id="growl" showDetail="true" sticky="true" escape="false" />
<div class="ui-g">
<p:dataTable var="address" value="#{data.bean.addressList}">
<p:column
headerText="#{ivy.cms.co('/Dialogs/sit/app/axon/azubi/core/AddressBookDialog/FirstName')}">
<h:outputText value="#{address.firstName}" />
</p:column>
<p:column headerText="Overlay">
<p:commandButton id="editDialog" actionListener="#{data.bean.setActiveAddress(address)}"
value="Bearbeiten" immediate="true" update=" #{p:component('addressForm')} , #{p:component('addressComponent')}" process="addressForm" icon="ui-icon-pencil" onclick="PF('dlgEdit').show()"
/>
</p:column>
</p:dataTable>
</div>
<br />
<div class="command-btns">
<p:commandButton id="add" actionListener="#{logic.add}"
value="Hinzufügen" update="form" icon="ui-icon-add" />
<p:commandButton id="proceed" actionListener="#{logic.close}"
value="Zurück" update="form" icon="ui-icon-check" />
</div>
</h:form>
<p:dialog header="Header" widgetVar="dlgEdit" minHeight="40" width="350" showEffect="fade" id="">
<h:form id="addressForm">
<p:outputPanel id="addressDialog">
#{data.bean.activeAddress.zipCode}
#{data.bean.activeAddress.firstName}
<ic:sit.app.core.components.Address id="addressComponent"
startMethod="start"
address="#{data.bean.activeAddress}"/>
</p:outputPanel>
</h:form>
</p:dialog>
</ui:define>
</ui:composition>
</h:body>
</html>
The mappings in my component are correct. If I use the component in a standalone Dialog, it works.