This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
My problem is that I want to have a small image icon for the corresponding color in the first column.
I can print the color text perfectly by the line <display:column title="Color" property="color"> but then I couldnt make it an image.
My idea was to access it as an implicit object according to: displaytag example Since the dynabean is put in the page scope I access it with:
this would output the beans name e.g. org.apache.commons.beanutils.BasicDynaBean@133650d in the column.
sadly adding the prefix:
So my question is; what am I doing wrong here? is it a simple syntax error or am I using the wrong approach?
All suggestions are appreciated!
I'd probably just try accessing it using the get() method first; #attr.item.get('color') and see if that works. Since it's not a map, and has no color property, I don't think OGNL would have any idea of how to access arbitrary properties. #attr.item.map.color or #attr.item.map['color'] might work, however, since getMap() returns an actual map.
Joined: Feb 25, 2009
David, you just made my day!
worked like a charm!
I can't thank you enough, good day to you!