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'
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
--- 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
--- 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
, 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
5 matches
Mail list logo