I have a problem with convertNumber and type="currency".
This is the situation:
I have two command links. First have to display price in euros, and second have to display price in pounds
<a4j:commandLink actionListener="#{userSession.settingEuroPrice}" value="Euro Value" reRender="form"/>
<a4j:commandLink actionListener="#{userSession.settingPoundPrice}" value="Pound Value" reRender="form"/>
<h:outputText value="#{userSession.price}" >
<f:convertNumber type="currency" currencySymbol="#{userSession.currencySign}"/>
</h:outputText>
private String currencySign;
private double price;
public void settingEuroPrice(ActionEvent event){
currencySign = "\u20AC";
price = 1000;
}
public void settingPoundPrice(ActionEvent event){
currencySign = "\u00A3";
price = 2000;
}
public String getCurrencySign() {
return currencySign;
}