Make a form with email field on the first page. Add a listener to Form
within which you can set email field on the second page and return
second page to redirect.
I think that it's not possible to pass parameters in traditional way
in PageLink.

1st page .html:
<form jwcid="@Form" success="ognl:listeners.doPrePopulate">
  <input jwcid="@TextField" validators="validators:email" value="ognl:email"/>
</form>

1st page .java:
...
public abstract String getEmail();

@InjectPage("SecondPage")
public SecondPage getSecondPage();
public IPage doPrePopulate() {
    getSecondPage().setEmail(getEmail);
    return getSecondPage();
}
...

2nd page .html:
<form jwcid="@Form">
  <input jwcid="@TextField" validators="validators:email" value="ognl:email"/>
</form>

2nd page .java:
...
public abstract String getEmail();
public abstract void setEmail(String email);
...

2005/8/30, Rudolf Baloun <[EMAIL PROTECTED]>:
> try something like this:
> 
> <span jwcid="@PageLink" href="#" page="verify"  >
>    <span jwcid="@Insert" value="ognl:emailAddress"/>
> </span>
> 
> 
> Anjali Abraham wrote:
> 
> >It didn't work. It throwing an error saying <input> tag cannt have 2 jwcid.
> >Well can you tell me how to pass parameters through @PageLink.
> >My html page is:
> ><a href="#" jwcid="@PageLink" page="verify"></a>
> >I am using Tapestry 4.0v.
> >
> >Regards,
> >Anjali
> >
> >-----Original Message-----
> >From: Rudolf Baloun [mailto:[EMAIL PROTECTED]
> >Sent: Tuesday, August 30, 2005 4:37 PM
> >To: Tapestry users
> >Subject: Re: Need help on how to pre-populate a value in text field
> >
> >hi,
> >
> >you need:
> >in .java:
> >public String getEmailAddress(){ ..}
> >public void setEmailAddress(String email){..}
> >
> >in .page:
> >nothing
> >
> >in .html:
> ><td><input type="text" jwcid="emailAddress"
> >jwcid="@Insert"value="ognl:emailAddress" size="30" /></td>
> >
> >Anjali Abraham wrote:
> >
> >
> >
> >>Hi All,
> >>           I have a scenario wherein I need to pre-populate an email value
> >>which is being coming from my previous page into an text field.
> >>My .html code is like this:
> >><td><input type="text" jwcid="emailAddress" jwcid="@Insert"
> >>value="ognl:emailAddress" size="30" /></td>
> >>
> >>Is it right or what else I need to change in my .html, .page and java code.
> >>
> >>Regards,
> >>Anjali
> >>
> >>
> >>
> >>
> >>
> >>
> >
> >
> >
> >---------------------------------------------------------------------
> >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]

Reply via email to