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

  • SEARCH
  • Home
  • 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 9228023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:13:30+00:00 2026-06-18T05:13:30+00:00

<h:commandLink value=Request Permission rendered=#{dataTableWidgetVar.permissionStatus} eq null?true:false> <f:setPropertyActionListener value=#{DocData} target=#{requestController.docResult} /> </h:commandLink> <h:outputText value=#{dataTableWidgetVar.permissionStatus} rendered=#{dataTableWidgetVar.permissionStatus}

  • 0
<h:commandLink value="Request Permission" rendered="#{dataTableWidgetVar.permissionStatus} eq null?true:false">
<f:setPropertyActionListener value="#{DocData}" target="#{requestController.docResult}" />
                                                   </h:commandLink>

<h:outputText value="#{dataTableWidgetVar.permissionStatus}" rendered="#{dataTableWidgetVar.permissionStatus} eq 'Request Pending'?true:false">

In the above code, I have a commandlink and an outputtext. I am rendering them on some condition.

  1. commandlink would render when "#{dataTableWidgetVar.permissionStatus} would be null.
  2. outputtext would render when "#{dataTableWidgetVar.permissionStatus}would equal to a String value “Request Pending”.

But, when I run this code, it shows nothing. Neither the commandlink nor the outputtext.

I want to know what I am doing wrong here.

Is the condition #{dataTableWidgetVar.permissionStatus} eq null?true:false" or anything else wrong? I have tested by printing values on same xhtml page of #{dataTableWidgetVar.permissionStatus} to make sure that even I am getting the values or not, and they are present.

  • 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-06-18T05:13:31+00:00Added an answer on June 18, 2026 at 5:13 am

    try

    rendered="#{dataTableWidgetVar.permissionStatus eq 'Request Pending'? true:false}"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The whole syntax is as below <h:commandLink action=CustomerDetails?faces-redirect=true&amp;customerId=#{item.id} value=#{item.name}/> This is inside a dataTable,
I have such structure in my jsp: <h:commandLink action=#{docbean.save}> <a4j:actionParam name=somename value=bill_all assignTo=#{billdoc.billType}/> <a4j:actionParam
I would like to achieve this functionality. <p:column> <p:commandLink value=prihlasit oncomplete=dlg.show(); action=#{signForProjectBean.setProjectForDetail(item)} /> </p:column>
I am passing Status object to h:commandLink value. So it is displayed on the
I've been read this article : commandButton/commandLink/ajax action/listener method not invoked or input value
I have a commandLink which has a rendered which is calculated based on values
How can I add a parameter to an a4j:commandLink ? The parameter's always null
I have a following code: <div id=mws-navigation> <ul> <li><p:commandLink value=#{contentMB.msg.welcome_title.value} actionListener=#{cleanUpMB.alChangeArea} styleClass=mws-i-24 i-home action=#{welcomeMB.aLoadDashboard}
The conditional operator works in many attributes like rendered value and others. But it
My problem is that the value of the parameter is null in the bean

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.