History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: WW-1185
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Rainer Hermanns
Reporter: Matt Raible
Votes: 1
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
WebWork

Add support for using Tiles with WebWork

Created: 16/Feb/06 01:44 AM   Updated: 03/Aug/06 05:27 AM
Component/s: Views
Affects Version/s: 2.2.1
Fix Version/s: 2.2.2

File Attachments: 1. Text File WebWorkTiles.patch (9 kb)


Flags: Patch


 Description  « Hide
It'd be nice if there was a TilesResult so Tiles could be used with WebWork. This is particularly important since WebWork will become Struts Action 2.0. In addition, I've seen some folks not choose WebWork simply because it didn't support tiles.

 All   Comments   Change History      Sort Order:
Matt Raible - [16/Feb/06 01:48 AM ]
Based on nightly build of tiles-core (20060215) from: http://cvs.apache.org/builds/jakarta-struts/nightly/sandbox/tiles-core/.

Not polished or tested - but it works!

Claus Ibsen - [17/Feb/06 03:18 AM ]
+1

And Matt a comment from your great blog to should also be considered when impl. this feature to WW

> I'm sure WebWork has a way of making this result type the default, I just haven't found it yet.


Rainer Hermanns - [17/Feb/06 12:08 PM ]
Matt,

I applied your patch locally. However, there is no "uptodate" version of tiles-core in the maven repositories, so I
compiled against http://cvs.apache.org/repository/tiles/jars/tiles-core-0.2-SNAPSHOT.jar .

I do not have any tiles based test-webapp around.
Can you please verify, If your version works with the above SNAPSHOT.jar?

If this works without problems, I'll commit the patch.
Thanks,
Rainer


Rainer Hermanns - [17/Feb/06 01:06 PM ]
Thanks for the contribution, patch applied

Choong Yong, Koh - [03/Aug/06 05:27 AM ]
Hi, I am using the version of tiles-core available at http://people.apache.org/maven-snapshot-repository/org/apache/struts/tiles/tiles-core/2.0-SNAPSHOT/tiles-core-2.0-SNAPSHOT.jar (dated 25 Jul).
The method getContext now expects a TilesContext instead of ServletRequest, resulting in the following error

java.lang.NoSuchMethodError: org.apache.tiles.ComponentContext.getContext(Ljavax/servlet/ServletRequest;)Lorg/apache/tiles/ComponentContext;
at com.opensymphony.webwork.views.tiles.TilesResult.getComponentContext(TilesResult.java:151)
at com.opensymphony.webwork.views.tiles.TilesResult.doExecute(TilesResult.java:97)

Just checking if anyone has encountered the same problem and is working on this before I try to see if I am able to fix it?