| Author |
onblur attribute is not working
|
Sijesh Alayaril
Greenhorn
Joined: Jan 13, 2012
Posts: 13
|
|
onblur attribute is not working for h:inputText..I'm unable to copy the code here ..if any one know the solution let me know
|
 |
Sijesh Alayaril
Greenhorn
Joined: Jan 13, 2012
Posts: 13
|
|
|
Its bit urgent for me any one can help me ..its great!!!
|
 |
Tim Holloway
Saloon Keeper
Joined: Jun 25, 2001
Posts: 12513
|
|
Sorry, the JavaRanch isn't the place to ask questions that need answers in 30 minutes or less. We're all unpaid volunteers and we come and go on whatever schedules are convenient for us. For guaranteed response time, you need a paid support service.
Except maybe for a certain very well-known financial software company I could name where the customer forum has managed to avoid serving up a simple answer to what version of their software does what for an entire month now.
However, paid or not, if you don't get an answer on the JavaRanch in 2-3 days it's usually because no one knows one, not because the (un)paid support staff is ignoring you, so here's my answer.
No, onblur works just fine on JSF input control tags and I use it extensively for h:inputText.
Without seeing your code, I can only guess, but two of the more common problems are these:
1. JSF View Definition Language is XML. Some JavaScript code can require things that produce invalid HTML. For example:
cannot be used because the "<" looks like an XML "magic character" - one of the 5 characters in XML that have restricted use. Instead, code:
The use of the "<" entity avoid XML problems and converts to the proper javascript code (<) on the output HTML.
A second common problem has to do with locating DOM elements by ID. JSF permits the same ID to be used in multiple places because it supports something known as a naming container. Things like forms, dataTables, and panelGrids are all naming containers. When an item within a naming container is compiled its HTML ID is a concatenation of its simple ID plus the IDs of the set of naming containers. So the actual ID - which is what JavaScript works with - for a inputText "dollars" on row 3 of a datatable whose ID is "tbl1" in form ID "form1" would be "form1:tbl1:2:dollars". Row numbering starts at 0, so Row 3 in the table has row ID 2.
|
One of the most odious afflictions that Business has inflicted on the modern English language is "pro-active". Most of the time it's simply redundantly used in place of the simple old word "active". And a good deal of the rest of the time it means "You're not overworked enough yet, so go out and find more!"
|
 |
kumar toomu
Greenhorn
Joined: Dec 29, 2011
Posts: 6
|
|
are you using ajax feature on your <h:inputText>? if not it should work on a form submit....
|
 |
Sijesh Alayaril
Greenhorn
Joined: Jan 13, 2012
Posts: 13
|
|
|
Thank you soo much for reply.
|
 |
Sijesh Alayaril
Greenhorn
Joined: Jan 13, 2012
Posts: 13
|
|
kumar toomu wrote:are you using ajax feature on your <h:inputText>? if not it should work on a form submit....
No im not using ajax component
|
 |
 |
|
|
subject: onblur attribute is not working
|
|
|