struts html:form ajax input

Discussion in 'Javascript' started by eunever32@yahoo.co.uk, Feb 27, 2007.

  1. Guest

    Hi

    I have a struts (1.1) form


    <html:form


    <html:text
    <html:text ...


    </html:form>


    All was well until I wanted to add an ajax field that would do auto-
    complete.
    Previously working example had
    <input id="complete-field"


    This was incompatible with the html:form tag and so I continued to
    use
    <input


    but when I submit the form the value of the input field is null


    How can I modify my form so that I can use the javascript
    functionality ?


    Thanks
     
    , Feb 27, 2007
    #1
    1. Advertising

  2. johkar Guest

    On Feb 27, 5:06 pm, wrote:
    > Hi
    >
    > I have a struts (1.1) form
    >
    > <html:form
    >
    > <html:text
    > <html:text ...
    >
    > </html:form>
    >
    > All was well until I wanted to add an ajax field that would do auto-
    > complete.
    > Previously working example had
    > <input id="complete-field"
    >
    > This was incompatible with the html:form tag and so I continued to
    > use
    > <input
    >
    > but when I submit the form the value of the input field is null
    >
    > How can I modify my form so that I can use the javascript
    > functionality ?
    >
    > Thanks


    Well, this isn't really the best group to ask this question. However,
    if I understand your question you just need to add an ID attribute to
    a Struts form field tag? To do that you use styleId="complete-
    field". Look at the Struts documention for valid Struts tags and
    their attributes.

    John
     
    johkar, Feb 28, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Joe Bloggs
    Replies:
    1
    Views:
    979
    Sudsy
    Aug 3, 2003
  2. minnie
    Replies:
    1
    Views:
    756
    Andrew Thompson
    Dec 13, 2006
  3. Replies:
    2
    Views:
    1,223
  4. Replies:
    0
    Views:
    375
  5. jr
    Replies:
    23
    Views:
    318
Loading...

Share This Page