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: Michael Sharp <email@hidden>
- Date: Wed, 01 Jun 2011 08:51:25 +1000
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