You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org> on 2014/10/11 02:27:35 UTC

[jira] [Closed] (TAP5-1928) zone with formsupport renders hidden input field after first child element and breaks css-styling

     [ https://issues.apache.org/jira/browse/TAP5-1928?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship closed TAP5-1928.
--------------------------------------
    Resolution: Invalid

There are limits to how smart Tapestry can be about placing the hidden field in a valid location; as you've found (and this is documented) sometimes you have to give it a better location.

> zone with formsupport renders hidden input field after first child element and breaks css-styling
> -------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-1928
>                 URL: https://issues.apache.org/jira/browse/TAP5-1928
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3.3
>            Reporter: Benjamin Rosenberger
>            Priority: Trivial
>              Labels: css, form, input, zone
>
> when adding a zone (HiddenFieldLocationRules == RelativeElementPosition.INSIDE) around checkboxes in a form 
> {code}
> ...
> <t:zone t:id="zone">
>    <div t:id="checkBox1"/><t:label for="checkBox1"/>
> </t:zone>
> ...
> {code}
> the hidden-input tag will be rendered after the first child element 
> {code}
> <div id="zone" class="t-zone">
>    <input type="checkbox" name="checkBox1_137352f1806" id="checkBox1_6" disabled="disabled"><label class="inline" for="noteWorkshop_6">Service:</label>
>    <input type="hidden" name="t:formdata" value="...">
>    <label>label</label>
> </div>
> {code}
> which breaks the css selekor
> {code}
> input[type="checkbox"][disabled] + label {
>    ...
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)