Hello all, I'm relatively new to Tapestry (I'm using ver. 2.0)... and I just came across this problem and wondered if anyone knows how to fix it without a tremendous amount of work. What I want to do:
I've built a nice 'mini calendar' component that allows a user to select a date range. It's *supposed* to be usable within and without a form. Each day is a Direct link (with a context of something like '05-28-02') so it can determine which day was selected. The assembler must specify the start date (java.util.Calendar) and end date as parameters. The component will call the setTime() mutator on the bound calendars when a day is selected. The problem: Now, I place the calendar in a form, and when the user selects a date - all the other components within the form are reset (including the bound Calendars)! Duh... stupid me. I know this has to do with the fact I used the Direct service. But how can I build that component without the Direct service? If I use Action, I lose the information for each day link. The main problem is that I'm not sure how to take the form's state along with me, especially when using a component that makes use of Direct in this manner. Is there some way to hook into the form's submit? From what I understand from reading the dev guide, I need to rewind the form to allow the components to do their thing... but can I trigger this off a Direct somehow? Any pointers will be appreciated. Thanks -Jason _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm _______________________________________________ Tapestry-developer mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/tapestry-developer
