Hello David..
Sorry if this not the answer of your problem,

But I do much like to format the column content using basic SQL
statement before send it to the List Object  for displaytag.

For example in SQL Statement in MySQL syntax :

SELECT FORMAT(amounts,0) as amounts, DATE_FORMAT(dates,'%d/%m/%Y') as dates
FROM yourtable ....

and then the displaytag just only display the formatted column.


Regards
Irwan


On 7/26/06, David Hernandez <[EMAIL PROTECTED]> wrote:
> Hi all,
> I am trying to format some columns in displaytag 1.1 (amounts, dates...)
> using the "format" attribute directly but I always get the same error:
>
>
>
>  org.apache.jasper.JasperException:
> /TratamientoImpagadosTecnicosporCliente.jsp(314,1) No se
> puede encontrar el método de escritura para el atributo: format (Can`t find
> the writing method for the attribute: format)
>
>
>
> org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
>
>
> org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)
>
>
> org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:150)
>
>
> org.apache.jasper.compiler.Generator$GenerateVisitor.evaluateAttribute(Generator.java:2677)
>
>
> org.apache.jasper.compiler.Generator$GenerateVisitor.generateSetters(Generator.java:2825)
>
>
> org.apache.jasper.compiler.Generator$GenerateVisitor.generateCustomStart(Generator.java:2158)
>
>
> org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1669)...
>
>
>
>
>  And the code is:
>
>  < display:table sort = "list"  name = "imp" pagesize = "9" >
>
>        < display:column property = "nominal" sortable = "true" format =
> "{0,number,currency}" />
>
>  </ display:table >
>
>
>  Is there any prerequisite to take care?
>
> Thanks in advance,
>
>
>  David Hernandez
>
>
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> _______________________________________________
> displaytag-user mailing list
> displaytag-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>
>
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to