• 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: Best Practice Displaying Option Text Field
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Best Practice Displaying Option Text Field


  • Subject: Re: Best Practice Displaying Option Text Field
  • From: Hunter Hillegas <email@hidden>
  • Date: Thu, 15 Apr 2004 17:25:01 -0700

I should have just tried that... I felt in my gut that WO had an easier way than how I was doing it.

Chuck, release your damn book so I don't have to wander through the wilderness any longer!

On Apr 15, 2004, at 4:47 PM, Chuck Hill wrote:

Bind the conditional to the String. If the String reference is null that will evaluate to false. Otherwise take a look at WOOGNL from Project Wonder.

Chuck


On Apr 15, 2004, at 4:23 PM, Hunter Hillegas wrote:

I have a best practices question...

Let's say I have a text field, like a second line of a street address, that I consider 'optional'. When I display that entity using WOStrings, I want to only show that line/string if it contains data.

What I've been doing is writing a method in the component, such as address2IsEmpty() or whatever that returns a boolean and then I wrap the line in a WOConditional... Works fine but seems like a bit heavy handed...

Since I keep finding out cool things that WO will do for you, I thought I would ask if there is a short cut around writing the method, etc...

Thanks!
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Best Practice Displaying Option Text Field (From: Hunter Hillegas <email@hidden>)
 >Re: Best Practice Displaying Option Text Field (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: Using MS SQL Server IDENTITY columns with EO
  • Next by Date: Re: filteredArrayWithQualifier and AllowsConcurrentRequestHandling
  • Previous by thread: Re: Best Practice Displaying Option Text Field
  • Next by thread: Re: Best Practice Displaying Option Text Field
  • Index(es):
    • Date
    • Thread