Thanks Thiago - the CSS idea you mention sounds promising, though rather
than using something IE doesn't support, I'll just float-left and clear-left
the fields divs using CSS, use some JS to identify the button div and
clear-both that one - this seems to do the trick in the small set of cases
that I require - thanks for the pointers.

Regards,
Jim.

-----Original Message-----
From: Thiago H. de Paula Figueiredo [mailto:[email protected]]
Sent: 07 December 2009 11:45
To: Tapestry users
Subject: Re: BeanEditForm - multi col?


Em Mon, 07 Dec 2009 08:01:26 -0200, Jim O'Callaghan
<[email protected]> escreveu:

> Hi,

Hi!

> I'm trying to maximise screen real estate in some pages and was
> wondering if
> there is an easy way to make the BEF multi-col - even two col would do
> the trick - any getter annotations etc. to get it to close one div and
> start
> another - thanks.

You can do that using CSS 3 and the nth-of-type() pseudoselector
(http://reference.sitepoint.com/css/pseudoclass-nthoftype) to only clear
the 2n <div class="t-beaneditor-row>, but Internet Explorer doesn't
support it. The other solution would be change the CSS classes through
Javascript.

BeanEditForm and BeanEditor are meant to be simple, so they don't support
what you want out of the box.

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, software architect and developer, Ars Machina Tecnologia da
Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
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]

Reply via email to