I am glad you asked  :)

In the next release of Apache Click 2.1.0 there has been a lot of work
to support the use of annotations.

The first one is:

@Bindable - which is used to specify that a public field should be
autobound.  For example:

public class MyPage extends Page {

     @Bindable
     public Integer customerId;

     @Bindable
     public Table table = new Table();

}

This is uses as an alternative to the default autobinding based
whether a Page field has public scope.  In the next release 2.2.0
@Bindable will support Page properties, or getter/setter methods as
well.

There has been really improved support for Spring instantiated pages,
which will be demonstrated in Click examples. For example:

@Component
public class MyPage extends Page {

     @Resource(name="customerService")
     private CustomerService customerService;

}

In this example the MyPage object is instantiated by Spring with
"prototype" scope, and then Spring can inject any required services,
such as a CustomerService in this case.

regards Malcolm Edgar

On Thu, Jun 4, 2009 at 7:21 PM, aurmam <[email protected]> wrote:
>
> Hi all,
>
> is there any way to use some annotations in click framework?
>
>
> --
> View this message in context: 
> http://n2.nabble.com/Annotations-like-%40Autowired-for-click-frameworks-tp3023740p3023740.html
> Sent from the click-user mailing list archive at Nabble.com.
>
>

Reply via email to