webtier@glassfish.java.net

Re: [webtier] How to convert all characters to upper case?

From: Joel Weight <digitaljoel_at_gmail.com>
Date: Tue, 15 Jun 2010 16:54:30 -0600

quick google search gives the following:

Could do it onkeyup for the inputtext
http://www.liewcf.com/javascript-convert-characters-to-uppercase-when-typing-92/

or could modify this to be onblur instead of a button.
http://www.mediacollege.com/internet/javascript/text/case-uppercase.html

Joel

On Tue, Jun 15, 2010 at 4:26 PM, <webtier_at_javadesktop.org> wrote:

> Using a standard text input field
> <h:inputText value="#{calculationResult.request.itemCode}"
> size="20"/>
> in my form.
>
> How can I convert every character keyed in to upper case immediately?
> If this is not possible after each character, how to switch the field
> content to uppercase when leaving the field?
> [Message sent by forum member 'frank_langelage']
>
> http://forums.java.net/jive/thread.jspa?messageID=474393
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net
>
>