[s2] If Test Conditions

2007-05-30 Thread Hoying, Ken
I am having a devil of a time getting a simple if test condition to work properly. Here is the jist of what I am trying to do: display:table id=idContract name=contracts class=results display:column titleKey=label.select s:if test=${idContract.status}=='NEW'

Re: [s2] If Test Conditions

2007-05-30 Thread Jeromy Evans
The problem is that displaytag places the current row in the pageContext but none of your expressions are addressing it. I tend to just use JSTL within displaytag tables as its much easier to access the current row. I also tend to add getters to my bean to simplify the expressions instead of

Re: [s2] If Test Conditions

2007-05-30 Thread Dave Newton
--- Hoying, Ken [EMAIL PROTECTED] wrote: ${idContract.status}=='NEW' '${idContract.status}==NEW' %{idContract.status}=='NEW' These close the OGNL expression too early. ${idContract.status=='NEW'} %{idContract.status=='NEW'} idContract.status=='NEW' #idContract.status=='NEW' As long as

Re: [s2] If Test Conditions

2007-05-30 Thread Dave Newton
--- Jeromy Evans wrote: The problem is that displaytag places the current row in the pageContext but none of your expressions are addressing it. Or it could be that ;) Dave Shouldn't answer questions about taglibs he doesn't know Newton

RE: [s2] If Test Conditions

2007-05-30 Thread Hoying, Ken
, May 30, 2007 10:10 AM To: Struts Users Mailing List Subject: Re: [s2] If Test Conditions The problem is that displaytag places the current row in the pageContext but none of your expressions are addressing it. I tend to just use JSTL within displaytag tables as its much easier to access