java

Use argument in EL expression

Posted on

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 […]

Uncategorized

Project quitsomething.com rolled out

Posted on

Just started working on a new project quitsomething.com, idea is simple keeps a diary of things that I want to quit hence the name “quitsomething”. Technology C# jQuery NHibernate with MySQL Twitter Integration Why NHibernate with MySQL? Well I am familiar with Hibernate and MySQL and I don’t want to pay extra for having extra […]

Uncategorized

Xpath alternate row colors

Posted on

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.