tapestry-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Barker" <jonathan.theit...@gmail.com>
Subject RE: Wizard...
Date Wed, 05 Jul 2006 13:42:06 GMT

A simple option would be to turn off client-side validation.

I have an application in which multiple people (buyer, seller, realtors)
must be associated with a single estimate.  I use a pop-up window that has
its own workflow for searching for and choosing, or adding a new person (and
even associated agencies).  In the simple case, when you find the person and
click on a [Choose] link, javascript pushes a key back down into a hidden
field on the original form in the "opener" window and then closes the popup.
I could push down additional text for display but I hate javascript so I
just trigger a form submit and handle display in the usual Tapestry way.


-----Original Message-----
From: James Carman [mailto:james@carmanconsulting.com] 
Sent: Wednesday, July 05, 2006 9:11 AM
To: 'Tapestry users'
Subject: Wizard...


I am trying to develop a "wizard" for a page I'm working on.  Basically, the
user needs to select something to be a property of the object they're
editing on the current page.  The object they need to select is a child in a
parent/child relationship and there are *way* too many parents to just show
in a drop-down list (like 250K of them).  Anyway, the idea is that they'll
type in some text and choose the parent.  Then they're taken to another
screen which shows the children for that parent (at most about 10 or so).
They then choose which child they want to use.  Here's the tricky part (at
least for me).  I want to invoke this wizard while they're filling out the
form, but I don't want them to lose what they've typed in any of the other
fields and I don't want to stop them from going through the wizard if any of
the form fields don't pass validation.  So, in order to bind the form field
values into the object they're editing before going through the wizard, I
have to submit the form (can't use a DirectLink, because that doesn't
trigger a form rewind).  But, the form will not submit if there are errors
in any of the required/constrained fields.  How would you guys go about
this?  Am I missing something?  There's got to be a standard way to do such
a thing.

Right now, I'm using Tacos to display the wizard as a "floating pane" above
my form, but that's proven to be buggy at best in IE (Firefox works great of
course).  The form is somewhat long and the floating pane shows up at the
top of my form so the user doesn't see it unless they scroll up.  Also, if I
put two of these wizards on the screen at the same time (editing multiple
fields of the same type), then they don't submit properly for some reason.
Anyway, any help would be greatly appreciated.



To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org

To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org

View raw message