[EMAIL PROTECTED] wrote on 02/10/2006 03:58:11 PM:

> 
> I would clarify this "recommended method" to have one backing bean per
> *Tile* not just for the whole page.  That sounds pretty much like what 
you
> did below.
> 

Ah, I didn't know that! Ok, so my app certainly doesn't follow this rule, 
but somehow I guess it is somehow bumbling along.. I will have to go back 
and fix that, but first..

> 
> On the outer JSP page, did you include each Tile inside an <s:subview>?

No, I didn't have this, so i added it, but according to the tld I have to 
add an id to this tag.  What should I use? I googled and the 
recommendation was to use the same name as the tile attribute. I don't 
think this is right since I get the foll. warning:
[WARN] Subview - No managed bean for subview menu

If all this is already documented elsewhere please do give me the link.. 
Otherwise, if you could bear to read on, here's a snippet from my 
layout.jsp:

<h:panelGrid columns="3" width="780" columnClasses=
"pageNavigation,td,pageBody">
        <h:panelGrid columns="1" columnClasses="pageNavigation" >
        <s:subview id="menu">
                <tiles:insert attribute="menu" flush="false" />
        </s:subview>
</h:panelGrid>


My faces-config.xml has this:

<managed-bean>
        <managed-bean-name>phone</managed-bean-name>
        <managed-bean-class>
                com.intellicare.webshark.action.phone.PhoneBean
        </managed-bean-class>
        <managed-bean-scope>session</managed-bean-scope>
</managed-bean>

(Btw, changing the above to:
<managed-bean-name>layout$menu</managed-bean-name>
didn't make any differnce either..)

my tiles.xml has for example:
<definition name="/home" path="/layout/layout.jsp">
          <put name="title" value="Intellicare, Inc. - Home" />
          <put name="header" value="/layout/headerWelcomeAgent.jsp" />
          <put name="menu" value="/layout/menu.jsp" />
          <put name="body" value="/homeBody.jsp"/>
   </definition>



> That is the place where you are supposed to get the view controller
> callbacks for the backing bean for each individual tile.  If that 
doesn't
> work, please file a bug ... it is supposed to.

I think if I got the subview id right this will probably work..:)

> 
> Craig
> 

Many thanks again!
Geeta

Reply via email to