-
1. Re: Problem with List-Shuttle
boy18nj Aug 9, 2010 12:24 PM (in response to deepusrp)1 of 1 people found this helpfulRegarding your first error, you need to use Converter. You can either refer converter in your page.xml or xhtml itself.
Second error, unless you are using your own css style, by default you won't see this space.
-
2. Re: Problem with List-Shuttle
ilya_shaikovsky Aug 10, 2010 4:08 AM (in response to boy18nj)1 of 1 people found this helpfulThanks Aman S! I will just add some details to your answer.
Regarding your first error, you need to use Converter. You can either refer converter in your page.xml or xhtml itself.
The component requires converter and implementation of equals and hashCode for object as it doesn't works with just SelectItems as normal select does but with any object which it should know how to compare and add to the model. You could check the working same there http://livedemo.exadel.com/richfaces-demo/richfaces/listShuttle.jsf and checkout full sources from svn (info there - http://jboss.org/richfaces/demos)
Second error, unless you are using your own css style, by default you won't see this space.
Thats also looks like the reason of such visula glitches. and in order to check which styles causes that - use FireBug for FireFox.
-
3. Re: Problem with List-Shuttle
deepusrp Aug 10, 2010 5:33 AM (in response to deepusrp)Hello All,
First of all, thanks Aman and Ilya...
Actually i figured out the soulution for my first problem... Some where in the forum it is clearly mentioned that, for a list shuttle, if the list is other than the String list it has to have a custom convertor... So i had implemented that and its working the way i wanted... (But i forgot to update as it was very late yesterday night).
I need one more clarification, i have overridden the 'equals' method but have not done the 'hashcode'.... is it mandatory to have hashcode also overridden?
And regarding that CSS, i need to check it out...
Thanks a lot for ur reply...
Thanks
Deepak
-
4. Re: Problem with List-Shuttle
deepusrp Aug 10, 2010 1:27 PM (in response to deepusrp)Hello All,
The problem related to the error of listShuttle got solved.
Now i'm concentrating on the UI... I tried to alter the CSS for the list-Shuttle component but could not figure out which one is acting...
Please find the attachment of the snapshot taken from Firebug... The one marked in red box relates to the 'Copy All' Button. Please let me know why i'm getting that extra space that i had marked in my first post for the 'Copy All' button.
Thanks in Advance...
Deepak
-
css.JPG 155.0 KB
-
-
5. Re: Problem with List-Shuttle
ilya_shaikovsky Aug 11, 2010 8:00 AM (in response to deepusrp)that not helps as need to check different ell ements in order to see which styles causes that. probably element which defines border has some unnesessary paddings applied or inner ones has margins. from the begining take your own css declarations off and check that things are fine. then review which of the classes could cause that.