Reputation: 3255
I have following line of code for jsp tag
<input name="UnicodeVirtualKey" class="btn" type="button" value="અ" onclick="insert('અ')" />
and for JSF
<h:commandButton value="આ" onclick="insert('આ')" ></h:commandButton>
But it will display same i.e આ
not its unicode.
shall anybody tell me what is the problem
Upvotes: 1
Views: 2688
Reputation: 718886
In the JSF case, you are missing a semicolon in the value attribute. Is that the problem?
Actually, given your edit to the question, I think the missing semicolon probably is the problem!!
The character sequence &0xABCD;
is an XML / HTML character reference for the Unicode codepoint ABCD
.
The character sequence &0xABCD
(missing semicolon!) is just a sequence of characters that stand for themselves.
(If it is not the issue, why did you edit the question to remove the semicolon??)
Upvotes: 2
Reputation: 24499
Try using <f:verbatim>
or <h:outputText value="અ"/>
Does it print out its unicode? If yes, then you need to figure out how to use it like that.
In facelets/seam, you can use EL expression in javascript
Upvotes: 0