Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8032389
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T01:22:11+00:00 2026-06-05T01:22:11+00:00

I have my inputText in the form i can get its value by the

  • 0

I have my inputText in the form i can get its value by the following code

<h:inputText value="hello world" id="myidtest" />

alert($(#{rich:element('myidtest')}).val());

If i put my inputText under rich:datatable then alert($(#{rich:element('myidtest')}).val());

gives undefined after some r&D i found that rich:elment reference not returning object if it is under rich:datatable

any quick help appriciated

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T01:22:12+00:00Added an answer on June 5, 2026 at 1:22 am

    That is because each column will have a different generated id

    Use columns tag to set the id based on the column index

    <rich:columns value="#{dataTableScrollerBean.columns}" var="columns" index="ind" id="column#{ind}">
    

    The generated id will look like id="formId:tableId:rowIndex:column1"

    then you can use

    jQuery(#{rich:element('formId:tableId:rowIndex:column1')}).
    

    If that does not work post the generated html for that element.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following code for some user input validation <h:form> <h:inputText value=#{user.input}> <f:validator
I have such code: <h:inputText id=input value=#{bean.input}> <f:convertNumber /> <rich:ajaxValidator event=onblur /> </h:inputText> I
I have JSF code like: <h:inputText id=from value=#{fromToMBean.fromName}/> I would like to get this
I am following this exactly: http://msdn.microsoft.com/en-us/library/ms185301.aspx but can't get it to work. The form
I have jsf page: .... <form jsfc=h:form action=> <h:dataTable value=#{newMusician.strings} var=preferredMusicGenre id=musicGenresSelectTable> <h:column> <h:inputText
In my cakephp form I have following code <p> <?php echo $form->input('option[]',array('size'=>13)); ?> </p>
I have a form in which there is a selectbox, and a inputtext field
In JSF + RichFaces, I have an inputText and a button, How can I
Can I add JSF components dynamically? I need to have a form with a
So I have this function here: function ShowMessage() { var themessege = document.getElementById(Form).textarea1.value; var

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.