Hi Sam.
If you are using an externally posted form, you can use the
names of the inputs:
public void activateExternalPage(Object[] parameters,
IRequestCycle cycle)
{
String userName =
cycle.getRequestContext().getParameter("userName");
setUserName(userName);
}
This example is from Howard's "Tapestry In Action".
Cheers,
Nick.
Sam Gendler wrote:
I started out thinking that was the solution, but eventually wrote it
off because I couldn't figure out how to sort out which parameter to
assign to which property from the array of parameters passed in as
Object[]. I decided it must only be for use when creating an
ExternalCallback, since you can designate the order ot the parameters
in that case. I can't imagine that it just puts the parameters in the
order in which they are received, since http allows query string
parameters to be in any order. Am I missing something or will I have
to ensure that every browser sends the query string in the same order?
That strikes me as fragile.
--sam
On 3/6/06, Nick Westgate <[EMAIL PROTECTED]> wrote:
Hi Sam.
Check out IExternalPage:
http://jakarta.apache.org/tapestry/tapestry/apidocs/org/apache/tapestry/IExternalPage.html
Cheers,
Nick.
Sam Gendler wrote:
I have data in another application which isn't built on Tapestry. I
need to put a form on a page which isn't delivered by Tapestry, and
have it submit into my tapestry app. Is this even possible with the
rewind mechanism that Tapestry uses? I sure hope so, because my spec
also requires a login and password box in the header of every page in
the static website, and I need that form to submit to the Tapestry app
as well.
In the first instance, it would be sufficient if I could just pass
parameters to Tapestry and then have tapestry serve up a form with the
supplied values already populating the form, requiring the user to
push a submit button to submit the form. In some instances, that is
actually the preferred mode.
Any hints?
--sam
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]