You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by hari ks <ha...@yahoo.com> on 2005/08/06 08:49:42 UTC

initial-value attribute in property-specification -- help

hi,
  I want to know if initial-value="" is required to be
initialize all time.
When do we use initial-value attribute. is it for
custom-defined user classes/primitive types/standard
java classes(String, Integer etc..) ?

Also how does is it work differently when used with
persistent="no" and persistent="yes"

thanks,
Hari.



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Re: initial-value attribute in property-specification -- help

Posted by Nick Westgate <ni...@key-planning.co.jp>.
Hi Hari.

I don't know the answers to all these questions - so I'd be
interested in answers from others who do use initial-value.
It seems to be used for resetting page properties when the
page is _returned_ to the pool.

My advice would be "don't use it". Initialise your page
properties etc in pageBeginRender() as the FAQ suggests.

Cheers,
Nick.


hari ks wrote:
> hi,
>   I want to know if initial-value="" is required to be
> initialize all time.
> When do we use initial-value attribute. is it for
> custom-defined user classes/primitive types/standard
> java classes(String, Integer etc..) ?
> 
> Also how does is it work differently when used with
> persistent="no" and persistent="yes"
> 
> thanks,
> Hari.
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> ---------------------------------------------------------------------
> 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: initial-value attribute in property-specification -- help

Posted by jys <jy...@fr.st>.
I think initial-value can be set with any valid ognl expression like :

new java.util.HashSet()

for example

hari ks wrote:

>hi,
>  I want to know if initial-value="" is required to be
>initialize all time.
>When do we use initial-value attribute. is it for
>custom-defined user classes/primitive types/standard
>java classes(String, Integer etc..) ?
>
>Also how does is it work differently when used with
>persistent="no" and persistent="yes"
>
>thanks,
>Hari.
>
>
>
>__________________________________________________
>Do You Yahoo!?
>Tired of spam?  Yahoo! Mail has the best spam protection around 
>http://mail.yahoo.com 
>
>---------------------------------------------------------------------
>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