Announcement Announcement Module
Collapse
No announcement yet.
SWF Inventory of Javascript examples Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    below is the error i get when i used the script

    org.apache.jasper.JasperException: /WEB-INF/views/employee/create.jspx(6,22) The entity name must im
    mediately follow the '&' in the entity reference.

    Comment


    • #17
      Spring/DOJO API

      Hi all,

      I have made a new post regarding the Spring-JS/Dojo usage located at:

      http://forum.springsource.org/showth...ht=spring+dojo

      I'd welcome any comments or ideas?

      Eggsy

      Comment


      • #18
        i am using the below Spring JS code but would like to set the form id parameter depends on the defined form id..

        Code:
        Spring.remoting.submitForm('selectedTaishoHaniSentei.analyzeId', 'bookingForm', { _eventId:'updateTaishoHaniSenteiByAnalyzeId' });
        anybody knows how to get the form id...

        Comment


        • #19
          Form id

          Rather than using Spring.remoting could you use the Spring.addDecoration method like so:

          Code:
          Spring.addDecoration(new Spring.AjaxEventDecoration({elementId:'proceed', event:'onclick',formId:'booking', params:{fragments:'messages'}}));
          A bit more information here:

          http://static.springsource.org/sprin...l/ch11s04.html

          Comment


          • #20
            Originally posted by eggsy84 View Post
            Rather than using Spring.remoting could you use the Spring.addDecoration method like so:

            Code:
            Spring.addDecoration(new Spring.AjaxEventDecoration({elementId:'proceed', event:'onclick',formId:'booking', params:{fragments:'messages'}}));
            A bit more information here:

            http://static.springsource.org/sprin...l/ch11s04.html
            if you were intended to answer my inquiry, it seems you misunderstood...
            I am asking for a variable form id...and also it is given that we may use the both ways... because its enclosed by the sciprt tag..

            anyway Sir, i found the answer... its just a basic javascript...

            Spring.remoting.submitForm('selectedTaishoHaniSent ei.analyzeId', document.forms[0].id, { _eventId:'updateTaishoHaniSenteiByAnalyzeId' });
            thanks

            Comment


            • #21
              Dojo query

              Hi there,

              You could also query for the form using Dojo like so:

              Code:
              <script type="text/javascript">
                  dojo.addOnLoad(function() {
                      dojo.query("form").forEach(function(element) {
                          Spring.remoting.submitForm('selectedTaishoHaniSentei.analyzeId', element.id, { _eventId:'updateTaishoHaniSenteiByAnalyzeId' }); 
                      });
                  });
              </script>

              Comment


              • #22
                Spring JS - Popup and List refresh

                Hi all,

                I have compiled a Spring-JS tutorial that illustrates how to create a page that lists items, then you can add to those items via a popup dialog. The list then gets updated via Ajax all without changing page.

                It should hopefully help with one common use case of Ajax and Spring JS

                Welcome and comments and feedback.

                http://eggsylife.co.uk/2010/11/08/sp...-list-refresh/

                Eggsy

                Comment

                Working...
                X