Modify id of jsp f:subView id=""

I need to use several times the same jsp on my application in different Tabs, so as <f:subview > is Naming container if I don�t change the id my application fail, telling me "Duplicate id" So I think a solution something like that:
<f:subview id="#{Bus.id}">
where Bus is a backingbean and id a property which I changes its value each time I want to load the same jsp.This soluction fail too.
1-Why?
2-Any suggestion to do that?
Message was edited by:
juanjocasa
Message was edited by:
juanjocasa

Hi,
your code works in this form? In my case i becomes a error when i trying to use <f.subview id="a id for the subview">without attribute id.
Roland

Similar Messages

  • Modify Collection with jsp:setproperty

    Hello:
    I have a problem with jsp and struts.
    I have a collection of items (List) and view the elments in jsp page. This It works fine.
    But the problem happens when i like modify the collection.
    The code to view the collection in jsp is:
    <jsp:useBean id="ItemListForm" class="com.myapp.struts.ItemListForm" scope="session" />
    <html:form action="/ItemEditAction" >
    <logic:iterate name="ItemListForm" property="listaItems" id="item" >
    <P>
    <BASEFONT SIZE="3">
    <jsp:getProperty name="item" property="etiqueta" />
    </BASEFONT>
    <P>
    <jsp:getProperty name="item" property="grafico"/>
    <P>
    </logic:iterate>
    <P>
    <html:submit>Save File</html:submit>
    <html:hidden property="do" value="saveXML"/>
    </html:form>
    The question is:
    How to modify the element "grafico" with jsp:setproperty.
    Thanks for all.

    Thank you, I had forgotten the set part, but then the next problem occurs:
    <jsp:setProperty name="date" property="locale" value="${locales.locale}"/>
    generates:
    org.apache.jasper.JasperException: Unable to convert string '${locales.locale}' to class java.util.Locale for attribute locale: java.lang.IllegalArgumentException: Property Editor not registered with the PropertyEditorManager
    could I only use Strings as input?

  • Modify javascript with jsp

    Hi.
    Is there any way to modify a text within a javascript script using jsp?
    I have all the javascript in a separated file.
    Thanks.

    Only if you make that separate file a JSP of course.

  • Best way to create, modify, XML with JSP ?  HELP

    Hi friends,
    As i am new to XML,
    I know there are two APIs used for XML processing, i want to know as a begineer level, which API
    is easy and good to implement XML with JSP.
    1) SAX
    2) DOM
    i want to make a log file in XML, so on web page it will be displayed on HTML form through XSL.
    Since there is good tutorial on http://www.w3schools.com/dom
    but i think its HTML dom
    I want XML procession through JAVA CODE , what should i use ? and give some good tutorials on XML DOM
    that is used with JAVA / JSP.
    HELP.
    Edited by: Ghanshyam on Sep 19, 2007 3:24 PM

    Well what i think is you gonna checkout with your requirements before implementing any of the popular XML parsing mechnisms.
    If you are intrested in faster processing @sacrifising a gud amount of your Memory,DOM is the one which you are looking for.
    If you are instrested in Managing your memory and but if you are ok with sacrifising speed SAX is the best solution.it works on what is called a push technology.
    and if you think either way you might have to look towards a pull parser which is StAX (Streaming API for XML Parsing)
    it'd be a gr8 idea if you can go through the below article which explians about each of the parsing mechanisms
    http://www.stylusstudio.com/xml/parser.html#*
    coming back to helpful resources as far java is concern checkout the below link which might be of some help.
    and the main thing is that all of these parser there is a defined specification you might find implementations of different vendors on this.
    eg:Sun Provides one with JDK itself,same as IBM provides one,oracle does the same & so on...
    your first task would be to focus on one such implementation which can cater your requirements.
    DOM:*
    Basic Parsing Objects / Interfaces Involved while DOM parsing:
    http://www.w3.org/TR/DOM-Level-2-Core/java-binding.html
    Breif Overview & few important API details:
    http://www.developerlife.com/domintro/default.htm
    Simple Example:
    http://www.brics.dk/~amoeller/XML/programming/domexample.html
    Others:
    http://www.roseindia.net/xml/dom/
    http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JAXPDOM.html#wp79994
    http://java.sun.com/webservices/jaxp/dist/1.1/docs/tutorial/dom/1_read.html
    SAX:*
    http://www.javacommerce.com/displaypage.jsp?name=saxparser1.sql&id=18232
    http://java.sun.com/webservices/jaxp/dist/1.1/docs/tutorial/sax/index.htm
    http://java.sun.com/developer/Books/xmljava/ch03.pdf
    http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JAXPSAX.html#wp69937
    http://www.onjava.com/pub/a/onjava/excerpt/java_xslt_ch5/index.html?page=6
    StAX:*
    http://java.sun.com/webservices/docs/1.6/tutorial/doc/SJSXP2.html
    http://javaboutique.internet.com/tutorials/stax/
    http://today.java.net/pub/a/today/2006/07/20/introduction-to-stax.html
    Hope this might be of some help :)
    REGARDS,
    RaHuL
    http://weblogs.java.net/blog/spericas/archive/2006/04/sun_stax_parser.html

  • Modifying JSP in OAS installation

    .I am auto generating user id and password field and I need to hide these two field from user creation page.I modified JSP in OAS installation.I followed the following steps for doing
    this.
    1.Unpacked xlWebApp.war.
    2.Modified tiles/util/tjspGenerateCreateUserForm.jsp and packed the war file
    again.
    3.Placed the war file in /webapp folder.
    4.started patch_oc4j.cmd (oc4jadmin password) (database password).
    5.Build was successful.
    6.I checked exploded file in
    E:\oracle\oas\j2ee\home\applications\Xellerate\xlWebApp/tiles/util/tjspGenerateC
    reateUserForm.jsp.
    and I can see my modification there.
    7.I tried to access user creation page but it is still showing my old jsp with no
    modification.
    Please tell me what I am missing.I know for Jboss I need to comment out web.xml but I do not see jsp related section in above exploded web.xml .
    installation.
    Regards
    Nitesh

    Hi
    I am having exactly the same problem here but could not make it work even with cleaning precompiled folder before running the patch.
    What i did :
    1. Unpacked xlWebApp.war.
    2. Modified tiles/tjspViewUserDetailsTiles.jsp and packed the war file
    again.
    3. Placed the war file in /webapp folder.
    4. Stopped OIM services with "opmnctl shutdown"
    5. Placed war file into $APPSERVER/j2ee/home/applications/Xellerate
    6. DELETED EVERYTHING INSIDE "$XELLERATE_HOME/xellerate/webapp/precompiled" FOLDER.
    7. Started OIM services "opmnctl startall"
    8. I can see my modified jsp at $APPSERVER/j2ee/home/applications/Xellerate/xlWebApp/tiles/
    9. I started patch_oc4j.sh. Ended successfully.
    10. Now I can see my modified jsp file in $XELLERATE_HOME/xellerate/webapp/precompiled/jsp-temp/tiles folder also.
    11.I tried to access the page but it is still showing my old jsp with no modification.
    What in the name of god am I doing wrong???

  • Javascript error with f:subview and jsp:include

    Hi,
    I have tried to include one jsp page with jsf components into another jsp page with jsf components. But somehow I get a Javascript error.
    I have of course included the jsp:include into an f:subview like this:
    <f:subview id="tree" rendered="#{tabsBacker.treeRendered}">
    <jsp:include page="mission.jsp" />
    </f:subview>In mission.jsp, all non-jsf tags are surrounded by f:verbatim tags (otherwise, JBoss would complain anyway).
    The Javascript error says: "elements.form1:_link_hidden_ is null".
    "form1" is the name of the form in my jsp page which includes the other one.
    As soon as I remove the jsp:include thing, everything works fine. The include happens in a t:panelTabbedPane, and (probably as a result of the javascript error), the tab where the included page should be shown, can't be displayed. I can click on the tab, the page is reloaded, but nothing else happens.
    The error occurs in IE and in Firefox.
    Can anyone help me to solve this problem??
    Kind regards,
    Wiebke

    It's just a jsp fragment file. Here's the start of the jspf included above:
    <%@ 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/html_extended" prefix="hx" %>
    <f:subview id="browseForm">
    <table class="box" width="100%">
         <tr>
              <td><h:outputText value="#{labels.someValue}" styleClass="smalltitle"/></td>
         </tr>And so on. This was just done to stop the jsp files becoming too long, I think. So the subview tag is included in the jspf file rather than around the jsp file as you have it.
    Illu

  • Pass Parameter from main page to include page (subview) and read it ?

    Hello All
    i have an include header.jsp page in main page.jsp ,and i included it by subview.
    i want to pass a parameter ex(screen name) to the subview by using f:param.
    Here is the code in main.jsp:
    <f:subview id="headerSubView">
    <jsp:include page="/commons/header.jsp" flush="true">
    <jsp:param name="screenTitleByJspParam" value="screen2007"/>
    </jsp:include>
    <f:param name="screenTitleByFparam" value="screen2007"/></f:subview>
    Code in header.jsp
    1- <af:outputFormatted value="#{param.screenTitleByJspParam}"/> -- this dose not work
    2- <af:outputFormatted value="#{param.screenTitleByFparam}"/> -- this dose not work (i want this manner)
    So how i can send parameter by ]<f:param and read it by subview uesing adf/jsf tags ?
    Regards
    Mohd.Weshah
    weshah79

    Dear thanassis
    Thanks for you help ,your code is working successfully but my case is the following :
    same your main jsp page but the subview tag in table :
    <%@ page contentType="text/html;charset=windows-1256"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces/html" prefix="afh"%>
    <f:view>
    <html>
    <head>
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1256"/>
    <title>main</title>
    </head>
    <body>
    <h:form>
    <afh:tableLayout>
    <afh:rowLayout>
    <afh:cellFormat>
    <f:subview id="header">
    <jsp:include page="header.jsp" flush="true">
    <jsp:param name="pageTitle" value="Modify aa record"/>
    </jsp:include>
    <f:subview>
    </afh:cellFormat>
    </afh:rowLayout>
    </afh:tableLayout> </h:form>
    </body>
    </html>
    </f:view>
    try it the parameter dose not work ,but if you want that code work successfully move the subview out of the table.
    Do you know what is the problem ?
    i want give you another hint maybe it is realted to the same problem, which is in my original page the body tag is adf tag ie(<afh:body>) your code dose not work with that tag until i changed the afh:body to html body.
    Regards
    Mohd.Weshah

  • Dynamic menu doesn't work with f:verbatim and jsp:directive.include

    Is it not possible to include fragment part in a panel page containing some dynamic menus ?
    This work fine:
    <af:panelPage title="Application home">
    <f:facet name="menu1">
    <af:menuTabs var="menuTab" value="#{menuModel.model}">
    <f:facet name="nodeStamp">
    <af:commandMenuItem text="#{menuTab.label}"
    action="#{menuTab.getOutcome}"/>
    </f:facet>
    </af:menuTabs>
    </f:facet>
    But replacing these entry by a fragment doesn't work, as this:
    <af:panelPage title="Application home">
    <f:facet name="menu1">
    <f:verbatim>
    <jsp:directive.include file="/menuTab.jspf"/>
    </f:verbatim>
    </f:facet>
    the fragment code:
    <f:subview id="menuTab">
    <af:menuTabs var="menuTab" value="#{menuModel.model}">
    <f:facet name="nodeStamp">
    <af:commandMenuItem text="#{menuTab.label}"
    action="#{menuTab.getOutcome}"/>
    </f:facet>
    </af:menuTabs>
    </f:subview>

    Oh, God, why not tell me earlier!!!!!! I do use tomcat 3.1 and it just support servlet. I have no way out but modify all my jsp:include to encoding into a servlet page. I almost re-do all my work. But anyway, thank you! Next time I will know.

  • How do I use f:subview with referance class attributes

    Hi all,
    Any pointer on the below problem will be greatly appretiated....
    I have a "Address" class used in "Customer" for billing and shipping address and "Customer" Class is placed in faces-config.xml as named with "CustomeBean".
    public class Address {
         private String street;
         private String city;
         private String state;
         private String zip;
    // Empty construtor + all getter and setter methods
    public class Customer{
    private String firstName;
    private String lastName;
    private Address billingAddress;
    private Address shippingAddress;
    //Empty Constructor and all getter and setter methods
    public void add(Customer customer){
    // Logic to make this as persitance
    customer.jsp
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <html>
    <head><title>Login</title></head>
    <body>
    <f:view>
    <h:form id="customerForm">
    First Name: <h:inputText id="firatName" value="#{CustomerBean.firstName}" >
    Last Name: <h:inputText id="lastName" value="#{CustomerBean.lastName}" >
    Billing Address
    Street: <h:inputText id="bstreet" value="#{CustomerBean.billingAddress.street}" >
    City : <h:inputText id="bcity" value="#{CustomerBean.billingAddress.city}" >
    State: <h:inputText id="bstate" value="#{CustomerBean.billingAddress.state}" >
    Zip: <h:inputText id="bzip" value="#{CustomerBean.billingAddress.zip}" >
    Shipping Address
    Street: <h:inputText id="sstreet" value="#{CustomerBean.shippingAddress.street}" >
    City: <h:inputText id="scity" value="#{CustomerBean.shippingAddress.city}" >
    State: <h:inputText id="sstate" value="#{CustomerBean.shippingAddress.state}" >
    Zip: <h:inputText id="szip" value="#{CustomerBean.shippingAddress.zip}" >
    </h:form>
    </f:view>
    </body>
    </html>
    Now, what I want to do is "address" part as re-usable with <f:subview> by makeing it in seperate page and make it include in customer.jsp.
    customer.jsp
    <f:view>
    <f:subview id = "bAddress">
    <jsp:include page="address.jsp" />.
    </f:subview>
    <f:subview id = "sAddress">
    <jsp:include page="address.jsp" />
    </f:subview>
    </f:view>
    How do I make refer the CustomerBean.billingAddress.* and CustomerBean.shippingAddress.* values when I use <f:subview> ?
    How to make to access the values of address in managedbean(Custoer.java) in add(customer) method?
    Any help ...
    Thanks
    pvkr

    Martin,
    I'm still bothered by "CustomerBean.shippingAddress".
    Please post a snip of the management of this object
    from your faces-config.xml. You actually name your
    object instance with the first letter captialized
    like your class?
    Sorry for breaking coding convestion ...:-)
    faces-config.xml
    <faces-config>
    <managed-bean>
    <description>Customer Bean Holder</description>
    <managed-bean-name>CustomerBean</managed-bean-name>
    <managed-bean-class>com.my.test2.Customer</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>
    </faces-config>
    I'm still not sure what you are trying to achieve.
    <f:subview> is mostly like an import of a frag of
    f jsf tags. Does not have runtime storage capability
    but is a way to repeat a frag different places. It
    does not control the workings, serial state of managed
    beans.
    Post more snips...All i am trying to achive is , address(Address.java) part is gona simillar in most of the places in application and it is gona just like an attribute to all other classes like customer, insurance, company etc ...SO when I do create data entry screens for customer, insurance, company etc .. i need to just include address part as a snippet with <f:subvirew> and wire that seamlessly to customerBean, insuranceBean, companyBean etc...
    So in my previous posting what i mention customerBean.billingAddress.*(street,city,state,zip) and customerBean.shippingAddress.* is directly inside customer.jsp
    But when you try to re-use address part as address.jsp, address.jsp knows only some object simillar to Address class. And the address attributes are unchanges extect the prefix of those attributes in valuebinding is changing based who is the parent object of that address attributes.
    So in address.jsp in the place of "???" , i need to find a way to pass the "parentObject.addressObject" (ex: customerBean.shippingAddress , customer.billing Address , insurance.mailingAddress etc ...) so that in process it should look like "parentObject.addressObject.street" , "parentObject.addressObject.city" etc ...
    Street: <h:inputText id="bstreet" value="#{???.street}" >
    City : <h:inputText id="bcity" value="#{???.city}" >
    State: <h:inputText id="bstate" value="#{???.state}" >
    Zip: <h:inputText id="bzip" value="#{???.zip}" >
    Any clue ....

  • To JDev expert. Need help with JSP, pls.

    Hi all.
    I have a strange problem. Only one JSP in my entire application fails to appear when I debug with local (embeded) OC4J. These are the first lines of the exception message:
    Exception:
    java.lang.NoClassDefFoundError: _addFile
    java.lang.Class java.lang.ClassLoader.defineClass0(java.lang.String, byte[], int, int, java.security.ProtectionDomain)
    native code
    The class _addFile is generated from addFile.jsp and is available in the output directory. Production application doesn't display the same behavior, this only happens in DEBUG mode in JDeveloper.
    OS: win2000
    JDK: 1.3.1
    JDevaloper is 9.0.2.. something.
    Struts
    Thanks people.

    1) The main page should have a <f:view> tag which wraps any of the JSF tags.
    2) The include page should have a <f:subview> tag with an unique ID (thus, this should not be placed in the main page!).
    3) The UIInput and UICommand elements have to be placed in a <h:form> tag.
    Considering those facts, your structure should rather look like:
    main.jsp<f:view>
        <jsp:include page="menu.jsp" />
    </f:view>menu.jsp<f:subview id="menu">
        <h:form>
            <h:commandLink value="Salir" action="salir" />
        </h:form>
    </f:subview>

  • Best practice to modify OIM webApp.war in Weblogic (10g - 9102)

    I very generic question for OIM in Weblogic:
    If I'm doing any change(minor or major) in any of the JSP file in OIM xlWebApp.war, what is the best practice of moving it to production ?
    Thanks,

    Hi,
    Here the steps you should do:
    - unwar the xlWebApp.war file (through jar command)
    - Modify/add the jsp's.
    - War it again.
    - copy/replace that at XEL_HOME/webapp location.
    - if you had modified xml or properties file, copy that to DDTemplate/webapp
    - run patch_weblogic command.
    - restart server.
    You can also write a build script which will take OOTB xlWebApp.war and custom jsp's and will generate new xlWebApp.war.
    Once tested successfully in dev/QA env, you can check in code and new xlWebApp.war file in some subversion.
    In Production you can directly use this xlWebApp.war file and run patch command.
    Also look at this:
    Re: Help: OIM 10G Server With Weblogic
    Cheer$
    A..

  • Adding a custom button to Login.jsp

    In AM 7.1 I have a need to add a "Forgot your password?" button to the AM login page. I would like this button to be located just to the right of the existing 'Log In" button and have the same look and feel as the "Log In" button.
    When a user clicks on the button it is going to take them over to our Identity Manager questionLogin.jsp page. Linking the button to the IdM page is easy. What I don't know how to do is modify the Login.jsp page to add another button that has the same look and feel of and is positioned right next to the current "Log In" button. The AM Developer's Guide was of no help. Can anyone help and/or provide a code example that would do what I am looking for?

    Thanks for the reply, Michael. I understand that the Login.jsp needs to be modified and redeployed, but the question is how to create a new button with the same look and feel as the Login button. Currently we have modified the Login.jsp with a "Forgot Password" html link, but it would be prefered to create a button to match what already exists. I understand that this might be outside the scope of this forum, but I was hoping that someone that has done this (specifically the original poster if he found a solution) could share the relevent code.

  • Jsp:include doesn't work with Tomcat & IIS

    Hi, Guys,
    I installed IIS4.0 and Tomcat in my windows NT system. http://localhost/examples/jsp/index.html works fine.
    When I load http://localhost:8080/about.jsp, it's also working fine. But when I load http://localhost/about.jsp, it will ignore the part which the line is display as
    <%String topName = "/servlet/topServlet";%>
    <jsp:include page="<%=topName%>" flush="true"/>
    The other part will work just as a html file. And I didn't get any error message.
    Would can tell me how to figure out this problem. Thank in advanced very much!

    Oh, God, why not tell me earlier!!!!!! I do use tomcat 3.1 and it just support servlet. I have no way out but modify all my jsp:include to encoding into a servlet page. I almost re-do all my work. But anyway, thank you! Next time I will know.

  • Can't display a FacesMessage in a f:subview

    hi,
    {noformat}i have "big" problem, i have some subviews and and i want to display FacesMessages within these subviews. But when i put a h:form into a subview (included via <jsp:include... />), i cannot display a message via h:message, which is fired through an action in this subview. Huh, thats a little bit confusing. I prepared a simple program which illustrates the problem. Here the code:{noformat}
    my mainPage:
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
      <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>FacesMessage in Subview</title>
      </head>
      <body>
        <f:view>
          <h:messages globalOnly="false" />
          <f:subview id="mySubview">
            <jsp:include page="/mySubview.jsp" />
          </f:subview>
          <h:form id="myForm2">
            <h:message for="myForm2" />
            <h:commandButton value="myButton2 (Click Me)(This will work)!"
                             action="#{MyBean.myAction2}" />
          </h:form>
          <%-- this will work, comment out and try --%>--
    --      <%--
          <h:form id="myForm">
            <h:message for="myForm" />
          </h:form>
          --%>
        </f:view>
      </body>
    </html>here the subview (mySubview.jsp):
    <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <h:form id="myForm">
      <h:message for="myForm" />
      <h:commandButton value="myButton (Click Me)!" action="#{MyBean.myAction}" />
    </h:form>... and here the java code of my bean:
    package foo;
    import javax.faces.application.FacesMessage;
    import javax.faces.context.FacesContext;
    public class MyBean {
      public String myAction () {
        FacesMessage message = new FacesMessage("hello world!");
        FacesContext.getCurrentInstance().addMessage("myForm", message);
        return null;
      public String myAction2 () {
        FacesMessage message = new FacesMessage("hello world! This will work");
        FacesContext.getCurrentInstance().addMessage("myForm2", message);
        return null;
    }OK here we are, so if you click on "myButton (Click Me)!", then you will only see a message in the global h:messages tag, but not "in" '<h:message for="myForm" />'. Why? Remember that "myButton (Click Me)!" and the corresponding action "myAction" are embedded into a subview.
    Another funny thing is, when you remove the comment around the commented region in mainPage, then everything will work just fine (btw, even with the duplicated id "myForm", i always thought that ids must be unique throughout the whole page (including subviews and UINamingContainers)).
    Is it per definition impossible to display a FacesMessage in a subview? Or did i something wrong?
    A similar problem was posted here some time ago: http://forums.sun.com/thread.jspa?forumID=427&threadID=612747
    Any help will appreciated.
    Regards
    JIVI
    P.S. If you are interested in the whole *.WAR file, please contact me.

    If you do it this way, then you can easily produce duplicated f:subview ids.
    including file:
    jsp:include .... a.jsp <%-- included file --%>
    jsp:include .... b.jsp <%-- included file --%>
    jsp:include .... c.jsp <%-- included file --%>
    but which ids does the subviews have? it is hard do determine. so i think the other (my) way would be better. i have seen examples in both directions, so i think you do it so or so.
    JIVI

  • How to include more jsp?

    Hi,
    I've header.jsp, footer.jsp, content.jsp (which is loaded dynamically) and a main.jsp. I would include all jsp into main.jsp.
    This is the header.jsp
    <div id="logo" align="top">
    <img src="http://www.company.com/images/logo-red.gif"/>
    <div class="user-info">Welcome, <h:outputText value="#{user.email}"/></div>
    </div>
    The footer.jsp is
    <div id="footer">
    <div id="footer-copyright">Copyright &copy; 2006 MyCompany, Inc.</div>
    </div>
    The content.jsp is
    <h:dataTable value="#{controller.renderedSteps}" var="vitem"
    rowClasses="stepdescription-text">
    <h:column>
    <h:outputText id="stepDescription" value="#{vitem.step.description}"/>
    </h:column>
    <h:column>
    <h:commandButton value="next step"
    action="#{controller.nextStep}"
    rendered="#{vitem.isRendered}"
    disabled="#{vitem.isDisabled}" />
    </h:column>
    </h:dataTable>
    The body of main.jsp is
    <body>
    <f:view>
    <h:panelGrid>
    <jsp:include page="header.jsp"/>
    <jsp:include page="content.jsp"/>
    <jsp:include page="footer.jsp"/>
    </h:panelGrid>
    </f:view>
    </body>
    The problem is that when I load the main.jsp seems that the <div> are ignored.
    I'm very new in JSF and JSP\HTML.
    Thanks

    Use f:subview and use f:verbatim.
    First, f:verbatim... This JSF tag allows you to write HTML verbatim to your page. Whenever you have an HTML tag in any included page from a JSF app, it must be wrapped in f:verbatim. It is also good practice to use f:verbatim in your main page too, though it is not absolutely required. Do not wrap JSF tags in f:verbatim, it will not work.
    A general rule of thumb is to attempt to use as little HTML as possible. The JSF tag set with CSS actually eliminates the need for a great deal of HTML. I suggest picking up a good book that explains each component in the JSF library. Such as Core JavaServer Faces by David Geary and Cay Horstmann. Some free chapters can be found here (Check out "Basic Standard Components): http://www.horstmann.com/corejsf/
    Seconly, use f:subview when including a page. Either inside the included JSP or around the include statement. Like so:
    <f:subview id="header">
        <jsp:include page="header.jsp"/>
    </f:subview>
    OR
    <f:subview id="header">
    <f:verbatim><div id="logo" align="top">
    <a href="http://www.mycompany.com/">
    <img src="http://www.company.com/images/logo-red.gif"/>
    </a>
    <div class="user-info">Welcome, </f:verbatim><h:outputText value="#{user.email}"/><f:verbatim></div>
    </div></f:verbatim>
    </f:subview>For more information, check out this related forum posting:
    http://forum.java.sun.com/thread.jspa?threadID=715984&start=10&tstart=0
    Hope this helps!
    CowKing

Maybe you are looking for