Hi All,
I am trying to format the zipcode by adding a hyphen when its length is more then 5. i.e, 111111111 becomes 11111-1111.
I tried the following code (without synthesizing the bean getters). It gives me the following error while submitting (not while accessing).
"Illegal Syntax for Set Operation" for <h:inputText value="#{Source.zipCode.subSequence(0,5)} - #{Source.zipCode.substring(5)}"> </h:inputText>
I think its not a good idea to combine jstl and
jsf together, but is there a work around for this. Thank you.