[ http://jira.codehaus.org/browse/DISPL-319?page=comments#action_62844 ] 

Bård Dybwad Kristensen commented on DISPL-319:
----------------------------------------------

Hi

I see that I have posted something wrong in this issue. In the generated html I 
have submitted, the caption tag has a class attribute. This is of cource wrong. 
The point of the defect is that this class attribute og the caption tag is NOT 
rendered. :-)

When is version 1.1.1 due for release? We need this fix in my project :-)

> table:caption does not work properly
> ------------------------------------
>
>          Key: DISPL-319
>          URL: http://jira.codehaus.org/browse/DISPL-319
>      Project: DisplayTag
>         Type: Bug

>   Components: HTML Generation
>     Versions: 1.1
>     Reporter: Bård Dybwad Kristensen
>      Fix For: 1.1.1

>
>
> The caption of a table is not rendered correctly in version 1.1. No 
> attributes of the caption tag is rendered. This works in version 1.0. I have 
> debugged the code, and it seems that the ELCaptionTag is released, in which 
> the attributeMap is cleared, before the tableTag has written the html.
> So the captionTag is set on the tableTag, but is cleared before it is used by 
> the tableTag for rendering html.
> The following code:
> <div class="adresse">
>    <display:table id="item" name="sessionScope.sessionScopePerson.adresser" 
> sort="list" class="tabell-helskjermbredde">
>       <display:setProperty name="basic.msg.empty_list_row">
>          <tr>
>             <td class="standard_data_tabell_data_venstre" colspan="{0}">
>                <fmt:message key="tabell.tomliste" />
>             </td>
>          </tr>
>       </display:setProperty>
>       <display:caption class="overskrift">
>          <fmt:message key="ord.adresse" />
>       </display:caption>
>       <display:column titleKey="ord.adresselinje" 
> headerStyleClass="beskrivelse" class="standard_data_tabell_data" 
> sortable="false" property="adresselinje"                                      
>          decorator="no.nav.personkort.web.formatter.CapitalizeDecorator" />
>    </display:table>
> </div>
> renders the following html:
> <div class="adresse">
>    <table class="tabell-helskjermbredde" id="item">
>       <caption class="overskrift">
>          Adresse
>       </caption>
>       <thead>
>          <tr>
>          <th class="beskrivelse">
>             Adresselinje
>          </th>
>          <tbody> 
>          <tr>
>             <td class="standard_data_tabell_data_venstre" colspan="1">
>                Søket ga ingen treff
>             </td>
>          </tr>
>       </tbody>
>    </table>
> </div>
> The class attribut of the captionTag is not rendered at all.
> This is a bug, right?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
displaytag-devel mailing list
displaytag-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to