Hi,
I have a problem that's really frustrating me: I have a popup window with a
simple ok button with a specified action in it. I noticed the action is not
executed so I took a look at the messages list and I found none. I took a
look at the internals to see that ApplyRequestValuesExecutor is the last
executor of FacesContext: in it FacesContext.renderResponse() is called.
I didn't understand why it happens so I put a breakpoint on
FacesContext.renderResponse()
and I saw that it is because of UIPage.markSubmittedForm(FacesContext): in
fact UIPage.currentActionId is empty and so the code jumps directly to
render the response. What I don't know is what is expected to be in
currentActionId
and what it has to do with the execution of the opopup button's command ? or
how is it that we can interrupt the cycle without having errors?
I really don't understand what's wrong, why the cycle is interrupted...
here is my code...
<tc:cell spanX="2">
<tc:box label="#{i18n.adresseListBox}">
<f:facet name="toolBar">
<tc:toolBar id="aressesToolBar">
<tc:toolBarCommand id="newAdressCmd" image="image/new.GIF"
tip="#{i18n.newAdressCmd}">
<tc:attribute name="renderedPartially" value="newAdressPopup" />
<f:facet name="popup">
<tc:popup id="newAdressPopup" width="500" height="130">
<tc:box label="#{i18n.newAdressCmd}">
<f:facet name="layout">
<tc:gridLayout rows="*;20px" />
</f:facet>
<f:subview id="newAdress">
<jsp:include flush="true" page="adress.jsp" />
</f:subview>
<tc:cell>
<f:facet name="layout">
<tc:gridLayout columns="100px;1*;100px" marginLeft="10px"
marginRight="10px" />
</f:facet>
<tc:button label="#{i18n.ok}"
*action="#{personCtrl.newAdressCmd}"*defaultCommand="true">
<tc:attribute name="popupClose" value="afterSubmit" />
</tc:button>
<tc:cell />
<tc:button label="#{i18n.cancel}">
<tc:attribute name="popupClose" value="immediate" />
</tc:button>
</tc:cell>
</tc:box>
</tc:popup>
</f:facet>
</tc:toolBarCommand>
</tc:toolBar>
</f:facet>
<tc:sheet id="adressesSheet" var="adress" showHeader="false"
value="#{personCtrl.current.bean.adresses}" columns="1*">
<tc:column>
<f:subview id="personAdressList">
<jsp:include page="adress.jsp" flush="false" />
</f:subview>
</tc:column>
</tc:sheet>
</tc:box>
</tc:cell>
--
Zied Hamdi
zatreex.sourceforge.net