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

Get InputField value

Hi all,

How can get InputField value in abstract portal component?

Please, help me!

thanks in advance


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 03, 2005 at 05:27 PM

    Your question is too ambigious. Need to give more info. Such as, is the input field just in the java code? Or, Did you use jsp to diplay the input field. Did you use a button's function onClick() so that it triggers an event?

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Stefano,

      Are you asking to get the value of an HTMLB input field in a javascript function before you submit the form? (for example to do client side validation). If so, here is a sample piece of code.

      Hope this helps,


      ********************JAVASCRIPT FUNCTION ************

      function searchSubmit(type)


      var funcName = jsFormID+"_getHtmlbElementId";

      func = window[funcName];

      //get the query text string

      var searchTextID = eval(jsSearchID);

      var searchText = searchTextID.getValue();

      //assign the values to a hidden form and submit the form to the search jsp

      document.forms['submitSearch'].query.value = searchText;




      <hbj:form id=search_form method="post" action="<%=searchURL%>" target="_blank">

      <% String formID = PageContext.getParamIdForComponent(search_form);



      <SCRIPT> var jsFormID = "<%=formID%>"; </SCRIPT>








      % String searchID = PageContext.getParamIdForComponent(searchText); %>

      <SCRIPT> var jsSearchID = '<%=searchID%>'; </SCRIPT>






      tooltip="Click here to submit search"




      /> hidden form here if you are submitting form for another website or page outside of this portal component, if not you can access HTMLB field from Java class you are using and place back into a bean....

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.