Caucho Forums  

This forum is permanently closed because of spam. For free community support, please visit Google Groups:

Go Back   Caucho Forums > Resin

Thread Tools Display Modes
Old 11-06-2013, 01:30 PM
VladV VladV is offline
Junior Member
Join Date: Nov 2013
Posts: 1
Default Resin 4.0.37 bug - fmt:formatNumber

In some cases, it seems, formatNumberTag objects are reused for several tags. If the "value" attribute evaluates to null or empty value, the tag retains its value from the previous instance.
Interstingly, this doesn't happen in the tag body, only in the "value" attribute.

HTML Code:
<c:set var="t" value="42" />
[<fmt:formatNumber minFractionDigits="2" value="${t}" />]
[<fmt:formatNumber minFractionDigits="2">${t}</fmt:formatNumber>]
[<fmt:formatNumber minFractionDigits="2" value="${empty}" />]
[<fmt:formatNumber minFractionDigits="2">${empty}</fmt:formatNumber>]
[42.00] <-- this one should be empty
Reply With Quote

bug, jsp, jstl, resin

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 11:09 AM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.