Hi, I uploaded a "DbLabelTag contrib" to the sourceforge patch tracking system
http://sourceforge.net/tracker/index.php?group_id=17608&atid=317608 http://sourceforge.net/tracker/index.php?func=detail&aid=602059&group_id=17608&atid=317608 Here's the archive's README: --- cut here --- --- cut here --- --- cut here --- --- cut here --- Hi, I modified the org.dbforms.taglib.DbLabelTag (jsp's label tag) class source to support the "format" attribute, like the DbBaseHandlerTag subclasses do. Now you can format the value of this tag using an instance of the the java.text.Format (sub)class. Example: <%@ page import="java.text.*"> <% ... my stuff ... DecimalFormat euroFormat = new DecimalFormat("##,##0.00"); %> ... dbforms declarations ... ... dbforms body .... <%-- here's my price value (formatted !) --%> <db:label fieldName="PRICE" format="<%=euroFormat %>"/> € P.S.: I used the pretty printer function of JRefactory to format the class source. So I put here the entire source. (from dbforms v1.1.2) I watched the CVS web interface... it seems nobody modified it... To add the format attribute to the tag library descriptor, edit the "etc/taglib_docu.xml" file, and add to the label tag the following attribute: <!-- Fossato, 2002-08-29 --> <attribute> <name>format</name> <required>false</required> <rtexprvalue>true</rtexprvalue> <info> <p>java.text.Format object used to format the tag value</p> </info> </attribute> and regenerate the tld with the "generate_taglib" ant task (result is: "dist/dbforms.tld"). --- cut here --- --- cut here --- --- cut here --- --- cut here --- Luca Fossato ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ DbForms Mailing List http://www.wap-force.net/dbforms
