empty block in grid - how?

2008-06-25 Thread Udo Abel
Hi,

I wanted to define a message as a replacement of the default empty-message in 
the Grid component, but I could not find any hint on how to define such a 
block. Casting the parameter to message or literal does not work.

Btw., I think the documentations lacks some essential information. E.g., I 
searched the internet quite a while in order to find out how an onclick 
handler can be called from a Link. Just by chance I came across an example from 
which I concluded that any parameter of a PageLink not interpreted by Tapestry, 
is literally taken into the a tag. Another example is the context 
parameter, for which the documentations says that it can be an array - but 
there's no explanation whatsoever on how one can define it as an array. Again, 
only after long searches I found that there is a list: prefix, that regrettably 
isn't part of tapestry yet.
I'm sure, the authors of the documentation are just too familiar with tapestry 
to recognize that a new user just don't know HOW to do it, when they say e.g. 
define a block.

Regards,
Udo.

-- 
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: empty block in grid - how?

2008-06-25 Thread Thiago H. de Paula Figueiredo
Em Wed, 25 Jun 2008 12:06:03 -0300, Udo Abel [EMAIL PROTECTED]  
escreveu:



Hi,

I wanted to define a message as a replacement of the default  
empty-message in the Grid component, but I could not find any hint on  
how to define such a block. Casting the parameter to message or  
literal does not work.


It is not a parameter that you set in the tag. Example:

table
t:type=Grid
t:source=...

t:parameter name=empty
p
No result found
/p
/t:parameter

/table

Thiago

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]