What about if the syntax was:
<a jwcid="@DirectLink" listener="doClick{objectId, index}">

Then the method name is simply followed by an OGNL expression resulting in the list of parameters, so it'd be simpler to implement (I imagine), but perhaps not as clear as using ()s.

Richard

Erik Hatcher wrote:

On Apr 14, 2005, at 6:43 PM, Jamie wrote:

That's an interesting idea.

Howard? Erik?


There is no technical reason why this couldn't be done, and in Picasso it is extensible enough to be able to plug in a custom binding to make this happen (though maybe it'd require a custom prefix? I'm not sure about that)

I can't say yet if I prefer the method signature format or not - it looks clean, but it also would rely on a bit more magic in parsing the string into a method name and then a parameter list and then evaluating that parameter list as OGNL expressions individually. By doing something like this you lose a bit of dynamic behavior in that the method name would not be as easily dynamic as it could be when kept separate from the parameters.

I'm -0 on such a change at this point.

    Erik



Jamie

Dr Paul Gorman wrote:

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]



--------------------------------------------------------------------- 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