-
1. Re: After the rich tree node is selected and has the focus, the click event does not trigger the processSelection anymore, how can I change that so the backbean processSelection will still be called?
ilya_shaikovsky Oct 19, 2010 5:54 AM (in response to jbossan)do not use built-in behavior and use support for onclick instead. if selection already set - processSelection will not be called on further clicks by design because selection actually not changed in that case.
-
2. Re: After the rich tree node is selected and has the focus, the click event does not trigger the processSelection anymore, how can I change that so the backbean processSelection will still be called?
jbossan Oct 19, 2010 4:14 PM (in response to ilya_shaikovsky)thanks, IIya. I will try <a4j:support event="onclick" instead....I was hoping that I can overwrite some of the javascript code in the framework so the cancel submission can be stopped. was not successful.
My situation is that I have a left-side accordion navigation among which there are 3 areas that hold 3 separate richtrees. Once you make selection on the tree, the right side datatable refreshes. But if user switch to a different tree, they try to click on the node that was previous clicked on, nothing happened. This was confusing....so what I did is that in the adviseNodeSelected, i set selected to default to be false instead of null....this way once the tree is reRendered, it won't have the focus..thus users can click on anything...but in advideNodeOpened, I still left the default to be null, so the nodes will will stay open as the way it was
******
Now I have another question. for tabpanel, I need to validate a url making sure the url exists using xmlhttprequest....I placed the client-side code in onsubmit, when it does not exist, i return false..the action gets triggered no matter what the return result is even when it is false...
-
3. Re: After the rich tree node is selected and has the focus, the click event does not trigger the processSelection anymore, how can I change that so the backbean processSelection will still be called?
ilya_shaikovsky Oct 20, 2010 5:32 AM (in response to jbossan)Now I have another question. for tabpanel, I need to validate a url making sure the url exists using xmlhttprequest....I placed the client-side code in onsubmit, when it does not exist, i return false..the action gets triggered no matter what the return result is even when it is false...
could you show some code for the case.
-
4. Re: After the rich tree node is selected and has the focus, the click event does not trigger the processSelection anymore, how can I change that so the backbean processSelection will still be called?
fmoyanocr Aug 23, 2011 4:40 AM (in response to ilya_shaikovsky)Hello Ilya,
I have read this unfinished post and Im interested becuase I have the same problem.
How I can adapt my tree to the a4j:support approach? my code is this:
<
rich:tree nodeSelectListener="#{BeanTreeMenu.processSelection}"
Thank you very much,
Felipe
P.S. I read you a lot, you resolve 80% of my JSF/richfaces problems