-
1. Re: Call Javascript From Backing Bean?
ilya_shaikovsky May 13, 2009 5:17 AM (in response to dobreden1)you could use showWhenRendered attribute of modalPanel.
-
2. Re: Call Javascript From Backing Bean?
dobreden1 May 13, 2009 5:55 AM (in response to dobreden1)Thanks - I'll try that.
Michael -
3. Re: Call Javascript From Backing Bean?
dobreden1 May 14, 2009 4:52 AM (in response to dobreden1)Hi - ShowWhenRendered doesn't work as I expected. I set this to true and created a binding to a backing bean attribute for the 'rendered' property. When I set myBean.modalRendered=true the modal panel doesn't appear.
If I refresh the page I can see it so it seems to be a rendering issue. I tried adding A4JSupport to my modal panel:<a4j:support event="onshow" reRender="myModalDialogue"/>
But this didn't work either. Is there a way of executing Javascript functions from my backing bean? This would make life much easier.
Regards,
Michael -
4. Re: Call Javascript From Backing Bean?
ilya_shaikovsky May 14, 2009 5:05 AM (in response to dobreden1)It's already really simple and many times used successfully by the community.. You just missed the common framework limitation that conditionally rendered components should not be reRendered. Update the parent (like outputPanel).
-
5. Re: Call Javascript From Backing Bean?
dobreden1 May 14, 2009 7:44 AM (in response to dobreden1)I don't understand. My modal dialogue is in its own .jspx file and has no parent. Should I wrap it in an outputPanel tag and rerender this?
-
6. Re: Call Javascript From Backing Bean?
ilya_shaikovsky May 14, 2009 7:52 AM (in response to dobreden1)exactly