• 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: update a WOComponentContent from my code?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: update a WOComponentContent from my code?


  • Subject: Re: update a WOComponentContent from my code?
  • From: Michael Sharp <email@hidden>
  • Date: Mon, 06 Jun 2011 14:38:27 +1000

Hi Ted,

I'm not sure that what you're describing as happening is actually the case.

AjaxUtils.redirectTo isn't updating an area of your page surrounded by an AjaxUpdateContainer, it's redirecting your browser to a full page component.

It sounds like you're interested in updating parts of your already rendered page using Ajax, yes?

You can call AjaxUpdateContainer.updateContainerWithID in code, or use the updateContainerID binding on AjaxObserveField to nominate the AUC to be updated after the observed field(s) submit their contents.

Sharpy..


On 06/06/2011, at 12:28 PM, Theodore Petrosky wrote:

> I have an update Container:
>
> <wo:AjaxUpdateContainer id = "MainTableUC">
> <div id = "contentArea"> <webobject name = "MainTableComponentContent" /> </div>
> </wo:AjaxUpdateContainer>
>
> WOD
>
> MainTableComponentContent : WOComponentContent {}
>
> I have a popup and depending on its selection, I fire:
>
> MainTable nextPage = pageWithName(MainTable.class);
> nextPage.setShowAllIOs(((Session)session()).showAllIOs());
> nextPage.setSearchQualifier(((Session)session()).searchQualifier());
>
> AjaxUtils.redirectTo(nextPage);
>
>
> and beautifully AjaxUtils inserts the WOComponentContent.
>
> How can I fire this from my code? My Main page opens with nothing present. I must select something from the popup. I can not figure out how to present a default selection.
>
> I am sure it is simple, but my pea brain just doesn't understand.
>
> Ted
>
>
>
>
> _______________________________________________
> 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: 
 >update a WOComponentContent from my code? (From: Theodore Petrosky <email@hidden>)

  • Prev by Date: Re: Session Persistence (Database)
  • Next by Date: Re: [SOLVED] com.reportmill.base.RMException: Probable fatal error:No fonts found.
  • Previous by thread: update a WOComponentContent from my code?
  • Next by thread: Re: update a WOComponentContent from my code?
  • Index(es):
    • Date
    • Thread