Bookmarkable link within AjaxLazyLoadPanel
I am trying to put a link inside an AjaxLazyLoadPanel using BookmarkablePageLink and Label. However, I always run into a close tag not found error. Here's my Java code: add(new AjaxLazyLoadPanel(itemcnt){ @Override public Component getLazyLoadComponent(String id){ int count = 0; PageParameters params = null; BookmarkablePageLink link = new BookmarkablePageLink(id, Page.class,params); add(link); link.add(new Label(+count); return link; } }); My HTML code is as follows: -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Bookmarkable-link-within-AjaxLazyLoadPanel-tp3943587p3943587.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
Re: Bookmarkable link within AjaxLazyLoadPanel
On Thu, Oct 27, 2011 at 10:25 AM, codix jackeblag...@yahoo.com wrote: I am trying to put a link inside an AjaxLazyLoadPanel using BookmarkablePageLink and Label. However, I always run into a close tag not found error. Here's my Java code: add(new AjaxLazyLoadPanel(itemcnt){ @Override public Component getLazyLoadComponent(String id){ int count = 0; PageParameters params = null; BookmarkablePageLink link = new BookmarkablePageLink(id, Page.class,params); add(link); link.add(new Label(+count); return link; } }); My HTML code is as follows: Your HTML didn't make it. Better return a Panel/Fragment that contains the link+label. Additionally in Wicket 1.5.x all Links have #setBody(IModelString) which will be used as a label for the link. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Bookmarkable-link-within-AjaxLazyLoadPanel-tp3943587p3943587.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 -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Bookmarkable link within AjaxLazyLoadPanel
I think you forgot to close the following link.add(new Label(+count)*)*; -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Bookmarkable-link-within-AjaxLazyLoadPanel-tp3943587p3943617.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
Re: Bookmarkable link within AjaxLazyLoadPanel
Your HTML didn't make it. Better return a Panel/Fragment that contains the link+label. it seems to be merged with the rich html mail. clicking on the link below (nabble post), the html is perfectly visible. may it be considered for next time ;-) View this message in context: http://apache-wicket.1842946.n4.nabble.com/Bookmarkable-link-within-AjaxLazyLoadPanel-tp3943587p3943587.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
Re: Bookmarkable link within AjaxLazyLoadPanel
Sorry about that. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Bookmarkable-link-within-AjaxLazyLoadPanel-tp3943587p3943642.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
Re: Bookmarkable link within AjaxLazyLoadPanel
On Thu, Oct 27, 2011 at 10:43 AM, manuelbarzi manuelba...@gmail.com wrote: Your HTML didn't make it. Better return a Panel/Fragment that contains the link+label. it seems to be merged with the rich html mail. clicking on the link below (nabble post), the html is perfectly visible. may it be considered for next time ;-) I don't use Nabble to read the mails... I think using any pastebin service will be better to paste your code. This way it will be better formatted (hopefully) and will have syntax highlighting. I.e. Much easier to read than here. View this message in context: http://apache-wicket.1842946.n4.nabble.com/Bookmarkable-link-within-AjaxLazyLoadPanel-tp3943587p3943587.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 -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Bookmarkable link within AjaxLazyLoadPanel
Here is the code: http://pastebin.com/uQnU464W http://pastebin.com/uQnU464W -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Bookmarkable-link-within-AjaxLazyLoadPanel-tp3943587p3946743.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