You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Matt Raible <mr...@gmail.com> on 2006/02/15 21:44:55 UTC

Tiles + WebWork

I'd like to use Tiles with WebWork for reasons outlined on my blog:

http://raibledesigns.com/page/rd?entry=large_sites_powered_by_java

I'm able to get the Tiles tag library to work, because it's
essentially JSPs loading other JSPs at that point. Creating a
tiles-config.xml file is a much better solution IMO - then you don't
need to create JSP-loading JSPs.

I tried to get WebWork + Tiles working (using a nightly build), but no
dice. The TilesFilter doesn't seem to load the definitions, so I tried
using both the TilesServlet and the TilesFilter. TilesFilter is mapped
to *.tile and all my view names in xwork.xml map to viewname.tile. I'm
guessing the problem is WebWork communicating the name of the tiles
definition to the filter.

Is it possible to integrate these two frameworks?

Thanks,

Matt

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Tiles + WebWork

Posted by Greg Reddin <gr...@apache.org>.
Matt,

Just as an addendum, I have plans to eventually implement a listener  
to handle the stuff being done by TilesServlet now.  Unfortunately,  
It's a pretty good ways down the list, which you can see here:   
http://wiki.apache.org/struts/StandaloneTiles.  I'm hoping very soon  
to actually have some time to start working this list.

Greg


On Feb 16, 2006, at 8:23 AM, Matt Raible wrote:

> Nevermind, I figured it out.
>
> http://raibledesigns.com/page/rd?anchor=how_to_use_tiles_with
>
> Thanks,
>
> Matt
>
> On 2/15/06, Matt Raible <mr...@gmail.com> wrote:
>
>> I'd like to use Tiles with WebWork for reasons outlined on my blog:
>>
>> http://raibledesigns.com/page/rd?entry=large_sites_powered_by_java
>>
>> I'm able to get the Tiles tag library to work, because it's
>> essentially JSPs loading other JSPs at that point. Creating a
>> tiles-config.xml file is a much better solution IMO - then you don't
>> need to create JSP-loading JSPs.
>>
>> I tried to get WebWork + Tiles working (using a nightly build),  
>> but no
>> dice. The TilesFilter doesn't seem to load the definitions, so I  
>> tried
>> using both the TilesServlet and the TilesFilter. TilesFilter is  
>> mapped
>> to *.tile and all my view names in xwork.xml map to viewname.tile.  
>> I'm
>> guessing the problem is WebWork communicating the name of the tiles
>> definition to the filter.
>>
>> Is it possible to integrate these two frameworks?
>>
>> Thanks,
>>
>> Matt
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Tiles + WebWork

Posted by Greg Reddin <gr...@apache.org>.
Thank you!!  I'll take a look at it as soon as possible.

Greg

On Feb 16, 2006, at 3:46 PM, Matt Raible wrote:

> Here's a TilesListener that works for me.  It could probably use some
> polishing and a unit test, but it works for me.
>
> http://issues.apache.org/bugzilla/attachment.cgi?id=17721
>
> From bug: http://issues.apache.org/bugzilla/show_bug.cgi?id=38255
>
> Matt
>
> On 2/16/06, Matt Raible <mr...@gmail.com> wrote:
>
>> <quote>
>> Matt,
>>
>> Just as an addendum, I have plans to eventually implement a listener
>> to handle the stuff being done by TilesServlet now.  Unfortunately,
>> It's a pretty good ways down the list, which you can see here:
>> http://wiki.apache.org/struts/StandaloneTiles.  I'm hoping very soon
>> to actually have some time to start working this list.
>>
>> Greg
>> </quote>
>>
>> Sorry, unsubscribed from the list - but saw your message via a Nabble
>> Alert.  Where can I checkout the Standalone Tiles module?  The one I
>> saw off of http://struts.apache.org/struts-tiles has
>> org.apache.struts.tiles and the tiles-core.jar I found is
>> org.apache.tiles.  I'd like to try and create the listener.
>>
>> Thanks,
>>
>> Matt
>>
>>
>> On 2/16/06, Matt Raible <mr...@gmail.com> wrote:
>>
>>> Nevermind, I figured it out.
>>>
>>> http://raibledesigns.com/page/rd?anchor=how_to_use_tiles_with
>>>
>>> Thanks,
>>>
>>> Matt
>>>
>>> On 2/15/06, Matt Raible <mr...@gmail.com> wrote:
>>>
>>>> I'd like to use Tiles with WebWork for reasons outlined on my blog:
>>>>
>>>> http://raibledesigns.com/page/rd?entry=large_sites_powered_by_java
>>>>
>>>> I'm able to get the Tiles tag library to work, because it's
>>>> essentially JSPs loading other JSPs at that point. Creating a
>>>> tiles-config.xml file is a much better solution IMO - then you  
>>>> don't
>>>> need to create JSP-loading JSPs.
>>>>
>>>> I tried to get WebWork + Tiles working (using a nightly build),  
>>>> but no
>>>> dice. The TilesFilter doesn't seem to load the definitions, so I  
>>>> tried
>>>> using both the TilesServlet and the TilesFilter. TilesFilter is  
>>>> mapped
>>>> to *.tile and all my view names in xwork.xml map to  
>>>> viewname.tile. I'm
>>>> guessing the problem is WebWork communicating the name of the tiles
>>>> definition to the filter.
>>>>
>>>> Is it possible to integrate these two frameworks?
>>>>
>>>> Thanks,
>>>>
>>>> Matt
>>>>
>>>>
>>>
>>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Tiles + WebWork

Posted by Matt Raible <mr...@gmail.com>.
Here's a TilesListener that works for me.  It could probably use some
polishing and a unit test, but it works for me.

http://issues.apache.org/bugzilla/attachment.cgi?id=17721

>From bug: http://issues.apache.org/bugzilla/show_bug.cgi?id=38255

Matt

On 2/16/06, Matt Raible <mr...@gmail.com> wrote:
> <quote>
> Matt,
>
> Just as an addendum, I have plans to eventually implement a listener
> to handle the stuff being done by TilesServlet now.  Unfortunately,
> It's a pretty good ways down the list, which you can see here:
> http://wiki.apache.org/struts/StandaloneTiles.  I'm hoping very soon
> to actually have some time to start working this list.
>
> Greg
> </quote>
>
> Sorry, unsubscribed from the list - but saw your message via a Nabble
> Alert.  Where can I checkout the Standalone Tiles module?  The one I
> saw off of http://struts.apache.org/struts-tiles has
> org.apache.struts.tiles and the tiles-core.jar I found is
> org.apache.tiles.  I'd like to try and create the listener.
>
> Thanks,
>
> Matt
>
>
> On 2/16/06, Matt Raible <mr...@gmail.com> wrote:
> > Nevermind, I figured it out.
> >
> > http://raibledesigns.com/page/rd?anchor=how_to_use_tiles_with
> >
> > Thanks,
> >
> > Matt
> >
> > On 2/15/06, Matt Raible <mr...@gmail.com> wrote:
> > > I'd like to use Tiles with WebWork for reasons outlined on my blog:
> > >
> > > http://raibledesigns.com/page/rd?entry=large_sites_powered_by_java
> > >
> > > I'm able to get the Tiles tag library to work, because it's
> > > essentially JSPs loading other JSPs at that point. Creating a
> > > tiles-config.xml file is a much better solution IMO - then you don't
> > > need to create JSP-loading JSPs.
> > >
> > > I tried to get WebWork + Tiles working (using a nightly build), but no
> > > dice. The TilesFilter doesn't seem to load the definitions, so I tried
> > > using both the TilesServlet and the TilesFilter. TilesFilter is mapped
> > > to *.tile and all my view names in xwork.xml map to viewname.tile. I'm
> > > guessing the problem is WebWork communicating the name of the tiles
> > > definition to the filter.
> > >
> > > Is it possible to integrate these two frameworks?
> > >
> > > Thanks,
> > >
> > > Matt
> > >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Tiles + WebWork

Posted by Matt Raible <mr...@gmail.com>.
Nevermind, I figured it out.

http://raibledesigns.com/page/rd?anchor=how_to_use_tiles_with

Thanks,

Matt

On 2/15/06, Matt Raible <mr...@gmail.com> wrote:
> I'd like to use Tiles with WebWork for reasons outlined on my blog:
>
> http://raibledesigns.com/page/rd?entry=large_sites_powered_by_java
>
> I'm able to get the Tiles tag library to work, because it's
> essentially JSPs loading other JSPs at that point. Creating a
> tiles-config.xml file is a much better solution IMO - then you don't
> need to create JSP-loading JSPs.
>
> I tried to get WebWork + Tiles working (using a nightly build), but no
> dice. The TilesFilter doesn't seem to load the definitions, so I tried
> using both the TilesServlet and the TilesFilter. TilesFilter is mapped
> to *.tile and all my view names in xwork.xml map to viewname.tile. I'm
> guessing the problem is WebWork communicating the name of the tiles
> definition to the filter.
>
> Is it possible to integrate these two frameworks?
>
> Thanks,
>
> Matt
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Tiles + WebWork

Posted by Ted Husted <te...@gmail.com>.
Posted by Matt Raible (24.9.148.67) on February 16, 2006 at 09:06 AM MST #
> IMO, there's not a single framework that is best for *everything*. Instead, the needs for
> each application have to be evaluated, and then a small prototype should be done in 2-3
> frameworks.

On 2/20/06, Matt Raible <mr...@gmail.com> wrote:
> Marketing, marketing and more marketing.  Articles in eWeek,
> BusinessWeek, etc. so all the CIOs of all the companies feel they
> *need* to be using this framework. ;-)

:) Ummm, so you recommend that a  "small prototype should be done in
2-3  frameworks" because no single framework dominates the ~marketing~
landscape? :)

Seriously, hype aside, engineer to engineer, if we can use the new
standalone Tiles with WebWork, and use Ajax to store the state of UI
controls, what else do we need to do to make WebWork/Action 2 the best
framework for *everything*?

-Ted.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Tiles + WebWork

Posted by Ted Husted <te...@gmail.com>.
On 2/15/06, Matt Raible <mr...@gmail.com> wrote:
> I'd like to use Tiles with WebWork for reasons outlined on my blog:
>
> http://raibledesigns.com/page/rd?entry=large_sites_powered_by_java

>From the blog comments
> IMO, there's not a single framework that is best for *everything*.

What would we need to put on the Action2/WebWork roadmap so that it is
the best for  everything?

> Instead, the needs for each application have to be evaluated, and then a small prototype
> should be done in 2-3 frameworks.

+1 and an amen to that, brother.

BTW,  the blog also asks about large-volume sites done with Struts and
especially Struts with Tiles. What about JRoller? Is not Roller using
Struts 1.2 and Tiles?

-Ted.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org