commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marco Tedone" <mted...@jemos.co.uk>
Subject Re: [Jelly] How to pass a collection to a TagSupport
Date Wed, 26 Apr 2006 17:25:52 GMT
I would like to test your solution. I created a simple ParentTag containing 
FilterTag. In FilterTag I use:

XMLOutput.objectData(new String("Hello World"));

How do I catch object data from of type FilterTag from within ParentTag?

Ta.

Marco

> - in the doTag of jemos:clanker, however, you have cared for an XMLOutput 
> which catches the objectData calls of class filter-data... and you use 
> them.


----- Original Message ----- 
From: "Paul Libbrecht" <paul@activemath.org>
To: "Marco Tedone" <mtedone@jemos.co.uk>
Cc: "Jakarta Commons Users List" <commons-user@jakarta.apache.org>
Sent: Tuesday, April 25, 2006 10:03 PM
Subject: Re: [Jelly] How to pass a collection to a TagSupport


>I think Jelly is so flexible that there's half a dozen ways to do so.
>
> • I thought the Ant way of doing was supported (where addConfigured and 
> add and... may work) but I am unsure.
> • some tags use findAncestorWithClass which I don't like since it breaks 
> if within a defined script
> • I would suggest a fancy one which I think is the best style since it 
> allows defined scripts to be used but requires a current snapshot of 
> jelly: make jemos:filter tags be classes and use 
> XMLOutput.objectData(object) at the end in their doTag classes.
> - If not within a jemos:clanker tag, that would result into the toString() 
> of object to be output as text.
> - in the doTag of jemos:clanker, however, you have cared for an XMLOutput 
> which catches the objectData calls of class filter-data... and you use 
> them.
>
> Hope that helps.
>
> paul


---
[This E-mail has been scanned for viruses but it is your responsibility 
to maintain up to date anti virus software on the device that you are
currently using to read this email. ]


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


Mime
View raw message