• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

<rich:listShuttle> problem

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please read your private messages.
 
Ranch Hand
Posts: 43
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
put your managed bean i session scope. use HashCode and Equals method in POJO class e.g. "items" in your case
 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ok i put



one inside and one outside now its working

 
Syed Mahdi
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic