Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF Controlling the flow of application conditionally from p:commandLink  RSS feed

Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all, I am fairly new to JSF and I am trying to implement a conditional flow of application when a user clicks a button / link on a dialog on my JSF page. I am able to show the dialog and a datagrid displaying all the options. On each panel of datagrid, there is an option for user to proceed a particular direction. There are three possible directions: 1. hide current dialog and show another dialog, 2. display a jsf page configured via pretty config, 3. redirect to url mapped to a controller in the same application. So far I got this:

Also, I am not sure of the component I should use (also not sure if that matters in my case) among h:commandLink h:commandButton, h:outputLink or equivalent p: components. Below is my bean method:

So far displaying another dialog in case of "facebook" is working. Redirecting to another jsf page (the default case) is also working but I see the second dialog for less than a second before it redirects to the desired page. And the third case of pinterest where I want to redirect to controller is not working at all.

Any help is much appreciated.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!