myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fabio Vilela" <fbvil...@gmail.com>
Subject [trinidad] Trinidad 1.2.2 with javascript Id problem.
Date Tue, 01 Jul 2008 14:02:49 GMT
Hi folks,

i'm using trinidad 1.2.2 .
i have following code :

<h:inputTextarea rows="5"
onkeyup="limitText(3000,'descricao');"
id="textArea1"
onkeyup="limitText(3000,'textArea1');"
cols="115"
value="#{editarRelato.entity.descricao}"/>

This page is trying to use a javascript with the "limitText" function.
i'm trying to use the getElementById("textArea1"). but the code generated
with trinidad is:

<textarea rows="5" onkeyup="limitText(3000,'textArea1');" cols="115"
name="j_id22:textArea1" id="j_id22:textArea1"/>
so.. getElementById does not work because generated id is
"j_id22:textArea1" and not  "textArea1"

What should i do to solve this problem??

thank you guys.. sorry for bad english (i'm from Brazil)

Mime
View raw message