tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thiago H. de Paula Figueiredo (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TAP5-2208) BeanEditForm doesn't generate form-group DIVs with block parameters
Date Thu, 31 Oct 2013 14:39:18 GMT

    [ https://issues.apache.org/jira/browse/TAP5-2208?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13810300#comment-13810300
] 

Thiago H. de Paula Figueiredo commented on TAP5-2208:
-----------------------------------------------------

Hi, Lenny!

I think the intention of the override blocks in BeanEditForm and BeanEditor is to give the
user the chance to use whatever markup they want edit that property. For example, I could
use a pair of block overrides to put two sets of label/field in the same line. Doing what
you're suggesting would prevent that. In addition, it would be a big compatibility break.

> BeanEditForm doesn't generate form-group DIVs with block parameters
> -------------------------------------------------------------------
>
>                 Key: TAP5-2208
>                 URL: https://issues.apache.org/jira/browse/TAP5-2208
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.4
>            Reporter: Lenny Primak
>
> When using BeanEditForm with block parameters, i.e.
> {{{
> <t:beaneditform object="xxx">
>                             <p:CreateTextRecord>
> <!-- this DIV should be generated automatically
>                                 <div class="form-group">
> -->
>                                     <t:label id="lbCreateTextRecord" for="CreateTextRecord">
>                                         Create Text Record?
>                                     </t:label>
>                                     <input t:type="CheckBox"
>                                            t:id="CreateTextRecord" value="rr.createTextRecord"
/>
> <!-- END form-group DIV
>                                 </div>
> -->
>                             </p:CreateTextRecord>
> }}}
> div class=form-group is the proper boostrap markup,
> but it's not being generated.
> When block parameters are not used, the form-group DIVs
> are generated correctly



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message