Hi Thiago, I agree to your point that changing css should be the ideal way to change images.The problem was that when we changed image through css, we had to do image.display = none and then provide a background to the anchor tags above it with our images..
This caused the position of our image to be unfixed relative to the column sizes. As a temporary measure we have put a script which first replaces the existing t-sort-icon with a spacer.gif to remove out the existing sorting image and then based on search for t.sort-column-ascending img and t.sort-column-descending img(using prototype doubledollar), we change the source with our images. This way, we have solved the problem that i highlighted in my post yesterday(i.e how to avoid dependency of the images from grid).We will surely look at a more standard css way to do it later. Thanks Sandeep Thiago H. de Paula Figueiredo wrote: > > Em Thu, 03 Dec 2009 05:23:43 -0200, sandeepraj singh > <sandeepraj.si...@atosorigin.com> escreveu: > >> Hi, > > Hi! > >> We have a component MyGrid which has embedded Tapestry5 Grid component. >> We needed to change the sorting images with our own and had first applied >> the changes through css. However, it was giving problems of space >> consistency. > > Changing the images through CSS is the recommended way of doing it. If it > was giving problems of space consistency, you should fix your CSS. > > -- > Thiago H. de Paula Figueiredo > Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, > and instructor > Owner, software architect and developer, Ars Machina Tecnologia da > Informação Ltda. > http://www.arsmachina.com.br > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > > -- View this message in context: http://old.nabble.com/Grid-Sorting-images-changed---One-of-the-approaches-provided-tp26621714p26635851.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org