2 Replies Latest reply on May 27, 2009 3:50 PM by Marcelo Leiras

    HtmlCommandLink programatically (href=#)

    Marcelo Leiras Newbie

      Hi all,

      i am using lightbox and i need to create an HtmlCommandLink programatically.
      The generated HTML should be:

      <a href="images/image-1.jpg" rel="lightbox[roadtrip]">image 1</a>
      


      Here is my code:

      HtmlCommandLink cl = new HtmlCommandLink();
      cl.setId("cl");
      cl.setValue("image 1");
      cl.setRel("lightbox[roadtrip]");
      


      The problem is that href is generated with # value.
      How can i set "images/image-1.jpg" to href programatically?

      I know that by default, the HtmlCommandLink generate # on href, but i really need to set it with another value. Anyone knows a workaround?

      Thanks a lot.