[richfaces-issues] saving state for simpleTogglePanel or panelMenu

Michael Litherland michael.litherland at gmail.com
Sun Oct 21 12:26:58 EDT 2007


Hi,

I'm just getting used to RichFaces (I like what I see so far), but
there are some things that seem like they'd be obvious to me that I
can't quite figure out.  So hopefully someone here can point me to a
resource, or at least confirm that the components are behaving like
they're supposed to.  I am using 3.1.2GA on JBoss 4.0.5.

Specifically my problem is that I can't find a way to get
simpleTogglePanel to remember it's expanded state between page views.
I bound opened to a boolean, but that's obviously not updated by the
engine no matter what switchType method is used.  The documentation
rather unhelpfully says "The component could also have an "expanded"
(true/false) attribute responsible for keeping a panel state."  I
suppose it could also give me winning lottery numbers, but I get the
feeling the wording should probably "should have this attribute but
doesn't".  So what's the common way people make these components save
state?

I think I can also get panelMenu to do what I want, but I'd hate to
endlessly play with components only to find it suffers from the same
limitation.  It's documentation seems to say nothing about a model to
save its state between page views.

Anyway, I hope someone has suggestions for me.  My guess is that in
most conditions you'd want these things to save their state, so it
can't be an uncommon problem to overcome.

Thanks for any help you can provide, and I hope I'm not off the topic
of the list.

Mike



More information about the richfaces-issues mailing list