1 Reply Latest reply on Nov 2, 2008 4:43 PM by Nick Belaevski

    Submitting TextInput outside form

    senthil kumar Newbie

      Hi,
      I have a textInput outside <h:form>. I want to submit this textInput when i submit the form.Due to some constraint i cant keep the textInput within the form. Is it possible to achieve this by component control or other means ?

        • 1. Re: Submitting TextInput outside form
          Nick Belaevski Master

          Hello,

          You should write JavaScript code to implement that. Use "onsubmit" attribute of form component to define JavaScript handler function that will create hidden input corresponding to the value of your text input and remove it just after submit. For example on how to do that add h:commandLink to the page and view generated page code.