2 Replies Latest reply on Jun 14, 2007 5:58 AM by alexanderbelov

    post issue with modelPane

    koenhandekyn

      in the first code snippet below the input variable (marked in bold) is not posted or assigned to my action/controller bean [ post triggered from within a rich:modelPanel. ] [ snippet 1 ]

      when posted directly from within the column the input variable is posted and assigned well to my action/controller bean. [ snippet 2 ]

      the context of this issue is richFaces from within JBoss Seam. I don't get any reaction on the seam forum.

      thanx for helping me understand.

      snippet 1 : [ doesn't work ]

      <rich:column>

      <rich:modalPanel id="modelPanel">
      <f:facet name="header">
      <h:outputText value="Approve Invoice"/>
      </f:facet>

      <h:inputText
      value=" #{task.variables['invoice'].approvedBy} "
      style="width: 100px">
      </h:inputText>

      <s:button action="#{invoiceApproval.approve}"
      taskInstance="#{task}" value="Approve"/>

      </rich:modalPanel> <a
      href="javascript:Richfaces.showModalPanel('modelPanel',{width:450, top:200})">
      approve

      </rich:column>


      snippet 2 : [ works well ]

      <rich:column>

      <h:inputText
      value="#{task.variables['invoice'].approvedBy}"
      style="width: 100px">
      </h:inputText>

      <s:button action="#{invoiceApproval.approve}"
      taskInstance="#{task}" value="Approve"/>

      </rich:column>

        • 1. Re: post issue with modelPane
          kosmos

          try wrap content of modal panel with form tag:

          <rich:column>
          
          <rich:modalPanel id="modelPanel">
          <f:facet name="header">
          <h:outputText value="Approve Invoice"/>
          </f:facet>
          <h:form>
          <h:inputText
          value=" #{task.variables['invoice'].approvedBy} "
          style="width: 100px">
          </h:inputText>
          
          <s:button action="#{invoiceApproval.approve}"
          taskInstance="#{task}" value="Approve"/>
          </h:form>
          </rich:modalPanel> <a
          href="javascript:Richfaces.showModalPanel('modelPanel',{width:450, top:200})">
          approve
          
          </rich:column>



          • 2. Re: post issue with modelPane

            You can have nested form if you will follow the previous post. Try to reformat your code to use one modalPanel for all your table. You can create contents of modalPanel dinamically.