You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by neo anderson <ja...@yahoo.co.uk> on 2007/11/28 15:28:41 UTC
Re: For, Hidden fields, squeezers, etc! How do I use them?
I plug a @Hidden component in the html page and it exactly produce the <input
type="hidden" ...> html tag. Now how can I get hidden value in Java code.
The way how I do it is
html:
<input jwcid="reportPage@Hidden" value="true"/>
java:
public abstract String getReportPage();
This doesn't work. I use System.out.println() the value of getReportPage to
the console. It always shows 'null' value. What should I do if I want to get
the hidden value in html?
Thank you.
James Carman wrote:
>
> It's not an annotation. It's a component. He's talking about using
> anonymous components:
>
>
>
>
>> Hi Ted,
>>
>> unfortunately I can't help you with your problem but I have
>> a question myself:
>>
>> | in pageB
>> | i have a @Hidden with foo as value. I have this because I want the
>> | various things in Foo to not be lost while doing stuff in page B.
>> | Now, the set in the foo is used in a @For, and each element in foo is
>> | mapped to a @TextField
>>
>> What is this @Hidden annotation used for/where can I find it?
>> It doesn't seem to belong to Tapestry, does it?
>>
>> Thanks!
>> Andreas
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>
>
> James Carman, President
> Carman Consulting, Inc.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/For%2C-Hidden-fields%2C-squeezers%2C-etc%21-How-do-I-use-them--tf1476828.html#a13993459
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: For, Hidden fields, squeezers, etc! How do I use them?
Posted by Richard Kirby <rb...@capdm.com>.
Hi Neo,
What you want is:
<input jwcid="@Hidden" value="prop:reportPage" />
Cheers
Richard
neo anderson wrote:
> I plug a @Hidden component in the html page and it exactly produce the <input
> type="hidden" ...> html tag. Now how can I get hidden value in Java code.
> The way how I do it is
>
> html:
> <input jwcid="reportPage@Hidden" value="true"/>
>
> java:
>
> public abstract String getReportPage();
>
> This doesn't work. I use System.out.println() the value of getReportPage to
> the console. It always shows 'null' value. What should I do if I want to get
> the hidden value in html?
>
> Thank you.
>
>
>
>
>
> James Carman wrote:
>
>> It's not an annotation. It's a component. He's talking about using
>> anonymous components:
>>
>>
>>
>>
>>
>>> Hi Ted,
>>>
>>> unfortunately I can't help you with your problem but I have
>>> a question myself:
>>>
>>> | in pageB
>>> | i have a @Hidden with foo as value. I have this because I want the
>>> | various things in Foo to not be lost while doing stuff in page B.
>>> | Now, the set in the foo is used in a @For, and each element in foo is
>>> | mapped to a @TextField
>>>
>>> What is this @Hidden annotation used for/where can I find it?
>>> It doesn't seem to belong to Tapestry, does it?
>>>
>>> Thanks!
>>> Andreas
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>
>>>
>> James Carman, President
>> Carman Consulting, Inc.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>>
>>
>>
>
>
--
Richard Kirby
Email: rbk@capdm.com
Phone: 0131 477 8629
Fax: 0131 477 8621
Email: enquiries@capdm.com
Website: www.capdm.com
CAPDM Limited Registered in Scotland: SC168970 VAT: 682 846 983
Registered address: 22 Forth Street, Edinburgh, EH1 3LH, UK
===========================================
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org