I have tried to implement this using a mixin, but it gets too complicated for 
my taste.

The problem is that the each label and component has to be surrounded with <div 
class='col-md-XX'> (for example)
which requires really digging around elements with MarkupWriter (error prone)

I think BeanEditor should be able to support horizontal bootstrap layout of of 
the box.
I updated the issue: https://issues.apache.org/jira/browse/TAP5-2182
with what I've discovered so far (mostly what Howard already said in this 
discussion)


On Sep 23, 2013, at 8:51 PM, Lenny Primak wrote:

> Is there a solution for this that's easier than writing a mixin?
> Seems like the mixin solution is an overkill.
> 
> I remember in the past there was a discussion of CSS styles being too 
> specific by default.
> Any way just to make it a simple CSS rule somewhere?
> 
>> For BeanEditor you would have to do this with a mixin. The mixin might take 
>> some work but it could then be added go all the BeanEditors 
>> 
>> On Monday, September 16, 2013, Lenny Primak wrote: 
>> 
>>> I think this should be the default, at least for compatibility's sake. 
>>> Sounds like a lot of custom styling just to make it look like it used to 
>>> in T5.3 
>>> 
>>> On Sep 16, 2013, at 11:35 AM, Howard Lewis Ship wrote: 
>>> 
>>>> This is part of using Boostrap; which is mobile-first and therefore likes 
>>>> everything stacked vertically and full width.  Add "form-horizontal" to 
>>> the 
>>>> [BeanEdit]Form and the layout will look nicer.  You have to wrap the 
>>>> form-control elements in .col-md-N (md for medium device size) to keep 
>>> them 
>>>> from being 100% wide. 
>>>> 
>>>> 
>>>> On Sun, Sep 15, 2013 at 8:41 PM, Lenny Primak <[hidden 
>>>> email]<javascript:;> 
>>>> wrote: 
>>>> 
>>>>> Hi guys, 
>>>>> 
>>>>> I noticed something else that's not as pretty out of the box in T5.4 due 
>>>>> to bootstrap probably 
>>>>> 
>>>>> In T5.3, beaneditor looks something like this: 
>>>>> 
>>>>> Label [Input Text] 
>>>>> Label [Input Text] 
>>>>> 
>>>>> In T5.4, it looks like this: 
>>>>> 
>>>>> Label 
>>>>> [Input Text ........ (takes up the whole width of the page)] 
>>>>> Label 
>>>>> [Input Text ........ (takes up the whole width of the page)] 
>>>>> 
>>>>> 
>>>>> I think this should be fixed out of the box 
>>>>> 
>>>>> Issue created: https://issues.apache.org/jira/browse/TAP5-2182
>>>>> --------------------------------------------------------------------- 
>>>>> To unsubscribe, e-mail: [hidden email]<javascript:;> 
>>>>> For additional commands, e-mail: [hidden email]<javascript:;> 
>>>>> 
>>>>> 
>>>> 
>>>> 
>>>> -- 
>>>> Howard M. Lewis Ship 
>>>> 
>>>> Creator of Apache Tapestry 
>>>> 
>>>> The source for Tapestry training, mentoring and support. Contact me to 
>>>> learn how I can get you up and productive in Tapestry fast! 
>>>> 
>>>> (971) 678-5210 
>>>> http://howardlewisship.com
>>> 


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

Reply via email to