Friday, November 26, 2010

How to export commandLink in the table into excel

Hi Friends,
        Some of you may have this problem,The problem is While you are exporting collumn in the commandLink,in the excel sheet the commandLink collumn field will be empty.The reason is the export is only for components of type ValueHolder, which a command ink is not.
      So I solve this problem by using an output text inside the commandLink,and in the outputText field property I use the value property,but in the text property of the commandLink is empty.

sample coding,
   <af:commandLink actionListener="#{bindings.setCurrentRowWithKey.execute}"
          text=""  id="cl4" action="edit">
           <af:outputText value="#{row.DocumentName}" id="ot2"/>
    </af:commandLink>

Hi this will work in all versions of the JDeveloper,This is one of solution,I dont know whether  this is a correct solution or not.If any alternative solution,please post your comments             

1 comment:

  1. Play Baccarat | Play Online, Free or Real Money in
    For instance, in most other sports and 메리트카지노 casino games, this is the equivalent of playing on the 바카라 racetrack, or slot machine 바카라사이트 for the

    ReplyDelete