In my application we are using Code - Description format in Inputtext. Customer getting confused to differentiate which is Code and which is Description. So they asked us to differentiate those things like using different colors.
In h:outputText we have attribute called escape="false" to use html tags in the value of outputText.
But in the h:inputText we do not have any attribute like escape="false" to use html tags inside of inputText.
So Please can anyone help me out of this issue that how to show a code and description with different colors in the inputtext of JSF or Primefaces component.
The JSF inputText control is a wrapper around the raw HTML INPUT TYPE=TEXT control.
You can change the background color of the text input field. You can change the foreground color of the text itself. You do this using CSS.
What you CANNOT do is make just one word of the text have a different style from all the other words. That's because if HTML cannot do it, then JSF cannot do it.
In fact, the JavaRanch message editor is such a control, although it's not JSF-based.
Both RichFaces and PrimeFaces provide JSF-based rich input controls. I'm sure other eJSF xtensions do as well, although I don't have a definitive list.
Being persecuted doesn't in any way prove your righteousness or your beliefs. Many people get persecuted because they are repugnant or annoying. Or just because they can be.
What kind of corn soldier are you? And don't say "kernel" - that's only for this tiny ad: