[
https://jira.jboss.org/jira/browse/RF-6808?page=com.atlassian.jira.plugin...
]
Stephane Regent reopened RF-6808:
---------------------------------
This is how i understood your answer:
1 - Change stp this way:
<rich:simpleTogglePanel switchType="ajax"
label="#{task.description}" opened="#{task.opened}">
2 - Add "opened" string property (+getter/setter) to the bean represented by
task.
That is what I did, I'm afraid it doesn't change a lot.
The getOpened method is only called the first time the page is displayed.
The setOpened method is never called.
So the first time the page is displayed I get what I'm expected, but any close/open
that follows interacts on every stp.
simpleTogglePanel inside a dataTable
-------------------------------------
Key: RF-6808
URL:
https://jira.jboss.org/jira/browse/RF-6808
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.0
Environment: IE & FF
Reporter: Stephane Regent
I'm using a simpleTogglePanel (stp) inside a dataTable.
The content of the stp is determined on the server side.
SwitchType of the stp is "ajax".
Every stp in the dataTable have the same state (open or close) :
When I clic on one stp to open it, it opens every stp of the table. I have the same
behaviour when trying to close one.
<rich:dataTable value="#{domain.tasks}" var="task"
rowKeyVar="row">
<rich:column>
<f:facet name="header">
<h:outputText value="#{msg.description}" />
</f:facet>
<rich:simpleTogglePanel switchType="ajax"
label="#{task.description}" opened="false">
</rich:simpleTogglePanel>
</rich:column>
</rich:dataTable>
When switchMode is "client", the gui behaviour is correct.
I don't know if it is useful but my dataTable is inside a panelBar / panelBarItem,
inside a 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