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

[jira] Created: (PIVOT-561) The Form.Section Heading is not displaying for the first Section of a 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.


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

Posted by "Greg Brown (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIVOT-561?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12885384#action_12885384 ] 

Greg Brown commented on PIVOT-561:
----------------------------------

I think it makes sense to re-open this issue as an improvement and eliminate the "showFirstSectionHeading" style in favor of the logic above. If you agree, please feel free to do so.

BTW, styles are just the Java bean properties of the skin, so you can look at the skin's Javadoc to see what styles are supported.

Thanks,
Greg


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


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

Posted by "Noel Grandin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIVOT-561?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12885298#action_12885298 ] 

Noel Grandin commented on PIVOT-561:
------------------------------------

I tend to agree with Graeme - it may be typographically more elegant, but it's definitely surprising behaviour.

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


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

Posted by "Graeme Collis (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIVOT-561?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12885122#action_12885122 ] 

Graeme Collis commented on PIVOT-561:
-------------------------------------

Yes,

setting the styles attribute on the Form element as shown worked for me.

styles="{showFirstSectionHeading:true}"


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


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

Posted by "Greg Brown (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-561?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Greg Brown resolved PIVOT-561.
------------------------------

    Fix Version/s: 2.0
       Resolution: Fixed

> 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
>             Fix For: 2.0
>
>
> 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.


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

Posted by "Chris Bartlett (JIRA)" <ji...@apache.org>.
    [ 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.


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

Posted by "Chris Bartlett (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIVOT-561?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12885117#action_12885117 ] 

Chris Bartlett edited comment on PIVOT-561 at 7/5/10 2:32 AM:
--------------------------------------------------------------

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:wtkx="http://pivot.apache.org/wtkx" 
    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>



      was (Author: cbartlett):
    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.


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

Posted by "Greg Brown (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIVOT-561?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12885191#action_12885191 ] 

Greg Brown commented on PIVOT-561:
----------------------------------

The reason the first section heading is hidden by default is simply because in many cases, it looks odd to show it. It's similar to writing a document - you generally don't following a heading immediately with a sub-heading:

<h1>Heading</h1>
<h2>Sub-heading 1</h2>
<p>...</p>
<h2>Sub-heading 2</h2>
<p>...</p>



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


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

Posted by "Greg Brown (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-561?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Greg Brown reopened PIVOT-561:
------------------------------


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


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

Posted by "Graeme Collis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-561?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Graeme Collis closed PIVOT-561.
-------------------------------

    Resolution: Not A Problem

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


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

Posted by "Graeme Collis (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIVOT-561?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12885393#action_12885393 ] 

Graeme Collis commented on PIVOT-561:
-------------------------------------

I agree re-opening the issue as an improvement.

The improvement being eliminating the "showFirstSectionHeading" style in preference for not showing a separator if the heading property on Form.Section is not set.

At the very least having the "showFirstSectionHeading" style on Form default to true.

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


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

Posted by "Greg Brown (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIVOT-561?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12885311#action_12885311 ] 

Greg Brown commented on PIVOT-561:
----------------------------------

OK, fair enough. However, what about the case when the first section doesn't have a heading? I don't think we want to show a separator in that case. Maybe we should determine the first heading's visibility based on the heading value? If non-null, show the heading, otherwise don't show it?


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


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

Posted by "Graeme Collis (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIVOT-561?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12885371#action_12885371 ] 

Graeme Collis commented on PIVOT-561:
-------------------------------------

I currently develop *Form Based* applications in Swing, SWT/JFace(Eclipse RCP) and JSF and are looking at moving it all to Pivot. So after a lot of UI work I found the default behavior of not showing the heading non-intuitive. I would have thought if I didn't want a heading then all I would do is not supply the attribute as in Greg's last post.

If you look at JGoodies Styles which group sections of Forms or Eclipse preference pages then the majority of groupings come with headings.

I also find that having the setting showFirstSectionHeading as a "Styles property" of Form a bit obtuse. I was looking for it on Section. Though this may just be me going through the learning cycle. The only place I seem to be able to find information on Styles is in the Component Explorer.



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