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
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users