Hi again Joaquin,

> Thanks Freddy!

Always a pleasure to help. When it's not a pleasure, I don't help. ;-)

> >> I am trying to do a ajax call inside a wizard form and I get this error
> >> message:
> >> 
> >> Unhandled exception caught by the Stripes default exception handler.
> >> net.sourceforge.stripes.exception.StripesRuntimeException: Submission of
> >> a wizard form in Stripes absolutely requires that the hidden field
> >> Stripes writes containing the names of the fields present on the form is
> >> present and encrypted (as Stripes write it). This is necessary to prevent
> >> a user from spoofing the system and getting around any security/data
> >> checks.
> >> 
> My intention is not to submit the form rather default some fields using
> the ajax call based on a value from a field earlier in the form.  Here is
> my javascript:
> 
> function lookup(field, url) {
>     $.get(url,
>     { 'username': $(field).val(),'_eventName': 'lookup'},function(data) {
>       $('#enrollerfields').html(data);
>     }
>   );
> }
>
>  public Resolution lookup() {
>    [...]
>  }

I am assuming that your action bean is annotated with @Wizard. Given
that you are invoking the 'lookup' event from your JavaScript without
submitting the form, you need to tell Stripes not to perform the
wizard validation for that particular event, like so:

@Wizard(startEvents="lookup")
public class YourActionBean ... {
  public Resolution lookup() {
    ...
  }
}

Hope that resolves the issue. Let me know if you need any further
explanations.

Cheers,
Freddy

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to