This content has been marked as final.
Show 2 replies
-
1. Re: RF4 - rich:tree - toggling modes and events
nbelaevski Dec 15, 2010 10:54 AM (in response to lfryc)Hi Lukas,
- there are only one event handler for node toggling: @onnodetoggle - but it will be more useful to have also 2 separated event handlers @onnodeexpand, @onnodecollapse (incl. their onbefore- variants)
We've discussed this with Ilya also and decided to leave a single attribute.
- The tree in @mode=ajax needs to be rendered from server, but I cannot imagine scenario where developer really needs to collapse the node and request this from server (request is needed only for expading) - as the solution I propose to introduce new mode ajax-expanding.
This can be used to trigger server-side listeners. Anyway, we can add one more mode - please add JIRA RFC and we'll discuss.
-
2. Re: RF4 - rich:tree - toggling modes and events
lfryc Dec 15, 2010 12:37 PM (in response to nbelaevski)2. The tree in @mode=ajax needs to be rendered from server, but I cannot imagine scenario where developer really needs to collapse the node and request this from server (request is needed only for expading) - as the solution I propose to introduce new mode ajax-expanding.
This can be used to trigger server-side listeners. Anyway, we can add one more mode - please add JIRA RFC and we'll discuss.
https://issues.jboss.org/browse/RF-10016
If you are sure no other situation than triggering nodeToggleListener is considerable, we can use it for optimization and don't fire requests when nodeToggleListener not specified and mode=ajax/server.