on of your components doesn't have a model where the data that comes from
the browser
can be stored into.

so you use something like this:

TextField field = new TextField("textfield")

instead of this:


TextField field = new TextField("textfield", new Model())

that constructor without the model is there for CompoundModels
Maybe we should express this more clearly in the javadoc and other
userguides (wiki)

johan


On 1/10/07, snkr subedi <[EMAIL PROTECTED]> wrote:

hi, all
I have got a problem here.
I have a modal window which contains a form.
When i submit that form i get a error message as shown below:

WicketMessage: Method onFormSubmitted of interface
wicket.markup.html.form.IFormSubmitListener targeted at component
[MarkupContainer [Component id = message_report, page =
com.apl.lm.ui.IndexPage, path =

1:pageBody:tabs:panel:composer:content:message_report.ComposeMessageReportPanel$MRForm,
isVisible = true, isVersioned = true]] threw an exceptionRoot
cause:java.lang.IllegalStateException: Attempt to set model object on
null model of component:
pageBody:tabs:panel:composer:content:message_report:msgORreport     at
wicket.Component.setModelObject(Component.java:1962)     at
wicket.markup.html.form.FormComponent.updateModel(FormComponent.java:548)
    at wicket.markup.html.form.Form$11.formComponent(Form.java:917)
at wicket.markup.html.form.Form$4.component(Form.java:459)     at
wicket.MarkupContainer.visitChildren(MarkupContainer.java:744)     at
wicket.markup.html.form.Form.visitFormComponents(Form.java:455)
...................................other are
omitted........................................

why am i getting this error?

please help

Thanks in Advance
sNkr

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to