You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Patrick Moore (JIRA)" <de...@tapestry.apache.org> on 2007/04/02 21:59:32 UTC

[jira] Created: (TAPESTRY-1394) @InitialValue("null") sets property to empty collection not null

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


[jira] Commented: (TAPESTRY-1394) @InitialValue("null") sets property to empty collection not null

Posted by "Patrick Moore (JIRA)" <de...@tapestry.apache.org>.
    [ 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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Resolved: (TAPESTRY-1394) @InitialValue("null") sets property to empty collection not null

Posted by "Andreas Andreou (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1394?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Andreou resolved TAPESTRY-1394.
---------------------------------------

    Resolution: Won't Fix
      Assignee: Andreas Andreou

I believe that the @Cached annotation from tacos is what you can use here.
https://tacos.svn.sourceforge.net/svnroot/tacos/tacos-4.1/trunk/tacos-annotations/src/java/net/sf/tacos/annotations/Cached.java

It does transparent caching for method results (during a single requests) and resets values to null

> @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
>            Assignee: Andreas Andreou
>             Fix For: 4.1.4
>
>
> 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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Commented: (TAPESTRY-1394) @InitialValue("null") sets property to empty collection not null

Posted by "Jesse Kuhnert (JIRA)" <de...@tapestry.apache.org>.
    [ https://issues.apache.org/jira/browse/TAPESTRY-1394?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12486118 ] 

Jesse Kuhnert commented on TAPESTRY-1394:
-----------------------------------------

Pardon me for asking, but if you want the value to be null why don't you just not provide an InitialValue annotation? 

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


[jira] Updated: (TAPESTRY-1394) @InitialValue("null") sets property to empty collection not null

Posted by "Jesse Kuhnert (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1394?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jesse Kuhnert updated TAPESTRY-1394:
------------------------------------

    Fix Version/s:     (was: 4.1.3)
                   4.1.4

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


[jira] Commented: (TAPESTRY-1394) @InitialValue("null") sets property to empty collection not null

Posted by "Patrick Moore (JIRA)" <de...@tapestry.apache.org>.
    [ https://issues.apache.org/jira/browse/TAPESTRY-1394?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12541683 ] 

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

sounds good ... the *new* tacos notation sounds like it is what is needed!

thanks

> @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
>            Assignee: Andreas Andreou
>             Fix For: 4.1.4
>
>
> 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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Commented: (TAPESTRY-1394) @InitialValue("null") sets property to empty collection not null

Posted by "Jun Tsai (JIRA)" <de...@tapestry.apache.org>.
    [ https://issues.apache.org/jira/browse/TAPESTRY-1394?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12495833 ] 

Jun Tsai commented on TAPESTRY-1394:
------------------------------------

In your case #2,if you don't provide an Initialvalue annotation,the parameter is null when it is put back into the pool.

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


[jira] Updated: (TAPESTRY-1394) @InitialValue("null") sets property to empty collection not null

Posted by "Jesse Kuhnert (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1394?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jesse Kuhnert updated TAPESTRY-1394:
------------------------------------

    Fix Version/s:     (was: 4.1.2)
                   4.1.3

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