on 04-15-2008 7:10 AM
Hi All,
I am developing a jspDynpage which displays a tableview. I am in need to set a column type as LINK.
I tried a lot. I have used the following ways.
1. In jsp page,
<hbj:tableView
id="ReportView"
model="MMBean.model"
design="ALTERNATING"
headerVisible="true"
footerVisible="true"
fillUpEmptyRows="true"
navigationMode="BYLINE"
selectionMode="NONE"
headerText="People Search Results"
onNavigate="OnTVNavigate"
visibleFirstRow="<%= MMBean.getVisibleFirstRow()%>"
visibleRowCount="15"
rowCount="16"
width="500 px" >
<% ReportView.setColumnType(TableColumnType.LINK,3) %>
</hbj:tableView>
It is showing me error.
Error occurs during the rendering of Jsp component.
2. I also tried to set the LINK using Bean.
model.getColumnAt(3).setType(TableColumnType.LINK);
But I cant see any link in the table view.
Please Guide me.
Thanks,
Krishna
Edited by: krishna kannan on Apr 21, 2008 6:41 AM
Hi,
The option 2 is working fine,
model.getColumnAt(3).setType(TableColumnType.LINK) when i gave the link text (ie column text) in Anchor tag.
Now i got the link.
Edited by: krishna kannan on May 27, 2008 11:32 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, sorry but it doesn't works ...
see here ...
....
But what i realy want is not a link, it's a button and each Button on every row rasied a event (i must know which of this buttons was clicked!) .... and i can't find any thing in the web for this solution ...
I can't beleave nobody has this problem!!!
.... Sorry but th sdn dosn't want post my message, without a error!!!!!
Hi, sorry but it doesn't works ...
see here ...
this.model = new DefaultTableViewModel(data, columnNames);
// This is fine working ...
model.getColumn("Link").setType(TableColumnType.LINK);
...
...
// This is not working
UserDetailObj.addElement("<A href=\"test();\">del</A>");
...so i see in the table the html-code as text!
But what i realy want is not a link, it's a button and each Button on every row rasied a event (i must know which of this buttons was clicked!) .... and i can't find any thing in the web for this solution ...
I can't beleave nobody has this problem!!!
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.