rich:modalPanel problem
lillith Apr 8, 2010 8:41 AMHello,
I've got a problem when a rich:modalPanel invokes another rich:modalPanel. The latter has a textfield which sets a value on a property and on closing the second rich:modalPanel, the value should be displayed on the first rich:modalPanel. But this value is never set. This is the code for the second rich:modalPanel
<rich:modalPanel id="panelNewCommunication" width="350"
height="150" resizeable="false" moveable="false">
<f:facet name="header">
<h:outputText value="Communication" />
</f:facet>
<h:panelGrid columns="2">
<h:panelGrid>
<h:outputText value="*Value" />
<h:inputText id="valueOfNewComm" value="#{mBTest.newComm}"></h:inputText>
<h:outputText value="*Communication Kind" />
<rich:comboBox defaultLabel="Choice..." enableManualInput="false">
<f:selectItems value="#{mBTest.communicationKind}" />
</rich:comboBox>
</h:panelGrid>
<h:panelGrid>
<h:outputText value="*Communication Type" />
<rich:comboBox defaultLabel="Choice..." width="150">
<f:selectItems value="#{mBTest.communicationType}" />
</rich:comboBox>
<h:panelGroup>
<h:selectBooleanCheckbox value="#{mBTest.default}" />
<h:outputText value="By default />
</h:panelGroup>
</h:panelGrid>
</h:panelGrid>
<h:panelGroup>
<a4j:commandButton value="Add" id="addNewCommunication"
action="#{mBTest.addNewCommunication}" reRender="tableContacts">
<rich:componentControl for="panelNewCommunication"
attachTo="addNewCommunication" operation="hide" event="onclick" />
<a4j:keepAlive beanName="mBTest" />
</a4j:commandButton>
<h:commandButton value="Cancel" />
</h:panelGroup>
</rich:modalPanel>
Currently I am using rich 3.3.3