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 8727047
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T08:22:00+00:00 2026-06-13T08:22:00+00:00

I have the following EL expression which references a property on the var attribute:

  • 0

I have the following EL expression which references a property on the var attribute:

empty _item.addressLine1

addressLine1 is a String property on the Address bean, which is accessed via the personBean.person.addresses property which returns a Set<Address>.

Here is the EL expression in context:

<h:dataTable id="personBeanPersonAddresses" styleClass="data-table" value="#{forgeview:asList(personBean.person.addresses)}" var="_item">
    <h:column>
        <f:facet name="header">
            <h:outputText value="Address Line 1"/>
        </f:facet>
        <h:link outcome="/address/view">
            <f:param name="id" value="#{_item.id}"/>

            <h:panelGroup rendered="#{!empty _item.addressLine1}">
                <h:outputText id="itemAddressLine1" value="#{_item.addressLine1}"/><br/>
            </h:panelGroup>
        </h:link>
    </h:column>
    ....

The problem is the expression always returns false, regardless of whether addressLine1 is the empty string or not. As if to confirm this, The facelet Validator in Eclipse produces the following warning:

This empty expression always evaluates to false. Only string, maps,
arrays and collection have meaningful values for the empty operator

But I’m not sure how to fix this. I’m running JBoss AS 7.1 with jboss-el-api_2.2_spec-1.0.0.Final

  • 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-13T08:22:01+00:00Added an answer on June 13, 2026 at 8:22 am

    The code looks fine so far. This warning is invalid. Turn off EL validation in Eclipse if it bothers you.

    As to the concrete problem, most likely the #{_item.addressLine1} itself is really empty. You need to make sure that this is not empty.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following Regular Expression which matches an email address format: ^[\w\.\-]+@([\w\-]+\.)+[a-zA-Z]+$ This
I have the following regular expression which is used to give me the tags
I have found the following expression which is intended to modify the id of
I have the following regular expression with which I match a few lines. Here
I have the following LINQ expression that's not returning the appropriate response var query
I have the following extension method which asserts that a property (Id) contains a
In R, I have the following expression for which I would like to take
I have the following regular expression: [0-9]{8}.*\n.*\n.*\n.*\n.* Which I have tested in Expresso against
I currently have code which produces the following LINQ expression (taken from the WhoCanHelpMe
I have the following expression that should match the entire given word in case

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.