You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by BTUser <ri...@buzztime.com> on 2009/03/17 22:38:19 UTC
t:include in Tapestry 5.1.0.0
I have noticed a difference in behavior in Grid components between 5.0.18 and
5.1.0.0.
In 5.0.18 the following code worked fine:
<t:grid t:id= "questionGrid"
t:source="gridDataSource"
t:rowsPerPage="10"
row="question"
add="format"
include="format">
<t:parameter name="formatCell">
${format}
</t:parameter>
where "format" is an extra column that are not in the Entity bean.
When I run this using 5.1, I get the following error:
"Render queue error in
SetupRender[content/tags/TagViewEdit:questiongrid.columns]: Bean editor
model for com.buzztime.content.data.QuestionEb does not contain a property
named 'format'."
My Entity bean has more columns than I want to display on the screen. This
is why I would like to set the "include" parameter.
--
View this message in context: http://www.nabble.com/t%3Ainclude-in-Tapestry-5.1.0.0-tp22568411p22568411.html
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: t:include in Tapestry 5.1.0.0
Posted by Howard Lewis Ship <hl...@gmail.com>.
Please add an issue.
On Wed, Mar 25, 2009 at 11:53 AM, Howard Lewis Ship <hl...@gmail.com> wrote:
> I can see your point and I may have to back out the change since it's
> causing trouble in a backwards-incompatibility way. It's unfortunate,
> maybe I can find a way to revert to the old behavior but handle my
> specific case better ... for instance, automatically include any added
> columns.
>
> On Tue, Mar 17, 2009 at 4:28 PM, BTUser <ri...@buzztime.com> wrote:
>>
>> So now, will I have to go through every Grid in my application that uses the
>> Entity bean and use "remove=" to hide the unwanted columns?
>>
>>
>>
>>
>>
>> Howard Lewis Ship wrote:
>>>
>>> Ah, I remember this now. add and include are redundant; remove the
>>> "include".
>>>
>>> The order of operations for add/include shifted between 5.0.18 and
>>> 5.1.0.0. Increasingly, it's looking like you can't make it work
>>> correctly for all use-cases ... in which case, your page should create
>>> the BeanModel once and provide that to the Grid component (that's more
>>> efficient anyway).
>>>
>>> I can see how this may be a problem; you may have to remove="x,y,z"
>>> (the other properties).
>>>
>>> On Tue, Mar 17, 2009 at 2:38 PM, BTUser <ri...@buzztime.com>
>>> wrote:
>>>>
>>>> I have noticed a difference in behavior in Grid components between 5.0.18
>>>> and
>>>> 5.1.0.0.
>>>>
>>>>
>>>> In 5.0.18 the following code worked fine:
>>>>
>>>> <t:grid t:id= "questionGrid"
>>>> t:source="gridDataSource"
>>>> t:rowsPerPage="10"
>>>> row="question"
>>>> add="format"
>>>> include="format">
>>>>
>>>> <t:parameter name="formatCell">
>>>> ${format}
>>>> </t:parameter>
>>>>
>>>> where "format" is an extra column that are not in the Entity bean.
>>>>
>>>> When I run this using 5.1, I get the following error:
>>>>
>>>> "Render queue error in
>>>> SetupRender[content/tags/TagViewEdit:questiongrid.columns]: Bean editor
>>>> model for com.buzztime.content.data.QuestionEb does not contain a
>>>> property
>>>> named 'format'."
>>>>
>>>>
>>>> My Entity bean has more columns than I want to display on the screen.
>>>> This
>>>> is why I would like to set the "include" parameter.
>>>>
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/t%3Ainclude-in-Tapestry-5.1.0.0-tp22568411p22568411.html
>>>> 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
>>>
>>> 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/t%3Ainclude-in-Tapestry-5.1.0.0-tp22568411p22570050.html
>> 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
>
> Creator Apache Tapestry and Apache HiveMind
>
--
Howard M. Lewis Ship
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
Re: t:include in Tapestry 5.1.0.0
Posted by Howard Lewis Ship <hl...@gmail.com>.
I can see your point and I may have to back out the change since it's
causing trouble in a backwards-incompatibility way. It's unfortunate,
maybe I can find a way to revert to the old behavior but handle my
specific case better ... for instance, automatically include any added
columns.
On Tue, Mar 17, 2009 at 4:28 PM, BTUser <ri...@buzztime.com> wrote:
>
> So now, will I have to go through every Grid in my application that uses the
> Entity bean and use "remove=" to hide the unwanted columns?
>
>
>
>
>
> Howard Lewis Ship wrote:
>>
>> Ah, I remember this now. add and include are redundant; remove the
>> "include".
>>
>> The order of operations for add/include shifted between 5.0.18 and
>> 5.1.0.0. Increasingly, it's looking like you can't make it work
>> correctly for all use-cases ... in which case, your page should create
>> the BeanModel once and provide that to the Grid component (that's more
>> efficient anyway).
>>
>> I can see how this may be a problem; you may have to remove="x,y,z"
>> (the other properties).
>>
>> On Tue, Mar 17, 2009 at 2:38 PM, BTUser <ri...@buzztime.com>
>> wrote:
>>>
>>> I have noticed a difference in behavior in Grid components between 5.0.18
>>> and
>>> 5.1.0.0.
>>>
>>>
>>> In 5.0.18 the following code worked fine:
>>>
>>> <t:grid t:id= "questionGrid"
>>> t:source="gridDataSource"
>>> t:rowsPerPage="10"
>>> row="question"
>>> add="format"
>>> include="format">
>>>
>>> <t:parameter name="formatCell">
>>> ${format}
>>> </t:parameter>
>>>
>>> where "format" is an extra column that are not in the Entity bean.
>>>
>>> When I run this using 5.1, I get the following error:
>>>
>>> "Render queue error in
>>> SetupRender[content/tags/TagViewEdit:questiongrid.columns]: Bean editor
>>> model for com.buzztime.content.data.QuestionEb does not contain a
>>> property
>>> named 'format'."
>>>
>>>
>>> My Entity bean has more columns than I want to display on the screen.
>>> This
>>> is why I would like to set the "include" parameter.
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/t%3Ainclude-in-Tapestry-5.1.0.0-tp22568411p22568411.html
>>> 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
>>
>> 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/t%3Ainclude-in-Tapestry-5.1.0.0-tp22568411p22570050.html
> 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
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
Re: t:include in Tapestry 5.1.0.0
Posted by BTUser <ri...@buzztime.com>.
So now, will I have to go through every Grid in my application that uses the
Entity bean and use "remove=" to hide the unwanted columns?
Howard Lewis Ship wrote:
>
> Ah, I remember this now. add and include are redundant; remove the
> "include".
>
> The order of operations for add/include shifted between 5.0.18 and
> 5.1.0.0. Increasingly, it's looking like you can't make it work
> correctly for all use-cases ... in which case, your page should create
> the BeanModel once and provide that to the Grid component (that's more
> efficient anyway).
>
> I can see how this may be a problem; you may have to remove="x,y,z"
> (the other properties).
>
> On Tue, Mar 17, 2009 at 2:38 PM, BTUser <ri...@buzztime.com>
> wrote:
>>
>> I have noticed a difference in behavior in Grid components between 5.0.18
>> and
>> 5.1.0.0.
>>
>>
>> In 5.0.18 the following code worked fine:
>>
>> <t:grid t:id= "questionGrid"
>> t:source="gridDataSource"
>> t:rowsPerPage="10"
>> row="question"
>> add="format"
>> include="format">
>>
>> <t:parameter name="formatCell">
>> ${format}
>> </t:parameter>
>>
>> where "format" is an extra column that are not in the Entity bean.
>>
>> When I run this using 5.1, I get the following error:
>>
>> "Render queue error in
>> SetupRender[content/tags/TagViewEdit:questiongrid.columns]: Bean editor
>> model for com.buzztime.content.data.QuestionEb does not contain a
>> property
>> named 'format'."
>>
>>
>> My Entity bean has more columns than I want to display on the screen.
>> This
>> is why I would like to set the "include" parameter.
>>
>> --
>> View this message in context:
>> http://www.nabble.com/t%3Ainclude-in-Tapestry-5.1.0.0-tp22568411p22568411.html
>> 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
>
> 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/t%3Ainclude-in-Tapestry-5.1.0.0-tp22568411p22570050.html
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: t:include in Tapestry 5.1.0.0
Posted by Howard Lewis Ship <hl...@gmail.com>.
Ah, I remember this now. add and include are redundant; remove the "include".
The order of operations for add/include shifted between 5.0.18 and
5.1.0.0. Increasingly, it's looking like you can't make it work
correctly for all use-cases ... in which case, your page should create
the BeanModel once and provide that to the Grid component (that's more
efficient anyway).
I can see how this may be a problem; you may have to remove="x,y,z"
(the other properties).
On Tue, Mar 17, 2009 at 2:38 PM, BTUser <ri...@buzztime.com> wrote:
>
> I have noticed a difference in behavior in Grid components between 5.0.18 and
> 5.1.0.0.
>
>
> In 5.0.18 the following code worked fine:
>
> <t:grid t:id= "questionGrid"
> t:source="gridDataSource"
> t:rowsPerPage="10"
> row="question"
> add="format"
> include="format">
>
> <t:parameter name="formatCell">
> ${format}
> </t:parameter>
>
> where "format" is an extra column that are not in the Entity bean.
>
> When I run this using 5.1, I get the following error:
>
> "Render queue error in
> SetupRender[content/tags/TagViewEdit:questiongrid.columns]: Bean editor
> model for com.buzztime.content.data.QuestionEb does not contain a property
> named 'format'."
>
>
> My Entity bean has more columns than I want to display on the screen. This
> is why I would like to set the "include" parameter.
>
> --
> View this message in context: http://www.nabble.com/t%3Ainclude-in-Tapestry-5.1.0.0-tp22568411p22568411.html
> 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
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
Re: t:include in Tapestry 5.1.0.0
Posted by BTUser <ri...@buzztime.com>.
I added: "t:row," "t:add," "t:include"...to success.
If I compile with 5.0.18...it works.
If I compile with 5.1.0.0...it doesn't work.
Thiago H. de Paula Figueiredo wrote:
>
> Em Tue, 17 Mar 2009 18:38:19 -0300, BTUser
> <ri...@buzztime.com> escreveu:
>
>> In 5.0.18 the following code worked fine:
>> <t:grid t:id= "questionGrid"
>> t:source="gridDataSource"
>> t:rowsPerPage="10"
>> row="question"
>> add="format"
>> include="format">
>
> I guess this is caused by the new internal XML handling. Try t:include
> instead of just include.
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java consultant, developer, and instructor
> http://www.arsmachina.com.br/thiago
>
> ---------------------------------------------------------------------
> 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/t%3Ainclude-in-Tapestry-5.1.0.0-tp22568411p22569714.html
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: t:include in Tapestry 5.1.0.0
Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
Em Tue, 17 Mar 2009 18:38:19 -0300, BTUser
<ri...@buzztime.com> escreveu:
> In 5.0.18 the following code worked fine:
> <t:grid t:id= "questionGrid"
> t:source="gridDataSource"
> t:rowsPerPage="10"
> row="question"
> add="format"
> include="format">
I guess this is caused by the new internal XML handling. Try t:include
instead of just include.
--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: t:include in Tapestry 5.1.0.0
Posted by Howard Lewis Ship <hl...@gmail.com>.
I can't think of a change that would account for this difference.
That should be ${question.format} inside formatCell.
On Tue, Mar 17, 2009 at 2:38 PM, BTUser <ri...@buzztime.com> wrote:
>
> I have noticed a difference in behavior in Grid components between 5.0.18 and
> 5.1.0.0.
>
>
> In 5.0.18 the following code worked fine:
>
> <t:grid t:id= "questionGrid"
> t:source="gridDataSource"
> t:rowsPerPage="10"
> row="question"
> add="format"
> include="format">
>
> <t:parameter name="formatCell">
> ${format}
> </t:parameter>
>
> where "format" is an extra column that are not in the Entity bean.
>
> When I run this using 5.1, I get the following error:
>
> "Render queue error in
> SetupRender[content/tags/TagViewEdit:questiongrid.columns]: Bean editor
> model for com.buzztime.content.data.QuestionEb does not contain a property
> named 'format'."
>
>
> My Entity bean has more columns than I want to display on the screen. This
> is why I would like to set the "include" parameter.
>
> --
> View this message in context: http://www.nabble.com/t%3Ainclude-in-Tapestry-5.1.0.0-tp22568411p22568411.html
> 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
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