Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF 2.2 Calling an url from a managed bean class

 
Nelson Gomes
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using JSF 2.2 and PrimeFaces The Basic question is: I need to call a home page from a manage bean class.. simple like that...

@ManagedBean public class ChartViewBarModel implements Serializable { Insert a method here. }

Is it possible? If yes , What i need to do ?
 
Trilok Chand
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Get ExternalContext and use its redired method like this
externalContext.redirect("urPage.xhtml");
 
Nelson Gomes
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot for your help.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!