Execute a Managed bean from a JSF view in WEB-INF folder

Posted by JonathanVila on Programmers See other posts from Programmers or by JonathanVila
Published on 2012-10-16T20:09:54Z Indexed on 2012/10/16 23:19 UTC
Read the original article Hit count: 262

Filed under:
|

We are initiating in Spring + Primefaces development and the first problem we have encountered is about storing the xhtml pages into the WEB-INF folder.

When we use a faces form in a view located inside the WEB-INF folder, then the commandButton does not execute the managed bean method.

Our bean :

In fact we think the problem is that with JSF , the pages are rendered using a link to the same page as the action of the form, so if the page is located in WEB-INF it is not public accessible.

We know that having all our xhtml views in the web folder instead of WEB-INF actually solves the issue, but we would like to store that pages into WEB-INF.

Thank you.

© Programmers or respective owner

Related posts about spring

Related posts about jsf