You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Baldur Norddahl <bb...@clansoft.dk> on 2004/07/01 11:54:53 UTC

upgrade from beta3 to 3.0 breaks my application

Hi,

I got a wml tapestry application that has forms like this:

      <anchor>
        Back
        <go jwcid="a@wml:Go" accept-charset="UTF-8" method="get" 
listener="ognl:listeners.backToFaq">
          <postfield jwcid="uid@Hidden" value="ognl:userId"/>
        </go>
      </anchor>

This works fine in beta3. But the new tapestry converts the postfield to 
this:

<input type="hidden" name="uid" value="1234"/>

Other postfields that use the component wml:Postfield still work, but I 
can't use that one to transfer "hidden" values between requests (I am 
keeping the application stateless).

Any ideas to how I go about this?

Thanks,

Baldur

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: upgrade from beta3 to 3.0 breaks my application

Posted by Howard Lewis Ship <hl...@gmail.com>.
Sounds like we need a new component then?  Or allow Hidden to work
properly inside wml:Form (it may already!).

On Fri, 02 Jul 2004 08:52:27 +0200, Baldur Norddahl
<bb...@clansoft.dk> wrote:
> 
> David Solis wrote:
> 
> >The behavior is correct because you are using a Hidden component. AFAIK
> >wml:Postfield is equivalent to html Hidden. For visible input you have
> >to use both wml:Postfield and wml:Input components.
> >
> >
> 
> No, wml:Postfield is not equalent to html Hidden. The documentation says
> this:
> 
> value   String   custom   Bind value to the variable that should receive
> the user input string
> 
> name   String   in            The name attribute specifies an WML
> variable name
> 
> So to use it as a hidden I need to be able to write a custom string as
> the "name" parameter. However I am only able to write the name of a WML
> variable, which would usually link it to a wml:Input component.
> 
> To be more precise this code:
> 
> <postfield jwcid="testid@wml:Postfield" name="foo" value="ognl:bar"/>
> 
> will get converted to:
> 
> <postfield name="testid" value="$(foo)"/>
> 
> For it it to work as a hidden it would have to be converted to this instead:
> 
> <postfield name="testid" value="foo"/>
> 
> Ie. without the $() appended.
> 
> >I don't have an idea how it could work for beta 3, IMO there is an
> >error.
> >
> >
> >
> 
> It was the only way to implement a hidden field. With tapestry 3.0 it
> does not seem it is possible to have hidden fields in a wml application.
> 
> 
> 
> Baldur
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 


-- 
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind
http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


RE: upgrade from beta3 to 3.0 breaks my application

Posted by David Solis <ds...@legosoft.com.mx>.
What about

<setvar jwcid="bar@wml:Setvar" name="bar" value='ognl: bar/>
.......
<postfield jwcid="testid@wml:Postfield" name="ognl: components.bar.name"
value="ognl: bar"/>
........

First statement declares a WML variable named bar.

Regards

D.

> -----Original Message-----
> From: Baldur Norddahl [mailto:bbn-tapestry.user@clansoft.dk]
> Sent: Friday, July 02, 2004 1:52 AM
> To: Tapestry users
> Subject: Re: upgrade from beta3 to 3.0 breaks my application
> 
> David Solis wrote:
> 
> >The behavior is correct because you are using a Hidden component.
AFAIK
> >wml:Postfield is equivalent to html Hidden. For visible input you
have
> >to use both wml:Postfield and wml:Input components.
> >
> >
> 
> No, wml:Postfield is not equalent to html Hidden. The documentation
says
> this:
> 
> value   String   custom   Bind value to the variable that should
receive
> the user input string
> 
> name   String   in            The name attribute specifies an WML
> variable name
> 
> 
> So to use it as a hidden I need to be able to write a custom string as
> the "name" parameter. However I am only able to write the name of a
WML
> variable, which would usually link it to a wml:Input component.
> 
> To be more precise this code:
> 
> <postfield jwcid="testid@wml:Postfield" name="foo" value="ognl:bar"/>
> 
> will get converted to:
> 
> <postfield name="testid" value="$(foo)"/>
> 
> For it it to work as a hidden it would have to be converted to this
> instead:
> 
> <postfield name="testid" value="foo"/>
> 
> Ie. without the $() appended.
> 
> >I don't have an idea how it could work for beta 3, IMO there is an
> >error.
> >
> >
> >
> 
> It was the only way to implement a hidden field. With tapestry 3.0 it
> does not seem it is possible to have hidden fields in a wml
application.
> 
> Baldur
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: upgrade from beta3 to 3.0 breaks my application

Posted by Baldur Norddahl <bb...@clansoft.dk>.
David Solis wrote:

>The behavior is correct because you are using a Hidden component. AFAIK
>wml:Postfield is equivalent to html Hidden. For visible input you have
>to use both wml:Postfield and wml:Input components.
>  
>

No, wml:Postfield is not equalent to html Hidden. The documentation says 
this:

value   String   custom   Bind value to the variable that should receive 
the user input string

name   String   in            The name attribute specifies an WML 
variable name


So to use it as a hidden I need to be able to write a custom string as 
the "name" parameter. However I am only able to write the name of a WML 
variable, which would usually link it to a wml:Input component.

To be more precise this code:

<postfield jwcid="testid@wml:Postfield" name="foo" value="ognl:bar"/>

will get converted to:

<postfield name="testid" value="$(foo)"/>

For it it to work as a hidden it would have to be converted to this instead:

<postfield name="testid" value="foo"/>

Ie. without the $() appended.

>I don't have an idea how it could work for beta 3, IMO there is an
>error.
>
>  
>

It was the only way to implement a hidden field. With tapestry 3.0 it 
does not seem it is possible to have hidden fields in a wml application.

Baldur


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


RE: upgrade from beta3 to 3.0 breaks my application

Posted by David Solis <ds...@legosoft.com.mx>.
The behavior is correct because you are using a Hidden component. AFAIK
wml:Postfield is equivalent to html Hidden. For visible input you have
to use both wml:Postfield and wml:Input components.

I don't have an idea how it could work for beta 3, IMO there is an
error.

Regards

D.
> -----Original Message-----
> From: Baldur Norddahl [mailto:bbn-tapestry.user@clansoft.dk]
> Sent: Thursday, July 01, 2004 4:55 AM
> To: tapestry-user@jakarta.apache.org
> Subject: upgrade from beta3 to 3.0 breaks my application
> 
> Hi,
> 
> I got a wml tapestry application that has forms like this:
> 
>       <anchor>
>         Back
>         <go jwcid="a@wml:Go" accept-charset="UTF-8" method="get"
> listener="ognl:listeners.backToFaq">
>           <postfield jwcid="uid@Hidden" value="ognl:userId"/>
>         </go>
>       </anchor>
> 
> This works fine in beta3. But the new tapestry converts the postfield
to
> this:
> 
> <input type="hidden" name="uid" value="1234"/>
> 
> Other postfields that use the component wml:Postfield still work, but
I
> can't use that one to transfer "hidden" values between requests (I am
> keeping the application stateless).
> 
> Any ideas to how I go about this?
> 
> Thanks,
> 
> Baldur
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org