Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4002690
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T08:03:37+00:00 2026-05-20T08:03:37+00:00

I am using JSF 1.1 and Tomahawk and Tomcat 6.0 <c:if test=${vo.type=1}> <t:commandLink action=#{Manager.openPatient}>

  • 0

I am using JSF 1.1 and Tomahawk and Tomcat 6.0

<c:if test="${vo.type=1}">
    <t:commandLink action="#{Manager.openPatient}">
        <c:out value="${vo.patientId}"></c:out>
        <t:outputText value="#{vo.patientId}" />
        <f:param value="#{vo.id}" name="patientId"/>
    </t:commandLink>
</c:if>

I am trying to add conditions based on the type.
If vo.type = 1 do call Patient.
If vo.type = 2 do call Account and so on.

It seems that <c:if> tag is not working. Any ideas or pointers in resolving this would be appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T08:03:38+00:00Added an answer on May 20, 2026 at 8:03 am

    Like as in normal Java, you need to compare with ==, not with =.

    <c:if test="${vo.type == 1}">
    

    Unrelated to the concrete problem, if the same functionality is achievable with pure JSF, then you should prefer that over using JSTL. In this particular case, you could just make use of the rendered attribute which is supported by every JSF HTML component. Get rid of <c:if> (and the superfluous <c:out>) and change the <t:commandLink> as follows:

    <t:commandLink action="#{Manager.openPatient}" rendered="#{vo.type == 1}">
        <t:outputText value="#{vo.patientId}" />
        <f:param value="#{vo.id}" name="patientId"/>
    </t:commandLink>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using JSF Myfaces Impl 1.2 without tomahawk and other libs : I
I am using JSF 1.2 without tomahawk and other libraries. The JSF Applicatin works
I am using JSF 1.2 + Facelets + Apache My Faces without Tomahawk or
two days ago i started using tomahawk ExtensionsFilter components im my jsf application. i
I'm using JSF/Facelets, and I'm trying to iterate over some Document objects (custom object)
How do I connect to the database(MYSQL) in connection bean using JSF to retrieve
How would I get the length of an ArrayList using a JSF EL expression?
I`m developing an application using Spring WebFlow 2, Facelets and JSF. One of my
Is there a way to create an html link using h:outputLink, other JSF tag
Using C# .NET 3.5 and WCF, I'm trying to write out some of the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.