• 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: Component design question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Component design question


  • Subject: Re: Component design question
  • From: Simon <email@hidden>
  • Date: Mon, 26 Oct 2009 11:52:51 +0000

In general I don't like performparentacripn. Mainly because ot can go
wrong if someone uses the widget and forgets to implement the method,
or the method isn't visible. I prefer delegates to sub in different
behavior.

Simon

On Sunday, October 25, 2009, Pascal Robert <email@hidden> wrote:
> I'm working on my WOTwitter tutorial and I have a question about the design. I think the tutorial should have two re-usable component : one to upload the new post, and the other to show the older tweets. So I have made a ERXTwitterNewPostComponent component that have :
>
>  - A AjaxUpdateContainer component that have a string who shows the number of chars typed (just like the Web Twitter client on twitter.com)
>
>  - A WOText component to hold the content of the new post
>
>  - A AjaxObserveField component to update the chars count
>
>  - A AjaxSubmitButton to call an method
>
> This is working fine, but the question I have is about the action called by the submit button. What I was about to do is to use performParentAction so that the actual submit to Twitter is done in the parent. Why? Because you might need to do something else with the content, in my case I'm calling bit.ly API to transform any URLs found in the content to a shorter URL.
>
> If you were using such a component, how would use it? I do plan to give back to the community.
>
> --
>
> -------------------------------------------------------
> Pascal Robert
>
> http://www.macti.ca
> http://www.linkedin.com/in/macti
>
> Skype: MacTICanada
> AIM/iChat : MacTICanada
>  _______________________________________________
> 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
>
 _______________________________________________
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: 
 >Component design question (From: Pascal Robert <email@hidden>)

  • Prev by Date: Re: Error with deleting object in WebObjects and Microsoft SQLServer 2005
  • Next by Date: Actions from D2W pages
  • Previous by thread: Re: Component design question
  • Next by thread: Re: Component design question
  • Index(es):
    • Date
    • Thread