• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Extract the component name from a binding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Extract the component name from a binding
      • From: Mike Schrag <email@hidden>
  • Prev by Date: WOEventDisplay (WOEvent logging password)
  • Next by Date: Re: Extract the component name from a binding
  • Previous by thread: iBox Question
  • Next by thread: Re: Extract the component name from a binding
  • Index(es):
    • Date
    • Thread