[
https://jira.jboss.org/jira/browse/RF-3508?page=com.atlassian.jira.plugin...
]
Nick Belaevski resolved RF-3508.
--------------------------------
Resolution: Rejected
Assignee: Tsikhon Kuprevich (was: Nick Belaevski)
Bind toggle panel state to model
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: Tsikhon Kuprevich
<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