Yes, you are correct.  Prototype is being used to perform the ajax call.  The
funny thing is this is working if it points to my old .m2 repository.  I've
since create a new fresh .m2 repository, Stripes isn't behaving as before.  
This is a snippets of the ajax call:

function invokeRemove(form, event, container) {
        var params = Form.serialize(form);
        if(event != null) params = event + '&' + params;
        new Ajax.Updater(container, form.action, { method:'post', 
postBody:params
});
        showResult();
}



Gregg Bolinger-7 wrote:
> 
> Looks like you are doing a little ajax there? If so, are serializing the 
> form to post? If so, are you using prototype? There's a good chance here 
> you are having the same issue that has been asked here many times. The 
> problem is that if you send in multiple events to the Stripes Action, 
> Stripes doesn't know which one you really want to call.
> 
> So if you could shed some light on your invokeUpdate and invokeRemove 
> methods we can point you in the right direction.
> 
> G-regg
> 
> jklcom99 wrote:
>> Remove or Update methods are not getting called when click update or
>> remove
>> button is being click.
>> I can see the log message from preBind() method every time either button
>> is
>> clicked but never got to the corresponding action. 
>>
>> 2008-04-17 11:03:31,376 INFO  TestFileActionBean.preBind - preBind:
>> C:\test\test.dat
>>
>> in my jsp I have
>>
>> ...
>> <stripes:text name="filename" id="fileName" />
>>
>> <stripes:button class="btn" value="Remove" name="remove"
>> onclick="invokeRemove(this.form, this.name, 'xmlResult')" />
>>
>> <stripes:button class="btn" value="Update" name="update"
>> onclick="invokeUpdate(this.form, this.name, 'xmlResult')" />
>> ...
>>
>> In ActionBean class
>>
>> ...
>>      @DontValidate
>>      public void preBind() {
>>              
>>              log.info("preBind: " + file + " : " + filename);
>>              
>>      }
>>      
>>      @DefaultHandler
>>      @DontValidate
>>      public Resolution load() {
>>              log.info("loading: ");
>>              return new ForwardResolution("/pages/fileform.jsp");
>>      }
>>      
>>         public Resolution remove() {
>>                      log.info("removing: ");
>>              return new StreamingResolution("test", new StringReader("this 
>> is a
>> test"));
>>         }
>>
>>         public Resolution update() {
>>              log.info("updating: ");
>>              return new StreamingResolution("test", new StringReader("this 
>> is a
>> test"));
>>         }
>>
>> ...
>>
>>   
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
> Don't miss this year's exciting event. There's still time to save $100. 
> Use priority code J8TL2D2. 
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Action-not-getting-called-tp16744830p16750906.html
Sent from the stripes-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to