• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSF Controlling the flow of application conditionally from p:commandLink

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic