Or another valid way:
@InjectPage
private PageToCreate page;

Object onAction()
{
    String textToSet = "Me the text";
    page.initialize(textToSet);
    return page;
}

Note:  page.initialize(textToSet); is obviously the method setting the 
property, but that property may need at least flash persistence.
Peter

----- Original Message -----
From: "Joshua Martin" <josmar52...@gmail.com>
To: users@tapestry.apache.org
Sent: Thursday, 6 August, 2009 06:15:17 GMT +02:00 Athens, Beirut, Bucharest, 
Istanbul
Subject: TextField Setting Text

How do I set the text for a TextField programatically?

I'm redirecting to a page I create programatically like this, and I
need to set the text with Strings I'm passing from my starting page:

@InjectPage
private PageToCreate page;

Object onAction()
{
    String textToSet = "Me the text";

    return page.initialize(textToSet);
}

-- 
_________________________________

Joshua S. Martin


CONFIDENTIALITY NOTE: This e-mail message, including any
attachment(s), contains information that may be confidential,
protected by the attorney client or other legal privileges, and or
proprietary non public information. If you are not an intended
recipient of this message or an authorized assistant to an intended
recipient, please notify the sender by replying to this message and
then delete it from your system. Use, dissemination, distribution, or
reproduction of this message and or any of its attachments (if any) by
unintended recipients is not authorized and may be unlawful.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to