You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Ted Steen <te...@gmail.com> on 2006/04/19 22:52:52 UTC

For, Hidden fields, squeezers, etc! How do I use them?

Hi!

My Class C contains various things including a set.

In a listener in page A i get page B (by injection) and I call
pageB.setFoo(c) (where c is an instance of class C) and then i
activate pageB.

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

The result I want is that the foo is preserved over every page request
and that the changes I do in the @TextField will be written in the
objects in the set in foo.
this is not happening. instead the values are (everytime i submit)
overwritten by the old values.

Could someone help me with this as I apparently don't know how to do
it the right way.
If there are some good examples of elements in a @For beeing edited I
would like to see it.

sorry for the bad english.. i'm a little tired at the moment.

--
/ted

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.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


Re: For, Hidden fields, squeezers, etc! How do I use them?

Posted by neo anderson <ja...@yahoo.co.uk>.
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 James Carman <ja...@carmanconsulting.com>.
It's not an annotation.  It's a component.  He's talking about using
anonymous components:

<span jwcid="@Hidden" />


> 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


Re: For, Hidden fields, squeezers, etc! How do I use them?

Posted by Andreas Bulling <sp...@phoenix.hadiko.de>.
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