Unable to access manage Bean in pretty-config.xml

Splash Forums PrettyFaces Users Unable to access manage Bean in pretty-config.xml

This topic contains 3 replies, has 2 voices, and was last updated by  Christian Kaltepoth 5 years, 11 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #18075

    Unable to access manage Bean in pretty-config.xml

    how can i access instance of manageBean in pretty-config.xml

    <url-mapping id=”country” >

    <pattern value=”/country/India/#{wtvbean.channelName}” />

    <action>#{wtvbean.playChannel}</action>

    <view-id value=”/tv-channels/country/India” />

    </url-mapping>

    I m using pretty faces 3.3.0

    #21643

    I don’t understand your question. “wtvbean” must be a bean managed by JSF or some other container (CDI or Spring). Do you get an error? If so, could you please post it?

    #21644

    No Sir its not showing any error. I can call a function of bean in pretty-config.xml but i cannt access value of property in pretty-config.xml like <pattern value=”/country/India/#{wtvbean.channelName}” />

    in jsf i can acess bean properties

    #21645

    So you are saying if you access this URL

    /country/India/test

    the method playChannel gets called but the channelName property is null????

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Comments are closed.