For 2.4 I'm going to make the form rewind work a little differently. Instead of going by count, its going to record into the form (as a hidden field) a list of all the names it doled out.
The StaleLink exception will provide a little more detail, something like: Unable to rewind form FormPage/formComponent: Expected next form element to be named 'inputFoo' not 'inputBar'. This usually indicates that the state of the page has changed between the time the form was rendered and the time the form was submitted. This can occur due to loops and conditionals on the page, or when underlying data used to construct the page has been altered externally. -- [EMAIL PROTECTED] http://tapestry.sf.net > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I had an issue similar to this myself recently. > I found that I was not making the distinction in my page between the rewind > and render cycles. I changed the code such that the rewind would occur in the > same manner as before (that is, use the same state as before) and the render > would use the new state. > > To do this, I did have to store things like 'previously seleced item' - so > that I could use this specifically within the rewind process. One the rewind > is done, I think can do what you like... > > Other can feel free to correct me. I could be completely wrong, but this > worked for me. > > Neil > > On Friday 06 Dec 2002 5:49 am, Ivanhoe Abrahams wrote: > > Hello everyone > > > > I am seeking some help on the StaleLink exception I keep getting > > > > My situation: > > I have at the top of my page a PropertySelection(which auto submits on > > change) which holds a list of Products (names). > > Each product can be configured differently, allowing for different input > > mechanisms per product. > > > > So now as I change from product to product some components are rendered or > > not based on conditional variables > > which means that the one product has maybe four elements on the screen > > while the next has maybe six.(I think you guys get > > the picture) > > > > Now I understand Tapestry's need to make sure that when rewinding there > > must be exactly the same amount of > > components on the page than when it rendered. But in my situation The > > PropertySelection fires off a submit AFTER which I only set the conditional > > variables to show the different parts or hide different components. It is > > this part which I dont understand or would appreciate some guidance/hints > > as to how to fix this. > > > > Any help will be highly appreciated. > > PS. When I turn off Template cache as explained in the FAQ all my submit > > buttons(eg. save/new with listener methods) on this particular form > > generate Stale Links (I havent tried this with a simple page yet). > > > > For what its worth I think Tapestry's got a good future going for it. > > > > Thank you > > > > > > > > > > --- > > Outgoing mail is certified Virus Free. > > Checked by AVG anti-virus system (http://www.grisoft.com). > > Version: 6.0.423 / Virus Database: 238 - Release Date: 2002/11/25 > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Tapestry-developer mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/tapestry-developer > > - -- > Regards, > Neil Clayton > > (PS: If you see strange text you don't understand underneath my email, don't > worry - it's just my PGP signature) > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.0.7 (GNU/Linux) > > iD8DBQE98O/oLXcfQF3yrNoRAklrAKCDQE0hHJqLwuhe80vaV5vyUWiFOQCgjs6Q > Xlo1wG3nzCA1QGY7hqLV+wU= > =aUcI > -----END PGP SIGNATURE----- > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Tapestry-developer mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/tapestry-developer ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Tapestry-developer mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/tapestry-developer
