You are not using a renderer that supports links. Here is what we use:

qx.Class.define("LinkDataCellRenderer",
{
  extend:qx.ui.table.cellrenderer.Default,

  construct:function()
  {
    qx.ui.table.cellrenderer.Default.call(this);
  },

  members:
  {
    _getContentHtml:function(cellInfo)
    {
      return this._formatValue(cellInfo);
    }
  }
});

I think we are formating the content of the cell the same as you are so this
should work for you.

Jim
www.D4PHP.org
www.D4PHP-Hosting.com



On 9/10/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> I saw that cellrenderer. Just couldn't make it work.
> Here is my code:
>
>       var tableModel = new qx.ui.table.model.Simple();
>       tableModel.setColumns([ "ID", "Name", "Department" ]);//columns
> headers
>       var rowData = [['<b>a</b>',23,34],[<a href="www.google.com
> ">a</a>,23,43]];
>
>       tableModel.setData(rowData);
>       tableModel.setColumnEditable(1, true);
>       tableModel.setColumnEditable(2, true);
>
>       // table
>       var table = new qx.ui.table.Table(tableModel);
>
>       with (table)
>       {
>         set(
>         {
>           width   : "100%",
>           height  : "100%"
>         });
>         setMetaColumnCounts([ 1, -1 ]);
> getSelectionModel().setSelectionMode(
> qx.ui.table.selection.Model.MULTIPLE_INTERVAL_SELECTION);
>        getTableColumnModel().setDataCellRenderer(0, new
> qx.ui.table.cellrenderer.Abstract());
>
>       }
>         alert('aa');
>     table.addToDocument();
>
> Not sure what was wrong. I just want to make one cell to become a link to
> another html. How do I do that?
>
> Regards,
> Miguel
>
> Date: Sat, 8 Sep 2007 23:42:30 -0700
> From: "Jim Hunter" <[EMAIL PROTECTED]>
> Subject: Re: [qooxdoo-devel] Html in a table cell
> To: [EMAIL PROTECTED],     "qooxdoo Development"
>         <[email protected]>
> Message-ID:
>         <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> If you search the archives for LINK TABLE you should be able to find the
> solution. There is a cellrenderer that was created for this.
>
> Jim
> www.D4PHP.org
> www.D4PHP-Hosting.com
>
>
> On 9/8/07,
>
>
>
>
> Date: Sun, 09 Sep 2007 03:18:28 -0300
> From: [EMAIL PROTECTED]
> Subject: [qooxdoo-devel] Html in a table cell
> To: [email protected]
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="ISO-8859-1"
>
> Hello,
>
> I would like to add a <a href="something">sometext</a> inside a qooxdoo
> table cell.
> Has anyone ever tried to do that?
>
> Thank you
>
> Miguel Angelo G. Pinto
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to