[ 
https://jira.jboss.org/jira/browse/RF-3508?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12453756#action_12453756
 ] 

Nick Belaevski commented on RF-3508:
------------------------------------

That's not a bug. Data table resets stored local values before rendering if 
there are no validation errors (queued faces messages). If you check with 
h:inputText you'll see that it won't work right without value="#{...}"

> Toggle panel doesn't work with 'server' and 'ajax' modes in case if it is 
> placed into dataTable.
> ------------------------------------------------------------------------------------------------
>
>                 Key: RF-3508
>                 URL: https://jira.jboss.org/jira/browse/RF-3508
>             Project: RichFaces
>          Issue Type: Bug
>    Affects Versions: 3.2.1
>         Environment: Facelets, FF, IE, Opera
>            Reporter: Sergey Halipov
>            Assignee: Alexander Dubovsky
>
> <h:form>
>                               <rich:dataTable 
>                                       var="record" 
> value="#{report.expReport.records}"
>                                       rows="1"
>                                       >
>                                       <rich:column>
>                                                 <!-- start server section -->
>                                               <rich:togglePanel id="tp" 
> switchType="server" stateOrder="one,two">
>                                                       <f:facet name="one">
>                                                               <h:outputText 
> value="State One" />
>                                                       </f:facet>
>                                                       <f:facet name="two">
>                                                               <h:outputText 
> value="State Two" />
>                                                       </f:facet>
>                                               </rich:togglePanel>
>                                               <rich:toggleControl for="tp" >
>                                                       <h:outputText 
> value="state next" />
>                                               </rich:toggleControl>
>                                               <br />
>                                               <rich:toggleControl for="tp"  
> switchToState="one" >
>                                                       <h:outputText 
> value="state one" />
>                                               </rich:toggleControl>
>                                               <br />
>                                               <rich:toggleControl for="tp"  
> switchToState="two" >
>                                                       <h:outputText 
> value="state two" />
>                                               </rich:toggleControl>
>                                                 <!-- end server section -->
>                                                 <!-- start ajax section -->
>                                                 <rich:togglePanel 
> id="panel_ajax" switchType="ajax" initialState="one" stateOrder="one,two">
>                                                               <f:facet 
> name="one">
>                                                               <h:outputText 
> id="ajax_state_one" value="State One" />
>                                                       </f:facet>
>                                                       <f:facet name="two">
>                                                               <h:outputText 
> id="ajax_state_two" value="State Two" />
>                                                       </f:facet>
>                                               </rich:togglePanel>
>                                               <rich:toggleControl 
> id="ajax_next" for="panel_ajax" >
>                                                       <h:outputText 
> value="Ajax next" />
>                                               </rich:toggleControl>
>                                               <br />
>                                               <rich:toggleControl 
> id="ajax_one" for="panel_ajax"  switchToState="one">
>                                                       <h:outputText 
> value="Ajax one" />
>                                               </rich:toggleControl>
>                                               <br />
>                                               <rich:toggleControl 
> id="ajax_two" for="panel_ajax"  switchToState="two">
>                                                       <h:outputText 
> value="Ajax two" />
>                                               </rich:toggleControl>
>                                                 <!-- end ajax section -->
>                                       </rich:column>
>                               </rich:dataTable>
>                       </h:form>

-- 
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