I installed the 20060911 version and got NullPointerExceptions. It is
working now however, with the following fixes:

(1) My index.jsp contained <jsp:forward
page="/tiles/system/SaLogon.faces"/>

where my /tiles/system/SaLogon.jsp now contains
<tiles:insert flush="false" name="/saLogon" type="definition"/>
(to get it to work I added the type="definition").

(2)
In my tiles.xml I have
<definition name="/siteMainLayout"
  path="/tiles/layouts/classicLayout.jsp>
  put name="title" value="/title.jsp"/>
  put name="header" ...
  put name="menuBar" ...
  put name="body" value=""/>
  ...

<definition name="/saLogon"
extends="/siteMainLayout">
<put name="body"
type="template"
value="/jsp/system/saLogon.jsp"/>
</definition>
(saLogon.jsp is an <h:form ...; to get this to work I added the
type="template")

My /tiles/layouts/classicLayout tiles inserts look like this:
<f:view>
...
<tiles:insert flush="false" name="title"/>
...
<tiles:insert flush="false" name="body"/>
...
</f:view>
My tiles inserts work whether or not each insert is bracketed by a
subview.

----
Dick


-----Original Message-----
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 08, 2006 2:34 PM
To: user@shale.apache.org
Subject: Re: Shale 1.0.3 and Tiles Question - Tag Question

On 9/8/06, Dick Starr <[EMAIL PROTECTED]> wrote:

> Standalone Tiles works for me without the type attribute. I am using
the
> 8/3/06 release.
>
> Prior to today's thread I had been using inserts like <f:subview
> id="body"><tiles:insert attribute='body' flush="false"/></f:subview>.
>
> I just took off the subviews and changed the attributes to name so the
> inserts now look like <tiles:insert name="body" flush="false"/> and it
> still works fine.

Can you try it with a recent nightly build and make sure it still works?

 * http://people.apache.org/builds/struts/nightlies/tiles/

(If you're using Maven 2, you can find info on the snapshot repo,
here:  http://struts.apache.org/struts-sandbox/tiles/ )

Thanks,
-- 
Wendy

Reply via email to