Results 1 to 2 of 2
- 07-21-2016, 06:44 PM #1
Member
- Join Date
- Jul 2016
- Posts
- 1
- Rep Power
- 0
Jsf 2.2 calling an url from a manage bean class
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 ?
- 07-22-2016, 04:18 PM #2
Just a guy
- Join Date
- Jun 2013
- Location
- Netherlands
- Posts
- 5,114
- Rep Power
- 13
Re: Jsf 2.2 calling an url from a manage bean class
That's pretty vague, not "simple". Call how, by phone?
In all seriousness: Yes you can redirect to a page from a managed bean, but how fully depends on what kind of code in the managed bean it is. For example: is it an event handler for a button or a link? Or part of an ajax request? The code inside a managed bean does not just execute out of nowhere, it is part of some flow of logic. You'll need to be more specific about what you're doing."Syntactic sugar causes cancer of the semicolon." -- Alan Perlis
Similar Threads
-
how to obtain manage bean property from other jsp page
By nikhil_me in forum JavaServer Faces (JSF)Replies: 0Last Post: 06-11-2012, 04:41 AM -
calling a function of a specific type in a java class from another class.....
By safi532 in forum Advanced JavaReplies: 3Last Post: 01-27-2012, 12:20 AM -
Problem using object from hibernate class in a bean class
By ShinTec in forum Advanced JavaReplies: 9Last Post: 12-15-2010, 03:38 AM -
Calling a Stateful Session bean in NetBeans
By JavaForums in forum NetBeansReplies: 0Last Post: 07-31-2007, 10:21 AM -
Calling A Session Bean Using A Web Module
By JavaForums in forum NetBeansReplies: 0Last Post: 07-31-2007, 12:13 AM
Bookmarks