sorry
the reason for the error is AjaxEditableLabel descriptionEditableLabel = new
AjaxEditableChoiceLabel("description", new PropertyModel(fileObj,
"description"))

it should be 
AjaxEditableLabel descriptionEditableLabel = new
AjaxEditableLabel("description", new PropertyModel(fileObj, "description"))



wch2001 wrote:
> 
> Dear all,
> 
> I am using AjaxEditableLabel, with the following codes, 
> it is ok to show the description, but when i clicked it, error happened.
> "onEdit ..........." is on the console , so it already call onEdit()
> method,
>  how to implement the method? how to solve the question?
> 
> thanks a lot.
> 
> 
> 
>                     AjaxEditableLabel descriptionEditableLabel = new
> AjaxEditableChoiceLabel("description", new PropertyModel(fileObj,
> "description")){
> 
>                         @Override
>                         protected void onEdit(AjaxRequestTarget arg0) {
>                             System.out.println("onEdit ...........");
>                             super.onEdit(arg0);
>                         }
> 
>                         @Override
>                         protected void onError(AjaxRequestTarget arg0) {
>                             System.out.println("onError ...........");
>                             super.onError(arg0);
>                         }
> 
>                         @Override
>                         protected void onSubmit(AjaxRequestTarget arg0) {
>                             System.out.println("onSubmit ...........");
>                             super.onSubmit(arg0);
>                         }
>                         
>                     };
>                     item.add(descriptionEditableLabel);
> 
> 
> Exception:
> 
> onEdit ...........
> org.apache.wicket.WicketRuntimeException: Exception in rendering
> component: [MarkupContainer [Component id = editor, page =
> sg.sphsearch.dira.web.wicket.pages.people.EditPersonPage, path =
> 3:tabpanel:panel:attachedFilesPanelContainer:saveUploadFilesForm:group:fileList:0:description:editor.DropDownChoice,
> isVisible = true, isVersioned = false]]
>         at
> org.apache.wicket.Component.renderComponent(Component.java:2467)
>         at
> org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1354)
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Help%3A-AjaxEditableLabel-error-tp22347654p22348774.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to