Announcement Announcement Module
Collapse
No announcement yet.
Roo 1.1.0.M3 WebFlow ajax render fragment not working for me Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Roo 1.1.0.M3 WebFlow ajax render fragment not working for me

    Using AJAX in webflow to render a partial tiles definition does not work for me.

    Could anyone provide a Spring Roo 1.1.0 (M3) project with a working webflow example that uses Spring.AjaxEventDecoration on a submit button and a transition with renders a tiles attribute ?

    example:
    Code:
     <view-state id="view-state-1">
           	<transition on="success" to="view-state-2"/>
        	<transition on="refreshfragment" >
        	 <render fragments="fragment"></render>
        	</transition>
        </view-state>
    
    <definition extends="default" name="view-state-1">
            <put-attribute name="body" >
               <definition template="/WEB-INF/views/fragmentflow/view-state-1.jspx">
    				<put-attribute name="fragment" value="/WEB-INF/views/fragmentflow/fragment.jspx" />
    			</definition>
            </put-attribute>
        </definition>
    
     <form:form method="POST" id="myform">
          <div class="submit">
             <input type="submit" id="refreshfragment" name="_eventId_refreshfragment" value="ajax" />
          </div>
        </form:form>
      </util:panel>
      
      <script type="text/javascript">
    		Spring.addDecoration(new Spring.AjaxEventDecoration({
    		elementId: "refreshfragment", formId: "myform", event: "onclick", params: { fragments: "fragment" }}));
    </script>
Working...
X