• 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: Creating helper classes for code pages
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating helper classes for code pages


  • Subject: Re: Creating helper classes for code pages
  • From: David LeBer <email@hidden>
  • Date: Thu, 4 May 2006 15:59:05 -0400

On 4-May-06, at 3:54 PM, Carter Wojcik wrote:

Hi all -

I am relatively new to WebObjects and have built an
app with basic functionality (list EO's, view/edit an
EO).  Now I would like to take this one step further
and abstract out some of the functionality for
displaying a list of EO's or an edit/view form, so the
code can be used reused in my many code pages.

The app has lots of code pages that display a list of
EO's and allow the user to view/edit and EO.  Instead
of writing the same code for each screen I would like
to create a helper class that would perform the same
functions for each page.  Are there any good examples
or explanations that show/describe this abstraction?

You could try this:

Create a Java class, make it inherit from WOComponent. Put your common logic in it and subclass all of *your* components from it.

Rinse, repeat.

Or, build your app with Direct to Web, which does all of this grunt work for you :-)

--
;david

--
David LeBer
Codeferous Software
'co-defer-ous' adj. producing or containing code
site:   http://www.codeferous.com
blog: http://david.codeferous.com




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: 
 >Creating helper classes for code pages (From: Carter Wojcik <email@hidden>)

  • Prev by Date: Creating helper classes for code pages
  • Next by Date: Re: FrontBase license now free!
  • Previous by thread: Creating helper classes for code pages
  • Next by thread: Https post but a http response?
  • Index(es):
    • Date
    • Thread