1

I have string list named dataSetUris. I tried to make if condition on it. It returns true but I cant print the command buttons.

What is my wrong here? Thanks for help.

 <ui:repeat var="item" value="#{result.dataSetUris}">                                           
   <c:if test="${item.length() > 0} ">                                          
     <p:commandButton value="Click" onclick="window.open('#{item}')" ></p:commandButton>        
    </c:if>                                                                                                          
 </ui:repeat>
BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
rLyLmZ
  • 495
  • 4
  • 21
  • 1
    `` is the culprit. The conditional check of `` is dependent upon `var` of ``, a repeater component. Try the same using ``. [See](http://stackoverflow.com/a/3343681/1391249), "*Do not bind the `var` of iterating JSF components to JSTL tag attributes*". – Tiny Oct 10 '14 at 16:08
  • In this case, just conditionally rendering `` should be sufficient as the duplicate link indicates - ` 0}>` dropping the whole `` thing. – Tiny Oct 10 '14 at 18:06
  • yes this works, as BalusC explained, thanks. – rLyLmZ Oct 10 '14 at 18:13

0 Answers0