aspose file tools*
The moose likes JSF and the fly likes <rich:listShuttle> problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "<rich:listShuttle> problem" Watch "<rich:listShuttle> problem" New topic
Author

<rich:listShuttle> problem

scientia india
Greenhorn

Joined: Jul 02, 2009
Posts: 8
Hi

I am using <rich:listShuttle> component of rich faces. But when using the <rich:listShuttle> component other components like <a4j:commandButton> is not working.



The action method is not invoked
If i am removing the <rich:listShuttle> component the action method invoked.Why this happened?
Please Help me

Thanks in Advance
Athira
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Please read your private messages.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Sumeet Singh Aryan
Ranch Hand

Joined: Jul 30, 2008
Posts: 43
put your managed bean i session scope. use HashCode and Equals method in POJO class e.g. "items" in your case


The woods are lovely, dark and deep, But I have promises to keep; And miles to go before I sleep, And miles to go before I sleep. - Robert Frost
Syed Mahdi
Ranch Hand

Joined: Aug 27, 2004
Posts: 45
Paul Sturrock wrote:Please read your private messages.


is it possible you can send me the private message too I am having the same problem, the h:commandbutton or even the a4j:commandbutton doesnt seem to work when i have listshuttle on my page and i badly need it i cant remove it.



Syed Mahdi
Ranch Hand

Joined: Aug 27, 2004
Posts: 45
Sumeet Singh Aryan wrote:put your managed bean i session scope. use HashCode and Equals method in POJO class e.g. "items" in your case


I did what you said as well like putting my managedbean in session scope but now the action does get called but the changes in the listshuttle are not coming through. the old results are still showing.

like in the example below: {admissionBean.selectedTieBreakers} is having the same set of elements that it had before i added two more elements.
Syed Mahdi
Ranch Hand

Joined: Aug 27, 2004
Posts: 45
ok i put



one inside and one outside now its working

Syed Mahdi
Ranch Hand

Joined: Aug 27, 2004
Posts: 45
OK i see one more thing .. NOW that I have placed



on the outside and the inside I can revert it back to conversation scope and it works fine..

AND

I have immidiate=true on my command button as well so these are the things I have on my end.

1) scope is Conversation
2) <a:support event="onlistchanged" reRender="shuttleComp"/> in the column tag and after it (maybe I can remove the one inside the column tag)
3) My pojo has the equals and hashcode methods implemented as well
4) the a4j:commandbutton has immidiate="true" attribute on it.

Hope it helps a lone ranger like me.

Thanks
Syed Mahdi
Ranch Hand

Joined: Aug 27, 2004
Posts: 45
Sorry for confusing you all again:

If you put scope as session: well its not working somehow anymore changed it back to converssation scope.

I guess the ajax calls for onlistchanged and all made the trick

HOWever, you guys might need to have to make ajax calls for each event you want the component to register you know. like on orderchange or on remove events and all.

But now I have another problem,.. I change the target list or any change it only changes once per load. I have to reload the page to do another change.

I dont know how but the session scope did make it better (maybe it didnt compile right) but now my page comes empty all of a sudden. like no data was in the form even though the ID of the bean for the backing bean was there in URL.
Syed Mahdi
Ranch Hand

Joined: Aug 27, 2004
Posts: 45
Ok!!!


All BS aside, just posting this incase some one has the same issue with shuttle list so he may take heed and correct it:

The problem was the

You are not supposed to giveit a resultlist for some reason. if you do your h:commandbutton actions dont work so i made a backing bean, a post on another forum helped me on this. use the backing bean with injecting the Query object and returning the resultlist through a getter and setter of the same king of List<someEntity> that you are expecting in the sourceValue and TargetValue.

disregard the post above, doesnt work.

I know its a dead thread and a Zombie but needed to post my solution on this problem.

Thanks All.

Syed
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: <rich:listShuttle> problem
 
Similar Threads
How to disable rich:listShuttle controlling components?
Skinning issue in Richfaces 4 and JSF 2
Problem with rich:listShuttle
rich:dataTable and rich:listshuttle rerendering issue
Flickering Effect on using <rich:extendedDataTable>