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(IModel<String>)
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

Reply via email to