Re: action binding of an AjaxObserveField to return a WOComponent?
Re: action binding of an AjaxObserveField to return a WOComponent?
- Subject: Re: action binding of an AjaxObserveField to return a WOComponent?
- From: Theodore Petrosky <email@hidden>
- Date: Wed, 01 Jun 2011 13:20:27 -0700 (PDT)
this works:
public void returnTable() {
MainTable nextPage = pageWithName(MainTable.class);
nextPage.setShowAllIOs(showAllIOs);
AjaxUtils.redirectTo(nextPage);
}
ShowAllCheckBox : WOCheckBox {
checked = showAllIOs;
id = "showAllIOsID";
}
depending on the value of the WOCheckBox I refresh the MainTable component. So either I am not supposed to do this, or I need to allocate more memory.
Jun 01 14:03:51 ASColorGrid[51508] WARN NSLog - <WOWorkerThread id=0 socket=null> Workerthread exiting due to error, respawning with ID 10000...
Exception in thread "WorkerThread0" com.webobjects.foundation.NSForwardException [java.lang.OutOfMemoryError] Java heap space:java.lang.OutOfMemoryError: Java heap space
at com.webobjects.foundation.NSForwardException._runtimeExceptionForThrowable(NSForwardException.java:45)
when showAllIOs = false, I return 50 rows with true it returns 1100. then I set it to false and I get the memory error. I assumed that on reflowing this MainTable component, the old data would be GCd.
I will check the docs for allocating more memory.
I have too much to learn.
Ted
--- On Tue, 5/31/11, Michael Sharp <email@hidden> wrote:
> From: Michael Sharp <email@hidden>
> Subject: Re: action binding of an AjaxObserveField to return a WOComponent?
> To: "Theodore Petrosky" <email@hidden>
> Cc: email@hidden
> Date: Tuesday, May 31, 2011, 6:51 PM
> Have a look at
> AjaxUtils.redirectTo(WOComponent)
>
> For the "jump menu" type of thing I use that within the
> method bound to action of the AjaxObserveField that's
> observing the WOPopup.
>
> Sharpy.
>
> On 01/06/2011, at 1:06 AM, Theodore Petrosky wrote:
>
> >
> > I have only used hyperlinks to insert a new
> WOComponent into my page like this:
> >
> > <webobject name = "UserManagement">Employee
> Management</webobject>
> >
> > in the wod:
> >
> > UserManagement : WOHyperlink {
> > pageName = "TWTUserManagement";
> > class="subfirst";
> > title="Employees";
> > }
> >
> >
> > of course I have a WOComponentContent in the page:
> >
> > <webobject name = "Contents" />
> >
> > Contents : WOComponentContent {
> > }
> >
> > I am also using the action binding of the WOHyperlink
> and returning a WOComponent. This works just fine allowing
> me to pass data to the WOComponent before I display it.
> >
> > I am playing around with a different interface and I
> want to use a popup to choose which component to bring in.
> >
> > I have tried to use the action binding of an
> AjaxObserveField that is watching my popup but it doesn't
> work as I think.
> >
> > Am I barking up the wrong tree? Maybe I am just not
> setting it up correctly?
> >
> > Basically I have a popup in the header. I want to
> display a WOComponent in:
> >
> > <webobject name = "Contents" />
> >
> > Contents : WOComponentContent {
> > }
> >
> > but I need to pass data to the component before
> display it.
> >
> > public WOActionResults returnComponent() {
> > MainTableComponent nextPage =
> pageWithName(MainTableComponent.class);
> > nextPage.setSomeStuff;
> >
> > return nextPage;
>
> > }
> >
> > Help, please.
> >
> > 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