Rich modal panel and data table
-------------------------------

                 Key: RF-6007
                 URL: https://jira.jboss.org/jira/browse/RF-6007
             Project: RichFaces
          Issue Type: Task
            Reporter: Prateek Agarwal
            Priority: Critical


Hi,

there is a some problem i m facing with rich:modal panel and rich:datatable. In 
my modal panel i have a data table which has a col for h:selectBooleanCheckbox. 
the data for this checkbox is TRUE in the page which calls the panel but while 
coming to the panel it changes to FALSE. Why is this happening.
<h:selectBooleanCheckbox id="selected" value="#{result.productCatSelected}" /> 
value becomes False though it was True. The bean is in the session.

<rich:modalPanel id="panelId" moveable="true"  width="620" height="480" 
                     onshow = 
"document.getElementById('formId:hiddenButton').click();" >
        <body>    
        <h:form id="formId" >
        
                        <table border="0" cellspacing="0" cellpadding="0" 
class="wp100 bgc09 brd05 fs11">
                                      <tr>
                                         <td><div class=" h55" 
style="position:relative;z-index:1;">
                                            <rich:dataTable
                                                id="dataTableId"
                                                var="result"
                                                style="border:none"
                                                value="#{Bean.listProduct}"
                                                
columnClasses="position:relative z-index:3 border_rich,b 
border_rich,border_rich"
                                                styleClass="wp95 border_rich"
                                                rowClasses="border_rich">
                                                <h:column id="productSelected" 
rendered="#{result.productCatSelected == 'true'}">
                                                                
<h:selectBooleanCheckbox id="selected" value="#{result.productCatSelected}" />
                                                </h:column>
                                                <h:column id="prodName" 
rendered="#{result.productCatSelected  == 'true'}">
                                                        <h:outputText 
styleClass="b" value="#{result.name}" />
                                                </h:column>
                                                </rich:dataTable>
                                          </div></td>
                                      </tr>
                                    </table>
                 <a4j:commandButton id="hiddenButton"
                        action="#{Manager.onShow}"
                     style="display:none; visibility: hidden;"
                        reRender="dataTableId"  >
                </a4j:commandButton>
        </h:form></body>    
        </rich:modalPanel>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to