lost text alignment in included JSPs using f:subview

I have a main JSF page - as below

<%-- jsf:pagecode language="java" location="/src/pagecode/MainPage.java" --%><%-- /jsf:pagecode --%>

<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>

<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>

<%@taglib uri="http://www.ibm.com/jsf/BrowserFramework" prefix="odc"%>

<f:view>

<f:subview id="IncludedJSP">

<jsp:include flush="true" page="IncludedJSP.jsp"></jsp:include>

</f:subview>

</f:view>

--

The JSP PAge included as subview - IncludedJSP.jsp has this code -

<%-- jsf:pagecode language="java" location="/src/pagecode/IncludedJSP.java" --%><%-- /jsf:pagecode --%>

<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>

<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>

<%@page language="java" contentType="text/html; charset=ISO-8859-1"

pageEncoding="ISO-8859-1" session="false"%>

<portlet:defineObjects />

<hx:scriptCollector id="scriptCollector1">

Title: Included Page

<h:form id="form1" styleClass="form">

<h:inputText id="text1" styleClass="inputText"></h:inputText>

</h:form>

</hx:scriptCollector>

When i run it on the server, input box is displayed before the

Tilte Included

I tried using <f:verbatim> to align however is there any other easier way so that the subview's rendered page is displayed in the way it is aligned?

Message was edited by:

molly_t52

[1664 byte] By [molly_t52a] at [2007-11-27 5:08:19]
# 1

Yikes, the formatting hurts! Try using the code button when submitting code to the forums, it helps us all track down your problem much faster.

Try putting the title before the script collector. You should use f:verbatim on any non-JSF tags and text.

BTW, in my experience, IBM's implementation of JSF is horrendous and unnecessary. Once you get a little more comfortable with JSF, I suggest you get rid of all the pagecode and "hx" tags (IBM specific tags). They are so annoying and will cause you much grief. If you want a good third party JSF implementation, use myFaces. I've heard a lot of good things about them (I have personally only ever used Sun's JSF RI).

CowKing

IamCowKinga at 2007-7-12 10:27:44 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
I can't say anything else than that I fully agree with CowKing. I also talk from own experience.
BalusCa at 2007-7-12 10:27:44 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
Thanks all,can you please guide me how to use that new tag library - myfaces - like putting jars in webfolder, then changing the faces-config file? any tutorial ...thank you very much..
molly_t52a at 2007-7-12 10:27:44 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
It's just available at their site :) http://myfaces.apache.org/gettingstarted.html
BalusCa at 2007-7-12 10:27:44 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...