Caucho Forums  

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


Go Back   Caucho Forums > Resin

Reply
 
Thread Tools Display Modes
  #1  
Old 11-06-2013, 02: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.

Example:
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>]
Output:
Code:
[42.00]
[42.00]
[42.00] <-- this one should be empty
[]
Reply With Quote
Reply

Tags
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 03:02 PM.


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