aspose file tools*
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
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: 16014
    
  20

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?


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using "var" defined in t:dataTable