This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Using "var" defined in t:dataTable" Watch "Using "var" defined in t:dataTable" New topic
Author

Using "var" defined in t:dataTable

Sandeep Kumar.
Greenhorn

Joined: Jul 23, 2008
Posts: 9
Hi

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}"/>
</c:if>
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}">
</t:column>
</t:dataTable>


-sandeep


SCJP 6
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17161
    
  27

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!