I wrote:

> I'm attempting to put OGNL to use and think I
> have uncovered a bug in Tapestry's OGNL implementation.

Turns out this isn't a bug but a misunderstanding of how to properly
construct the expression.

This throws an exception:

<binding name="image" expression='visit.selectedMenuItem.equals("Selected")
? "assets.menu_item_selected" : "assets.menu_item" '/>

This does what it is supposed to:

<binding name="image" expression='visit.selectedMenuItem.equals("Selected")
? assets.menu_item_selected : assets.menu_item'/>

Thanks Howard




-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer

Reply via email to