0

sorry i tried a lot of others replies, but still i can't use it:

i want to check the value of a bean in order to print html code or not but all the time i have FALSE condition:

here the code:

<tbody>
<ui:repeat value="${wasJvmInvbean.listWasJvmInv()}" var="jvm">
    <tr>
        <td>${jvm.jvmStatus}</td>
        <td>${jvm.cellName}</td>
        <td>${jvm.serverBean.hostname}</td>
        <td>${jvm.jvmName}</td>
        <td>${jvm.type}</td>
        <td>${jvm.profilePath}</td>
        <td>${jvm.wasVersion}</td>

   <c:if test="${jvm.jvmName eq 'dmgr'}">
   <td>webconsole http://xxxx:8080</td>
  </c:if>
    <c:if test="${jvm.jvmName ne 'dmgr'}">
   <td>N.A.</td>
  </c:if>                       
<td>${jvm.fid}</td>
<td>${jvm.heapMin}</td>
<td>${jvm.heapMax}</td>
<td>${jvm.wcDefaultType}</td>
<td>${jvm.wcHost}</td>
<td>${jvm.wcPort}</td>
    </tr>
</ui:repeat>

Matt Vegas
  • 453
  • 5
  • 17
  • I found also this and tried but nothing: https://stackoverflow.com/questions/10796350/should-i-choose-or-eq-for-comparing-string-in-el – Matt Vegas Jul 28 '17 at 12:54
  • this is dmgr no output but the jvm.jvmName is valorizied JVM Name: dmgr – Matt Vegas Jul 28 '17 at 12:57
  • FIXED following this as example https://stackoverflow.com/questions/7248439/specify-conditional-rendering-of-element-inside-uirepeat-the-cif-does-not new code is sffsd – Matt Vegas Jul 28 '17 at 19:06

1 Answers1

0

FIXED following this as example … new code is

 <h:outputLink value = "https://${jvm.serverBean.hostname}:${jvm.wcPort}/ibm/console" rendered="#{jvm.type eq 'DEPLOYMENT_MANAGER'}" target="_blank" >sffsd</h:outputLink> 
Mohammad Kanan
  • 4,452
  • 10
  • 23
  • 47
Matt Vegas
  • 453
  • 5
  • 17