0

i am trying to disable the particular row using the below thread. But i am not able to compare a string using the same logic. for the given string.

<p:dataTable var="foo" value="#{bean.foos}" selection="#{bean.selectedFoo}" disabledSelection="#{foo.bar == Sample Text}">
<p:column selectionMode="single" />
<p:column>
    <h:outputText value="#{foo.bar}" />
</p:column>

The above code is not executing with == for Strings

The error from the console:

I have tried with disabledSelection="#{foo.bar == Sample Text}" but it is throwoing error

disabledSelection="#{(foo.bar == Sample Text)}" Failed to parse the expression [#{(foo.bar== Sample Text)}]

Original Thread with integer or Long comparision

Mdhar9e
  • 1,376
  • 4
  • 23
  • 46

0 Answers0