Results 1 to 2 of 2
  1. #1
    PELSINHO is offline Member
    Join Date
    Jul 2016
    Posts
    1
    Rep Power
    0

    Default 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 ?

  2. #2
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    5,114
    Rep Power
    12

    Default 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

  1. how to obtain manage bean property from other jsp page
    By nikhil_me in forum JavaServer Faces (JSF)
    Replies: 0
    Last Post: 06-11-2012, 03:41 AM
  2. Replies: 3
    Last Post: 01-26-2012, 11:20 PM
  3. Replies: 9
    Last Post: 12-15-2010, 02:38 AM
  4. Calling a Stateful Session bean in NetBeans
    By JavaForums in forum NetBeans
    Replies: 0
    Last Post: 07-31-2007, 09:21 AM
  5. Calling A Session Bean Using A Web Module
    By JavaForums in forum NetBeans
    Replies: 0
    Last Post: 07-30-2007, 11:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •