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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]