-
1. Re: listShuttle and a4j:keepAlive
trajber Jan 14, 2008 8:11 AM (in response to trajber)Somebody ?
"trajber" wrote:
When I'm using an listShuttle and a4j:keepAlive together, the h:commandButton's action is not invoked. And when a simply remove the a4j:keepAlive entry everything goes back to normal again.
The code...<h:form> <!-- when I remove this line, it works --> <a4j:keepAlive beanName="personScheduler" /> <rich:listShuttle var="people" sourceValue="#{personScheduler.in}" personScheduler.out}" converter="personConverter"> <h:column> <h:outputText value="#{person.name}" /> </h:column> </rich:listShuttle> <h:commandButton action="#{personScheduler.save}" value="ok" /> </h:form>
It's possible to use them together ? How ? -
2. Re: listShuttle and a4j:keepAlive
xuantoan2510 Jan 14, 2008 10:23 AM (in response to trajber)please check at http://jboss.com/index.html?module=bb&op=viewtopic&t=127144
<a4j:keepAlive> runs normally.
PS : your jsp is not valid. -
3. Re: listShuttle and a4j:keepAlive
trajber Jan 14, 2008 10:45 AM (in response to trajber)Invalid ? Why ?
"xuantoan2510" wrote:
please check at http://jboss.com/index.html?module=bb&op=viewtopic&t=127144
<a4j:keepAlive> runs normally.
PS : your jsp is not valid. -
4. Re: listShuttle and a4j:keepAlive
xuantoan2510 Jan 14, 2008 9:36 PM (in response to trajber)where is person variable declared and i don't find targetValue attribute in <rich:listShuttle> tag. I think you should post your jsp fully.
-
5. Re: listShuttle and a4j:keepAlive
trajber Jan 15, 2008 5:56 AM (in response to trajber)No this is a copy/paste mistake.Sorry.
I put a <rich:messages /> entry and now I got a "Validation Error" message, it helps a little bit more.
Something seams broken in the Converter. Latter I will give it a try.
Thanks."xuantoan2510" wrote:
where is person variable declared and i don't find targetValue attribute in <rich:listShuttle> tag. I think you should post your jsp fully. -
6. Re: listShuttle and a4j:keepAlive
ilya_shaikovsky Jan 16, 2008 2:27 AM (in response to trajber)checking code from livedemo should help you to investigate the server side code you need to get list shuttle working.
-
7. Re: listShuttle and a4j:keepAlive
trajber Jan 16, 2008 7:02 AM (in response to trajber)Tonight I solve the problem.
When the form is posted I realize that the beans are compared (using the equals method).I don't know why, maybe JSF wants to make sure that the items are the same members of the collection used in listShuttle.
The simplest way to fix this is to override equals method of bean class, which is used in listShuttle.
Thanks everybody who help me."ilya_shaikovsky" wrote:
checking code from livedemo should help you to investigate the server side code you need to get list shuttle working. -
8. Re: listShuttle and a4j:keepAlive
ilya_shaikovsky Jan 16, 2008 7:12 AM (in response to trajber)yes. mandatory overriding equals and hashCode methods - shown in demo and described in our docs :)