JSF 1.2 + Tiles 2

Dear JSF developers,
I tried to find a working example of JSF1.2 + Tiles 2 but I failed.
Do you know where I can get one in internet? I made a lot of example by myself including the example for Core JSF book, ch.8. It always has problems.
Thanks in advance for any idea.
Pengyou

try this link [examples from JavaPassion|http://www.javapassion.com/handsonlabs/jsftiles/]

Similar Messages

  • Tiles / JSF with single tiles-defs.xml file, no templating JSPs?

    All the examples I've seen for using JSF with Tiles use many JSP files for the templating information, resulting in twice as many JSP files as you would have in, say, a typical Struts project.
    When coding in Struts you can forward to a tiles definition, meaning that if all your page layouts are defined in tiles-defs.xml, then you only need to provide the JSPs for the non-standard parts of each page.
    With JSF it seems that you need to provide a JSP for the template for each file (which might end up being a single <tiles:insert... />, and the JSP for the non-standard bits for that page.
    Is there a way to either a) combine those two JSP files into one (by maby using a <tiles:put ... type="string"/> - tried this, couldn't get it to work), or b) get something similar to the way Struts + Tiles works?

    It does not work by default. It is a fact.
    Source for Struts, Tiles and even JSF are open now. I.e. everybody who has interest can research this question.
    I got this reply from another forum for this question and I am currently working on it. Lets see if we get somewhere.

  • SUN's jsf RI with tiles

    Hi
    I know there are articles that talk about JSF + tiles. But they talk about myfaces which provides support for tiles. Can we use tiles using SUN RI.
    Which is better SUN RI or my faces.
    One more thing I am confused on the GUI components
    1) SUN RI has components
    2) myfaces also has the components
    3)Tomahawk
    4) Oracles Trinidad
    If I were to use myfaces, then do I have to use Tomahawk?
    If I use tomahawk, then shouldn't it make sense just use those components instead of myfaces GUI coomponents
    Could somebody please post, how one should use these ..
    thanks

    This error because of <!DOCTYPE tiles-definitions PUBLIC
    "-//Apache Software Foundation//DTD Tiles Configuration//EN"
    "http://jakarta.apache.org/struts/dtds/tiles-config.dtd"> in tiles-defs.xml file
    i think http://jakarta.apache.org/struts/dtds/tiles-config.dtd site down at the time of deploy your struts tiles application,
    Put tiles-config.dtd dtds in your local system,
    <!DOCTYPE tiles-definitions SYSTEM
    "http://localhost/dtds/tiles-config.dtd"> use like this.
    Thanks
    Ramki
    Pennywise Solutions Pvt. Ltd.

  • JSF equivalent of Tiles

    Hello,
    I worked a little with Struts and noticed an excellent feature: Tiles.
    I just wanted to know if there is an equivalent of Tiles in JSF.
    Julien.

    You can use Struts Tiles in JSF as well. There are several examples on the internet:
    http://www.jsftutorials.net/tiles/jsf-tiles.html
    http://www-128.ibm.com/developerworks/java/library/j-integrate/
    http://java.sys-con.com/read/46977.htm
    MyFaces JSF implementation has a pretty good support for Struts Tiles. You can see the example on thier web site (http://myfaces.apache.org/components/tiles.html). Also, the free version of Exadel Studio has a tiles based project as one of the project template for MyFaces.
    As an alternative to Struts Tiles, you can look at siteMesh ( http://www.opensymphony.com/sitemesh/ )
    Sergey : jsfTutorials.net

  • Unable to use Struts taglib in JSF and Struts-tiles app

    With the taglib correctly defined as follows,
    <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
    I'm trying to use <link rel="stylesheet" href="<html:rewrite page='/WEB-INF/csslib/layout.css'/>" type="text/css"/> to pull in my stylesheet. But I get an error saying:
    Apr 24, 2007 10:58:31 AM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    javax.servlet.jsp.JspException: ServletException in '/pages/layout.jsp': null
         at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:921)
         at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:460)
         at org.apache.jsp.pages.runTest_jsp._jspx_meth_tiles_insert_0(runTest_jsp.java:78)
         at org.apache.jsp.pages.runTest_jsp._jspService(runTest_jsp.java:54)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
         at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
         at org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl.dispatch(JspTilesViewHandlerImpl.java:233)
         at org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl.renderView(JspTilesViewHandlerImpl.java:219)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
         at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
         at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:688)
         at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:658)
         at org.apache.jsp.index_jsp._jspService(index_jsp.java:49)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    If I take out the <html:rewrite> reference, it works like a charm.
    What is the problem here?

    Hi,
    Pls try application-config tag like this
      <application-config>
        <property name="PrivateSharingReference" value="com.sap.portal.htmlb">
        </property>
        <property name="SharingReference" value="com.sap.portal.runtime.application.soap">
        </property>
      </application-config>
    Also check component tag is in this order
    <component name="AddAccounts">
          <component-config>
            <property name="ClassName" value="Test">
            </property>
            <property name="JSP" value="pagelet/test.jsp">
            </property>
          </component-config>
          <component-profile>
            <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld">
            </property>
          </component-profile>
        </component>
    regards,
    Sujesh

  • Problems with JSF&Tiles (displaying twice one inserted page in tiles)

    I'm using Tiles framework withih Dynamic Web Project in Websphere (WSAD 5.1.1), the project is based on JSF.
    - included tiles.jar in WEB-INF/lib directory
    - in web.xml defined servlet action as: <servlet>
              <servlet-name>action</servlet-name>
              <display-name>TilesServlet</display-name>
              <servlet-class>org.apache.struts.tiles.TilesServlet</servlet-class>
              <init-param>
                   <param-name>definitions-parser-validate</param-name>
                   <param-value>false</param-value>
              </init-param>
              <load-on-startup>2</load-on-startup>
         </servlet> - also to Faces Servlet set value "load on startup" on 1
    - added struts-tiles.tld to WEB-INF folder
    - then I created index.jsp: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <HTML>
    <HEAD>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
    <%@ page
    language="java"
    contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"
    %>
    <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <META name="GENERATOR" content="IBM WebSphere Studio">
    <META http-equiv="Content-Style-Type" content="text/css">
    <LINK href="theme/Master.css" rel="stylesheet"
         type="text/css">
    <TITLE>index.jsp</TITLE>
    <%-- jsf:codeBehind language="java" location="/JavaSource/codebehind/index.java" --%><%-- /jsf:codeBehind --%>
    </HEAD>
    <f:use_faces>
         <BODY>
         <TABLE border="1">
              <TBODY>
                   <TR>
                        <TD>
                             <tiles:insert page="/menu.jsp" flush="false"/>
                        </TD>
                        <TD>
                             <tiles:insert page="/content.jsp" flush="false"/>
                        </TD>
                   </TR>
              </TBODY>
         </TABLE>
         </BODY>
    </f:use_faces>
    </HTML> - menu.jsp and content.jsp inserted in index.jsp are not the same, and here is code for menu.jsp: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <%@taglib uri="http://www.ibm.com/jsf/html_extended" prefix="hx"%>
    <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <HTML>
    <HEAD>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ page
    language="java"
    contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"
    %>
    <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <META name="GENERATOR" content="IBM WebSphere Studio">
    <META http-equiv="Content-Style-Type" content="text/css">
    <LINK href="theme/Master.css" rel="stylesheet"
         type="text/css">
    <TITLE>menu.jsp</TITLE>
    <SCRIPT type="text/JavaScript" language="JavaScript"
         src=".ibmjsfres/hxclient.js"></SCRIPT>
    <LINK rel="stylesheet" type="text/css"
         href=".ibmjsfres/css/stylesheet.css" title="Style">
    <%-- jsf:codeBehind language="java" location="/JavaSource/codebehind/menu.java" --%><%-- /jsf:codeBehind --%>
    </HEAD>
    <f:use_faces>
         <BODY><hx:script_collector>
         <h:form formName="form1" id="form1"><P><hx:panel_actionbar
                        id="actionbar1"><hx:panel_actionbar nestedTitleText="Sub-Panel Label" id="actionbar2"><hx:command_buttonex label="Command Label" id="button1" action="go_page01"></hx:command_buttonex><hx:command_buttonex label="Command Label" id="button2"></hx:command_buttonex></hx:panel_actionbar><hx:panel_actionbar nestedTitleText="Sub-Panel Label" id="actionbar3"><hx:command_buttonex label="Command Label" id="button3"></hx:command_buttonex><hx:command_buttonex label="Command Label" id="button4"></hx:command_buttonex></hx:panel_actionbar></hx:panel_actionbar></P></h:form>
         </hx:script_collector></BODY>
    </f:use_faces>
    </HTML>The problem is when I run application on server and go to index.jsp the resulting page is containing two times menu.jsp, instead once menu.jsp and once content.jsp.
    Also when you click on buttons in "second" menu.jsp it's like it was clicked on the "first and the original one". When you click navigation rules do apply.
    Can anyone help on this?
    Message was edited by:
    DeYo

    I haven't solved problem yet but so far I realised this:
    - the problem is that both menu.jsp and content.jsp have forms, with tags: <h:form formName="form1" id="form1">.
    I've tried renaming form and id, but it didn't worked, alo tried changing scope of managed beans for the two inserted jsp pages - still nothing.
    - also if the content.jsp is not containing form but other JSF components like Image or Hyperlink, that components are not being shown/rendered.

  • Need JSF & tiles integration using any implementation

    Hi Freinds,
    I m new to JSF and I m looking for some tutorial or war file which uses the JSF implementation with tiles.
    Myfaces will be best.
    Need urgently.
    Thanking in advance.
    regards,
    Novin

    Hi Freinds,
    I m new to JSF and I m looking for some tutorial or war file which uses the JSF implementation with tiles.
    Myfaces will be best.
    Need urgently.
    Thanking in advance.
    regards,
    Novin

  • JSF & Tiles integration

    Hi Freinds,
    I m new to JSF and I m looking for some tutorial/article/guide or war file which uses the JSF implementation with tiles.
    Need urgently.
    Thanking in advance.
    regards,
    Novin

    Hello,
    i'm trying to use MyFaces+Tiles.
    I done this steps:
    1) put struts.jar in WEB-INF/lib
    2) add follow lines in web.xml
    <context-param>
            <param-name>tiles-definitions</param-name>
            <param-value>/WEB-INF/tiles-defs.xml</param-value>
    </context-param>
    <context-param>
         <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
         <param-value>.tiles</param-value>
    </context-param>
    <!-- Faces Servlet Mapping -->
         <servlet-mapping>
              <servlet-name>Faces Servlet</servlet-name>
              <url-pattern>/faces/*</url-pattern>
         </servlet-mapping>3) add follow in application tag of faces-config.xml
    <view-handler>org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl</view-handler>4) make file tiles-defs.xml and put it in WEB-INF dir, some its lines are
    <!DOCTYPE tiles-definitions PUBLIC
           "-//Apache Software Foundation//DTD Tiles Configuration//EN"
           "http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd">
    <tiles-definitions>
        <definition name="layout.base" path="/index.jsp" >
            <put name="header" value="/header.jsp" />
            <put name="body" value="" />
            <put name="footer" value="/footer.jsp" />
        </definition>
        <definition name="/index.tiles" extends="layout.base" >
            <put name="body" value="/body_index.jsp" />
        </definition>
    ...5) index.jsp is this (partial)
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
         pageEncoding="ISO-8859-1"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
    <%@ taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j"%>
    <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <f:view>
         <head>
              <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
              <title><f:verbatim>index</f:verbatim></title>
              <link rel="stylesheet" type="text/css" href="css/style.css" />
         </head>
         <body >
              <div id="topPanel">
                   <f:subview id="header">
                     <tiles:insert attribute="header" flush="false"/>
                   </f:subview>
              </div>
              <div id="bodyPanel">
                   <f:subview id="body">
                     <tiles:insert attribute="body" flush="false"/>
                   </f:subview>
              </div>
              <div id="footerPanel">
                   <f:subview id="footer">
                     <tiles:insert attribute="footer" flush="false"/>
                   </f:subview>
              </div>6) header.jsp follow
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
         pageEncoding="ISO-8859-1"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
    <%@ taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j"%>
    <h:form>
         <ul>
              <li><h:commandLink action="login">Contattaci</h:commandLink></li>
              <li><h:commandLink action="login">Chi siamo</h:commandLink></li>
              <li class="active"><h:commandLink action="index">Home</h:commandLink></li>
         </ul>
    ...other pages are similar
    7) i used a html page for redirect it follow
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Refresh" content="0; URL=faces/index.tiles" />
    <title>Index</title>
    </head>
    <body>
    </body>
    </html>The problem is: the page displayed (after invoke index.html) is empty, no errors on server.
    Why?
    How i can solve?
    Regards.

  • JSF Tiles Stylesheet solution

    This is just a post for other newbies (like me !) out there who might have struggled with integrating JSF & Tiles. It turns out my problem was not integration related at all & nor was it related to JSF (probably) or Tiles. I just did not know how to load a stylesheet correctly. The way I did it the first time was:
    <head>
    <link rel="stylesheet" href="./config/styles.css" type="text/css"/>
    </head>
    This worked fine the first time the page was displayed. Now if there was a validation error JSF would re-display the same page with all styles missing. The page would have the correct Tiles layout nonetheless.
    After much searching up all the wrong alleys (such as integration between the two etc.), I finally arrived at the correct way to load the .css file:
    <head>
    <link rel="stylesheet" href="<%=request.getContextPath()%>/config/styles.css" type="text/css" />
    </head>
    Now the path is derived from the contextPath of the application each time and the pages do not lose their styles.
    ...just in case someone else hits this and ends up looking here.
    Ciao, Bhishma

    Thanks Bhishma your solution was very usefull, I wish to know if you have some blog or something where I could write to you, for to be in touch and share experiences from our countries, sorry for my bad english

  • Tiles+JSF exceptions

    Hi!
    When I try to insert a part of JSF into the tiles and when some of JSF tags method or property bindings throws an exceptions, this exception is being handled either by Tiles or by JSF and is rendered on page in place of tag - [ServletException...
    Is there is a way to force an exception to be trhown up to the end?

    did you tried something like this:
    <%@ page contentType="text/html;charset=UTF-8" language="java" %>
    <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
    <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
    <%@ taglib prefix="t" uri="/WEB-INF/struts-tiles.tld" %>
    <f:view>
    <f:loadBundle basename="net.sourceforge.myfaces.tiles.example.Messages" var="messages"/>
        <body>
          <table border="1" width="100%" cellspacing="5">
            <tr>
              <th colspan="2" align="center">
                <f:subview id="header">
                  <t:insert attribute="header" flush="false"/>
                </f:subview>
              </th>
            </tr>
            <tr height="420">
              <td width="140" valign="top">
                <f:subview id="menu">
                  <t:insert attribute="menu" flush="false"/>
                </f:subview>
              </td>
              <td align="left" valign="top">
                <f:subview id="body">
                  <t:insert attribute="body" flush="false"/>
                </f:subview>
              </td>
            </tr>
            <tr>
              <td colspan="2" align="center">
                <f:subview id="footer">
                  <t:insert attribute="footer" flush="false"/>
                </f:subview>
              </td>
            </tr>
          </table>
        </body>
      </s:html>
    </f:view>

  • Tiles and RichFaces ?? Calendar

    Do tiles and RichFaces can work together ? I have project, jsf 1.2, tiles, mvc spring, tomcat 6 and i'm trying to add richfaces calendar when I write <rich:calendar/> the calendar button shows but when I click nothing happens. When I write <rich:calendar popup="false" /> nothing appears on the page. Please help how to begin with RichFaces.

    Plnjmw, welcome to the forum.
    If you have Windows System Restore setup, I suggest going back to a Restore point before you began having the problem.  This will tell you if the update is the problem.
    Please click the "Thumbs up + button" if I have helped you and click "Accept as Solution" if your problem is solved.
    Signature:
    HP TouchPad - 1.2 GHz; 1 GB memory; 32 GB storage; WebOS/CyanogenMod 11(Kit Kat)
    HP 10 Plus; Android-Kit Kat; 1.0 GHz Allwinner A31 ARM Cortex A7 Quad Core Processor ; 2GB RAM Memory Long: 2 GB DDR3L SDRAM (1600MHz); 16GB disable eMMC 16GB v4.51
    HP Omen; i7-4710QH; 8 GB memory; 256 GB San Disk SSD; Win 8.1
    HP Photosmart 7520 AIO
    ++++++++++++++++++
    **Click the Thumbs Up+ to say 'Thanks' and the 'Accept as Solution' if I have solved your problem.**
    Intelligence is God given; Wisdom is the sum of our mistakes!
    I am not an HP employee.

  • Integrating Struts, Tiles, and JavaServer Faces

    I have tried some sample applications in jsf. They are working properly. Basically, our application is based on struts. We fee that that it will be difficult to convert struts based application into jsf. So we plan to integrate jsf components into struts application. I found a site http://www.ibm.com/developerworks/library/j-integrate/ where jsf-struts integration material has been given. For this integaration, struts-faces.jar is required. when i try to start the server after struts-faces-1.3.8.jar placed in Tomcat 5.5\common\lib folder, server is not started properly. I have found struts-faces-1.3.8.jar in struts-1.3.8-lib. Should I user struts-faces.jar? if it is so, Where to find struts-faces.jar Please provide a solution for this problem.

    Wow, Srikanth. What a great contribution! I'm right at the begining of the design phase of a project that will hopefully go live in March and while I had already settled on a Tiles/Struts approach, I was really wanting to bring in JSF as well. I'm glad to see that someone is actively working on the integration components. I hope that the code modifications you propose make it into the Struts-Faces libraries soon.
    One question. While I've been deveolping J2EE webapps for a couple of years now,
    I'm still a little new to the Struts/Tiles arena. After reading your article at IBM developerWorks I wasn't able to ascertain whether or not what you proposed worked with the idea of individual controllers for each tile, which is a pattern that my project will need to adopt (I read about it in the short article here - http://www.theserverside.com/resources/article.jsp?l=Tiles101).
    Can you shed some light on the subject? Will the modifications you proposed allow Tiles to continue to work in that fashion?
    -Matt Welch
    Hi,
    Currently JSF, Struts and Tiles cannot work together
    out of the box.
    Craig McClanahan has come up with Struts-Faces which
    lets you integrate Struts and JSF. This is ideal for
    projects who want to protect their code investment in
    Struts and also want to take advantage of JSF once it
    is final.
    Unfortunately if you are also using Tiles, this is not
    possible because of some showstoppers on your way. I
    started on this venture a while back and ran into the
    same problems and decided to write some code - on top
    of Struts-Faces and was pretty successful.
    I am sharing this knowledge with the rest of you with
    this article of mine on IBM developerWorks
    http://www-106.ibm.com/developerworks/library/j-integra
    e/
    As already pointed out in this forum earlier, this
    article covers the steps to integrate the three and
    provides complete source code and also a working
    example.
    Hope you will find the article and the code useful.
    Thanks,
    Srikanth

  • Tiles integration with Jdeveloper11g

    Hi
    I am working on jdev11g and planning to integarte Tiles with it.
    I follow the steps given in Help document but unable to get success.
    To add a Tiles definitions file to a web application project:
    For a JSF application, Add Tiles Servlet definition to web.xml.
    when I add it it is unable to get TilesServlet class.
    Can u giude me or give some usefull liks from where i can get Step to Step info @ Tiles integration with jde11g
    Thanks for all Help.

    Jaydeep,
    Did you create a library (Tools -> Manage Libraries) containing the Tiles jar files and add that library to your project?
    John

  • Problem with commandLink and commandButton

    Problem with commandLink and commandButton
    I have commandButton id="submit" action="{myActionClass.dothis}"
    When I click on the commandbutton it is not submiting to the action class rather, its submitting to the same page..
    I am tired of this ...
    I am using tiles for displaying jsf pages . Any problem because of using tiles

    yes I have the validator.
    If I open the url directly its working fine
    let say I am opening localhost:8080/test/test.jsf
    then it works fine
    If i use the same test.jsf along with tiles and open it, then its dispalying all the elements but when i click on commandbutton.. nothin is happening.
    the seems like page is reloaded.

  • H:commandlink is not invoking the action method

    hi,
    I am new to JSF,MYfaces and tiles.
    I am using tiles 2.0.5 , tomahawk 1.1.8,myfaces 1.1.6
    the h:command link is working in f:view and not working in f:subview.
    h:commandbutton is working in f:view and f:subview.
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
    <f:subview id="manualmatch">
    <h:form id="frmmanual">
    <h:commandLink id="link3" value="pAGE1" immediate="true" action="#{myManualMatchHandler.showDetail}"/>
        </h:form>
       </f:subview> Thanks
    HimSss

    Sounds like a bug in the MyFaces JSF implementation. Try upgrading to the most recent available. If that doesn't solve the problem, report it at their own forum/mailinglist/issuetracker over there at apache.org. It isn't part of Sun, you see :)

Maybe you are looking for

  • Mac Windows benefits??

    Okay, I just posted something somewhat similar just before this but I didn't want to put them together for confusion reasons. So I just bought this new MacBook Pro 2 days ago everything new. Then I also bought Windows XP and installed it and it runs

  • Delay in displaying new images

    Here's the situation. Shooting tethered with a Nikon D800E. Using Nikon Camera Control Pro to operate the camera. Using Adobe Bridge CS6 to monitor the destination folder. There is often a delay before Bridge will display new images. For several expo

  • Stereo 3D support

    I work with a 3D display company that is making a 3D Tablet-  autostereoscopic (no 3D glasses needed)- MasterImage 3D.  We believe that Stereo 3D e-publishing is a big opportuity.  Magazine, Comics, Texbooks, Animated Flipbooks for kids.  This week I

  • After upgrading to Lion, system no longer finds my WiFi connection and has to be selected each time.

    Well, the title just about tells it all! It can find the network connection, it just won't choose it automatically as it did under Snow Leopard. Any suggestions? Cheers

  • Tuning  7.2 TB  BW database

    Hi all, We have BW 7.0 on oracle 10.2.0.2 with sun solaris 5.9. The DB size is 7.2 TB and PSAPODSD is occupying 4.8 TB of total space. Every month PSAPODSD is growing by 150 GB, Please suggest how to tune the BW database. Other than housekeeping jobs