ICEfaces
  1. ICEfaces
  2. ICE-8334

ice:panelPopup doesn't work with ice:commandButton partialSubmit="true"

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.0.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      windows 7, firefox 13, tomcat 7

      Description

      hi, i am using icefaces 3.0.1
      and am trying to use ice:panelPopup that contains some inputs, and when submitting the panelPopup, the popup form only gets submitted, here's the code:

      [b]1- Java:[/b]


      [code]@Component("myBean")
      @Scope("view")
      public class MyBean {
          
          private String mailTo, mailCc; // have setters and getters
          private Long onSuccessPage, onFailedPage; // have setters and getters
          private boolean interactOpened;

          public void setInteractOpened(boolean interactOpened) {
              this.interactOpened = interactOpened;
          }

          public boolean isInteractOpened() {
              return interactOpened;
          }

          public void toggleInteractOpened(ActionEvent event) {
              interactOpened = !interactOpened;
          }

          public void openInteractEvent(ActionEvent event) {
              interactOpened = true;
          }

          public void closeInteractEvent(ActionEvent event) {
              interactOpened = false;
          }

      }[/code]

      [b]2- Xhtml:[/b]

      [code]

      <body>
      <ui:composition>

      <h:form>
         <ice:panelPopup visible="#{myBean.interactOpened}"
                                  rendered="#{myBean.interactOpened}"
                                  modal="true"
                                  autoCentre="true">
                      <f:facet name="header">
                          <h:panelGroup>
                              <h:panelGroup style="float: left;">
                                  Interaction settings
                              </h:panelGroup>
                              <h:panelGroup style="float: right;">
                                  <h:commandButton image="/resources/images/popup-close.png"
                                                   alt="Close" title="Close"
                                                   style="height: 11px; width: 11px; border: 0;"
                                                   actionListener="#{myBean.closeInteractEvent}"/>
                              </h:panelGroup>
                          </h:panelGroup>
                      </f:facet>
                      <f:facet name="body">
                          <h:panelGrid columns="2">
                          
                          <ice:outputLabel>On success :</ice:outputLabel>
                          <ice:selectOneMenu id="onSuccess_Sel" value="#{myBean.onSuccessPage}">
                    <f:selectItems value="#{myBean.pageOpMenu}" />
                  </ice:selectOneMenu>
                 
                  <ice:outputLabel>On failed :</ice:outputLabel>
                          <ice:selectOneMenu id="onFailed_Sel" value="#{myBean.onFailedPage}">
                    <f:selectItems value="#{myBean.pageOpMenu}"/>
                  </ice:selectOneMenu>
                 
                  <ice:outputLabel id="sendMailTo">Send mail to</ice:outputLabel>
                  <ice:inputText size="20" value="#{myBean.mailTo}"></ice:inputText>
                 
                  <ice:outputLabel id="sendMailCc">Send mail cc</ice:outputLabel>
                  <ice:inputText size="20" value="#{myBean.mailCc}"></ice:inputText>
                 
                          </h:panelGrid>
                          
                          <ice:commandButton partialSubmit="true" value="Save" action="#{adPageBean.saveInteractSoftKey}" ></ice:commandButton>
                      </f:facet>
               </ice:panelPopup>
      </h:form>
      </ui:composition>
      </body>

      [/code]

      when clicking the save button i notice that after handling the data in the server, a full refresh to the page is done, and the init and preRender methods are invoked, please advise about that.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Mahmoud Saleh
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: