Skip to Content
author's profile photo Former Member
Former Member

Retrieving HTML elements' ids in Java

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Feb 17, 2004 at 03:16 PM

    Hi,

    I'm facing a problem when trying to retrieve an HTML element id in my DynPage, for use in JavaScript.

    I've tried to call getPageContext().getParamIdForComponent(component) method inside the "doProcessBeforeOutput()" method, but kept receiving the following Jave Runtime Excpetion message:

    "Component ... not found in old form"

    After inspecting the matter, I found out that the method returned the id of the HTML input in the old form, the one that had submitted itself and called this IView's instance.

    Instead, I would like to receive the FUTURE id of the HTML input that is to be put in the form which is built in "doProcessBeforOutput()" method.

    Any ideas?

    I know that calling the method in JSP from the context DOES work.

    How does it work in JAVA?

    thanks in advance .

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.