[ 
https://issues.apache.org/jira/browse/TAPESTRY-1394?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12486162
 ] 

Patrick Moore commented on TAPESTRY-1394:
-----------------------------------------

Glad you asked...

Well @InitialValue really serves 2 purposes:

1) to set a parameter to an initial value when an instance of the 
page/component is created.
2) to reset the parameter to a default value when the instance is put back into 
the instance pool.

I need to use @InitialValue for case #2 so that the page doesn't hang on to 
object graphs that it shouldn't.

> @InitialValue("null") sets property to empty collection not null
> ----------------------------------------------------------------
>
>                 Key: TAPESTRY-1394
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1394
>             Project: Tapestry
>          Issue Type: Bug
>            Reporter: Patrick Moore
>             Fix For: 4.1.2
>
>
> This :
>     @InitialValue("null")
>     public abstract List<BroadcastProviderUrl> getCachedUrls();
> results in cachedUrls being set to an empty list instead of null.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to