Thanks pawel,this does reduce my work on defining each pages. :clap:
Paweł Wielgus wrote:
>
> Hi Kate,
> i'm doing it like this, in action i'm forwarding to a simple jsp (not
> Tiles) and inside a jsp i have:
>
> jsp start
> < % @page contentType="text/html;charset=utf-8" lang
Yes there is! I am using Tiles 2.1.1 which provides support for wildcards
and substitutions. This one definition is handling all my pages!
Struts
displayTile-{1}
Tiles
Hi Kate,
i'm doing it like this, in action i'm forwarding to a simple jsp (not
Tiles) and inside a jsp i have:
jsp start
< % @page contentType="text/html;charset=utf-8" language="java" % >
< % @ taglib uri="http://tiles.apache.org/tags-tiles"; prefix="tiles" % >
< % @ taglib pref
Yes, tiles-default extends struts-default.
Here's the content of struts-plugin.xml from the library
struts2-tiles-plugin-2.0.9.jar
http://struts.apache.org/dtds/struts-2.0.dtd";>
class="org.apache.struts2.views.tiles.TilesResult"/>
Best regards.
--
R
here's the example:
...
see? it's enough that your packages extend tiles-default.
It works as well! That's nice! Thank you Robi.
I did:
===
[1] deleted
from struts.xml
[2] updated struts.xml:
from
to
I hope "tiles-defa
Hi Emi.
here's the example:
...
see? it's enough that your packages extend tiles-default.
Best regards.
--
Robi
Emi Lu wrote:
Thank you very much !
It works!
Following Your comments, I did:
=
org.apache.struts
struts2-tiles-plugin
${version.tiles}
At least for now I have loaded Tiles 2 successfully without BeanUtils
and Digester jars :)
It's impossible, digester is needed to read XML files.
I forgot the tiles jars that I downloaded few days ago :(
Sorry!
The full jar lists I had:
commons-beanutils-1.7.0.j
2007/10/3, Emi Lu <[EMAIL PROTECTED]>:
> At least for now I have loaded Tiles 2 successfully without BeanUtils
> and Digester jars :)
It's impossible, digester is needed to read XML files.
Antonio
-
To unsubscribe, e-mail: [EMAI
You also need to add the jars that tiles requires:
copy the Tiles dependencies JARs:
* Jakarta Commons BeanUtils 1.7.0 or above;
* Jakarta Commons Digester 1.8 or above;
* Jakarta Commons Logging (at least API) 1.1 or above
http://tiles.apache.org/getting_started.html
I be
Thank you very much !
It works!
Following Your comments, I did:
=
org.apache.struts
struts2-tiles-plugin
${version.tiles}
compile
to web.xml
the above looks like maven stuff.. shouldn't be in web.xml
Deleted from web.xml
[2]
class="org.apache.struts2.views.
Hello Emi.
see below my comments.
Emi Lu wrote:
Hello,
I looked at this page:
http://struts.apache.org/2.x/docs/tiles-plugin.html
Done:
=
[1] Added
org.apache.struts
struts2-tiles-plugin
${version.tiles}
compile
to web.xml
the above looks like maven stuff.. shou
You also need to add the jars that tiles requires:
copy the Tiles dependencies JARs:
* Jakarta Commons BeanUtils 1.7.0 or above;
* Jakarta Commons Digester 1.8 or above;
* Jakarta Commons Logging (at least API) 1.1 or above
http://tiles.apache.org/getting_started.html
-Jason
O
Hello Emi.
see below my comments.
Emi Lu wrote:
Hello,
I looked at this page:
http://struts.apache.org/2.x/docs/tiles-plugin.html
Done:
=
[1] Added
org.apache.struts
struts2-tiles-plugin
${version.tiles}
compile
to web.xml
the above looks like maven stuff.. shou
Antonio Petrelli-3 wrote:
>
> 2007/5/9, Pedro Herrera <[EMAIL PROTECTED]>:
>>
>>
>> the follow error message appear :
>>
>> 9:43:49,223 INFO [STDOUT] 09:43:49,223 ERROR [[/gdoc]] Error configuring
>> application listener of class
>> org.apache.struts2.tiles.StrutsTilesListener
>> java.lang.NoC
2007/5/9, Pedro Herrera <[EMAIL PROTECTED]>:
the follow error message appear :
9:43:49,223 INFO [STDOUT] 09:43:49,223 ERROR [[/gdoc]] Error configuring
application listener of class org.apache.struts2.tiles.StrutsTilesListener
java.lang.NoClassDefFoundError: org/apache/tiles/TilesException
--- [EMAIL PROTECTED] wrote:
> stack = (ValueStack)
> tilesContext.getRequestScope().get(
> ServletActionContext.STRUTS_VALUESTACK_KEY);
>
> works from within the Tiles controller!
Yeah, that's why I posted it :/
> It appears to be in the zero element, but I'd
> like to be certain of this.
AF
stack = (ValueStack) tilesContext.getRequestScope().get(
ServletActionContext.STRUTS_VALUESTACK_KEY);
works from within the Tiles controller! Now then, stack.getRoot() returns a
CompoundRoot which appears to be a Collection. Is there a way to know which
element the Action is in? It appears to
--- [EMAIL PROTECTED] wrote:
> In short... workflow.
Oh. I just know about the Tiles/OGNL stuff :)
d.
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-
In short... workflow. I am trying to leverage XML validation, wildcards,
tiles, and a Spring injected Action. Also, I'm trying to wire the results
in the action mapping in such a way that I am not recreating the wheel each
time I need another CRUD. It just seems like some of the parts within thi
--- [EMAIL PROTECTED] wrote:
> Actions work with beans/OGNL in a custom tag
friendly
> way; tiles does not. The ViewPreparer works fine
for
> stashing collections of beans in the request
> scope and then manually working them into the JSP.
I don't think the list supports attachments; at least
I
Thanks Dave --
Perhaps if I explain this in a different context we can arrive at the
optimum solution. To begin, I am writing a generic CRUD where all my
results are complex "tiles" pages. I have a single Action that handles each
of the CRUD user gestures as follows:
{1}Cour
For the sake of completeness, this appears to work
fine.
I can access values using the S2 tags from ValueStack
from the tile's JSP, setting the values via either
setValue() or push().
That said, given I'm not sure I see a
huge advantage to doing so; I was thinking about this
several months ago a
--- [EMAIL PROTECTED] wrote:
> Antonio --
Not directed towards me so I'm somewhat hesitant to
answer given responses in the past, but:
./views/jsp/TagUtils.java:
ValueStack stack = (ValueStack)
req.getAttribute(ServletActionContext.STRUTS_VALUESTACK_KEY);
Perhaps the stack is accessible
Antonio --
Does the ViewPreparer (aka Tiles Controller) has access to the OGNL stack?
I am trying to figure out a way to push beans on the root of the tree (like
S2 does) so the S2 custom tags will implicitly link up with them from my
page parts. The only thing I have been able to figure out so
2007/4/23, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
Hi Antonio --
I have been teaching for the past couple weeks and now returning to
S2/Tiles. I would like to understand how Tiles affects the S2 lifecycle.
AFAIK Tiles affects S2 only in rendering the results. What I mean is
if you are using a
Hi Antonio --
I have been teaching for the past couple weeks and now returning to
S2/Tiles. I would like to understand how Tiles affects the S2 lifecycle.
Scott
On 4/15/07, Antonio Petrelli <[EMAIL PROTECTED]> wrote:
2007/4/13, stanlick <[EMAIL PROTECTED]>:
>
> Antonio --
>
> Can you explain
2007/4/13, stanlick <[EMAIL PROTECTED]>:
Antonio --
Can you explain this using this example?
I am sorry, I did not understand you and gave you a bad answer.
But I am wondering what you exactly wanted: do you want to inject
beans in Tiles definitions, or JSP pages? Or possibly in the view
prep
Antonio --
Can you explain this using this example?
course.page
My class "course" is wired up in Spring. The course.page tiles definition
cab be found below. The course.jsp allows CRUD operations for a Course.
All four methods in the
--- stanlick <[EMAIL PROTECTED]> wrote:
> Wouldn't it be easier if you could redirect to
> yourself without involving another action for this
> purpose?
Sure.
The action you redirect to wouldn't need to be a
separate action; it could be the same one.
But a tile isn't an action, so you wouldn
2007/4/13, stanlick <[EMAIL PROTECTED]>:
Wouldn't it be easier if you could redirect to yourself without involving
another action for this purpose? I use tile definitions as the target for
all my requests. Once the user successfully does a task related to that
"page," I'd like to represent the
Wouldn't it be easier if you could redirect to yourself without involving
another action for this purpose? I use tile definitions as the target for
all my requests. Once the user successfully does a task related to that
"page," I'd like to represent the tile with freshly injected beans. Can you
2007/4/12, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
Thanks Antonio. This is what I decided after searching through the Tiles
jar for "prepare". Can you tell me if Tiles2 is documented somewhere.
Documentation is on the way, since we were busy preparing a release
(and having Easter holidays :-)
Thanks Antonio. This is what I decided after searching through the Tiles
jar for "prepare". Can you tell me if Tiles2 is documented somewhere.
Also, is there a guide that explains the required changes when migrating
Tiles1 to Tiles2? This looks like some really nice work and I'm happy to
see th
2007/4/11, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
Also what supersedes the controllerClass tag?
"preparer" attribute, and it must implement the "ViewPreparer" interface.
Anyway this kind of question should be asked in the Tiles mailing list:
http://tiles.apache.org/mail.html
Antonio
-
--- [EMAIL PROTECTED] wrote:
> So is there a way to redirect to a tile definition?
Not that I know of; so far if I'm returning a result
from an action that needs a redirect I've been
redirecting to an action with a tile "success" or
"input" result.
d.
>
>
>
> On 4/11/07, Dave Newton <[EMAIL P
So is there a way to redirect to a tile definition?
On 4/11/07, Dave Newton <[EMAIL PROTECTED]> wrote:
--- [EMAIL PROTECTED] wrote:
> course.page
>
> Shouldn't returning SUCCESS from my action result in
> a new Action class instance and it's dependencies
> being injected?
No; it's not a redi
Thanks Torsten --
This is what I finally got to work after snooping around in the jars. Too
bad the online documentation shows the wrong URI! That was my problem.
Scott
On 4/11/07, Torsten Römer <[EMAIL PROTECTED]> wrote:
This one works for me:
http://tiles.apache.org/tags-tiles
Torsten
This one works for me:
http://tiles.apache.org/tags-tiles
Torsten
[EMAIL PROTECTED] schrieb:
> I'm starting to realize this! I had a nice S1 Tiles application just die
> under S2 tiles. Should the taglib be:
>
> http://struts.apache.org/tags-tiles or http://tiles.apache.org/tags-tiles
>
> A
--- [EMAIL PROTECTED] wrote:
> course.page
>
> Shouldn't returning SUCCESS from my action result in
> a new Action class instance and it's dependencies
> being injected?
No; it's not a redirect. It's just like you put a JSP
value in for the result.
d.
I'm starting to realize this! I had a nice S1 Tiles application just die
under S2 tiles. Should the taglib be:
http://struts.apache.org/tags-tiles or http://tiles.apache.org/tags-tiles
Also what supersedes the controllerClass tag?
Scott
Layout.jsp
<%@ taglib prefix="tiles"
uri="http://struts.apache.org/tags-tiles"; %>
Tiles.xml
Hope this helps.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 11, 2007 10:12 AM
To: Str
2007/4/11, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
After reviewing
http://struts.apache.org/2.x/docs/tiles-plugin.html it appears the tiles tag
names have been changed so I updated them accordingly. Any clues before I
jump?
Tiles 2 is a complete rewrite of Struts-Tiles, we tried to clean up
API
I was recently doing the same and what gave me a headache was that even
though my IDE complains about it, it has to be
rather than
which gave me a
11-Apr-2007 17:42:15 org.apache.tiles.impl.BasicTilesContainer render
SEVERE:
On 3/29/07, David Harland <[EMAIL PROTECTED]> wrote:
Does anyone know when Tiles 2 will have a production release?
Not really. It's based on quality more than an arbitrary tag. The best way
to speed up the process is to have people start using it in earnest and
giving feedback in earnest.
In doing some other work on the Tiles tags, I found some problems with how
the PutListTag is implemented.
I fixed these (SVN revision r495431 and r495722, see also
http://svn.apache.org/viewvc/tiles/trunk/tiles-core/src/main/java/org/apache/tiles/taglib/PutListTag.java?view=log
)
I didn't build
Fabien COPPENS ha scritto:
Hi.
Will Tiles 2 be backwards compatible with webapps
developed using Tiles 1.x ?
No, but it can (pretty) easily converted:
http://struts.apache.org/struts-sandbox/tiles/faq.html
(sorry with the problems with the characters, and sorry for the missing
part of DTD).
I figured out a way to get by without using the Core JSTL "forEach"
tag. Antonio, as you state, I can use any method of iteration I
choose. In my case, my goal was to use the struts "iterator" tag.
Code that works follows:
==
Thanks Antonio,
I think I was just feeling a little insecure about the code I was
writing. Ultimately, I just want to make sure that I'm doing things
the right way. If using JSTL falls within the scope of best practices
for pulling out putList attribute values, I'm satisfied.
To answer yo
Eric Rank ha scritto:
Hi all,
I am trying to insert items from a putList defined in my tiles.xml
file in a template file. The only way that I can seem to do it is by
using the following process
1. make the putList 'List' accessible on the page with
2. sending that variable in to a JSTL Co
David H. DeWolf ha scritto:
Just to avoid confusion, I don't think Antonio meant to imply that the
Container.render returns a ComponentContext.
Err... right, my confusion was due to wrong cut'n'paste :-)
And the confusion continues, since I posted the same email to Struts
Developers list...
A
Moving to Struts Users list, please reply there.
Antonio Petrelli wrote:
First of all this is a typical question to be submitted in Struts Users
mailing list.
Anyway, since Tiles 2 is under development, I will answer anyway.
Stone, Sam ha scritto:
I can instantiate the DefinitionsFactory. I c
Thank you for your answer Wendy.
I have looked for a Tiles jar in the Struts2.0.0 jar, but I can't find it
(I've downloaded the Struts2.0.0-SNAPSHOT-all.jar). Do you know if it is
packed in this version of Struts2.0.0 or if I may find it in the newer
versions? If it is not, could you tell me where
On 11/15/06, Sébastien LABEY <[EMAIL PROTECTED]> wrote:
I don't understand how to configure Tiles2 (with Struts 2.0.0).
I have downloaded a tiles-core-2.0-SNAPSHOT.jar in
http://people.apache.org/maven-snapshot-repository/org/apache/struts/tiles/tiles-core/2.0-SNAPSHOT/and
put it in my /WEB-INF/
53 matches
Mail list logo