On 15.07.2004 21:56, Alan wrote:
I'm using Cocoon + Hibernate to good effect. The standard controls are very impressive.
How does one handle the books and authors problem in CForms? The
problem is that you are adding a book to a database and you want
to choose from an existing list of authors, adding an author if
she is not already there.
For a couple days you can use a drop down control to choose the
author, but eventually the list of authors is so large, it
requires real navigation, tabular display, and search.
How is this best handled in CFroms? My thoughts:
* In flow, sendPageAndWait for the form, if an add author or
find author submit button is clicked, start doing
sendPageAndWait author find or edit pages.
* Use XMLHttpRequest to ask for XHTML pages that search and edit authors from the server. Display the pages inline. Edit a new author inline.
* Use an IFrame to display the pages that search and edit authors. The IFrame updates the parent page.
I may be getting ahead of myself, such a widget my already exist, but if it doesn't let me know. I'll write it with community input.
You have continuations on server side, so it's easy to preserve the state there, no need to do it on client side. So there is no native support for it, creating a wizard for the above should not be that complicated.
Joerg
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
