You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Chris Bartlett (JIRA)" <ji...@apache.org> on 2010/07/05 08:29:50 UTC

[jira] Commented: (PIVOT-561) The Form.Section Heading is not displaying for the first Section of a Form.

    [ https://issues.apache.org/jira/browse/PIVOT-561?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12885117#action_12885117 ] 

Chris Bartlett commented on PIVOT-561:
--------------------------------------

The Terra (default) Form skin hides the first section heading by default, although I'm not sure why.
It can be enabled  by setting the 'showFirstSectionHeading' boolean style on the Form element.

<Form xmlns:bxml="http://pivot.apache.org/bxml"
    xmlns="org.apache.pivot.wtk"
    styles="{showFirstSectionHeading:true}">
    <sections>
        <Form.Section heading="Personal Information">
            <BoxPane wtkx:id="nameBoxPane" Form.label="Name">
                <TextInput wtkx:id="lastNameTextInput" prompt="Last"/>
                <TextInput wtkx:id="firstNameTextInput" prompt="First"/>
            </BoxPane>
        </Form.Section>
        <!-- Snip... -->
        <Form.Section heading="Phone Numbers">
            <TextInput Form.label="Home"/>
            <TextInput Form.label="Work"/>
        </Form.Section>
        <Form.Section heading="Email Addresses">
            <TextInput Form.label="Home"
                Form.flag="{messageType:'info', message:'We won\'t spam you!'}"/>
            <TextInput Form.label="Work"/>
        </Form.Section>
    </sections>
</Form>



> The Form.Section Heading is not displaying for the first Section of a Form.
> ---------------------------------------------------------------------------
>
>                 Key: PIVOT-561
>                 URL: https://issues.apache.org/jira/browse/PIVOT-561
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk
>    Affects Versions: 1.5
>         Environment: Java Version 6 Update 18, Windows Vista SP2,  Chrome and Internet Explorer 8
>            Reporter: Graeme Collis
>
> The Form.Section Heading is not displaying for the first Section of a Form.
> Below is the xml from the "Component Explorer Example" : http://pivot.apache.org/demos/component-explorer.html
> The Form has 4 Sections each with a heading.
> The first Section heading, "Personal Information", is not displaying.
>         <Form.Section heading="Personal Information">
> All the other Section Headings are displaying.
>         <Form.Section heading="Addresses">
>         <Form.Section heading="Phone Numbers">
>         <Form.Section heading="Email Addresses">
> Full "wtkx"
> <Form xmlns:wtkx="http://pivot.apache.org/wtkx"
>     xmlns="org.apache.pivot.wtk">
>     <sections>
>         <Form.Section heading="Personal Information">
>             <BoxPane wtkx:id="nameBoxPane" Form.label="Name">
>                 <TextInput wtkx:id="lastNameTextInput" prompt="Last"/>
>                 <TextInput wtkx:id="firstNameTextInput" prompt="First"/>
>             </BoxPane>
>         </Form.Section>
>         <Form.Section heading="Addresses">
>             <BoxPane Form.label="Home" orientation="vertical">
>                 <TextInput prompt="Street" textSize="24"/>
>                 <BoxPane>
>                     <TextInput prompt="City"/>
>                     <TextInput prompt="State" textSize="6"/>
>                     <TextInput prompt="Zip" textSize="10"/>
>                 </BoxPane>
>             </BoxPane>
>             <BoxPane Form.label="Work" orientation="vertical">
>                 <TextInput prompt="Street" textSize="24"/>
>                 <BoxPane>
>                     <TextInput prompt="City"/>
>                     <TextInput prompt="State" textSize="6"/>
>                     <TextInput prompt="Zip" textSize="10"/>
>                 </BoxPane>
>             </BoxPane>
>         </Form.Section>
>         <Form.Section heading="Phone Numbers">
>             <TextInput Form.label="Home"/>
>             <TextInput Form.label="Work"/>
>         </Form.Section>
>         <Form.Section heading="Email Addresses">
>             <TextInput Form.label="Home"
>                 Form.flag="{messageType:'info', message:'We won\'t spam you!'}"/>
>             <TextInput Form.label="Work"/>
>         </Form.Section>
>     </sections>
> </Form>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.