This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Is there any requirement to you for the HTML to be generated with type="number"?
because if you use f:converter tag, even though it doesnt render as you expected it will look for the number from the editable feild. During the validation phase of JSF lifecycle, it travese the tree component and decides that there is a child component for this input text component and look look for the type of the text you entered.
but if you explicitly need the HTML to be rendered like the way as you said, you can write your own input text renderer.
No, there is not a way using JSF to generate an inputfield with "type=number".
That's because type="number" isn't legal HTML. Probably the only reason that you can make HTML work with "type=number" at all is that HTML silently ignores garbage HTML and defaults to interpreting it as "type=input".
HTML itself was never intended to be very clever, which is why the JSF input elements were designed to support validators and converters.
Customer surveys are for companies who didn't pay proper attention to begin with.
I wanted to use input type = "number" because I'm using HTML 5.
The reason is the numeric keypad on the IPAD, when the field receives focus when type = "text" it opens the Alpha Numeric, if the type = "number" it opens the numeric only.
I Can customize an inputText generating "type = number" in JSF?
Where can I find a tutorial for custom components?
Oh, and by the way, welcome to the JavaRanch, Daniel!
It's probably not a good idea to attempt HTML5 in JSF at the moment. Just aside from everything else, I don't guarantee that JSF won't generate a conflicting xhtml schema reference at the head of the displayed view, since the stock renderer produces xhtml, not generic HTML. What you'd really need is a set of HTML5 renderers. Presumably, as HTML5 support perks up, a future JSF release will support it.
If you are interesting in getting ahead of the curve, however, you might want to pull down the source code for one of the open-source extension tagsets, such as RichFaces. Also, for that matter, check to see if anyone's working on projects like that. And if, not, why not start one?