-
1. Re: Problem with <rich:columns> driving me insane
wormdundee May 7, 2008 10:42 PM (in response to wormdundee)I couldn't see that there is any edit button so sorry for the double post.
I should mention that this is the first time I've used columns so I'm probably doing something terribly wrong. -
2. Re: Problem with <rich:columns> driving me insane
andrei_exadel May 8, 2008 2:57 AM (in response to wormdundee)Tell me please what is #{step.tests} in your example?
It should be iterable variable (ArrayList, Collection, Sequence & etc).
In another case FOREACH_BAD_ITEMS error occurs. -
3. Re: Problem with <rich:columns> driving me insane
wormdundee May 8, 2008 12:39 PM (in response to wormdundee)As I said in my original post, it is an ArrayList. I also tried wrapping it in a ListDataModel but that gave the same error.
-
4. Re: Problem with <rich:columns> driving me insane
wormdundee May 8, 2008 12:51 PM (in response to wormdundee)I thought it might be because of the fact that I was using an ArrayList of a custom class, so I tested it out using an ArrayList of strings and I got the same error.
I really have no idea whats going on. -
5. Re: Problem with <rich:columns> driving me insane
andrei_exadel May 12, 2008 4:44 AM (in response to wormdundee)Please specify your RF version?
Can you please to post classes, facesConfig that you use in your example?
You can create issue in JIRA and attach them there.
Thanks. -
6. Re: Problem with <rich:columns> driving me insane
leopinho Jun 18, 2008 12:43 PM (in response to wormdundee)I have the exactly same problem. Any idea? I'm using RichFaces 3.2.1, JSF 1.2_08 (RI), JSTL 1.2, Tomcat 6...
-
7. Re: Problem with <rich:columns> driving me insane
andrei_exadel Jun 19, 2008 5:12 AM (in response to wormdundee)Guys, please be doubled sure that you have arrayList in 'value' attribute of columns when page was rendered.
FOREACH_BAD_ITEMS error occurs ONLY if object is NOT instance of java.util.list, java.util.collection, array, map, enumeration, string & etc. -
8. Re: Problem with <rich:columns> driving me insane
hotngui Apr 6, 2010 4:42 PM (in response to andrei_exadel)I am hitting the exact same problem using Richfaces v3.3.1 as well. There was never an answer posted to this thread, but am hoping someone did eventually figure it out.
The problem appears to be specific to rich:columns as when I use the exact same data and just outputting it using a rich:dataList there is no problem.
Thanks,
joey
-
9. Re: Problem with <rich:columns> driving me insane
nbelaevski Apr 6, 2010 5:04 PM (in response to hotngui)Joey,
This exception happens if columns data is null, please check if that's so in your case.
-
10. Re: Problem with <rich:columns> driving me insane
hotngui Apr 6, 2010 5:13 PM (in response to nbelaevski)Hey Nick,
My data is definitely not null. I found this "note" in the documentation that appears to point out that I can't do what I want to do (at least according to the note):
Note:
The
<rich:columns> tag is initialized during components tree building process.
This process precedes page rendering at "Render Response" JSF phase. To be
rendered properly the component needs all it variables to be initialized while the
components tree is being building. A javax.servlet.jsp.JspTagException occurs
if <rich:columns> uses variables passed from other components, if these variables
are initialized during rendering. Thus, when
<rich:columns> is asking
for such variables they do not already exist. Use <c:forEach> JSP standard tag as
workaround. Compare two examples below.
But the workaround suggested doesn't work either for many reasons - starting with I've never gotten JSTL to play well with JSF.
joey
-
11. Re: Problem with <rich:columns> driving me insane
nbelaevski Apr 6, 2010 5:17 PM (in response to hotngui)I mean that expression has null value when it's evaluated by rich:columns tags, so the exception is thrown. The note in documentation describes such case.
But the workaround suggested doesn't work either for many reasons - starting with I've never gotten JSTL to play well with JSF.
If you are using JSP, check that you are using correct implementation of JSTL.
If Facelets - it should just work :).
Message was edited by: Nick Belaevski
-
12. Re: Problem with <rich:columns> driving me insane
liuliu Apr 7, 2010 3:06 AM (in response to wormdundee)hi,
I think
"#{step.tests}" in rich:columns cant work, because step is not available when creating rich:columns.
you should use something in your backing bean
travelerHandler.
liu