• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Stripes Wizard forms

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all -

I am having a conundrum with Stripes and some design issues. I have a Wizard ActionBean that is controlling about 4 different pages that all contain forms. The problem exists with two select fields on the first page:



Only one of those select boxes will ever be used, but later on down the line I will manually (inside the Wizard ActionBean) overwrite the value of the other. So, for example, if the "uploadAndProceed" button is pressed, it will take the value from fileId and do some processing, then later on manually populate the evalFileId value. Alternately if the "proceed" button is pushed, it will take the value in evalFileId, do some processing, then later on manually populate the fileId value.

Because of the Wizard annotation, Stripes is forcing the value of the non-used value throughout the entire process. So even if I manually set it to something else inside the ActionBean, it gets reset by Stripes on the next page, likely due to the hidden field it creates to propagate the value.

So my question is, where can I write that value that it will actually stick, and Stripes won't override it?
reply
    Bookmark Topic Watch Topic
  • New Topic