Title: question about custom components with heavy JS use

If I understand your problem correctly, you cannot tell the state of the tree when refreshing the page?

 

This is easily solved by updating the component during the post (example, tracking which nodes are expanded or collapsed as name value pairs posted back to the component).

 

Dhanji.

 


From: Guy Katz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 30 August 2006 2:56 AM
To: MyFaces Discussion; users@myfaces.apache.org
Subject: question about custom components with heavy JS use

 

hi all;
this is not related directly to myfaces but i hope to get an answer...

while learning jsf, I have created a tree like jsf custom component which relies on client side JS to open/close nodes.
assuming my problem is reduced knowing on the server side if the tree is 'expanded' or 'collapsed' , so that in the next http request the tree would be rendered accordingly (expanded or collapsed). Note that on the client side, i can tell (via JS events)when the tree expands or colapses.

what would be a good way (a best practice) to tackle this?
thanks in advance, any help is apreciated.
thanks.

This correspondence is for the named persons only.
It may contain confidential or privileged information or both.
No confidentiality or privilege is waived or lost by any mis transmission.
If you receive this correspondence in error please delete it from your system immediately and notify the sender.
You must not disclose, copy or relay on any part of this correspondence, if you are not the intended recipient.
Any opinions expressed in this message are those of the individual sender except where the sender expressly,
and with the authority, states them to be the opinions of the Department of Emergency Services, Queensland.

Reply via email to