• 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
Re: Extract the component name from a binding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Extract the component name from a binding


  • Subject: Re: Extract the component name from a binding
  • From: Helmut Schottmüller <email@hidden>
  • Date: Tue, 22 Apr 2008 23:09:39 +0200

Hi Mike,

thanks, especially for 4)
Sometimes it's hard to identify the suitable component...

regards,
Helmut


Am 22.04.2008 um 23:02 schrieb Mike Schrag:

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

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

References: 
 >Extract the component name from a binding (From: Helmut Schottmüller <email@hidden>)
 >Re: Extract the component name from a binding (From: Mike Schrag <email@hidden>)

  • Prev by Date: Re: Extract the component name from a binding
  • Next by Date: Re: ERXMigrationTable.newColumn does not set default value
  • Previous by thread: Re: Extract the component name from a binding
  • Next by thread: Re: WOComponent children
  • Index(es):
    • Date
    • Thread