click-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Malcolm Edgar <malcolm.ed...@gmail.com>
Subject Re: svn commit: r782672 - in /incubator/click/trunk/click/examples/src/org/apache/click/examples/page/table: SearchTablePage.java TableStyles.java
Date Mon, 08 Jun 2009 22:09:38 GMT
Interesting - should services be considered as transient. In Spring
services are generally singletons, if the transient variable reference
becomes null its not going to be reset.

regards Malcolm Edgar

On Tue, Jun 9, 2009 at 1:28 AM, <sabob@apache.org> wrote:
> Author: sabob
> Date: Mon Jun  8 15:28:46 2009
> New Revision: 782672
>
> URL: http://svn.apache.org/viewvc?rev=782672&view=rev
> Log:
> stateful pages should have transient services
>
> Modified:
>    incubator/click/trunk/click/examples/src/org/apache/click/examples/page/table/SearchTablePage.java
>    incubator/click/trunk/click/examples/src/org/apache/click/examples/page/table/TableStyles.java
>
> Modified: incubator/click/trunk/click/examples/src/org/apache/click/examples/page/table/SearchTablePage.java
> URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/examples/src/org/apache/click/examples/page/table/SearchTablePage.java?rev=782672&r1=782671&r2=782672&view=diff
> ==============================================================================
> --- incubator/click/trunk/click/examples/src/org/apache/click/examples/page/table/SearchTablePage.java
(original)
> +++ incubator/click/trunk/click/examples/src/org/apache/click/examples/page/table/SearchTablePage.java
Mon Jun  8 15:28:46 2009
> @@ -59,7 +59,7 @@
>     private DateField dateField = new DateField(Customer.DATE_JOINED_PROPERTY, "Start
Date");
>
>     @Resource(name="customerService")
> -    private CustomerService customerService;
> +    private transient CustomerService customerService;
>
>     // ----------------------------------------------------------- Constructors
>
>
> Modified: incubator/click/trunk/click/examples/src/org/apache/click/examples/page/table/TableStyles.java
> URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/examples/src/org/apache/click/examples/page/table/TableStyles.java?rev=782672&r1=782671&r2=782672&view=diff
> ==============================================================================
> --- incubator/click/trunk/click/examples/src/org/apache/click/examples/page/table/TableStyles.java
(original)
> +++ incubator/click/trunk/click/examples/src/org/apache/click/examples/page/table/TableStyles.java
Mon Jun  8 15:28:46 2009
> @@ -49,7 +49,7 @@
>     private Checkbox hoverCheckbox = new Checkbox("hover", "Hover Rows:");
>
>     @Resource(name="customerService")
> -    private CustomerService customerService;
> +    private transient CustomerService customerService;
>
>     // ----------------------------------------------------------- Constructor
>
>
>
>

Mime
View raw message