I guess that sounds reasonable.

I have some ideas about improving how the form detects 
stale links that should make debugging this kind of 
problem easier.  Currenty, forms encode in a hidden 
field the overall count of forms fields during the 
render ... I expect to change that to a list of form 
element names vended out (so that the Form can detect 
exactly when things go astray).

I believe there's a method on AbstractEngine, 
handleStaleLinkException() that you can override ... if 
you change it to invoke activateExceptionPage() you 
should get what you need.



--
[EMAIL PROTECTED]

http://tapestry.sf.net
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> I think I have it figured out.
> The form was basically OK - except that on the FIRST render, the 'anyMatching' 
> was null, therefore false - so only a single component was being rendered and 
> recorded, via the <input type="hidden" name="Form0" value="1"/>
> 
> On the rewind, the 'currently selected' category was being set, which meant 
> that the second render DID include a second component. Because the count was 
> out, I think Form.renderComponent() was throwing a StaleLink exception.
> 
> Is there any way to propagate th exception dump to the stale link page? It 
> would have helped me discovering this problem immensely (I would have known 
> immediately what was kind of wrong, rather than having to make educated 
> guesses).
> 
> For my peace of mind, does my own diagnosis of the problem sound about right?
> 
> Neil
> 
> 
> On Friday 11 Oct 2002 11:26 am, Neil Clayton wrote:
> > I've been attempting to create a page that allows for the selection of
> > "content", based simply on a single category name ("content" in this case
> > has a category, and what I want to do is show any "content" matching that
> > category).
> >
> > The page itself contains a single component, called the ContentSelector.
> > The selector takes an input parameter, being a Collection of strings. It 
> > uses this to produce a IPropertySelectionModel implementation, similar to
> > that of the StringPropertySelection, and then renders this as a drop down
> > using the PropertySelection component.
> 
> 
> .... cut ...
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.7 (GNU/Linux)
> 
> iD8DBQE9ptdlLXcfQF3yrNoRAipxAJ9WWK0AfBp9xtspYiAtPH3RSLDL5gCeL2Q5
> 9cWaDowm9XJ6undT0bXFlUI=
> =UGVj
> -----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

Reply via email to