-
1. Re: rich:simpleTogglePanel -- cannot set default to "closed"!
sean.tozer Apr 22, 2010 4:41 PM (in response to acgrama)Try setting an id for each of the simple toggle panels. I've found that to help with nested rich components.
-
2. Re: rich:simpleTogglePanel -- cannot set default to "closed"!
acgrama Apr 22, 2010 5:16 PM (in response to acgrama)Thank you for the fast reply! I tried to use ids for the various components and added them to the reRender list of the command button, but had no luck.
(I suspect the embedding of the toggle panel in the table makes it
invisible
somehow for setting its open/close state. I tried a small experiment and added rendered with valuefalse
as attribute to the toggle panel -- that is taken into account and the toggle panel is not rendered.I guess the problem is knowing when the open/close state of the toggle panel is set/decided, and what influences this process.)
-
3. Re: rich:simpleTogglePanel -- cannot set default to "closed"!
sean.tozer Apr 22, 2010 9:18 PM (in response to acgrama)Another thing I would try is binding the open parameters to a controller property. Something like opened="#{similarProblem.isOpen}". And then obviously have those all set to false beforehand.
-
4. Re: rich:simpleTogglePanel -- cannot set default to "closed"!
acgrama Apr 23, 2010 9:09 AM (in response to acgrama)Awesome, this worked! Didn't think about this, thanks a lot :-)