Uploaded image for project: 'Click'
  1. Click
  2. CLK-335

LinkDecorator render

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4
    • None
    • None
    • None
    • WAMP

    Description

      Hi,

      I'd like to use the render method on LinkDecorator. I wish to display different types of links depending on the state of the element in the row table.
      In Click examples, there is an example with the Decorator render which returns string, but for the LinkDecorator, there is no example.

      I tried to put this code :

      actionColumn.setDecorator(new LinkDecorator(table, linksAdm, "id") {
      public ActionLink[] renderActionLinks(Object row, Context context) {

      But the IDE tells :
      -the return type is incompatible with LinkDecorator.renderActionLinks
      -overrides net.sf.click.extraControls.LinkDecorator.renderActionLinks

      Could you help me please ?

      Thanks

      Attachments

        Activity

          People

            medgar Malcolm Edgar
            cfoiret Christophe FOIRET
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: