Skip to Content
author's profile photo Former Member
Former Member

Error in setting column type as LINK- Tableview?

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on May 27, 2008 at 09:13 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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.