The span actually gets interpreted on the server, so you can't use
javascript there. You'll need to use a form and a post button to get the
value of that field back. Then have your form's formSubmit handler fetch
form B, push the data in, and cycle.activate(IPage) it.
--- Pat
e.g. something like
<form jwcid="@Form" >
<table align="center">
<tr>
<th align="right">Password:</th>
<td><input type="password" jwcid="@TextField"
value="ognl:deviceID" size="30"/></td>
</tr>
<tr>
<th align="right">Password:</th>
<td><input type="password" jwcid="@TextField"
value="ognl:countryCode" size="30"/></td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="submit" value="Login"
jwcid="@Submit"listener="ognl:listeners.createB"/>
</tr>
</table>
</form>
Then just have your createB listener interrogate the properties
after the rewind cycle is done.
--- Pat
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Friday, July 15, 2005 1:37 AM
> To: [email protected]
> Subject: RE: Retrieve values from a control on another page
>
> The users may change anything they like on page A (even if B is up). Even
> if
> they change the country code in A it won't be a problem. At the moment I'm
> opening B with an @ExternalLink tapestry component. The full code is:
>
> <span jwcid="@ExternalLink" target="_blank" page="location_picker"
> parameters='document.getElementById("deviceid").value,
> document.getElementById("ctryCode").value'>Change</span>
>
> If you hadn't noticed already, the parameter bit is wrong. I'm actually
> trying to figure out how to pass these two parameters to page B. If I can
> do
> that I will be quite happy with the solution ...
>
>
> Steve
>
> -----Original Message-----
> From: Patrick Casey [mailto:[EMAIL PROTECTED]
> Sent: 15 July 2005 09:25
> To: 'Tapestry users'
> Subject: RE: Retrieve values from a control on another page
>
>
>
> Are you users going to change page A once page B is up? If not, you
> can just encode the contents of the "magic" text field in the link and
> then
> feed it back to B when B is rendered.
>
> If your users want to change A though and have page B recognize that
> fact, then you need to get some javascript going and have window A "push"
> the data into window B.
>
> Also are you talking about two tabs on firefox/mozilla? Or are you
> looking to open page B as a popup window e.g. via the javascript
> window.open?
>
> --- Pat
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Sent: Friday, July 15, 2005 1:11 AM
> > To: [email protected]
> > Subject: RE: Retrieve values from a control on another page
> >
> > No problem ...
> >
> > What I have is a page (A) that displays the characteristics of a
> handheld
> > device. It also shows a link that should pop a new window (B) up and
> > display
> > a list of all the regions that this device can be authorized in. Page A
> > holds a text field with a string value (country code) in it. In page B I
> > need to retrieve the country code from A's text field.
> >
> >
> > Steve
> >
> > -----Original Message-----
> > From: Robert Zeigler [mailto:[EMAIL PROTECTED]
> > Sent: 14 July 2005 16:55
> > To: Tapestry users
> > Subject: Re: Retrieve values from a control on another page
> >
> >
> > Yeah, you could probably do something like that.
> > Steve, Can you give more details about what you're trying
> > to accomplish?
> >
> > Robert
> >
> > DarĂo Vasconcelos wrote:
> > > Mmmhhh... I'm thinking you might somehow (with an AJAX thing, maybe)
> > > make the popup window set the property in the visit, then your method
> > > would get this value from there...
> > >
> > > On 7/14/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> > wrote:
> > >
> > >>Sorry ... that wasn't very clear ... What I meant was, is there a way
> to
> > do
> > >>this from the Java code (ie. not using Javascript)? I need the
> variable
> > for
> > >>use as a method parameter.
> > >>
> > >>Steve
> > >>
> > >>-----Original Message-----
> > >>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > >>Sent: 14 July 2005 14:22
> > >>To: [email protected]
> > >>Subject: RE: Retrieve values from a control on another page
> > >>
> > >>
> > >>Before I go on, thanks very much for the help you've given so far,
> > Robert
> > -
> > >>Tapestry's learning curve is just plain scary! With that said ... Is
> > there
> > a
> > >>way to do this from code? Or would a better solution be to use a Visit
> > >>object?
> > >>
> > >>
> > >>Steve
> > >>
> > >>-----Original Message-----
> > >>From: Robert Zeigler [mailto:[EMAIL PROTECTED]
> > >>Sent: 14 July 2005 14:04
> > >>To: Tapestry users
> > >>Subject: Re: Retrieve values from a control on another page
> > >>
> > >>
> > >>So... to clarify...
> > >>You have page A, and it's got a popup to page B, right?
> > >>And you need page A to have access to some value set on page B?
> > >>It might be best to do this via a bit of javascript.
> > >>Your popup should be able to call
> > >>opener.forms[0].hiddenFieldName.value='value'.
> > >>So then you put a named hidden field...
> > >><input type="hidden" jwcid="@Hidden" encode="false"
> > >>value="ognl:someProperty"/>
> > >>
> > >>Then you can just access someProperty from pageA.
> > >>
> > >>Robert
> > >>
> > >>[EMAIL PROTECTED] wrote:
> > >>
> > >>>Hi there,
> > >>>
> > >>>I'm trying to retrieve a value from within a popup window. I've tried
> > >>>
> > >>>ValidField m_Country =
> > >>>
> > >>
> >
> >>(ValidField)getRequestCycle().getPage("edit_device").getComponent("txtCo
> > un
> > tr
> > >>
> > >>>yCodeID");
> > >>>return (String)m_Country.getValue();
> > >>>
> > >>>With no great success ... Please help!
> > >>>
> > >>>
> > >>>With kind regards,
> > >>>
> > >>>Steve Ball
> > >>>
> > >>>
> >
> >>>**********************************************************************
> > >>>This email and any attachment(s) may contain confidential
> > >>>and/or proprietary information and is for the intended
> > >>>recipient only. If an addressing or transmission error has
> > >>>misdirected this email, please notify the sender by replying
> > >>>accordingly. If you are not the intended recipient you
> > >>>should not copy, distribute or in any way make use of the
> > >>>information contained in this email and any attachment(s).
> >
> >>>**********************************************************************
> > >>>
> > >>>
> > >>>---------------------------------------------------------------------
> > >>>To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >>>For additional commands, e-mail: tapestry-user-
> [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]
> > >>
> > >>
> > >
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > **********************************************************************
> > This email and any attachment(s) may contain confidential
> > and/or proprietary information and is for the intended
> > recipient only. If an addressing or transmission error has
> > misdirected this email, please notify the sender by replying
> > accordingly. If you are not the intended recipient you
> > should not copy, distribute or in any way make use of the
> > information contained in this email and any attachment(s).
> > **********************************************************************
> >
> >
> > ---------------------------------------------------------------------
> > 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]