You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Angelo Chen <an...@yahoo.com.hk> on 2007/10/24 12:34:43 UTC

T5: hidden fields

Hi,

Is there a way to declare hidden fields in a form? Thanks.
A.C.
-- 
View this message in context: http://www.nabble.com/T5%3A-hidden-fields-tf4683527.html#a13383161
Sent from the Tapestry - User mailing list archive at Nabble.com.


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


Re: T5: hidden fields

Posted by César Lesc <ce...@gmail.com>.
If you need a hidden field probably is because you need context
information in a form, I suggest to use the context parameter of the
form component. You can get this parameter in the onSubmit event (or
the others forms events as well). If not the case sorry! ;)

Cesar.



On 10/24/07, Angelo Chen <an...@yahoo.com.hk> wrote:
>
> Hi Kristian,
>
> Thanks for the code, now I just use style=(display:none), it's working fine.
>
>
> kristian.marinkovic wrote:
> >
> > for the time being ....there is no Hidden component available in T5....
> > you can use the component below:
> >
> >
>
> --
> View this message in context: http://www.nabble.com/T5%3A-hidden-fields-tf4683527.html#a13384537
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

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


RE: T5: hidden fields

Posted by Angelo Chen <an...@yahoo.com.hk>.
Hi Kristian,

Thanks for the code, now I just use style=(display:none), it's working fine.


kristian.marinkovic wrote:
> 
> for the time being ....there is no Hidden component available in T5....
> you can use the component below:
> 
> 

-- 
View this message in context: http://www.nabble.com/T5%3A-hidden-fields-tf4683527.html#a13384537
Sent from the Tapestry - User mailing list archive at Nabble.com.


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


Re: T5: hidden fields

Posted by Nick Westgate <ni...@key-planning.co.jp>.
You should use getElementName() after the name parameter.

Cheers,
Nick.


Kristian Marinkovic wrote:
> for the time being ....there is no Hidden component available in T5....
> you can use the component below:
> 
> public class Hidden extends AbstractTextField {
> 
>     @Override
>     protected void writeFieldTag(MarkupWriter writer, String value) {
>         writer.element(
>                 "input", 
>                 "type",
>                 "hidden",
>                 "id",
>                 getClientId(),
>                 "name",
>                 getClientId(),
>                 "value",
>                 value);
>         writer.end(); 
>     }
> }
> 
> 
> 
> 
> Angelo Chen <an...@yahoo.com.hk> 
> 24.10.2007 12:34
> Bitte antworten an
> "Tapestry users" <us...@tapestry.apache.org>
> 
> 
> An
> users@tapestry.apache.org
> Kopie
> 
> Thema
> T5: hidden fields
> 
> 
> 
> 
> 
> 
> 
> Hi,
> 
> Is there a way to declare hidden fields in a form? Thanks.
> A.C.

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


RE: T5: hidden fields

Posted by Kristian Marinkovic <kr...@porsche.co.at>.
for the time being ....there is no Hidden component available in T5....
you can use the component below:

public class Hidden extends AbstractTextField {

    @Override
    protected void writeFieldTag(MarkupWriter writer, String value) {
        writer.element(
                "input", 
                "type",
                "hidden",
                "id",
                getClientId(),
                "name",
                getClientId(),
                "value",
                value);
        writer.end(); 
    }
}




Angelo Chen <an...@yahoo.com.hk> 
24.10.2007 12:34
Bitte antworten an
"Tapestry users" <us...@tapestry.apache.org>


An
users@tapestry.apache.org
Kopie

Thema
T5: hidden fields







Hi,

Is there a way to declare hidden fields in a form? Thanks.
A.C.
-- 
View this message in context: 
http://www.nabble.com/T5%3A-hidden-fields-tf4683527.html#a13383161
Sent from the Tapestry - User mailing list archive at Nabble.com.


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