• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using "var" defined in t:dataTable

 
Sandeep Kumar.
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18226
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic