Hi Jeremy,
You need to pass the bindings of you WOPopupButton and WOTextField to your
next page.
For example using inline bindings:
public Object selectedNumber;
public String name;
<wo:WOPopupButton selection="$selectedNumber" .../>
<wo:WOTextField value="$name" />
Then on the submit action:
public page1 goToAnotherComponent() {
page1 nextPage = (page1)pageWithName("page1");
nextPage.setSelectedPopup(selectedNumber); <- pass to next page
nextPage.setName(name);<- pass to next page
return nextPage;
HTH,
Amiel
On Fri, Jul 9, 2010 at 11:05 AM, Jeremy Doseck <[email protected]> wrote:
>
> Hi, I am having some problems with simple Form where couple of
> WOPopupButtons and WOTextFields are in. I guess it must be quite simple, I
> need those data to be viewed in the next page (nextpage.wo) when they are
> selected (PopUpButton) and inserted (Textfield) and finally processed with
> Button by the user.
> So for example: one TextField and one PopUp:
>
> public Main(WOContext context) {
> super(context);
> public String Name
> Object[] desirednumberArray = new Object[]{"0","1",
> "2","3","4","5","6","7","8"};
> desirednumber = new NSArray(desirednumberArray);}
> public String seldesnum;
> public NSArray desirednumber;
>
> What would be the code or binding?
>
> I tried sth. like this but no success:
>
> public page1 goToAnotherComponent() {
> page1 nextPage = (page1)pageWithName("page1");
> return nextPage;
>
> Thanks for any help.
>
> using Eclipse 3.5
>
> Jeremy
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list ([email protected])
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/bosyotech%40gmail.com
>
> This email sent to [email protected]
>
--
socket error: unable to connect to 127.0.0.1
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]