Re: Equivalent to restfaces' HttpParentAction in pretty faces?

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

#20409

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?

http://code.google.com/p/prettyfaces/issues/list

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:

http://ocpsoft.com/docs/prettyfaces/snapshot/en-US/html/Extensions.html#ConfigurationPostProcessor

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.

Christian