You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Manfred Geiler (JIRA)" <de...@myfaces.apache.org> on 2007/11/08 15:44:50 UTC

[jira] Created: (MYFACES-1764) always render if a datatable has no rows to stay html/xhtml dtd conformant?

always render <tr><td> if a datatable has no rows to stay html/xhtml dtd conformant?
------------------------------------------------------------------------------------

                 Key: MYFACES-1764
                 URL: https://issues.apache.org/jira/browse/MYFACES-1764
             Project: MyFaces Core
          Issue Type: Improvement
          Components: General
            Reporter: Manfred Geiler
            Priority: Minor


According to dtd (html and xhtml) a <tbody> must not be empty. it must at least have one <tr> which must at least have one <td>.
And in xhtml each <table> must have a <tbody>.
So, what should the dataTable render when there is a rowCount of 0?

Perhaps just rendering <tbody><tr><td></td></tr></tbody> is ok? Empty cells won't be rendered anyway.
But is it really ok for all browsers?

WDYT?


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


[jira] Commented: (MYFACES-1764) always render if a datatable has no rows to stay html/xhtml dtd conformant?

Posted by "Manfred Geiler (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-1764?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12541064 ] 

Manfred Geiler commented on MYFACES-1764:
-----------------------------------------

Did some tests with Firefox 2.0.0.9 and IE 6.
Looks ok and http://validator.w3.org/ is now happy with dataTables that render no rows.


> always render <tr><td> if a datatable has no rows to stay html/xhtml dtd conformant?
> ------------------------------------------------------------------------------------
>
>                 Key: MYFACES-1764
>                 URL: https://issues.apache.org/jira/browse/MYFACES-1764
>             Project: MyFaces Core
>          Issue Type: Improvement
>          Components: General
>            Reporter: Manfred Geiler
>            Priority: Minor
>         Attachments: always_tr_in_tbody.patch
>
>
> According to dtd (html and xhtml) a <tbody> must not be empty. it must at least have one <tr> which must at least have one <td>.
> And in xhtml each <table> must have a <tbody>.
> So, what should the dataTable render when there is a rowCount of 0?
> Perhaps just rendering <tbody><tr><td></td></tr></tbody> is ok? Empty cells won't be rendered anyway.
> But is it really ok for all browsers?
> WDYT?

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


[jira] Updated: (MYFACES-1764) always render if a datatable has no rows to stay html/xhtml dtd conformant?

Posted by "Manfred Geiler (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/MYFACES-1764?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Manfred Geiler updated MYFACES-1764:
------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.2.1-SNAPSHOT
                    1.1.6-SNAPSHOT
         Assignee: Manfred Geiler
           Status: Resolved  (was: Patch Available)

applied the patch

> always render <tr><td> if a datatable has no rows to stay html/xhtml dtd conformant?
> ------------------------------------------------------------------------------------
>
>                 Key: MYFACES-1764
>                 URL: https://issues.apache.org/jira/browse/MYFACES-1764
>             Project: MyFaces Core
>          Issue Type: Improvement
>          Components: General
>            Reporter: Manfred Geiler
>            Assignee: Manfred Geiler
>            Priority: Minor
>             Fix For:  1.1.6-SNAPSHOT, 1.2.1-SNAPSHOT
>
>         Attachments: always_tr_in_tbody.patch
>
>
> According to dtd (html and xhtml) a <tbody> must not be empty. it must at least have one <tr> which must at least have one <td>.
> And in xhtml each <table> must have a <tbody>.
> So, what should the dataTable render when there is a rowCount of 0?
> Perhaps just rendering <tbody><tr><td></td></tr></tbody> is ok? Empty cells won't be rendered anyway.
> But is it really ok for all browsers?
> WDYT?

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


[jira] Updated: (MYFACES-1764) always render if a datatable has no rows to stay html/xhtml dtd conformant?

Posted by "Manfred Geiler (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/MYFACES-1764?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Manfred Geiler updated MYFACES-1764:
------------------------------------

    Status: Patch Available  (was: Open)

> always render <tr><td> if a datatable has no rows to stay html/xhtml dtd conformant?
> ------------------------------------------------------------------------------------
>
>                 Key: MYFACES-1764
>                 URL: https://issues.apache.org/jira/browse/MYFACES-1764
>             Project: MyFaces Core
>          Issue Type: Improvement
>          Components: General
>            Reporter: Manfred Geiler
>            Priority: Minor
>         Attachments: always_tr_in_tbody.patch
>
>
> According to dtd (html and xhtml) a <tbody> must not be empty. it must at least have one <tr> which must at least have one <td>.
> And in xhtml each <table> must have a <tbody>.
> So, what should the dataTable render when there is a rowCount of 0?
> Perhaps just rendering <tbody><tr><td></td></tr></tbody> is ok? Empty cells won't be rendered anyway.
> But is it really ok for all browsers?
> WDYT?

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