how to compare two string variable using if condition in jsf
up vote
1
down vote
favorite
<c:if test="#{active eq status }">
<label class="switch">
<h:selectBooleanCheckbox class="input" id="sta" value="#{CMB.check}" />
<span class="slider round"></span>
</label>
</c:if>
i am trying to compare two variable but it is always returning false although varibles values are equals
if-statement jsf jstl el
add a comment |
up vote
1
down vote
favorite
<c:if test="#{active eq status }">
<label class="switch">
<h:selectBooleanCheckbox class="input" id="sta" value="#{CMB.check}" />
<span class="slider round"></span>
</label>
</c:if>
i am trying to compare two variable but it is always returning false although varibles values are equals
if-statement jsf jstl el
3
What is status? Is it the status variable from a JSF loop component like ui:repeat? If so, read this carefully: stackoverflow.com/questions/3342984/…
– Selaron
Nov 20 at 15:31
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
<c:if test="#{active eq status }">
<label class="switch">
<h:selectBooleanCheckbox class="input" id="sta" value="#{CMB.check}" />
<span class="slider round"></span>
</label>
</c:if>
i am trying to compare two variable but it is always returning false although varibles values are equals
if-statement jsf jstl el
<c:if test="#{active eq status }">
<label class="switch">
<h:selectBooleanCheckbox class="input" id="sta" value="#{CMB.check}" />
<span class="slider round"></span>
</label>
</c:if>
i am trying to compare two variable but it is always returning false although varibles values are equals
if-statement jsf jstl el
if-statement jsf jstl el
edited Nov 21 at 7:27
Kukeltje
8,66341238
8,66341238
asked Nov 20 at 14:55
Naznin Saiyed
61
61
3
What is status? Is it the status variable from a JSF loop component like ui:repeat? If so, read this carefully: stackoverflow.com/questions/3342984/…
– Selaron
Nov 20 at 15:31
add a comment |
3
What is status? Is it the status variable from a JSF loop component like ui:repeat? If so, read this carefully: stackoverflow.com/questions/3342984/…
– Selaron
Nov 20 at 15:31
3
3
What is status? Is it the status variable from a JSF loop component like ui:repeat? If so, read this carefully: stackoverflow.com/questions/3342984/…
– Selaron
Nov 20 at 15:31
What is status? Is it the status variable from a JSF loop component like ui:repeat? If so, read this carefully: stackoverflow.com/questions/3342984/…
– Selaron
Nov 20 at 15:31
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
draft saved
draft discarded
draft saved
draft discarded
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53395700%2fhow-to-compare-two-string-variable-using-if-condition-in-jsf%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
3
What is status? Is it the status variable from a JSF loop component like ui:repeat? If so, read this carefully: stackoverflow.com/questions/3342984/…
– Selaron
Nov 20 at 15:31