[
https://jira.jboss.org/jira/browse/RF-3508?page=com.atlassian.jira.plugin...
]
M F commented on RF-3508:
-------------------------
I don't understand how this Bug is "rejected". It's clearly a bug, IMHO.
It did work before 3.2.1. - now it doesn't. That's why I'm still using 3.2.1.
"Bind toggle panel state to model" is a workaround, not a solution.
Please rethink the decision to reject this bug.
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