This content has been marked as final.
Show 3 replies
-
1. Re: rich:modalPanel, how to fire actions using onshow or onb
emailkuppai May 15, 2008 12:33 PM (in response to infinity2heaven)Hi
onshow is the event hook and u can't do an Server action method el binding.
probably you can do the onDemand loading to modal window.
something like
<a4j:commandLink action=#{somebean.action}
reRender="modalWindowID"
oncomplete="show modal window">
</a4j:commandLink>
by that way u can optimize the modal window loading.
but i feel modal window should behave like a javascript window. open where in it should by providing an action method URL or jsf URL
anyways this what we are doing to reduce page-size. -
2. Re: rich:modalPanel, how to fire actions using onshow or onb
infinity2heaven May 19, 2008 2:53 PM (in response to infinity2heaven)awesome, this is exactly what I wanted (modal window loads very slow though, need to look into ejbql) but Thank you.
-
3. Re: rich:modalPanel, how to fire actions using onshow or onb
infinity2heaven Jun 4, 2008 4:26 PM (in response to infinity2heaven)So I'm using
<a4j:commandLink actionListener="#{myBean.retrieveFoo(param1, param2)}" reRender="dataTable" ajaxSingle="true" immediate="true" oncomplete="JavaScript:Richfaces.showModalPanel('myPopup',{width:650, height:400, top:300})"> <h:graphicImage value="./img/icon_warning.gif" rendered="#{!someBean.isRulesValidated}" title="#{someBean.ruleValidationMessages}"/> </a4j:commandLink>
In all versions of Richfaces, (inc 3.2.1.GA), the behaviour for the above is not consistent.
Sometimes, it works, ie, the action fires up and I see the modal panel with the results.
But most times -- the action fires (as a I see in the logs) but the modal panel is empty. I have to click it like 3-4 times or refresh the page to see the modal panel
I was trying different options like immediate="true" etc .. but no use
Any ideas?
I