1 Reply Latest reply on Oct 12, 2011 3:53 PM by Gilberto Ramos

    a4j:commandLink with html value

    Gilberto Ramos Newbie

      Hi people,


      I'm very new to RichFaces and now I'm doing a project with RichFaces 4.


      I'm having a problem with the a4j:commandLink component. I'm trying to reach something like this as a result:

                <a href="#"><span>Hola</span></a>
                <a href="#"><span>Chau</span></a>


      But a4j:commandLink does not let me add any html tag in attribute value.


      My code is something like this:

      <a4j:commandLink action="#{controller.method}" value="#{var.menuName}">


      So, it generates something like this:

      <a href="#" id="j_idt26:0:j_idt28" name="j_idt26:0:j_idt28" onclick="RichFaces.ajax(&quot;j_idt26:0:j_idt28&quot;,event,{&quot;incId&quot;:&quot;1&quot;} );return false;">Home</a>


      My problem is inserting the <span> inside the <a>

      How can I solve this? Thank you.