Extract the component name from a binding
Extract the component name from a binding
- Subject: Extract the component name from a binding
- From: Helmut Schottmüller <email@hidden>
- Date: Tue, 22 Apr 2008 22:58:42 +0200
Hi,
surely another stupid question but I am stuck and can't think
straight... Maybe it's time to go to bed.
Assume I have three components:
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">
<wo:comp1></wo:comp1>
</wo:if>
<wo:if condition = "~selectedComponent.equals(\"comp2\") ? true :
false">
<wo:comp2></wo:comp2>
</wo:if>
<wo:if condition = "~selectedComponent.equals(\"comp3\") ? true :
false">
<wo:comp3></wo:comp3>
</wo:if>
Is it possible to have one single binding to call the selected
component in an AjaxUpdateContainer instead of having a conditional
for each of the components?
Regards,
Helmut
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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