You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Moritz Gmelin <mo...@gmx.de> on 2008/02/28 22:47:43 UTC
[T5] Changing default renderer for boolean in Grid and BeanDisplay
Hi,
maybe this is for the FAQ....
I can't seem to find a way to tell Tapestry 5 to render all boolean
elements in my beans as YES and NO instead of TRUE and FALSE in Grids
and BeanDisplays.
Setting an extra "parameter cell" for all boolean columns in my grids
is probably not the T5-way to do it.....
thanks for more insights.
Moritz
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [T5] Changing default renderer for boolean in Grid and BeanDisplay
Posted by Howard Lewis Ship <hl...@gmail.com>.
I'm working on a service to allow for overriding the blocks.
Contributing a duplicate value into the configuration is haphazard, as
it is affected by the order of operations, which isn't always known.
I agree about the naming; my first thought on data type was to name it
after the control used, but I'm about to add an issue to rename
"checkbox" to "boolean" to reflect the data type. The names have
changed over time as the concepts behind the names have become more
refined.
On Thu, Feb 28, 2008 at 4:18 PM, Moritz Gmelin <mo...@gmx.de> wrote:
> Hi,
>
> This was hard.
>
> The line for booleans must be
>
> configuration.add(new BeanBlockContribution("checkbox",
> "AppPropertyDisplayBlocks", "boolean", false));
>
> Where I would have expected
>
> configuration.add(new BeanBlockContribution("boolean",
> "AppPropertyDisplayBlocks", "boolean", false));
>
> for a property of type "boolean"
>
> ......Might be good for the FAQ
>
> M.
>
> Am 29.02.2008 um 00:27 schrieb Robert Zeigler:
>
>
>
> > You can do the same trick for display components, as well.
> > The main difference is in the following line from the wiki:
> > configuration.add(new BeanBlockContribution("date",
> > "AppPropertyEditBlocks", "date", true));
> > The last parameter is true if the contribution is for an "edit"
> > contribution, and false for a "view" contribution.
> >
> > Robert
> >
> > On Feb 28, 2008, at 2/285:18 PM , Moritz Gmelin wrote:
> >
> >> Hm,
> >>
> >> I can see this having an influence on how the BeanEditor behaves. OK.
> >>
> >> But my question was how to change the default renderer for Grids
> >> and BeanDisplay components...
> >>
> >> M.
> >>
> >>
> >> Am 28.02.2008 um 23:13 schrieb Davor Hrg:
> >>
> >>> it's just what this mailing list is about :)
> >>>
> >>>
> >>> On 2/28/08, Moritz Gmelin <mo...@gmx.de> wrote:
> >>>> Great! Now guess who posted the question leading to this answer :-)
> >>>>
> >>>> M.
> >>>>
> >>>> Am 28.02.2008 um 23:02 schrieb Davor Hrg:
> >>>>
> >>>>> here's tutorial for date (by SvenHomburg)
> >>>>>
> >>>>> http://wiki.apache.org/tapestry/Tapestry5LocalizedDateField
> >>>>>
> >>>>> use it to do it for boolean
> >>>>>
> >>>>> Davor Hrg
> >>>>>
> >>>>> On 2/28/08, Moritz Gmelin <mo...@gmx.de> wrote:
> >>>>>> Hi,
> >>>>>>
> >>>>>> maybe this is for the FAQ....
> >>>>>>
> >>>>>> I can't seem to find a way to tell Tapestry 5 to render all
> >>>>>> boolean
> >>>>>> elements in my beans as YES and NO instead of TRUE and FALSE in
> >>>>>> Grids
> >>>>>> and BeanDisplays.
> >>>>>> Setting an extra "parameter cell" for all boolean columns in my
> >>>>>> grids
> >>>>>> is probably not the T5-way to do it.....
> >>>>>>
> >>>>>> thanks for more insights.
> >>>>>>
> >>>>>> Moritz
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> ---------------------------------------------------------------------
> >>>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >>>>>> For additional commands, e-mail: users-help@tapestry.apache.org
> >>>>>>
> >>>>>>
> >>>>>
> >>>>> ---------------------------------------------------------------------
> >>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >>>>> For additional commands, e-mail: users-help@tapestry.apache.org
> >>>>
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >>>> For additional commands, e-mail: users-help@tapestry.apache.org
> >>>>
> >>>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >>> For additional commands, e-mail: users-help@tapestry.apache.org
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >> For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > 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: [T5] Changing default renderer for boolean in Grid and BeanDisplay
Posted by Moritz Gmelin <mo...@gmx.de>.
Hi,
This was hard.
The line for booleans must be
configuration.add(new BeanBlockContribution("checkbox",
"AppPropertyDisplayBlocks", "boolean", false));
Where I would have expected
configuration.add(new BeanBlockContribution("boolean",
"AppPropertyDisplayBlocks", "boolean", false));
for a property of type "boolean"
......Might be good for the FAQ
M.
Am 29.02.2008 um 00:27 schrieb Robert Zeigler:
> You can do the same trick for display components, as well.
> The main difference is in the following line from the wiki:
> configuration.add(new BeanBlockContribution("date",
> "AppPropertyEditBlocks", "date", true));
> The last parameter is true if the contribution is for an "edit"
> contribution, and false for a "view" contribution.
>
> Robert
>
> On Feb 28, 2008, at 2/285:18 PM , Moritz Gmelin wrote:
>
>> Hm,
>>
>> I can see this having an influence on how the BeanEditor behaves. OK.
>>
>> But my question was how to change the default renderer for Grids
>> and BeanDisplay components...
>>
>> M.
>>
>>
>> Am 28.02.2008 um 23:13 schrieb Davor Hrg:
>>
>>> it's just what this mailing list is about :)
>>>
>>>
>>> On 2/28/08, Moritz Gmelin <mo...@gmx.de> wrote:
>>>> Great! Now guess who posted the question leading to this answer :-)
>>>>
>>>> M.
>>>>
>>>> Am 28.02.2008 um 23:02 schrieb Davor Hrg:
>>>>
>>>>> here's tutorial for date (by SvenHomburg)
>>>>>
>>>>> http://wiki.apache.org/tapestry/Tapestry5LocalizedDateField
>>>>>
>>>>> use it to do it for boolean
>>>>>
>>>>> Davor Hrg
>>>>>
>>>>> On 2/28/08, Moritz Gmelin <mo...@gmx.de> wrote:
>>>>>> Hi,
>>>>>>
>>>>>> maybe this is for the FAQ....
>>>>>>
>>>>>> I can't seem to find a way to tell Tapestry 5 to render all
>>>>>> boolean
>>>>>> elements in my beans as YES and NO instead of TRUE and FALSE in
>>>>>> Grids
>>>>>> and BeanDisplays.
>>>>>> Setting an extra "parameter cell" for all boolean columns in my
>>>>>> grids
>>>>>> is probably not the T5-way to do it.....
>>>>>>
>>>>>> thanks for more insights.
>>>>>>
>>>>>> Moritz
>>>>>>
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>>>
>>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
Re: [T5] Changing default renderer for boolean in Grid and BeanDisplay
Posted by Robert Zeigler <ro...@scazdl.org>.
You can do the same trick for display components, as well.
The main difference is in the following line from the wiki:
configuration.add(new BeanBlockContribution("date",
"AppPropertyEditBlocks", "date", true));
The last parameter is true if the contribution is for an "edit"
contribution, and false for a "view" contribution.
Robert
On Feb 28, 2008, at 2/285:18 PM , Moritz Gmelin wrote:
> Hm,
>
> I can see this having an influence on how the BeanEditor behaves. OK.
>
> But my question was how to change the default renderer for Grids and
> BeanDisplay components...
>
> M.
>
>
> Am 28.02.2008 um 23:13 schrieb Davor Hrg:
>
>> it's just what this mailing list is about :)
>>
>>
>> On 2/28/08, Moritz Gmelin <mo...@gmx.de> wrote:
>>> Great! Now guess who posted the question leading to this answer :-)
>>>
>>> M.
>>>
>>> Am 28.02.2008 um 23:02 schrieb Davor Hrg:
>>>
>>>> here's tutorial for date (by SvenHomburg)
>>>>
>>>> http://wiki.apache.org/tapestry/Tapestry5LocalizedDateField
>>>>
>>>> use it to do it for boolean
>>>>
>>>> Davor Hrg
>>>>
>>>> On 2/28/08, Moritz Gmelin <mo...@gmx.de> wrote:
>>>>> Hi,
>>>>>
>>>>> maybe this is for the FAQ....
>>>>>
>>>>> I can't seem to find a way to tell Tapestry 5 to render all
>>>>> boolean
>>>>> elements in my beans as YES and NO instead of TRUE and FALSE in
>>>>> Grids
>>>>> and BeanDisplays.
>>>>> Setting an extra "parameter cell" for all boolean columns in my
>>>>> grids
>>>>> is probably not the T5-way to do it.....
>>>>>
>>>>> thanks for more insights.
>>>>>
>>>>> Moritz
>>>>>
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>>
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [T5] Changing default renderer for boolean in Grid and BeanDisplay
Posted by Moritz Gmelin <mo...@gmx.de>.
Hm,
I can see this having an influence on how the BeanEditor behaves. OK.
But my question was how to change the default renderer for Grids and
BeanDisplay components...
M.
Am 28.02.2008 um 23:13 schrieb Davor Hrg:
> it's just what this mailing list is about :)
>
>
> On 2/28/08, Moritz Gmelin <mo...@gmx.de> wrote:
>> Great! Now guess who posted the question leading to this answer :-)
>>
>> M.
>>
>> Am 28.02.2008 um 23:02 schrieb Davor Hrg:
>>
>>> here's tutorial for date (by SvenHomburg)
>>>
>>> http://wiki.apache.org/tapestry/Tapestry5LocalizedDateField
>>>
>>> use it to do it for boolean
>>>
>>> Davor Hrg
>>>
>>> On 2/28/08, Moritz Gmelin <mo...@gmx.de> wrote:
>>>> Hi,
>>>>
>>>> maybe this is for the FAQ....
>>>>
>>>> I can't seem to find a way to tell Tapestry 5 to render all boolean
>>>> elements in my beans as YES and NO instead of TRUE and FALSE in
>>>> Grids
>>>> and BeanDisplays.
>>>> Setting an extra "parameter cell" for all boolean columns in my
>>>> grids
>>>> is probably not the T5-way to do it.....
>>>>
>>>> thanks for more insights.
>>>>
>>>> Moritz
>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [T5] Changing default renderer for boolean in Grid and BeanDisplay
Posted by Davor Hrg <hr...@gmail.com>.
it's just what this mailing list is about :)
On 2/28/08, Moritz Gmelin <mo...@gmx.de> wrote:
> Great! Now guess who posted the question leading to this answer :-)
>
> M.
>
> Am 28.02.2008 um 23:02 schrieb Davor Hrg:
>
> > here's tutorial for date (by SvenHomburg)
> >
> > http://wiki.apache.org/tapestry/Tapestry5LocalizedDateField
> >
> > use it to do it for boolean
> >
> > Davor Hrg
> >
> > On 2/28/08, Moritz Gmelin <mo...@gmx.de> wrote:
> >> Hi,
> >>
> >> maybe this is for the FAQ....
> >>
> >> I can't seem to find a way to tell Tapestry 5 to render all boolean
> >> elements in my beans as YES and NO instead of TRUE and FALSE in Grids
> >> and BeanDisplays.
> >> Setting an extra "parameter cell" for all boolean columns in my grids
> >> is probably not the T5-way to do it.....
> >>
> >> thanks for more insights.
> >>
> >> Moritz
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >> For additional commands, e-mail: users-help@tapestry.apache.org
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [T5] Changing default renderer for boolean in Grid and BeanDisplay
Posted by Moritz Gmelin <mo...@gmx.de>.
Great! Now guess who posted the question leading to this answer :-)
M.
Am 28.02.2008 um 23:02 schrieb Davor Hrg:
> here's tutorial for date (by SvenHomburg)
>
> http://wiki.apache.org/tapestry/Tapestry5LocalizedDateField
>
> use it to do it for boolean
>
> Davor Hrg
>
> On 2/28/08, Moritz Gmelin <mo...@gmx.de> wrote:
>> Hi,
>>
>> maybe this is for the FAQ....
>>
>> I can't seem to find a way to tell Tapestry 5 to render all boolean
>> elements in my beans as YES and NO instead of TRUE and FALSE in Grids
>> and BeanDisplays.
>> Setting an extra "parameter cell" for all boolean columns in my grids
>> is probably not the T5-way to do it.....
>>
>> thanks for more insights.
>>
>> Moritz
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [T5] Changing default renderer for boolean in Grid and BeanDisplay
Posted by Davor Hrg <hr...@gmail.com>.
here's tutorial for date (by SvenHomburg)
http://wiki.apache.org/tapestry/Tapestry5LocalizedDateField
use it to do it for boolean
Davor Hrg
On 2/28/08, Moritz Gmelin <mo...@gmx.de> wrote:
> Hi,
>
> maybe this is for the FAQ....
>
> I can't seem to find a way to tell Tapestry 5 to render all boolean
> elements in my beans as YES and NO instead of TRUE and FALSE in Grids
> and BeanDisplays.
> Setting an extra "parameter cell" for all boolean columns in my grids
> is probably not the T5-way to do it.....
>
> thanks for more insights.
>
> Moritz
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org