Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 24

Thread: <form:checkbox> no function

  1. #11
    Join Date
    Jan 2008
    Location
    Germany
    Posts
    12

    Default

    from my firebug (a Firefox extension)... the url is ok...

    with this extension you can get a detaild list of what you send and what you get (parameter, response(html code), post, headers)

    http://www.getfirebug.com/
    Last edited by JanHelmut; Jan 9th, 2008 at 07:25 AM.

  2. #12
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,625

    Default

    Yes I know firebug we use it also. But still it is a POST not a GET request to the server, that is what I find strange.

    I strongly suggest you add some debug logging (maybe print the request parameters from your onsubmit to see what is happening.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  3. #13
    Join Date
    Jan 2008
    Location
    Germany
    Posts
    12

    Default

    but I think the Post parameter I posted are the right parameter the site is sending. it is the same i can see in my database after I submit the form every checkbox is checked (every field in the Database is 1)

    here is the html code the tag is genarating:

    Code:
    <tr>
    	<td align="right" width="20%"><b><u>Berechnet</u></b></td>
    
    </tr>
      
    <tr>
    	<td align="right" width="20%">Kunde:</td>
    	<td width="20%">
                 <input id="berechnenKunde1" name="berechnenKunde" type="checkbox" value="true" checked="checked"/>
    
                 <input type="hidden" name="_berechnenKunde" value="on"/>
    
            </td>
    	<td width="50%"></td>
    </tr>
    
    <tr>
    
    	<td align="right" width="20%">Buchhaltung:</td>
    
    	<td width="20%">
                   <input id="berechnenBuchhaltung1" name="berechnenBuchhaltung" type="checkbox" value="true" checked="checked"/>
    
                  <input type="hidden" name="_berechnenBuchhaltung" value="on"/>
            </td>
    
            <td width="50%"></td>
    
    </tr>

  4. #14
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,625

    Default

    but I think the Post parameter I posted are the right parameter the site is sending. it is the same i can see in my database after I submit the form every checkbox is checked (every field in the Database is 1)
    Then I give up....

    You state checkboxes are ignored but they arrive at the server, so you don't have an issue?!
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  5. #15
    Join Date
    Jan 2008
    Location
    Germany
    Posts
    12

    Default

    no, I mean that the parameter I was posting to the forum are the right that the site is sending to the server....

    My problem is still if i uncheck a box, the site sends box is checked to the server....

  6. #16
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,625

    Default

    And that is why I think you are mixing GET and POST parameters because POST parameters AREN'T on the url.

    Try removing the ajax capability (just for fun) and see what is happening. Your form in the jsp looks alright.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  7. #17
    Join Date
    Jan 2008
    Location
    Germany
    Posts
    12

    Default

    at first there is nothing on the url...

    the post thing i coud get out of firebug there is an function to get what the page do post to the server.

    AND

    Thanks for your help it seems to be the ajax stuff which makes the problems

  8. #18
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,625

    Default

    Stripping down to the basics is in a lot of situations quite useful . Which ajax implementation do you use? Or is it something homegrown?

    However glad that you figured it out.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  9. #19
    Join Date
    Jan 2008
    Location
    Germany
    Posts
    12

    Default

    I use this stuff:

    http://www.jenkov.dk/prizetags/index.html

    it was the only one I found for integrating Ajax in spring in a very simpöe way (look at the jsp code....)

    but for most ajax I use yui

  10. #20
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,625

    Default

    You also might want to take a look at the Spring Modules project and especially the XT Module which enables java support in quite an easy way.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •