Hello,
 I'm using a ListView of links limited to only 5 links, an AjaxFallbackLink 
(showMore) that will remove the limitation, and another AjaxFallbackLink 
(showLess) that will enable the limitation. 
  Works fine on every browser except IE6. On IE6, after the user presses 
showMore link, the list will expand, but the links are frosen(I can see them, 
but 
can not click on them).
  The code looks like this:

    in html:
   <span wicket:id="listContainer">
 <span wicket:id="linksList">
 <p><a href="#" wicket:id="link"><span 
wicket:id="displayedLinkName"></span></a></p>
        </span>
 
        <p>
    <span wicket:id="showMoreSpan"><a href="#" wicket:id="showMoreLink"><span 
wicket:id="showMore"></span></a></span>
    <span wicket:id="showLessSpan"><a href="#" wicket:id="showLessLink"><span 
wicket:id="showLess"></span></a></span>
       </p>
    </span>

  in java:
  
    final AjaxFallbackLink showLessLink = new AjaxLink("showLessLink") 
 {
�...@override
 public void onClick(AjaxRequestTarget target) 
  {
  linksList.setViewSize(5);
  showMoreSpan.setVisible(true);
  showLessSpan.setVisible(false);
  target.addComponent(listContainer);
  }
 };
 showLessLink.add(new Label("showLess", "<<less"));
 final AjaxFallbackLink showMoreLink = new AjaxLink("showMoreLink") 
  {
�...@override
  public void onClick(AjaxRequestTarget target) 
   {
   linksList.setViewSize(linksList.getList().size());
   showMoreSpan.setVisible(false);
   showLessSpan.setVisible(true);
   target.addComponent(listContainer);
   }
  };
 showMoreLink.add(new Label("showMore", "more>>"));
 final WebMarkupContainer showLessSpan = new WebMarkupContainer("showLessSpan");
 showLessSpan.setOutputMarkupId(true);
 showLessSpan.setVisible(false);
 final WebMarkupContainer showMoreSpan = new WebMarkupContainer("showMoreSpan");
 showLessSpan.setOutputMarkupId(true);
 showLessSpan.setVisible(true);
 showLessSpan.add(showLessLink);
 showMoreSpan.add(showMoreLink);
 listContainer.add(showLessSpan);
 listContainer.add(showMoreSpan);

    After the first ajax request(by clicking on "showMore" link), the 
"showLess" link is displayed, but frozen. The same results is when I'm using 
AjaxLink.
    I am using wicket 1.4 rc2.
    Can please someone help me?


      

Reply via email to