This content has been marked as final.
Show 2 replies
-
1. Re: Money input component
daniel.soneira Feb 13, 2008 6:18 AM (in response to thejavafreak)the only way (that I know of) to input an amount is doing like this:
<h:inputText value="#{BackingBean.amount}"> <s:convertNumber type="currency" maxFractionDigits="2" groupingUsed="true"/> </h:inputText>
s:convertNumber is a tag from http://myfaces.apache.org/sandbox.
This will NOT prevent the user from typing in characters when he presses a key within the input field. But the validation / conversion will show him an error, when he submits the form. -
2. Re: Money input component
thejavafreak Feb 13, 2008 7:34 AM (in response to thejavafreak)Thanks,
I thought I can do this in ajax4jsf or richfaces.
:)