Equivalent to restfaces' HttpParentAction in pretty faces?

Splash Forums PrettyFaces Users Equivalent to restfaces' HttpParentAction in pretty faces?

This topic contains 2 replies, has 2 voices, and was last updated by  balteo 11 years, 2 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #17818



    I am porting an application from restfaces to prettyfaces and need to find the equivalent to restfaces’ HttpParentAction in pretty faces.

    What I want to achieve: call the same “changeLocale” method from accueilView bean from all pages that want to change the locale:

    method follows here:



    public void changeLocale() {


    UIViewRoot view = FacesContext.getCurrentInstance().getViewRoot();//todo locale en dur içi

    if (“fr”.equals(this.language)) {


    } else if (“en”.equals(this.language)) {






    Is that possible with pretty faces and it’s annotations?

    Thanks in advance,



    Hey Julien,

    you wrote on the other thread, that you tried to use the new parentId feature but it didn’t work for actions. I’m not an expert on this new feature as Lincoln just added it a few days ago. I had a quick look at the code and it seems like actions aren’t inherited at the moment. I think we should definitively add this feature. Could you open a ticket for this?


    In the meantime you could quickly build a workaround for your usecase by implementing one of the new service provider interfaces of 3.1.1-SNAPSHOT:


    You could simply implement this interface and manually add actions to all mappings in the PrettyConfig object. This should be possible in a few lines of code.




    Hello Christian,

    I opened the ticket. Sorry I filed it under defect. I am not sure if this is appropriate.

    As far as the configurationPostProcessor is concerned I am having problems instanciating a UrlAction especifically the one above i.e. “changeLocale”. How do I do that please?



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

The forum ‘PrettyFaces Users’ is closed to new topics and replies.

Comments are closed.