[richfaces-issues] [JBoss JIRA] Commented: (RF-6951) List shuttle causes "invalid value expression" error.

Balazs Aranyi (JIRA) jira-events at lists.jboss.org
Thu Sep 3 17:02:23 EDT 2009


    [ https://jira.jboss.org/jira/browse/RF-6951?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12484467#action_12484467 ] 

Balazs Aranyi commented on RF-6951:
-----------------------------------

I faced the same problem, actually it happened to be a double whitespace which caused the listShuttle to hang with invalid value expression.

I guess you could possibly reproduce the issue by having double whitepace in an element of the List, like:

private String[] availableLine = {"Line  1", "Line 2", "Line 3"}; 


Eliminating the double whitespace solved my problem.

> List shuttle causes "invalid value expression" error.
> -----------------------------------------------------
>
>                 Key: RF-6951
>                 URL: https://jira.jboss.org/jira/browse/RF-6951
>             Project: RichFaces
>          Issue Type: Bug
>          Components: component-input
>    Affects Versions: 3.3.0
>         Environment: Windows XP,Eclipse  3.4.1, Sun JDK1.5.
>            Reporter: aasia samreen
>            Assignee: Tsikhon Kuprevich
>            Priority: Critical
>
> I found this thread by search "invalidvalue expression". 
> Initially i was getting this exception for source list and after  implementing the workaround using object array,it was working for source list.
> And now iam getting the same exception for target list.
> I tried to use an object array for target list as well but was not able to initialize the array (i need to specify the size but in this case array size is dyamic.) 
> Please have a look at the code:
> <rich:listShuttle id="LineConfigs"
> 		sourceValue="#{bean.availableline}"
> 		targetValue="#{bean.selectedLine}" var="varaible"
> 		sourceListWidth="280" listsHeight="250" targetListWidth="280"		
> 		binding="#{bean.ShuttleList}"			
> 		converter="convertor">
> </rich:listShuttle>
>  public Object[] getAvailableLine() {
>         if (availableline== null) {
>             availableline = initialLineList.toArray();
>         }
>         return availableline ;
>     }
> public Object[] getSelectedLine() {
>         if selectedLine== null) {
> 	// how to initialize the array. as i dont have any control on the number of selected lines.?
>               }
>      return selectedLine;

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the richfaces-issues mailing list