It worked but with a caveat!  I can not use the injected service in page
constructor.

I have a question:
I know there are onRender() and init() lifecycle methods. Which is the  best
place to create/add components on?

What activities should go into which method (init(), onRender(), and page
constructor)?

Josh.

On Mon, Jul 11, 2011 at 4:36 PM, Josh Kamau <[email protected]> wrote:

> Thanks Gilberto.
>
> The link helped. Am working on it now.
>
> Josh.
>
>
> On Mon, Jul 11, 2011 at 4:07 PM, Gilberto <[email protected]> wrote:
>
>> I think this[1] discussion can help.
>>
>> Regards,
>>
>> Gilberto
>>
>> [1]
>> http://click.1134972.n2.nabble.com/Click-Guice-Integration-td1136305.html#a1136315
>>
>> On Mon, Jul 11, 2011 at 10:04 AM, Josh Kamau <[email protected]>
>> wrote:
>> > Hi
>> >
>> > I have just started learning apache click. Kindly tell me, how do i
>> > integrate with google guice in such a way that i can inject services
>> into
>> > pages and components?
>> >
>> > Josh.
>> >
>> >
>>
>
>

Reply via email to