wood burning stoves 2.0
The moose likes JSF and the fly likes Using Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Using "var" defined in t:dataTable" Watch "Using "var" defined in t:dataTable" New topic

Using "var" defined in t:dataTable

Sandeep Kumar.

Joined: Jul 23, 2008
Posts: 9

i want to use the var attribute declared in t:dataTable. using JSTL tags.
<t:dataTable var="myVar" value="#{inboxArrayList}" id="iterTable">
Here i want to check it for null and if its not null then i want to store its value in some other variable "myvar2" using <c:set>

i have tried this:
<c:if test="${requestScope.myVar !=null>">
<c:set var="myVar2" value="${requestScope.myVar}"/>
But its not working. Please somebody tell me how to achieve the above functionility.

<t:column style="text-align: left" width="8%" rendered="#{null == testtable.strCusip}">


Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17421

Putting JSTL on a JSF page is almost always a bad idea. Putting JSTL logic on a JSF page is an even worse one.

Instead of low-level technical details of how you're attempting 2 different page design systems to work together using brute force, why don't you tell us what you actually want the display to look like and to do?

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link: http://aspose.com/file-tools
subject: Using "var" defined in t:dataTable
It's not a secret anymore!