-
15. Re: ListShuttle/Ordering List components redesign
bleathem Jul 25, 2011 4:01 PM (in response to nbelaevski)I sholuld've seen it earlier, but this won't work, the var attibute is inaccessible outside the f:selectItems component. Falling back to the original proposal.
-
16. Re: ListShuttle/Ordering List components redesign
nbelaevski Jul 25, 2011 5:01 PM (in response to bleathem)It will work, but with 'var' defined at picklist level, not at select item's.
-
17. Re: ListShuttle/Ordering List components redesign
bleathem Jul 27, 2011 12:49 PM (in response to nbelaevski)Yeah, that's the conclusion I came to as well.
What I've got working so far, looks as follows:
<rich:pickList value=#{targetValues} columnVar="foo">
<f:selectItems value="#{beanSelector.values}"/>
<f:converter converterId="EntityBeanConverter" />
<rich:column>#{foo.title}</rich:column>
<rich:column>#{foo.value}</rich:column>
</rich:pickList>
I'm suggesting calling the pickList iteration variable attribute "columnVar" so as to be less ambiguous to end users. The only other thing I would propose is possibly allowing for "items" and "itemValue" attibutes in the <rich:pickList> component itself. But aside from an additional line of conciseness, I don't think anything is gained.
The nice thing about this, is the transition from <h:selectMany> to <rich:pickList> is trivial, and adding support for columns is minor.
Does the above facelet syntax seem palatable to everyone?
Edit: Fixed the columnVar EL reference
-
18. Re: ListShuttle/Ordering List components redesign
valmir Aug 28, 2011 3:34 PM (in response to jbalunas)Dear Jay,
I'm using Richfaces 4.1.0.20110805-M1.
I have a problem with a page that has a picklist.
Everything works properly, but after that some data is submited and any other action is "triggered" everything fails.
The tag "<a4j:ajax event="change" render="result, itens"/>" fails without any message.
Any other action returns the following message:
"java.lang.IndexOutOfBoundsException: Index: 1, Size: 1"
I don't have list, collection or array in the actions.
Could you help me ?
Thanks in advance.
-
19. Re: ListShuttle/Ordering List components redesign
bleathem Aug 29, 2011 10:38 AM (in response to valmir)Valmir,
I'd have to see the code from your facelet file, and your backing bean.
Could you please start a new thread in the user forum, and provide these details:
-
20. Re: ListShuttle/Ordering List components redesign
valmir Aug 29, 2011 9:05 PM (in response to bleathem)