Based on the code snippets, the only reason preBind() would ever execute 
is if it is the event that is executed by your request. Your remove() 
and update() event handlers are not executing because there is a 
parameter named "preBind" or one named "_eventName" with value "preBind" 
in the request, causing preBind() to execute instead.

-Ben

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

Reply via email to