You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Dmitriy Vsekhvalnov <dv...@gmail.com> on 2011/04/14 17:12:26 UTC
T5: upgrade to 5.1.0.8-SNAPSHOT issue
Hi all,
just upgraded application to 5.1.0.8-SNAPSHOT, and got weird error for
components that includes ZoneUpdater (
http://tinybits.blogspot.com/2010/03/new-and-better-zoneupdater.html)
org.apache.tapestry5.ioc.internal.util.TapestryException: Parameter(s)
'ZoneUpdater.zone' are required for
org.apache.tapestry5.corelib.components.Select, but have not been bound.
But it bound :) If i change parameter definition to:
@Parameter(defaultPrefix = BindingConstants.LITERAL, required = false)
private String zone;
it works perfectly.
Is it something known (5.1.0.5 was working as expected) ?
Re: T5: upgrade to 5.1.0.8-SNAPSHOT issue
Posted by Howard Lewis Ship <hl...@gmail.com>.
Yes, the ability to disambiguate parameters in this way has always been present.
On Thu, Apr 14, 2011 at 8:50 AM, Dmitriy Vsekhvalnov
<dv...@gmail.com> wrote:
> works like a charm. thanks.
>
> Is it backward compatible with 5.1.0.5 (i mean zoneupdater.zone='whatever')
> ?
>
> On Thu, Apr 14, 2011 at 7:30 PM, Taha Hafeez <ta...@gmail.com>wrote:
>
>> Hi
>>
>> In 5.1.0.6 a parameter zone was added to Select. So in your case both
>> Select
>> component and mixin ZoneUpdater have 'zone' as parameter.In tapestry, if
>> both component and mixin have the same parameter name, the parameter is
>> assigned to the component and mixin does not get the parameter.
>>
>> As ZoneUpdater does not get any value for 'zone' and 'zone' parameter is
>> required , it complains.
>>
>> You can specify the parameter for zoneupdater as
>> zoneupdater.zone='whatever'
>>
>> http://tapestry.apache.org/component-mixins.html
>>
>> regards
>> Taha
>>
>>
>> On Thu, Apr 14, 2011 at 8:42 PM, Dmitriy Vsekhvalnov <
>> dvsekhvalnov@gmail.com
>> > wrote:
>>
>> > Hi all,
>> > just upgraded application to 5.1.0.8-SNAPSHOT, and got weird error for
>> > components that includes ZoneUpdater (
>> > http://tinybits.blogspot.com/2010/03/new-and-better-zoneupdater.html)
>> >
>> > org.apache.tapestry5.ioc.internal.util.TapestryException: Parameter(s)
>> > 'ZoneUpdater.zone' are required for
>> > org.apache.tapestry5.corelib.components.Select, but have not been bound.
>> >
>> > But it bound :) If i change parameter definition to:
>> >
>> > @Parameter(defaultPrefix = BindingConstants.LITERAL, required = false)
>> > private String zone;
>> >
>> >
>> > it works perfectly.
>> >
>> > Is it something known (5.1.0.5 was working as expected) ?
>> >
>>
>
--
Howard M. Lewis Ship
Creator of Apache Tapestry
The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!
(971) 678-5210
http://howardlewisship.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: T5: upgrade to 5.1.0.8-SNAPSHOT issue
Posted by Dmitriy Vsekhvalnov <dv...@gmail.com>.
works like a charm. thanks.
Is it backward compatible with 5.1.0.5 (i mean zoneupdater.zone='whatever')
?
On Thu, Apr 14, 2011 at 7:30 PM, Taha Hafeez <ta...@gmail.com>wrote:
> Hi
>
> In 5.1.0.6 a parameter zone was added to Select. So in your case both
> Select
> component and mixin ZoneUpdater have 'zone' as parameter.In tapestry, if
> both component and mixin have the same parameter name, the parameter is
> assigned to the component and mixin does not get the parameter.
>
> As ZoneUpdater does not get any value for 'zone' and 'zone' parameter is
> required , it complains.
>
> You can specify the parameter for zoneupdater as
> zoneupdater.zone='whatever'
>
> http://tapestry.apache.org/component-mixins.html
>
> regards
> Taha
>
>
> On Thu, Apr 14, 2011 at 8:42 PM, Dmitriy Vsekhvalnov <
> dvsekhvalnov@gmail.com
> > wrote:
>
> > Hi all,
> > just upgraded application to 5.1.0.8-SNAPSHOT, and got weird error for
> > components that includes ZoneUpdater (
> > http://tinybits.blogspot.com/2010/03/new-and-better-zoneupdater.html)
> >
> > org.apache.tapestry5.ioc.internal.util.TapestryException: Parameter(s)
> > 'ZoneUpdater.zone' are required for
> > org.apache.tapestry5.corelib.components.Select, but have not been bound.
> >
> > But it bound :) If i change parameter definition to:
> >
> > @Parameter(defaultPrefix = BindingConstants.LITERAL, required = false)
> > private String zone;
> >
> >
> > it works perfectly.
> >
> > Is it something known (5.1.0.5 was working as expected) ?
> >
>
Re: T5: upgrade to 5.1.0.8-SNAPSHOT issue
Posted by Taha Hafeez <ta...@gmail.com>.
Hi
In 5.1.0.6 a parameter zone was added to Select. So in your case both Select
component and mixin ZoneUpdater have 'zone' as parameter.In tapestry, if
both component and mixin have the same parameter name, the parameter is
assigned to the component and mixin does not get the parameter.
As ZoneUpdater does not get any value for 'zone' and 'zone' parameter is
required , it complains.
You can specify the parameter for zoneupdater as zoneupdater.zone='whatever'
http://tapestry.apache.org/component-mixins.html
regards
Taha
On Thu, Apr 14, 2011 at 8:42 PM, Dmitriy Vsekhvalnov <dvsekhvalnov@gmail.com
> wrote:
> Hi all,
> just upgraded application to 5.1.0.8-SNAPSHOT, and got weird error for
> components that includes ZoneUpdater (
> http://tinybits.blogspot.com/2010/03/new-and-better-zoneupdater.html)
>
> org.apache.tapestry5.ioc.internal.util.TapestryException: Parameter(s)
> 'ZoneUpdater.zone' are required for
> org.apache.tapestry5.corelib.components.Select, but have not been bound.
>
> But it bound :) If i change parameter definition to:
>
> @Parameter(defaultPrefix = BindingConstants.LITERAL, required = false)
> private String zone;
>
>
> it works perfectly.
>
> Is it something known (5.1.0.5 was working as expected) ?
>