Hi

On 9/26/05, hicham abassi <[EMAIL PROTECTED]> wrote:
> Every embedded jsp page into Tiles doesn't declare a <f:view> ,
> normally the <f:view> and <f:subview> are only declared into the tiles
> template layout.

sure! your "master" tiles pages needs <f:view> and *each* included page
(e.g via jsp:include or even tiles) needs to be wraped inside of the
<f:subview> tag.

You and to this in master template (like the tiles example does) or

directly into that included page. so valid are

a)
master template:
<f:subview ...>
  #include via tiles, jsp ...
</f:subview >

*each* page:
<h:...

or b)
master template:
#include via tiles, jsp, ...

*each* page:
<f:subview>
<h:...
</f:subview>


I prefere way a) that is used in myfaces tiles example.

-Matthias


> Bug fixed for me, thank twice Matthias
>
>
> 2005/9/26, Matthias Wessendorf <[EMAIL PROTECTED]>:
> > so. nice to see that that worked for you.
> >
> > please answer to mailing list. information might be useful for
> > other users too. no shy! there is no silly question out there.
> > only silly answer ;-)
> >
> > -Matthias
> >
> > On 9/26/05, hicham abassi <[EMAIL PROTECTED]> wrote:
> > > Ok i know now to not use <f:view> into my jsp content.
> > >
> > > Thanks
> > >
> > > 2005/9/26, Matthias Wessendorf <[EMAIL PROTECTED]>:
> > > > If I got you right...
> > > >
> > > > your formContact.jsp is in subview id "content"
> > > > so, you don't need <f:view> inside of that form jsp file.
> > > > the subview in your master template manages all you need.
> > > >
> > > > subview is a naming container for jsf
> > > >
> > > > so your form in side of formContact.jsp may have id="form2"
> > > > the rendered output (in source.view of rendered page) will be
> > > > "content:formContact"
> > > >
> > > > have you tried "plain jsf stuff" inside your xxxform.jsp ?
> > > >
> > > > like
> > > >
> > > > -------------begin---------------
> > > > <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h" %>
> > > > <h:form id="form2">
> > > > ...
> > > > </h:form>
> > > > -------------end----------------
> > > >
> > > >
> > > > perhaps you can be much more detailed, if I got you wrong.
> > > >
> > > > thanks!
> > > >
> > > > On 9/26/05, hicham abassi <[EMAIL PROTECTED]> wrote:
> > > > > Hello,
> > > > >
> > > > > The sample about myfaces/tiles is good but it doesn't contain some jsp
> > > > > content with form.
> > > > > I found a strange bug. I need your validation about well using Tiles
> > > > > with MyFaces.
> > > > >
> > > > > /template/template1.jsp
> > > > > ----------------------------------
> > > > > <%@ page session="false"%>
> > > > > <%@ 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="tiles" uri="http://struts.apache.org/tags-tiles"; %>
> > > > >
> > > > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> > > > > <html>
> > > > > <head>
> > > > >   <meta http-equiv="Content-Type" 
> > > > > content="text/html;CHARSET=iso-8859-1" />
> > > > >   <title></title>
> > > > >   <link rel="stylesheet" type="text/css" href="css/default.css" />
> > > > > </head>
> > > > > <f:view>
> > > > > <body>
> > > > >                         <f:subview id="header">
> > > > >                                 <tiles:insert attribute="header" 
> > > > > flush="false"/>
> > > > >                 </f:subview>
> > > > >                         <f:subview id="menu">
> > > > >                                 <tiles:insert attribute="menu" 
> > > > > flush="false" />
> > > > >                 </f:subview>
> > > > >                 <f:subview id="content">
> > > > >                         <tiles:insert attribute="body" flush="false"/>
> > > > >                 </f:subview>
> > > > > </body>
> > > > > </f:view>
> > > > > </html>
> > > > >
> > > > > /WEB-INF/tiles.xml
> > > > > -----------------------------
> > > > > <tiles-definitions>
> > > > >     <definition name="layout.example" path="/template/template.jsp" >
> > > > >         <put name="header" value="/common/header.jsp" />
> > > > >         <put name="menu" value="/common/navigation.jsp" />
> > > > >     </definition>
> > > > >  <definition name="/formContact.tiles" extends="layout.example" >
> > > > >         <put name="body" value="/formContact.jsp" />
> > > > >     </definition>
> > > > > ....
> > > > > </tiles-definitions>
> > > > >
> > > > >
> > > > > /formContact.jsp
> > > > > -----------------------
> > > > > <!-- If i use here <f:view> , my commandButton does'nt work why ?
> > > > >  what's the good way to declare my jsp with or without <f:view> ?????
> > > > > -->
> > > > > <h:form>
> > > > > <h:input ....>
> > > > > <h:commandButton actionListener="....."/>
> > > > >
> > > > > </h:form>
> > > > >
> > > > >
> > > > >
> > > > > Thanks
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > >
> > > > > hicham ABASSI
> > > > > [EMAIL PROTECTED]
> > > > >
> > > >
> > > >
> > > > --
> > > > Matthias Wessendorf
> > > > Zülpicher Wall 12, 239
> > > > 50674 Köln
> > > > http://www.wessendorf.net
> > > > mwessendorf-at-gmail-dot-com
> > > >
> > >
> > >
> > > --
> > >
> > > hicham ABASSI
> > > [EMAIL PROTECTED]
> > >
> >
> >
> > --
> > Matthias Wessendorf
> > Zülpicher Wall 12, 239
> > 50674 Köln
> > http://www.wessendorf.net
> > mwessendorf-at-gmail-dot-com
> >
>
>
> --
>
> hicham ABASSI
> [EMAIL PROTECTED]
>


--
Matthias Wessendorf
Zülpicher Wall 12, 239
50674 Köln
http://www.wessendorf.net
mwessendorf-at-gmail-dot-com

Reply via email to