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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:00:58+00:00 2026-06-13T14:00:58+00:00

Mojarra 2.1.6 / Glassfish 3.1.2 I have something like this <ui:repeat var=item value=#{bean.items}> <h:inputText

  • 0

Mojarra 2.1.6 / Glassfish 3.1.2

I have something like this

<ui:repeat var="item" value="#{bean.items}">
  <h:inputText value="#{item.longProperty}"/>
</ui:repeat>

where Item is an object with a Long property

public class Item { 
  private Long longProperty; // + getters/setters
}

It works fine as long as I’m setting longProperty to something not-null / non-empty.
When I do that, the null input is ignored and the old value is restored.

Similar results for Dates.

It makes no difference if I eliminate the reference to the var/status from the ui:repeat. Even explicitly referencing #{bean.items[0].longProperty} fails the same way.

The same exact h:inputText works fine outside of a ui:repeat and null/empty values work just fine.

Additionally, inside a ui:repeat, empty strings work ok, if the property is a String rather than an object that requires conversion.

To make it even weirder: if I put a valueChangeEvent on the input, I do see that event.getNewValue() returns null when I expect it – yet my setter is called with the old value.

Any idea what’s going on?

  • 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-13T14:00:59+00:00Added an answer on June 13, 2026 at 2:00 pm

    Turns out its a Mojarra / JSF implementation bug with ui:repeat

    http://java.net/jira/browse/JAVASERVERFACES-1721

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

Sidebar

Related Questions

i have this simple page: <h:form id=form> <p:dataTable value=#{testBean.unitTypeModel} var=elem lazy=true rows=10> <p:column headerText=class>#{elem.class.simpleName}</p:column>
Can someone please explain this phenomenon? I am using Mojarra 2.1.6 - Glassfish 3.1.2.
I have a problem with a JSF project. GlassFish Server 3.1.2 Mojarra 2.1.6 I'm
Primefaces 2.2.1 Mojarra 2.1.2 I have a sophisticated method in my jsf bean :
Glassfish 3.1.2, Mojarra 2.1.6, SSL activated I have an question about static resource caching.
In my instance, I have Glassfish 3.1.1 / Mojarra 2.1.3 I could remove the
The glassfish error INFO: Initializing Mojarra 2.1.6 (SNAPSHOT 20111206) for context '/NNTPjsf' INFO: WEB0671:
I am using JSF 2.0 Mojarra. I need to create a Managed Bean that
I'm working with Tomcat7 on JSF 2.17 Mojarra. I'd like to place a servlet
I have been struggling with the unholy alliance that is WebSphere 7+ and Mojarra

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.