The other thing I am getting is - at
java.lang.Thread.run(Thread.java:613)ERROR [http-8080-2]
(RequestCycle.java:1043) - This method can only be called on a component that
has already been added to its parent.java.lang.IllegalStateException: This
method can only be called on a component that has already been added to its
parent. at wicket.Component.replaceWith(Component.java:1857) at
com.vvaves.web.P1$1$1.ondelete(P1.java:104) at
com.vvaves.web.P2$1.onClick(P2.java:26) at
wicket.ajax.markup.html.AjaxLink$1.onEvent(AjaxLink.java:66)Date: Fri, 6 Jul
2007 16:45:32 -0700From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Re:
[Wicket-user] link ajax and panel - markup Id emptyOn 7/6/07, Ed _ <[EMAIL
PROTECTED]> wrote:
But I do get this error - even though I can see the appropricate methods -
onclick and delete being called.
ERROR [http-8080-1] (RequestCycle.java:1043) - markupId cannot be
emptyjava.lang.IllegalArgumentException: markupId cannot be empty at
wicket.ajax.AjaxRequestTarget.addComponent(AjaxRequestTarget.java:217)
at wicket.ajax.AjaxRequestTarget.addComponent(AjaxRequestTarget.java:201)
at com.vvaves.web.P1$1$1.onDelete(P1.java:103) at
com.vvaves.web.MyPanel$1.onClick(MyPanel.java:26) at
wicket.ajax.markup.html.AjaxLink$1.onEvent
(AjaxLink.java:66)you have to call setoutputmarkupid(true) on components you
are going to update via ajax. this is shown all over the examples.
-igor
_________________________________________________________________
Local listings, incredible imagery, and driving directions - all in one place!
Find it!
http://maps.live.com/?wip=69&FORM=MGAC01
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user