Re: Mixing a href(static) and a java action with WOForm
Re: Mixing a href(static) and a java action with WOForm
- Subject: Re: Mixing a href(static) and a java action with WOForm
- From: Dev WO <email@hidden>
- Date: Fri, 4 Mar 2005 20:53:39 +0100
Thanks Chuck,
in fact we did use the example for https from your book:)
so we added a method that write into the database and return the static
http URL;)
We wanted to be able to empty the value after sending to the http URL
but we just can't do it for now.
Xavier
A form only submits to one place. You can't do what you want. It
just won't work. Submit to the action binding and then use
WOHTTPConnection in your action method to send the static values to
the other URL.
Chuck
On Mar 4, 2005, at 8:26 AM, Dev WO wrote:
Hi,
I've been trying to do a WOForm that would do 2 things:
-sending the value of the form's input to a static href (there are
both static and dynamic input value)
-writing some information to a database using a Java method
I tried using the href attribut from the WOForm inspector to specify
the URL I'd like the input to be send to and bind the java method to
the action's submit button.
That lead to sending correctly the form to the static URL with the
correct input value, but nothing was written to the database...like
if the action bind to the submit button wasn't called.
If I bind the Java method to the submit button and nothing for either
"action" or "href" in the WOForm, I got the info written to the
database, but of course, nothing was sent to the static URL (mostly
because it's written nowhere in this case).
I've checked in different book, but I couldn't find how to do it...
Could anyone help me with this?
Thanks a lot
Xavier
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
village.net
This email sent to email@hidden
--
Practical WebObjects - a book for intermediate WebObjects developers
who want to increase their overall knowledge of WebObjects, or those
who are trying to solve specific application development problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
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