Skip to Content
0
Former Member
Aug 20, 2005 at 05:09 AM

Column link

40 Views

I am trying to get a hyperlink in my tableview, tried all possible ways to get a link. As suggested in forums i tried in setting the column data as link in Bean noting happens, when i try it in jsp page it gives error. am I missing any jar files.

Bean :

public void TestTableViewModel(IPortalComponentRequest componentRequest){

Vector column = new Vector();

column.addElement("Link");

Vector data = this.getData(componentRequest);

model = new DefaultTableViewModel(data, column);

model.getColumn("Link").setType(TableColumnType.LINK);

}

private Vector getData(IPortalComponentRequest componentRequest)

{

Vector retVector = new Vector();

Vector data = new Vector();

data.addElement("click here");

retVector.add(data);

return retVector;

}

}

JSP :

<%@ taglib uri="tagLib" prefix="hbj" %>

<jsp:useBean id="myBean" scope="application" class="com.tst.img.ISBean" />

<hbj:content id="myContext" >

<hbj:page title="PageTitle">

<hbj:form id="myFormId" >

<hbj:tableView

id="myTableView1"

model="myBean.model"

design="ALTERNATING"

headerVisible="true"

footerVisible="false"

fillUpEmptyRows="true"

navigationMode="BYLINE"

selectionMode="NONE"

headerText="test"

onNavigate="myOnNavigate"

visibleFirstRow="1"

visibleRowCount="2"

width="700px">

<%

myTableView1.setColumnType(TableColumnType.LINK,1);

%>

</hbj:tableView>

</hbj:form>

</hbj:page>

</hbj:content>

with Jsp i get compilation error

Error in executing a process for compilation, C:/usr/sap/EP6D/j2ee/j2ee_00/cluster/server/services/servlet_jsp/work/jspTemp/irj/root/WEB-INF/portal/portalapps/IMAGESHOW/work/pagelet/_sapportalsjsp_TabImgShow.java:141: cannot resolve symbol symbol : variable TableColumnType location: class pagelet._sapportalsjsp_TabImgShow myTableView1.setColumnType(TableColumnType.LINK,1); ^ 1 error .

Exception id: 12:01_20/08/05_0065

See the details for the exception ID in the log file