erik,

from what i understand you have

Custom Component -> contains Form -> contains PropSel


- when the PropSel changes, then its enclosing Form causes the submit.

i have a suspicion this  Form might be causing your Custom Component not to
rewind and hence probably  the
Custom Component never sets the model in its prepareForRender during the
rewind.

can you put a system.out.println in the Custom Component's prepareForRender
and see if it gets printed on the rewind cycle?

if not, probably  you can consider moving the Form outside your Custom Comp.



On 11/16/06, Erik Husby <[EMAIL PROTECTED]> wrote:

I've created a component that contains a form that contains a
property selection. The property selection item has the submit on
change property. The property selection model and value are on the
component. The form listener is on the component. The page containing
my component does not need to know that there is a form.

When a new value is selected, Tapestry throws a null pointer
exception in PropertySelection.rewindFormComponent trying to access
its model via the abstract getter getModel()

My component does ensure that the property selection model is created
in its prepareForRender method.

Does my page need to know about the form inside my component?

Is there some component property or method that I need to know about?

Is form submission restricted to pages?

---
Erik Husby
Senior Software Engineer
Broad Institute of MIT and Harvard
Rm. 2267, 320 Charles St, Cambridge, MA 02141-2023
mobile: 781.354.6669, office: 617.258.9227
email: [EMAIL PROTECTED] AIM: ErikAtBroad






--
Thanks, Karthik

Reply via email to