July 10, 2009 at 8:47 am | English, Java
- Posted by dorileo |
Well, if you`re using display:table you certainly will face some day a situation where you need to verify/test some attribute in the current register to show or not something(maybe a different situation but you need to verify something).
The fact is, display:table will set an attribute in the PageContext, this attribute name will be based on uid or id(the main difference between uid and id is backward compatibility).
With that(say) you`ve set the id attribute of display:table to row. Verifying an attribute in the current row is as easy as using the #attr.row.
For example:
<display:table id="row" ...
<s:if test="#attr.row.you_attribute == 12">
[....]
That`s it, best luck.
Random Posts
- May 26, 2009 -- Friends of Gnome (0)
- June 7, 2009 -- June 08th, 2009: Monday (0)
- May 18, 2009 -- R.E.M losing my religion (0)
- June 1, 2010 -- Tue 2010/Jun/01 (0)
- July 15, 2008 -- Aula de algoritimo e C (0)
- February 11, 2009 -- FOSS events list (0)
- July 21, 2009 -- git: change the remote repository HEAD (0)
- July 22, 2009 -- link: coreboot photos, Denver, 2008 (0)
- March 28, 2009 -- Mallu Magalhães - primeiro altas horas (0)
- March 12, 2009 -- Linux Magazine joking me… (0)
Related Posts
Random Posts
- July 24, 2008 -- Continuo a andar (0)
- March 21, 2009 -- carldani, doesn`t like git (0)
- February 15, 2009 -- Gmail, offline reading (0)
- January 9, 2009 -- AdvFS: starting to work on it (0)
- March 12, 2009 -- Linux Magazine joking me… (0)
- June 22, 2009 -- My internet speed (0)
- March 13, 2010 -- yum: listing installed files (0)
- July 3, 2009 -- Boston - More than a Feeling (0)
- July 15, 2008 -- links de hoje (0)
- January 15, 2009 -- kernelnewbies-pt: website reativado (0)
Leave a Reply
You must be logged in to post a comment.