cancel
Showing results for 
Search instead for 
Did you mean: 

Error in setting column type as LINK- Tableview?

Former Member
0 Kudos

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 can’t see any link in the table view.

Please Guide me.

Thanks,

Krishna

Edited by: krishna kannan on Apr 21, 2008 6:41 AM

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Thanks. I found this, but how i set a target of the link.

What i want is a table, there you will have a list.

On the end of each row i want to have a link(or button) to fire an event or call i website ....

how i can do this??

Former Member
0 Kudos

If you are using table view then you have to set model(Bean class) for that.

Give the value of the last column as,

 <A href="Website" target="_blank">Link Text</A>

And set the Column type as,

 model.getColumnAt(LastColumnNumber).setType(TableColumnType.LINK); 

in model.

I hope this is useful.

Former Member
0 Kudos

This SDN can't post "java"+"script:"!!!

And I don't know how i can delete this POST. Sorry

See the Post more down ...

Former Member
0 Kudos

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!!!

Former Member
0 Kudos

This SDN can't post "java"+"script:"!!!

And I don't know how i can delete this POST. Sorry

See the Post more down ...

Former Member
0 Kudos

This SDN can't post "java"+"script:"!!!

And I don't know how i can delete this POST. Sorry

See the Post more down ...

Former Member
0 Kudos

.... 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!!!