Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8943251
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T11:43:44+00:00 2026-06-15T11:43:44+00:00

I am trying to make my first ajax call / response with Spring webflow,

  • 0

I am trying to make my first ajax call / response with Spring webflow, and response rendered with thymeleaf. I have used thymeleaf example from their pdf Thymeleaf + Spring 3.

flow config:

<view-state id="detail" view="bookingDetail"> 
<transitionon="updateData">
<render fragments="hoteldata"/>
</transition>
</view-state>

my html:

<div id="data" th:fragment="hoteldata">
This is a content to be changed
</div>

and

<script type="text/javascript" th:src="@{/resources/dojo/dojo.js}"></script>
<script type="text/javascript" th:src="@{/resources/spring/Spring.js}"></script>
<script type="text/javascript" th:src="@{/resources/spring/Spring-Dojo.js}"></script>
...
<form id="triggerform" method="post" action="">
<input type="submit" id="doUpdate" name="_eventId_updateData" value="Update now!" />
</form>
<script type="text/javascript">
Spring.addDecoration(
new Spring.AjaxEventDecoration({formId:'triggerform',elementId:'doUpdate',event:'onclick'}));
</script>

First I disable submit with:

 <input type="submit" id="doUpdate" name="_eventId_activeOrders" value="Update now!" onclick="return false;"/>

to prevent whole page reload.

In logs I see that action is executed by SpringWebflow and then I see :

Chrome Js console:

Uncaught TypeError: Cannot read property 'method' of null Spring-Dojo.js:16
dojo.declare.submitForm Spring-Dojo.js:16
dojo.declare.submit Spring-Dojo.js:16
dojo.hitch

or Firefox console:

TypeError: _1a is null
http://localhost:9092/resources/spring/Spring-Dojo.js
Line 16

I am not sure how to proceed or where to start search problems. Anybody have ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T11:43:45+00:00Added an answer on June 15, 2026 at 11:43 am

    It certainly looks as a javascript problem, as if DOJO isn’t finding your triggerform form tag (it’s looking for its method attribute but says the form object is null)…

    Could it be that your activeOrders transition is actually modifying that form and removing it, or maybe outputting different HTML for it than the one you show here? I’d suggest trying without the “activeOrders” event part.

    And btw, you have a misspelled transitionon attribute in your SWF configuration (should be transition on)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I trying to make my first AJAX with JSON call using jQuery and CodeIgniter.
I am trying to make my first AJAX Control and I get error. I
I'm trying to make an ajax call to grab session data to insert into
I have this: var myError; function getNames(user,location){ myError=null; //Make an Ajax Call (this takes
i'm trying to make a simple call to data from database using php and
I am trying to make an Ajax call using JQuery to a servlet that
I'm trying to make my first app for Microsoft Surface. I need to use
I am trying to make my first app using XNA, and I am having
Hi I'm trying to make the first element of my observableArray hidden, the following
It's my first time trying to make anything really interesting in C# and I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.