Skip to main content

JSF page contents displayed to screen

7 replies [Last post]
john_ela2
Offline
Joined: 2006-12-05

Hello,

I encountered a strange problem after installing jMaki. All my links to JSF pages within my application now render the JSF page contents to screen. If I use navigate to a page directly in my browser, the page renders fine. Uninstalling the jMaki jars and other components resolves the problem, so I believe this is an issue with my attempt to configure JSF with JMaki.

I

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
john_ela2
Offline
Joined: 2006-12-05

It worked!. Thanks.

Now, I'm trying to use jmaki with facelets and I encountered the same problem you posted in a separate thread. In particular, I see the tags do not get processed when using facelets. I'll post anything I find on the other thread.

-John

tdjhb
Offline
Joined: 2006-12-06

Welcome. Glad I can be of help. I would love to hear your findings on getting Facelets to work with JMaki.

john_ela2
Offline
Joined: 2006-12-05

TDJHB,

Thanks - I'll try your suggestion tonight!

-John

john_ela2
Offline
Joined: 2006-12-05

Also, I was going to try modifying my jspx pages tonight to try a few different scenarios - I'll try different scenarios starting by removing the jsp:text declaration. I've copied part of my jspx files below - this is the top part of the file.


xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core">

]]>



...
...

john_ela2
Offline
Joined: 2006-12-05

Sure - I've copied the web.xml file below: (I added one space after the xmlns namespace declaration to prevent a smiley face when posting to this forum)


xmlns="http://java.sun.com/xml/ns/javaee"
xmlns: xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

Test WAR

javax.faces.DEFAULT_SUFFIX .jspx


Faces Servlet
javax.faces.webapp.FacesServlet
1


jMaki Controller Servlet
com.sun.jmaki.JmakiController
2


jMaki Controller Servlet
*.jmaki


jMaki XmlHttpProxy Servlet
com.sun.jmaki.services.XmlHttpProxyServlet


jMaki XmlHttpProxy Servlet
/xhp


Faces Servlet
*.faces


Faces Servlet
/faces/*


index.jsp

tdjhb
Offline
Joined: 2006-12-06

Your servlet mapping is incorrect for *.jspx...

you have:

Faces Servlet
*.faces

when it should be:

Faces Servlet
*.jspx

that should work...

Message was edited by: tdjhb

tdjhb
Offline
Joined: 2006-12-06

It's probably a problem with your web.xml configuration... can you post it please?