Melinda, it sounds like you're somehow getting a null reference in your
list. When you forward to the next page you have the non-null items plus the
null one. Since EL does not throw NPE, you end up with a blank line where
the null is. I can't say exactly where that null is coming from, but I can
tell you a quick and dirty way to eliminate it:

@After(stages=BindingAndValidation)
public void cleanup() {
if (items != null) {
while (items.remove(null));
}
}

That will get rid of the nulls in your list before you forward to the view.
Without seeing the source, I can't tell if it's a bug in Stripes or in your
code that is causing the problem. If you really want to *solve* the problem
instead of working around it, you should turn on debug logging in Stripes
and carefully examine the request parameters to see if you can spot the
culprit.

-Ben

On Wed, Mar 11, 2009 at 4:48 PM, Savoy, Melinda <
[email protected]> wrote:

>  The scenario is as follows in the context of a Wizard:
>
> 1.      During a wizard the user selects 2 items from a list
>
> 2.      Upon clicking Next, a business use case error is detected for one
> of the items.  Stripes handles the validation error as expected by
> forwarding to the originating wizard page and displaying the error message
> to the user
>
> 3.      The user deletes the item in error and clicks Next again.  When
> the user clicks Next, a JavaScript routine literally removes the item
> marked for deletion from the HTML DOM so that only the remaining one item is
> sent on the second request.
>
> 4.      On the next wizard page, the one item that passed validations is
> shown as well as a blank line as if another item was sent on the second
> Next request even though there was only one item submitted
>
> Something squirrelly is going on with Stripes error handling in wizardswhen 
> attempting to remove error data from a step in the wizard.  Any ideas
> what might be going on and/or how to solve/fix/workaround it?
>
> Melinda Savoy
> Analy Appl Sys II
>
> ITS Supply Management Systems
>
> Texas Health Resources
>
>
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to