Hi all,
In my website, if the user wants to see more details about the page he has to be registered before.
So, if the user clicks the "More Details" link. I am checking whether the user is already logged in or not.
If he has already logged in I am forwarding him to details page.
But if he has not logged in before, I am showing up a login page using modalpanel. After he logged in I have to forward him to details page.
And, here is the issue for me,
Here the user needs to click the link again after logged in.
How can I forward to the details page after the user logged in.
<h:panelGroup id=â€Â�testâ€Â�> <h:panelGroup rendered="#{not identity.loggedIn}"> <a4j:commandLink value="More details" onclick="javascript:Richfaces.showModalPanel('login',{width:450, top:200})" /> </h:panelGroup> <h:panelGroup rendered="#{identity.loggedIn}" > <s:link value="More details" view="/details.xhtml" /> </h:panelGroup> </h:panelGroup>