Although simplifying passing parameters to a listener is a good thing,
I'm not favorable to this change. To me, a listener is an object, not a
method. This object holds a method to be called, so it is some kind of
processor that can be handled as a normal object: used as component
parameter, passed through pages, etc.

Simplifying is good, but hiding the way things work is not, in my
opinion.

Le vendredi 15 avril 2005 � 10:26 +1200, Dr Paul Gorman a �crit :
> OK. I guess the real question is why not just have:
> 
> <a jwcid="@DirectLink" listener="doClick(objectId,
> index)"> . . .</a>
> 
> Why have a separate parameter for parameters ?
> 
> Paul
> 
> --- Jamie <[EMAIL PROTECTED]> wrote:
> > because the value in listener *must* be an ognl
> > expression.
> > 
> > Dr Paul Gorman wrote:
> > 
> > >Is there any particular reason why you don't make
> > the
> > >syntax the same as an OGNL expression ?
> > >
> > >e.g.
> > >
> > ><a jwcid="@DirectLink" listener="doClick"
> > >parameters="{ objectId, index }"> . . . </a>
> > >
> > >becomes
> > >
> > ><a jwcid="@DirectLink"
> > >listener="ognl:doClick(objectId, index)"> . . .
> > </a>
> > >
> > >
> > >Regards
> > >
> > >Paul. 
> > >
> > >Find local movie times and trailers on Yahoo!
> > Movies.
> > >http://au.movies.yahoo.com
> > >
> >
> >---------------------------------------------------------------------
> > >To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > >For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > >
> > >
> > >  
> > >
> > 
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> > 
> 
> Find local movie times and trailers on Yahoo! Movies.
> http://au.movies.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to