Re: Extract the component name from a binding
Re: Extract the component name from a binding
- Subject: Re: Extract the component name from a binding
- From: Mike Schrag <email@hidden>
- Date: Tue, 22 Apr 2008 17:02:54 -0400
comp1, comp2, comp3
The name of the component is set via an AjaxUpdateLink to a binding
"selectedComponent".
Depending on the value of selectedComponent, one of the components
is shown in the update container:
<wo:if condition = "~selectedComponent.equals(\"comp1\") ? true :
false">
Comments:
1) use 'comp1' instead of "comp1" -- no need for escaping then
2) "? true : false" is not necessary -- equals returns a boolean
3) use ERXEqualConditional instead of OGNL
4) use WOSwitchComponent instead of all of this
ms
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden