[richfaces-issues] [JBoss JIRA] Created: (RF-5384) Currency symbol disappears after re-render of formatted currency
Jonathan Moores (JIRA)
jira-events at lists.jboss.org
Mon Dec 15 05:10:36 EST 2008
Currency symbol disappears after re-render of formatted currency
----------------------------------------------------------------
Key: RF-5384
URL: https://jira.jboss.org/jira/browse/RF-5384
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.0
Environment: Windows Vista x64, TC 6.0.18, JSF 1.2_10, RF 3.3.0 BETA 4, IE7, FF 3, Chrome
Reporter: Jonathan Moores
After re-render (clicking the save button) the currency symbol is missing.
I can post the bean code as well but its pretty simple.
- The saveBasket method is empty.
- The basketItemModel returns an ArrayList<BasketItem>() wrapped in ListDataModel
- BasketItem is just a bean
I also tried the following code for the euro symbol: &_ #x20ac; &_ euro;
<f:view>
<a4j:outputPanel>
<h:form id="myform">
<h:panelGrid>
<a4j:commandLink id="saveBasketButton" actionListener="#{basketBean.saveBasket}"
styleClass="linkButton pad10"
reRender="myform">
<h:outputText value="Save"/>
</a4j:commandLink>
</h:panelGrid>
<rich:dataTable
id="orderItemsDataTable"
value="#{basketBean.basketItemModel}" var="basketItem"
onRowMouseOver="this.style.backgroundColor='#ECF3FE'"
onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'"
rowClasses="cur" footerClass="footer" width="100%" rowKeyVar="rowKeyVar">
<rich:column sortable="false" width="75px">
<f:facet name="header"><h:outputText value="Price"
style="font-weight:bold;"/></f:facet>
<h:outputText value="#{basketItem.price}">
<f:convertNumber pattern="€ ##0.00"/>
</h:outputText>
</rich:column>
<rich:column sortable="false" width="75px">
<f:facet name="header"><h:outputText value="Price"
style="font-weight:bold;"/></f:facet>
<h:outputText value="#{basketItem.price}">
<f:convertNumber type="currency" currencySymbol="€" maxFractionDigits="2" minFractionDigits="2"
minIntegerDigits="2" groupingUsed="true"/>
</h:outputText>
</rich:column>
</rich:dataTable>
</h:form>
</a4j:outputPanel>
</f:view>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list