You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Tam Du (JIRA)" <ji...@apache.org> on 2009/05/15 03:32:45 UTC

[jira] Created: (TAP5-700) Improve Grid component of Tapestry

Improve Grid component of Tapestry
----------------------------------

                 Key: TAP5-700
                 URL: https://issues.apache.org/jira/browse/TAP5-700
             Project: Tapestry 5
          Issue Type: Improvement
            Reporter: Tam Du


When using Grid component of Tapestry, I found that we should have an option to display/not display the header of the Grid. The reason of this requirement is: when developing my product, in some cases, I need to use Grid but I don't want to display the header of that grid.
For example, I use Tapestry to write the list topic page of this website http://62.101.68.227:8888/snippetrepobrowser/, the header of Grid is unnecessary.

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


[jira] Commented: (TAP5-700) Improve Grid component of Tapestry

Posted by "Tam Du (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12709753#action_12709753 ] 

Tam Du commented on TAP5-700:
-----------------------------

I'll try using your suggested component.

Besides, I found that some users are acquainted with using Grid component and sometimes they want to control the display of the Grid header. I think that it may be easy to serve this requirement. 
We can add a new attribute for Grid; the attribute name is "showHeader". 
If showHeader ="true", the header is visible; if showHeader="false", the header is hidden. 
Here is the example:

<table t:type="Grid" t:source="weathers" 
       t:showHeader="false"
       t:row="weather" t:rowsPerPage="2" 
       t:pagerPosition="top" 
       t:add="edit, delete" 
       t:include="cityName, weatherType, weatherTemperature, visible, weatherTypeModifiedDate"
       style="margin:0px auto;" 
       width="95%" t:rowClass="prop:evenodd.next">
. . .
</table>


> Improve Grid component of Tapestry
> ----------------------------------
>
>                 Key: TAP5-700
>                 URL: https://issues.apache.org/jira/browse/TAP5-700
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.1.0.5, 5.0.18
>            Reporter: Tam Du
>
> When using Grid component of Tapestry, I found that we should have an option to display/not display the header of the Grid. The reason of this requirement is: when developing my product, in some cases, I need to use Grid but I don't want to display the header of that grid.
> For example, I use Tapestry to write the list topic page of this website http://62.101.68.227:8888/snippetrepobrowser/, the header of Grid is unnecessary.

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


[jira] Commented: (TAP5-700) Improve Grid component of Tapestry

Posted by "Thiago H. de Paula Figueiredo (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12709665#action_12709665 ] 

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

Use the Loop component instead of Grid in this case. If you want pagination, use the PagedLoop from ChenilleKit.

> Improve Grid component of Tapestry
> ----------------------------------
>
>                 Key: TAP5-700
>                 URL: https://issues.apache.org/jira/browse/TAP5-700
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.1.0.5, 5.0.18
>            Reporter: Tam Du
>
> When using Grid component of Tapestry, I found that we should have an option to display/not display the header of the Grid. The reason of this requirement is: when developing my product, in some cases, I need to use Grid but I don't want to display the header of that grid.
> For example, I use Tapestry to write the list topic page of this website http://62.101.68.227:8888/snippetrepobrowser/, the header of Grid is unnecessary.

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


[jira] Commented: (TAP5-700) Improve Grid component of Tapestry

Posted by "Geoff Callender (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12866141#action_12866141 ] 

Geoff Callender commented on TAP5-700:
--------------------------------------

A workaround is to hide the header with css:

TABLE.t-data-grid THEAD TR TH {
    display: none;
}

or, if you use grid's class parameter, eg. t:class="weatherlist", then your css can be:

.weatherlist th {
    display: none;
}


> Improve Grid component of Tapestry
> ----------------------------------
>
>                 Key: TAP5-700
>                 URL: https://issues.apache.org/jira/browse/TAP5-700
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.1.0.5, 5.0.18
>            Reporter: Tam Du
>
> When using Grid component of Tapestry, I found that we should have an option to display/not display the header of the Grid. The reason of this requirement is: when developing my product, in some cases, I need to use Grid but I don't want to display the header of that grid.
> For example, I use Tapestry to write the list topic page of this website http://62.101.68.227:8888/snippetrepobrowser/, the header of Grid is unnecessary.

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


[jira] Updated: (TAP5-700) Improve Grid component of Tapestry

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

Tam Du updated TAP5-700:
------------------------

          Component/s: tapestry-core
    Affects Version/s: 5.1.0.5
                       5.0.18

> Improve Grid component of Tapestry
> ----------------------------------
>
>                 Key: TAP5-700
>                 URL: https://issues.apache.org/jira/browse/TAP5-700
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.1.0.5, 5.0.18
>            Reporter: Tam Du
>
> When using Grid component of Tapestry, I found that we should have an option to display/not display the header of the Grid. The reason of this requirement is: when developing my product, in some cases, I need to use Grid but I don't want to display the header of that grid.
> For example, I use Tapestry to write the list topic page of this website http://62.101.68.227:8888/snippetrepobrowser/, the header of Grid is unnecessary.

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


[jira] Commented: (TAP5-700) Improve Grid component of Tapestry

Posted by "Thiago H. de Paula Figueiredo (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12709665#action_12709665 ] 

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

Use the Loop component instead of Grid in this case. If you want pagination, use the PagedLoop from ChenilleKit.

> Improve Grid component of Tapestry
> ----------------------------------
>
>                 Key: TAP5-700
>                 URL: https://issues.apache.org/jira/browse/TAP5-700
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.1.0.5, 5.0.18
>            Reporter: Tam Du
>
> When using Grid component of Tapestry, I found that we should have an option to display/not display the header of the Grid. The reason of this requirement is: when developing my product, in some cases, I need to use Grid but I don't want to display the header of that grid.
> For example, I use Tapestry to write the list topic page of this website http://62.101.68.227:8888/snippetrepobrowser/, the header of Grid is unnecessary.

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


[jira] Updated: (TAP5-700) Improve Grid component of Tapestry

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

Tam Du updated TAP5-700:
------------------------

          Component/s: tapestry-core
    Affects Version/s: 5.1.0.5
                       5.0.18

> Improve Grid component of Tapestry
> ----------------------------------
>
>                 Key: TAP5-700
>                 URL: https://issues.apache.org/jira/browse/TAP5-700
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.1.0.5, 5.0.18
>            Reporter: Tam Du
>
> When using Grid component of Tapestry, I found that we should have an option to display/not display the header of the Grid. The reason of this requirement is: when developing my product, in some cases, I need to use Grid but I don't want to display the header of that grid.
> For example, I use Tapestry to write the list topic page of this website http://62.101.68.227:8888/snippetrepobrowser/, the header of Grid is unnecessary.

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


[jira] Commented: (TAP5-700) Improve Grid component of Tapestry

Posted by "Tam Du (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12709753#action_12709753 ] 

Tam Du commented on TAP5-700:
-----------------------------

I'll try using your suggested component.

Besides, I found that some users are acquainted with using Grid component and sometimes they want to control the display of the Grid header. I think that it may be easy to serve this requirement. 
We can add a new attribute for Grid; the attribute name is "showHeader". 
If showHeader ="true", the header is visible; if showHeader="false", the header is hidden. 
Here is the example:

<table t:type="Grid" t:source="weathers" 
       t:showHeader="false"
       t:row="weather" t:rowsPerPage="2" 
       t:pagerPosition="top" 
       t:add="edit, delete" 
       t:include="cityName, weatherType, weatherTemperature, visible, weatherTypeModifiedDate"
       style="margin:0px auto;" 
       width="95%" t:rowClass="prop:evenodd.next">
. . .
</table>


> Improve Grid component of Tapestry
> ----------------------------------
>
>                 Key: TAP5-700
>                 URL: https://issues.apache.org/jira/browse/TAP5-700
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.1.0.5, 5.0.18
>            Reporter: Tam Du
>
> When using Grid component of Tapestry, I found that we should have an option to display/not display the header of the Grid. The reason of this requirement is: when developing my product, in some cases, I need to use Grid but I don't want to display the header of that grid.
> For example, I use Tapestry to write the list topic page of this website http://62.101.68.227:8888/snippetrepobrowser/, the header of Grid is unnecessary.

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


[jira] Commented: (TAP5-700) Improve Grid component of Tapestry

Posted by "Geoff Callender (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12866141#action_12866141 ] 

Geoff Callender commented on TAP5-700:
--------------------------------------

A workaround is to hide the header with css:

TABLE.t-data-grid THEAD TR TH {
    display: none;
}

or, if you use grid's class parameter, eg. t:class="weatherlist", then your css can be:

.weatherlist th {
    display: none;
}


> Improve Grid component of Tapestry
> ----------------------------------
>
>                 Key: TAP5-700
>                 URL: https://issues.apache.org/jira/browse/TAP5-700
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.1.0.5, 5.0.18
>            Reporter: Tam Du
>
> When using Grid component of Tapestry, I found that we should have an option to display/not display the header of the Grid. The reason of this requirement is: when developing my product, in some cases, I need to use Grid but I don't want to display the header of that grid.
> For example, I use Tapestry to write the list topic page of this website http://62.101.68.227:8888/snippetrepobrowser/, the header of Grid is unnecessary.

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