Solved

Specifying Seam generated id instead of "j_idxxxx"

Posted on 2010-08-25
1
458 Views
Last Modified: 2013-11-24
Experts,

 

I am working on debugging already written jboss seam project.

I need to pass a textarea id as a javascript function, but I found out that the actual textarea id that was generated by browser is different than the hard-coded id in the javascript function.

 

Here is what I am talking about:

 

<textarea id="j_id5861:j_id3864:modal-physicalexam-form:general-physicalei" name="j_id5861:j_id3864:modal-physicalexam-form:general-physicalei" cols="50" onkeyup="updateCount('j_id5861:j_id3864:modal-physicalexam-form:general-physicalei','modal-physicalexam-form:general-physicalei:notes-count','{CHAR} of 4000 characters remaining',4000);" rows="8"></textarea>

 

...

...

<a href="#" onclick="addDefault('modal-physicalexam-form:general-physicalei',  'Well developed'); return false;">Add</a> Well developed</li>

 

 

My question is is there any way that I can find the upper level tag that is not specified? If I can specify Seam generated id, I can fix this bug. Another word, I want to make textarea is like this:

<textarea id="abc:def:modal-physicalexam-form:general-physicalei"

 

thanks,

0
Comment
Question by:dkim18
1 Comment
 
LVL 5

Accepted Solution

by:
afibarra earned 500 total points
ID: 33526498
Maybe these links could help you:

 Obtaining newly generated clientId of JSF  components (http://seamframework.org/Community/ObtainingNewlyGeneratedClientIdOfJSFComponents)

                   RichFaces built-in client functions (http://mkblog.exadel.com/2009/12/richfaces-built-in-client-functions/)
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
wordcount challenge 11 134
listing all functions in JavaScript 19 218
starter POM and spring-boot-starter,  spring-boot-web 2 68
Java string replace 11 55
I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question