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:
<ul> <li> <a href="#"><span>Hola</span></a> </li> <li> <a href="#"><span>Chau</span></a> </li> </ul>
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("j_idt26:0:j_idt28",event,{"incId":"1"} );return false;">Home</a>
My problem is inserting the <span> inside the <a>
How can I solve this? Thank you.
Sorry for the dumb question!
I did this:
<a4j:commandLink action="#{controller.method}"> <span>#{var.menuName}</span> </a4j:commandLink>
And it worked.