[
https://jira.jboss.org/jira/browse/RF-3508?page=com.atlassian.jira.plugin...
]
Dmitry Svyatobatsko updated RF-3508:
------------------------------------
Summary: Toggle panel doesn't work with 'server' and 'ajax'
modes in case if it is placed into dataTable. (was: Toggle panel doesn't work with
'server' mode in case if it is placed into dataTable.)
Description:
<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>
was:
<h:form>
<rich:dataTable
var="record" value="#{report.expReport.records}"
rows="1"
<rich:column>
<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>
</rich:column>
</rich:dataTable>
</h:form>
> 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: Nick Belaevski
> Fix For: Future
>
>
> <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