It means it's looking for a method called getPostTextField() in your 
model, but not finding one.




From:   kshitiz <k.agarw...@gmail.com>
To:     users@wicket.apache.org
Date:   05/02/2012 02:08 PM
Subject:        Unusual problem is coming in rendering component



Hi,

I am trying to render a text field :

Java code:

*final RequiredTextField<String> postTextField = new
RequiredTextField<String>(
 "postTextField");

*postForm.add(postTextField);*

Html code
*<input type="text" id="postTextField" wicket:id="postTextField"/>*

But I am gettin the error:

Root cause:

org.apache.wicket.WicketRuntimeException: No get method defined for class:
class domain.PostDomain expression: postTextField
     at
org.apache.wicket.util.lang.PropertyResolver.getGetAndSetter(PropertyResolver.java:499)
     at
org.apache.wicket.util.lang.PropertyResolver.getObjectAndGetSetter(PropertyResolver.java:341)
     at
org.apache.wicket.util.lang.PropertyResolver.getObjectAndGetSetter(PropertyResolver.java:244)
     at
org.apache.wicket.util.lang.PropertyResolver.getValue(PropertyResolver.java:97)
     at
org.apache.wicket.model.AbstractPropertyModel.getObject(AbstractPropertyModel.java:134)
     at
org.apache.wicket.Component.getDefaultModelObject(Component.java:1668)
     at
org.apache.wicket.Component.getDefaultModelObjectAsString(Component.java:1695)
     at
org.apache.wicket.markup.html.form.FormComponent.getModelValue(FormComponent.java:1211)
     at
org.apache.wicket.markup.html.form.FormComponent.getValue(FormComponent.java:837)
     at
org.apache.wicket.markup.html.form.TextField.onComponentTag(TextField.java:108)
     at
org.apache.wicket.Component.internalRenderComponent(Component.java:2510)
     at
org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1534)
     at org.apache.wicket.Component.internalRender(Component.java:2369)
     at org.apache.wicket.Component.render(Component.java:2297)

Now, when I replace *postTextField* with *post*, no error comes...!!!

That is, if my java code is:
*final RequiredTextField<String> postTextField = new
RequiredTextField<String>(
                                                                 "post");

and Html code is:

*<input type="text" id="postTextField" wicket:id="post"/>*

The code runs fine...

What can be the problem...?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Unusual-problem-is-coming-in-rendering-component-tp4604163.html

Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




**

This email and any attachments may contain information that is confidential 
and/or privileged for the sole use of the intended recipient.  Any use, review, 
disclosure, copying, distribution or reliance by others, and any forwarding of 
this email or its contents, without the express permission of the sender is 
strictly prohibited by law.  If you are not the intended recipient, please 
contact the sender immediately, delete the e-mail and destroy all copies.
**

Reply via email to