You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Jim O'Callaghan <jc...@yahoo.co.uk> on 2009/12/07 11:01:26 UTC

BeanEditForm - multi col?

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.

Regards,
Jim.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: BeanEditForm - multi col?

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
Em Mon, 07 Dec 2009 13:37:22 -0200, Jim O'Callaghan  
<jc...@yahoo.co.uk> escreveu:

> Thanks Thiago

You're welcome!

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

That's a nice solution. :) Don't forget the labels.

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

Instead of using Javascript to find the button, use BeanEditor instead and  
create the submit button yourself. BeanEditForm is just a Form with an  
Errors component, a BeanEditor and a submit button.

-- 
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: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


RE: BeanEditForm - multi col?

Posted by Jim O'Callaghan <jc...@yahoo.co.uk>.
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:thiagohp@gmail.com]
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
<jc...@yahoo.co.uk> 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: 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: BeanEditForm - multi col?

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
Em Mon, 07 Dec 2009 08:01:26 -0200, Jim O'Callaghan  
<jc...@yahoo.co.uk> 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: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org