in the first code snippet below the input variable (marked in bold) is not 
assigned or posted when comming from within a (rich:)modelPanel. [ snippet 1 ]

when posted directly from within the column the input variable is assigned 
well. [ snippet 2 ]

thanx for helping me understand.

snippet 1 : [ doesn't work ]

<rich:column>
            
            <rich:modalPanel id="modelPanel" minHeight="200"
              minWidth="450" height="200" width="500"
              zindex="2000">
              <f:facet name="header">
                <h:outputText value="Approve Invoice"/>
              </f:facet>
              <f:facet name="controls">
                <h:graphicImage
                  value="/images/modal/close.png"
                  style="cursor:pointer"
                  onclick="Richfaces.hideModalPanel('mp')"/>
              </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>

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051898#4051898

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051898
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to