The lightbox idea is cool. So is the AddGridRow component idea, if my
users can't stand the idea of a pop-up dialog. I gave it a quick try and
it works well, produces valid html. (And it hides the ugly markup from the
template, to preserve a facade of self-respect.)
Thanks, y'all.
Continuing the "pragmatic" approach but still requiring valid HTML...
// Component Java (no tml)
// Ends current row and starts a new one
@SupportsInformalParameters
public class AddGridRow {
void beginRender(MarkupWriter writer) {
writer.writeRaw("");
}
}
// Usage
I don't think that is valid HTML (tr inside tr).
I find that a lightbox can be a nice way of doing crud for a grid. When you
click on a read only row, you show a bean editor in a lightbox
http://www.opensourcehunter.com/2010/06/25/40-javascript-lightbox-scriptsincluded-jquery-and-mootools/
But c
Thanks. But me being a "pragmatic" programmer (aka lazy), I solved it by
inelegantly stuffing the extra row tags into the last grid cell, like:
Last cell's contents
On Wed, Jun 13, 2012 at 4:05 PM, Lance Java wrote:
> You could write a mixin which manipulates
You could write a mixin which manipulates the table's DOM after the grid has
rendered. For each grid row you could create an extra row and move selected
cells into the second row.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Grid-with-split-rows-tp5713853p5713857.html