You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Helmut Swaczinna <sw...@wlp-systems.de> on 2007/07/06 13:53:14 UTC

[Tobago] Exception when sorting on column with tc:link

Hi,

I have a tc:sheet with a sortable column which display a link:

      <tc:column label="#{overviewBundle.column_label_schritt}"
        tip="#{overviewBundle.column_tip_schritt}"
        sortable="true">
        <tc:link id="schritt"
          label="#{vorgang.aktuellerSchrittKurz}"
          action="#{overviewController.showBearbeiterAction}">
        </tc:link>
      </tc:column>

When I click on the header to sort the column I get an exception:

07-06 13:44:56,140 ERROR GENA-WAPP [http-8080-Processor21    ] Sorter No 
sortable component found!
07-06 13:44:56,140 WARN  GENA-WAPP [http-8080-Processor21    ] Sorter 
removing attribute sortable from column _idJsp114
07-06 13:44:56,156 ERROR GENA-WAPP [http-8080-Processor21    ] Sorter Error 
while extracting sortMethod :Cannot remove component property attribute
java.lang.IllegalArgumentException: Cannot remove component property 
attribute
        at 
javax.faces.component._ComponentAttributesMap.remove(_ComponentAttributesMap.java:270)
        at 
org.apache.myfaces.tobago.component.Sorter.removeSortableAttribute(Sorter.java:146)
        at 
org.apache.myfaces.tobago.component.Sorter.invoke(Sorter.java:110)
        at 
org.apache.myfaces.tobago.component.UIData.invokeMethodBinding(UIData.java:605)
...

Regards
Helmut 


Re: [Tobago] Exception when sorting on column with tc:link

Posted by Bernd Bohmann <be...@atanion.com>.
Hello,

should be fixed.

See

https://issues.apache.org/jira/browse/TOBAGO-437

the value is not instance of List or Object[] internal sorting can't be 
performed.

Regards

Bernd

Helmut Swaczinna wrote:
> Hi,
> 
> I have a tc:sheet with a sortable column which display a link:
> 
>      <tc:column label="#{overviewBundle.column_label_schritt}"
>        tip="#{overviewBundle.column_tip_schritt}"
>        sortable="true">
>        <tc:link id="schritt"
>          label="#{vorgang.aktuellerSchrittKurz}"
>          action="#{overviewController.showBearbeiterAction}">
>        </tc:link>
>      </tc:column>
> 
> When I click on the header to sort the column I get an exception:
> 
> 07-06 13:44:56,140 ERROR GENA-WAPP [http-8080-Processor21    ] Sorter No 
> sortable component found!
> 07-06 13:44:56,140 WARN  GENA-WAPP [http-8080-Processor21    ] Sorter 
> removing attribute sortable from column _idJsp114
> 07-06 13:44:56,156 ERROR GENA-WAPP [http-8080-Processor21    ] Sorter 
> Error while extracting sortMethod :Cannot remove component property 
> attribute
> java.lang.IllegalArgumentException: Cannot remove component property 
> attribute
>        at 
> javax.faces.component._ComponentAttributesMap.remove(_ComponentAttributesMap.java:270) 
> 
>        at 
> org.apache.myfaces.tobago.component.Sorter.removeSortableAttribute(Sorter.java:146) 
> 
>        at 
> org.apache.myfaces.tobago.component.Sorter.invoke(Sorter.java:110)
>        at 
> org.apache.myfaces.tobago.component.UIData.invokeMethodBinding(UIData.java:605) 
> 
> ...
> 
> Regards
> Helmut
>