Sorry, forgot to add this:

   Reason why he chose to go for that approach of @Autowire and other
annotations, is that @SpringBean does not support Spring Beans based on the
Provider interface.

   I guess this could be fixed on wicket-spring.

   I will talk to him and see if we can issue a ticket on JIRA.

But Jeremy, I wanted to read more about your approach.

Cheers,

Bruno Borges
www.brunoborges.com.br
+55 21 76727099

"The glory of great men should always be
measured by the means they have used to
acquire it."
 - Francois de La Rochefoucauld



On Wed, Feb 23, 2011 at 10:09 AM, Bruno Borges <bruno.bor...@gmail.com>wrote:

> Don't you use @SpringBean on pages/panels ??
>
> Why and how do you accomplish things?
>
>
> Bruno Borges
> www.brunoborges.com.br
> +55 21 76727099
>
> "The glory of great men should always be
> measured by the means they have used to
> acquire it."
>  - Francois de La Rochefoucauld
>
>
>
> On Tue, Feb 22, 2011 at 7:22 PM, Jeremy Thomerson <
> jer...@wickettraining.com> wrote:
>
>>
>> On Tue, Feb 22, 2011 at 4:10 PM, Bruno Borges <bruno.bor...@gmail.com>wrote:
>>
>>> If enough documentation is supplied, to state that usage of such
>>> annotations
>>> can only be used this way:
>>>
>>> class MyPage extends WebPage {
>>>  @Autowired
>>>  private transient MyService service;
>>> }
>>>
>>
>> People don't read documentation :)
>>
>>
>>> Annotations like @Configured (at type level of panels, pages and
>>> components
>>> in general) and @Component would be ignored (or reported).
>>>
>>> Is this feature still inviable?
>>>
>>
>> Most of the places I use services are in my IDataProvider and IModel
>> implementations.  For that, you need the proxy.  Why muddy the waters with
>> one way for components and one way for non-components?
>>
>> --
>> Jeremy Thomerson
>> http://wickettraining.com
>> *Need a CMS for Wicket?  Use Brix! http://brixcms.org*
>>
>>
>>
>

Reply via email to