Use argument in EL expression

Posted on Leave a commentPosted in java

There is couple ways about doing that, you could use JBoss EL expression implementation they support method calls with parameters check out Seam, or use similar approach as @digitaljoel suggested. This is what I created for that purpose, you can call static and static methods, not a great solution but it does the job. <c:if […]

Xpath alternate row colors

Posted on Leave a commentPosted in Uncategorized

This XPath expression will let you alternate row colors Alternate Rows <wr:if select="1+count(preceding-sibling::*) mod 2 = 1"> ROW A Color <wr:else/> ROW B Color </wr:if>Alternate Rows <wr:if select="1+count(preceding-sibling::*) mod 2 = 1"> ROW A Color <wr:else/> ROW B Color </wr:if> Example I will provide complete example soon.