How to create commandlink programmatically

Posted by John on Stack Overflow See other posts from Stack Overflow or by John
Published on 2010-03-16T22:58:32Z Indexed on 2010/03/16 23:01 UTC
Read the original article Hit count: 232

Filed under:
|
|

Hi,

We have a system built on seam/richfaces. There's this webpage where the tables are rendered from dynamic context (from multiple different datasources, and each of them uses a different layout to represent essentially the same real world concept). As a result, this table is binded to a bean, and it's columns/layout are generated from this bean.

Now I need to add a command link on a specific column, equivalent to

<a4j:commandLink value="#{actBean.Ids}" action="#{actBean.genDetails}">
    <f:setPropertyActionListener target="#{actBean.Ref}" value="#{cont}"/>
</a4j:commandLink>

in a JSF page.

My question is, how do I do this programmatically?

Thanks!

© Stack Overflow or respective owner

Related posts about richfaces

Related posts about j2ee