You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Britske <gb...@gmail.com> on 2007/11/14 16:31:21 UTC
T5: referencing embedded Component is null in onActivate(). What am
I missing?
I've got a embedded component (a searchform) on a page. On page.onActivate()
I need to reference this embedded component (to set a couple of its
input-fields based on the url of the page).
However, although the embedded component is correctly set-up in the page I
get a nullPointerException when I try to reference this component from
page.onActivate().
What am I missing here? Perhaps an embedded component isn't bound yet on
onActivate? If so how to explictly bind it?
Thanks in advance,
Geert-Jan
--
View this message in context: http://www.nabble.com/T5%3A-referencing-embedded-Component-is-null-in-onActivate%28%29.-What-am-I-missing--tf4805943.html#a13749145
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: T5: referencing embedded Component is null in onActivate().
What am I missing?
Posted by Britske <gb...@gmail.com>.
hmm, after quickly rebuilding the issue (I removed the component
,component-ref, etc) everything works..
well better than the other way around ;-)
Thanks anyway for the quick response,
Cheers,
Geert-Jan
Howard Lewis Ship wrote:
>
> Show us the code! Also, check your console for warnings.
>
> On Nov 14, 2007 7:31 AM, Britske <gb...@gmail.com> wrote:
>>
>> I've got a embedded component (a searchform) on a page. On
>> page.onActivate()
>> I need to reference this embedded component (to set a couple of its
>> input-fields based on the url of the page).
>> However, although the embedded component is correctly set-up in the page
>> I
>> get a nullPointerException when I try to reference this component from
>> page.onActivate().
>>
>> What am I missing here? Perhaps an embedded component isn't bound yet on
>> onActivate? If so how to explictly bind it?
>>
>> Thanks in advance,
>> Geert-Jan
>> --
>> View this message in context:
>> http://www.nabble.com/T5%3A-referencing-embedded-Component-is-null-in-onActivate%28%29.-What-am-I-missing--tf4805943.html#a13749145
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
>
>
> --
> Howard M. Lewis Ship
> Partner and Senior Architect at Feature50
>
> Creator Apache Tapestry and Apache HiveMind
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/T5%3A-referencing-embedded-Component-is-null-in-onActivate%28%29.-What-am-I-missing--tf4805943.html#a13754530
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: T5: referencing embedded Component is null in onActivate(). What am I missing?
Posted by Howard Lewis Ship <hl...@gmail.com>.
Show us the code! Also, check your console for warnings.
On Nov 14, 2007 7:31 AM, Britske <gb...@gmail.com> wrote:
>
> I've got a embedded component (a searchform) on a page. On page.onActivate()
> I need to reference this embedded component (to set a couple of its
> input-fields based on the url of the page).
> However, although the embedded component is correctly set-up in the page I
> get a nullPointerException when I try to reference this component from
> page.onActivate().
>
> What am I missing here? Perhaps an embedded component isn't bound yet on
> onActivate? If so how to explictly bind it?
>
> Thanks in advance,
> Geert-Jan
> --
> View this message in context: http://www.nabble.com/T5%3A-referencing-embedded-Component-is-null-in-onActivate%28%29.-What-am-I-missing--tf4805943.html#a13749145
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
Howard M. Lewis Ship
Partner and Senior Architect at Feature50
Creator Apache Tapestry and Apache HiveMind
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org