I doubt many people would care to see scriplet functionality within tiles.
JSTL is simply much cleaner so I think most would disagree with your initial
comment about not seeing much difference between the scriplet for loop and
the jstl one.( In reality it's usually iterating over a collection anyway .)
It's not like you really have to spend  'time' to learn JSTL. A quick google
search of what you want to do in JSTL and you'll find an example within a
few seconds. My guess is you'd probably learn everything you need to know
about JSTL faster than it would take you to patch the code  :)

On Wed, Sep 7, 2011 at 1:01 PM, Adrian Gonzalez <[email protected]>wrote:

> I'm really sorry if my manners hurted someone (I mean it).
>
> Back on the subject : if anyone is interested on scripting inside Tiles
> tag, I'll be happy to try and contribute a patch.
> If no, I certainly wont spent my time on something nobody - apart me - find
> usefull.
>
> Again please accept my excuses if I hurt someone. I didn't imply for anyone
> to develop the feature (it was just to raise an issue and track it - no more
> :) ).
>
> ----- Mail original -----
> De : Chris Pratt <[email protected]>
> À : [email protected]; Adrian Gonzalez <[email protected]>
> Cc :
> Envoyé le : Mercredi 7 Septembre 2011 17h33
> Objet : Re: Re : Error using Scriptlet inside tiles:putAttribute
>
> That's actually kind of a silly statement.  The whole reason to release an
> open source project is to provide others a tool to use that fosters your
> way
> of doing something, which is hopefully better in some way than whatever the
> current standard is.  If this tool doesn't work the way you would like, you
> have a few options.
>
>    - Update the code and submit the patches for review and possible
>    inclusion into the project.
>    - Find a different tool that works the way you wish.
>    - Start your own project that works the way you want.
>
> But to tell someone that their tool was written incorrectly because it
> doesn't do what you want it to is at best bad manners.
>   (*Chris*)
>
> On Wed, Sep 7, 2011 at 2:15 AM, Adrian Gonzalez <[email protected]
> >wrote:
>
> > > No, it was made on purpose, for your sanity I suggest not to use
> > scriptlets ever ;-)
> >
> >
> > It's a pity : you shouldn't impose your development views on others.
> >
> > For instance for rapide tests / prototyping scriptlets are really
> usefull.
> > Even for full blown webapps, if you use them wisely they can be nice.
> >
> > Personnally, I've never seen the difference between :
> > <c:forEach begin="1" end="1000">
> >
> > blabla
> > </c:forEach>
> > and
> >
> > <%for (int i=0; i<1000; i++) {%>
> >
> > blabla
> > <%}%>
> >
> > Apart from a performance point of view and from a language constructus
> > duplication (you must learn JSTLs, great.... very interesting...).
> >
> > Anyway, thanks for the answer !
> >
> > You're sure you're not gonna change your mind on this subject ? please ?
> ;)
> >
> >
> > ________________________________
> > De : Antonio Petrelli <[email protected]>
> > À : [email protected]; Adrian Gonzalez <[email protected]>
> > Envoyé le : Mardi 6 Septembre 2011 12h15
> > Objet : Re: Error using Scriptlet inside tiles:putAttribute
> >
> >
> > 2011/9/6 Adrian Gonzalez <[email protected]>
> >
> > Hello,
> > >
> > >I'm using Tiles 2.2.1 (also tested this issue with 2.2.2).
> > >
> > >I cannot use scriptlet code inside tiles jsp tags.
> > >
> > >This is because :
> > >1. Tiles JSP tags inherit from SimpleTag Support class and not from
> > TagSupport class.
> > >2. inside tiles-jsp.tld all tags are marked with
> > <body-content>scriptless</body-content> and
> > not <body-content>JSP</body-content>
> > >
> > >This issue makes working with tiles quite a pain (prototyping and
> testing
> > is quite difficult).
> > >
> > >Should I create a JIRA ?
> > >
> >
> >
> > No, it was made on purpose, for your sanity I suggest not to use
> scriptlets
> > ever ;-)
> >
> > Antonio
> >
>
>


-- 
Rick R

Reply via email to