Hi

I wasn't using the <s:subview> tag, but the standard jsf <f:subview> tag. So I 
switched, and expected to get messages along the line: "No ViewController for 
viewId..." for each tile and one for the page. However, this is not the case. I 
only get one such message, which is for the page it self.

Is this not working as intended or do I have to define my tiles-definitions in 
a special way?

Hermod

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Craig
McClanahan
Sent: Wednesday, November 16, 2005 10:41 PM
To: Struts Developers List
Subject: Re: [shale] ViewControllers and page composition


On 11/16/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> There is one thing that has struck me while I have been working with Shale
> lately: The ViewController is URI (page) based.


That's true, but remember that each Tile is ultimately represented by a JSP
page as well ... and therefore each Tile can be associated with its own
ViewController. The <s:subview> tag around <tiles:insert> is what provides
this service.

What I mean by this is that if you have a Tiles based page composition, it
> would perhaps be more natural to have it based on the individual .jsp's
> instead. A typical use-case is that since Tiles promotes component (read
> .jsp) reuse, chances are that you might include the same .jsp in more than
> one "page". The way it now works, you would most likely would have to
> duplicate code from the ViewController for "page1" into the ViewController
> for "page2". I was wondering if the TilesServlet somehow could initiate
> separate ViewController's for the various .jsp's.


Actually, the only role for TilesServlet is to initialize the configuration
information ... it does not actually process any requests.


Hermod
>
>
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
> *
>
> This email with attachments is solely for the use of the individual or
> entity to whom it is addressed. Please also be aware that the DnB NOR
> Group
> cannot accept any payment orders or other legally binding correspondence
> with
> customers as a part of an email.
>
> This email message has been virus checked by the virus programs used
> in the DnB NOR Group.
>
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
> *
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to