Hi. Having a bit of a problem. I'm using
JSF 1.1 on websphere 5.1 (not 5.1.2). This is
j2ee 1.3. I'm using the RI implementation with facelets. Everything after the </h:form> does not render. I've done some research on the problem and I believe it is the form tag; it is not related to facelets specifically. The source follows. I'd appreciate any help you can give me on this problem, or on getting myfaces up and running with websphere 5.1(assuming myfaces does not have this problem; the project just doesn't start - no errors, messages - nothing).
thanks,
Dylan Bruzenak
The page:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core">
<f:loadBundle basename="resources" var="msg" />
<ui:composition template="/templates/common.xhtml">
<ui

efine name="pageTitle">Input User Name</ui

efine>
<ui

efine name="pageHeader">Facelets Hello Application</ui

efine>
<ui

efine name="body">
<h:message showSummary="true" showDetail="false" style="color: red; font-weight: bold;" for="name" />
<h:form id="helloForm">
#{msg.prompt}
<input jsfc="h:inputText" required="true" id="name" value="#{person.name}" />
<input type="submit" jsfc="h:commandButton" id="submit"
action="greeting" value="Say Hello" />
</h:form>
</ui

efine>
<ui

efine name="body2">xxx</ui

efine>
</ui:composition>
</html>
The template:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core">
<f:loadBundle basename="resources" var="msg" />
<head>
<title><ui:insert name="pageTitle">Page Title</ui:insert></title>
<style type="text/css">
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
}
h1 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 16px;
}
</style>
</head>
<body>
<h1><ui:insert name="pageHeader">Page Header</ui:insert></h1> spmetldksasddsadsaa
<p><ui:insert name="body">Page Body</ui:insert></p>
<ui:insert name="body2">something that should appear2e</ui:insert>
</body>
</html>
The output:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" ><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Input User Name</title>
<style type="text/css" xml:space="preserve">
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
}
h1 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 16px;
}
</style>
</head>
<body>
<h1>Facelets Hello Application</h1> spmetldksasddsadsaa
<p><form id="helloForm" method="post" action="/TestJSFProjectWeb/pages/inputname.jsf" enctype="application/x-www-form-urlencoded">
Your Name:<input id="helloForm:name" type="text" name="helloForm:name" value="" /><input id="helloForm:submit" type="submit" name="helloForm:submit" value="Say Hello" /> <input type="hidden" name="com.sun.faces.VIEW" value="H4sIAAAAAAAAAJVWTWwbRRQeb5w/Uyo3KSElSeu6UH6U2ATSNsRENGma2qpdSpxGpTkkk92JvWG9O+zOZtdUrdIDIFGBQFAEUhCV4MChXOgNcQChClGpICJx4VQhJIQEHLgUOBTe7K7Xa8duYA7j2fV7b+Z97/ve7JXfUKuho5iolRKGqSaWsUiMhMlkJTGrE5JnuikyUyc7l/um+i8txgQUzqIOsSgrkk5Uhu7JruBVnOQOyQldx+WsbLBUFnWKCjaME7hEGOpybRSsFpIQUFYLYNDGd2IGQ92BCGlsFHOYwt+CLD2PziPBpnC6bm7hHsrfw76wMfDuV/i9FhTKoLAhv0BsihASrDDMEYM7I8rQfu5qe2lBklRT4diJIispiTRMOWIYuEAodT2cubVBnIe2iJNRqclmic3ANqxC2r7n4BaeR7RSCavSpMmYpoJ9m2EulWRmM7RvC89pTS+BQ2eRKIrGH8An1tjnVGZOJtaMp jFKTQB03gE9wUuSeHpphYgs9fo3p9+PGg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fJ6xd/ujXymuBRcwb2iAfYXG+flRnRsfLqrnO359m1cIXRK1Y/6ijAZyPjWUXrG41ThGPOzW8No2QzTj82PDhyIAZfELDReLwSLm4HmAC9Oo/LsTSvTy0baTPyuA3b+7iq0uZf/kwJDQALAAA=" />
<input type="hidden" name="helloForm" value="helloForm" /></form>