This content has been marked as final.
Show 3 replies
-
1. Re: a4j:status problem
ilya_shaikovsky May 19, 2008 7:12 AM (in response to powerhouse_b)please try one of the latest 3.2.1 SNAPSHOTs. If the problem will not be fixed - provide your code snippets. And more info about JSF environment.
-
2. Re: a4j:status problem
powerhouse_b May 19, 2008 9:24 AM (in response to powerhouse_b)I have the fallowing case:
I define a modal panel in a subview in the template file.<f:subview id="loginsubview"> <rich:modalPanel id="loginModal"> <a4j:form> <a4j:region> //... <a4j:command value="Login" action="#{Authentificator.login}" id="loginModalButton"> <rich:componentControl for="loginsubview:loginModal" attachTo="loginModalButton" operation="hide" event="onclick"/> //.... </f:subview>
Then, in the <f:view> -<h:form> I have something like this<a4j:commandLink id="logincommand" value="#{messages.Login} " rendered="#{!Authentificator.authentificated}" <rich:componentControl for="loginsubview:loginModal" attachTo="logincommand" operation="show" event="onclick" params="top: 75, left: window.innerWidth - 410"/> <a4j:commandLink id="logoutcommand" value="#{messages.Logout}" action="#{Authentificator.logout}" rendered="#{Authentificator.authentificated}" reRender="topmenupanel" status="progressMain"/>
As I mentioned, when pressing Login in the modal Panel, the request is sent and compoenents are reRendered, but the login window does not close. I have first tried onclick event on the a4j:command, didn't work. The status is visible.
The logout command is a simple a4j:commandLink, with an actions that clears the session and a reRender, that works ok. The status is visible after this also. -
3. Re: a4j:status problem
powerhouse_b May 19, 2008 9:32 AM (in response to powerhouse_b)P.S. (can't edit my post)
I have made a mistake there, I am (obviously) using RichFaces 3.2.0 SR1. On Glassfish V2.01 with NetBeans 6.1.