We can achieve "href" in table column using table decorator. Refer the code below

 

<Class Table - decorator>

public String getName()

    throws DecoratorException {

 

        //the bean is retrieved

        Bean bean = (Bean) getCurrentRowObject();

        return "<a href="" + bean.getId() + "\")>" + bean.getName() + "</a>";

    }

 

<JSP>

 

 

<display:table name="<List>" id = "currentObject" decorator="TableDecorator">

<display:column property="name" title="<br>Name" class="comLink" sortable="true" headerClass="sortable"/>

                             

Reply via email to