Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
javaserver faces in worksite mp
peter_choe
Has anyone tried to implement JavaServer Faces in to the WorkSite MP web application successfully?
Find more posts tagged with
Comments
Ort618
I never tried this but at least i was able to put my own controller inside of web.xml. You can try the some way to put Faces Servlet
<!-- Faces Servlet -->
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
and mapping
<!-- Faces Servlet Mapping -->
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
Then you can copy all Java classes you need inside their WEB-INF. This is what i did and it works.
I am not so familiar with JSF so can not say more. I have had a quick look there, close to MVC, so seems OK.
At least you can use your own controller and JSP to make UI.
One more trick that you have to always use content.jsp page to be back, so your router has to redirect to this fixed page,
but stored some real router UI jsp page somewhere (in session object, for example). But keep in mind http session shared by all content (this is not true for portals like Plumtree, for example). So then you can read real page and use <include> to execute one. This is how i did. I mean it seems to me you will need to rewrire some parts of JSF code to make them working.
But all above just guessing, never tried here.
Dmitry
Edited by Ort618 on 03/25/05 08:53 AM (server time).