• 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: Dynamic loading of a component into a container?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dynamic loading of a component into a container?


  • Subject: Re: Dynamic loading of a component into a container?
  • From: Theodore Petrosky <email@hidden>
  • Date: Fri, 10 Jun 2011 09:43:09 -0700 (PDT)

did you look at the ajaxexample? they are using a

<wo:AjaxUpdateContainer id = "MainTableUC">
<webobject name = "Contents">
</wo:AjaxUpdateContainer>

Contents : WOComponentContent {
}


and in a hyperlink:

<webobject name = "HelloWorldLink">Hello Ajax World</webobject>

HelloWorldLink : WOHyperlink {
	pageName = "HelloAjaxWorld";
}


it will load the page named HelloAjaxWorld. you can also use an action as in

HelloWorldLink : WOHyperlink {
	action = loadHelloAjaxWorld;
}


and a method:

public WOActionResults editInsertion() {

	HelloAjaxWorld nextpage = pageWithName(HelloAjaxWorld.class);
// you can setup the next page here
        nextpage.setSomeVarHere("some text");

	return nextpage;
}


you could wrap the WOComponentContent in an AjaxUpdateContainer and update from code with:

AjaxUpdateContainer.updateContainerWithID("MainTableUC", context());


> ------------------------------
>
> Message: 7
> Date: Thu, 09 Jun 2011 15:22:24 -0500
> From: John Huss <email@hidden>
> Subject: Re: Dynamic loading of a component into a
> container?
> To: Paul Dunkler <email@hidden>
> Cc: WebObjects Development <email@hidden>
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Isn't this what AjaxUpdateContainer does?  What is
> wrong with using it?
>
> On Thu, Jun 9, 2011 at 3:12 PM, Paul Dunkler <email@hidden>wrote:
>
> > Hey Guys,
> >
> > is there any possibility in wonder to load a component
> into a pre-defined
> > zone in the template?
> > I´m dealing with AjaxUpdateContainers and so on since
> 4 months - it´s nice
> > - i like it, but i see no possibility to load
> something into an
> > AjaxUpdateContainer... If there is any possibility or
> some of you may have a
> > suggestion how to do this "the good way" in wonder -
> It would be very nice
> > to hear from you.
> >
> > For exmaple:
> >
> > Main-Template:
> > <html>
> > <head>
> > <title>
> > </head>
> > <body>
> > ....
> > <wo:AjaxUpdateZone id="testZone" />
> > </body>
> > </html>
> >
> >
> > Navigation-Template
> > <html>
> > <head>
> > <title>
> > </head>
> > <body>
> > ....
> > <ul>
> >       
> <li><wo:LoadComponentIntoZoneLink
> x="AddProductComponent"
> > zone="testZone">Add
> Products</wo:LoadComponentIntoZoneLink ></li>
> > </ul>
> > </body>
> > </html>
> >
> >
> > (the names of the components are chosen random by me
> ^^ just for showing
> > you what behavior i want)
> >
> >
> > Thanks in advance!
> >
> > Best Regards,
> > Paul Dunkler
> _______________________________________________
> > 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
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://lists.apple.com/pipermail/webobjects-dev/attachments/20110609/771b8a5d/attachment.html
>
> ------------------------------
>
> _______________________________________________
> Webobjects-dev mailing list
> email@hidden
> http://lists.apple.com/mailman/listinfo/webobjects-dev
>
> End of Webobjects-dev Digest, Vol 8, Issue 383
> **********************************************
>
 _______________________________________________
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

  • Follow-Ups:
    • Re: Dynamic loading of a component into a container?
      • From: John & Kim Larson <email@hidden>
  • Prev by Date: Re: Last hurdle on new CentOS deployment...
  • Next by Date: JavaMonitor's Arguments
  • Previous by thread: Re: Dynamic loading of a component into a container?
  • Next by thread: Re: Dynamic loading of a component into a container?
  • Index(es):
    • Date
    • Thread