You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by sheikh hossain <sh...@gmail.com> on 2016/05/27 17:55:09 UTC

Tapestry5.4.1 Exception : ParameterParameter 'selected' of component is bound to null.

Not sure what I am doing wrong.
I am getting this exception from .tml file

Parameter 'selected' of component zone/Edit:stores is bound to null. This
parameter is not allowed to be null.

In my .tml file I have


<style>
DIV.t-palette SELECT { width: 300px; }
</style>


- - - - -

- - - - -

<t:palette t:id="stores" selected="stores" encoder="storeEncoder"
model="storesModel"

t:deselect="context:images/arrow_left_new.png" validate="required"

t:select="context:images/arrow_right_new.png"  >


In my java class I have:

@Property
    private List<Store> stores;  // Store is a simple pojo

The class doesn't have any 'selected' variable but does have some
'onSelectedXXXX' method.


I have checked other posts related to the same issue but those are not
exactly the same problem.
I will appreciate any suggestion.

Thanks.

Re: Tapestry5.4.1 Exception : ParameterParameter 'selected' of component is bound to null.

Posted by sheikh hossain <sh...@gmail.com>.
After changing our code to make sure 'stores' is not null it works now.

Thanks so much !!

On Fri, May 27, 2016 at 2:53 PM, sheikh hossain <sh...@gmail.com> wrote:

> Thank you Cezary! For the quick response and providing the insights.
>
> Indeed we are upgrading our tapestry from version 5.1.0.5 to the 5.4.
>
> I will check our code .
>
> On Fri, May 27, 2016 at 2:38 PM, Cezary Biernacki <ce...@gmail.com>
> wrote:
>
>> You are using Palette component from Tapestry. It has a parameter called
>> "selected" that must be provided with non-null value. In your case it is
>> bound to your "stores" field. You must ensure that "stores" is always
>> non-null. Note that, according to the documentation, before T5.4
>> "selected"
>> was allowed to be null, so if your application was working before with
>> Tapestry 5.3 (or older), you need to change your code appropriately.
>>
>> Best regards,
>> Cezary
>>
>>
>>
>>
>>
>> On Fri, May 27, 2016 at 7:55 PM, sheikh hossain <sh...@gmail.com>
>> wrote:
>>
>> > Not sure what I am doing wrong.
>> > I am getting this exception from .tml file
>> >
>> > Parameter 'selected' of component zone/Edit:stores is bound to null.
>> This
>> > parameter is not allowed to be null.
>> >
>> > In my .tml file I have
>> >
>> >
>> > <style>
>> > DIV.t-palette SELECT { width: 300px; }
>> > </style>
>> >
>> >
>> > - - - - -
>> >
>> > - - - - -
>> >
>> > <t:palette t:id="stores" selected="stores" encoder="storeEncoder"
>> > model="storesModel"
>> >
>> > t:deselect="context:images/arrow_left_new.png" validate="required"
>> >
>> > t:select="context:images/arrow_right_new.png"  >
>> >
>> >
>> > In my java class I have:
>> >
>> > @Property
>> >     private List<Store> stores;  // Store is a simple pojo
>> >
>> > The class doesn't have any 'selected' variable but does have some
>> > 'onSelectedXXXX' method.
>> >
>> >
>> > I have checked other posts related to the same issue but those are not
>> > exactly the same problem.
>> > I will appreciate any suggestion.
>> >
>> > Thanks.
>> >
>>
>
>

Re: Tapestry5.4.1 Exception : ParameterParameter 'selected' of component is bound to null.

Posted by sheikh hossain <sh...@gmail.com>.
Thank you Cezary! For the quick response and providing the insights.

Indeed we are upgrading our tapestry from version 5.1.0.5 to the 5.4.

I will check our code .

On Fri, May 27, 2016 at 2:38 PM, Cezary Biernacki <ce...@gmail.com>
wrote:

> You are using Palette component from Tapestry. It has a parameter called
> "selected" that must be provided with non-null value. In your case it is
> bound to your "stores" field. You must ensure that "stores" is always
> non-null. Note that, according to the documentation, before T5.4 "selected"
> was allowed to be null, so if your application was working before with
> Tapestry 5.3 (or older), you need to change your code appropriately.
>
> Best regards,
> Cezary
>
>
>
>
>
> On Fri, May 27, 2016 at 7:55 PM, sheikh hossain <sh...@gmail.com>
> wrote:
>
> > Not sure what I am doing wrong.
> > I am getting this exception from .tml file
> >
> > Parameter 'selected' of component zone/Edit:stores is bound to null. This
> > parameter is not allowed to be null.
> >
> > In my .tml file I have
> >
> >
> > <style>
> > DIV.t-palette SELECT { width: 300px; }
> > </style>
> >
> >
> > - - - - -
> >
> > - - - - -
> >
> > <t:palette t:id="stores" selected="stores" encoder="storeEncoder"
> > model="storesModel"
> >
> > t:deselect="context:images/arrow_left_new.png" validate="required"
> >
> > t:select="context:images/arrow_right_new.png"  >
> >
> >
> > In my java class I have:
> >
> > @Property
> >     private List<Store> stores;  // Store is a simple pojo
> >
> > The class doesn't have any 'selected' variable but does have some
> > 'onSelectedXXXX' method.
> >
> >
> > I have checked other posts related to the same issue but those are not
> > exactly the same problem.
> > I will appreciate any suggestion.
> >
> > Thanks.
> >
>

Re: Tapestry5.4.1 Exception : ParameterParameter 'selected' of component is bound to null.

Posted by Cezary Biernacki <ce...@gmail.com>.
You are using Palette component from Tapestry. It has a parameter called
"selected" that must be provided with non-null value. In your case it is
bound to your "stores" field. You must ensure that "stores" is always
non-null. Note that, according to the documentation, before T5.4 "selected"
was allowed to be null, so if your application was working before with
Tapestry 5.3 (or older), you need to change your code appropriately.

Best regards,
Cezary





On Fri, May 27, 2016 at 7:55 PM, sheikh hossain <sh...@gmail.com> wrote:

> Not sure what I am doing wrong.
> I am getting this exception from .tml file
>
> Parameter 'selected' of component zone/Edit:stores is bound to null. This
> parameter is not allowed to be null.
>
> In my .tml file I have
>
>
> <style>
> DIV.t-palette SELECT { width: 300px; }
> </style>
>
>
> - - - - -
>
> - - - - -
>
> <t:palette t:id="stores" selected="stores" encoder="storeEncoder"
> model="storesModel"
>
> t:deselect="context:images/arrow_left_new.png" validate="required"
>
> t:select="context:images/arrow_right_new.png"  >
>
>
> In my java class I have:
>
> @Property
>     private List<Store> stores;  // Store is a simple pojo
>
> The class doesn't have any 'selected' variable but does have some
> 'onSelectedXXXX' method.
>
>
> I have checked other posts related to the same issue but those are not
> exactly the same problem.
> I will appreciate any suggestion.
>
> Thanks.
>