-
1. JSF Size of arraylist throws exception
spolti Mar 29, 2011 4:04 PM (in response to legit)Maybe can be a missing lib.
Cuz u is using glassfish and now u wants to use JB as 6.
Try it on JB 5
-
2. JSF Size of arraylist throws exception
legit Mar 29, 2011 4:08 PM (in response to spolti)Not to sound rude, but this is not out of the ordinary code, it should be interpreted by the JSF library that JBoss AS6 ships with, and the call to size is simply a call to an ArrayLists size. Shouldn't need any out of the ordinary library for that.
Am I wrong?
-
3. JSF Size of arraylist throws exception
spolti Mar 29, 2011 4:18 PM (in response to legit)Can u post the exception>?
-
4. Re: JSF Size of arraylist throws exception
ssilvert Mar 29, 2011 4:40 PM (in response to legit)There was this Jira but it should have been fixed before AS6 final:
https://issues.jboss.org/browse/JBAS-8374
Maybe you could try the WAR attached to that jira and see if it is broken again.
Stan
-
5. JSF Size of arraylist throws exception
legit Mar 29, 2011 4:39 PM (in response to spolti)As stated in my initial posting, the full stack trace is at the original thread in the richfaces forum: http://community.jboss.org/thread/164602
-
6. JSF Size of arraylist throws exception
spolti Mar 30, 2011 10:45 AM (in response to legit)look it
java.lang.NumberFormatException: For input string: "size"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:449)
at java.lang.Integer.parseInt(Integer.java:499)
at javax.el.ListELResolver.toInteger(ListELResolver.java:407)
your list is of which type?
if int try change to double.
-
7. JSF Size of arraylist throws exception
legit Mar 30, 2011 1:24 PM (in response to spolti)@Filippe the list is an ArrayList which gets the size() method from the List interface in Java.
The issue here is not my list, but why jboss doesn't know how to perform that call (or why the libraries it ships with dont).
-
8. JSF Size of arraylist throws exception
iabughosh Mar 30, 2011 6:17 PM (in response to legit)Dear D F,
you can use jstl library (functions) as follows:
include the namespace : xmlns:fn="http://java.sun.com/jsp/jstl/functions"
<rich:panel id="myPanel" header="#{fn:length(myClass.myList)}">
... inside panel stuff
</rich:panel>
it will do the job.