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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:36:08+00:00 2026-05-23T01:36:08+00:00

I want list to be List<String> . First I display one inputText , each

  • 0

I want list to be List<String>. First I display one inputText, each time a user enters data in the inputText I add another empty inputText. If the list already has some values I display them all + one empty one.
But it doesn’t work, because Strings are immutable.
I made a wrapper for String as an workaround, but I don’t like it.
How could I make the inputText refer to the position in the backed list ?

<ice:repeat value="#{mBean.list}" var="xxx" valueChangeListener="{mBean.vcl}">
    <ice:inputText partialSubmit="true" value="#{xxx}" />
</ice:repeat>
  • 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-23T01:36:09+00:00Added an answer on May 23, 2026 at 1:36 am

    I don’t do IceFaces, but if the <ice:repeat> supports a varStatus attribute like as JSTL’s <c:forEach> and Facelets’ <ui:repeat>, then you can submit to a List<String> when accessing the individual item by list index instead of by var attribute as the following Facelet example:

    <ui:repeat value="#{bean.strings}" varStatus="loop">
        <h:inputText value="#{bean.strings[loop.index]}" />
    </ui:repeat>
    

    This way the value is set by the setter of the list, the List#set(index, value) method.

    Other than that, your best bet is really to wrap the String in a bean. I’m however pretty positive that JSTL <c:forEach> should also work out for you the above way, as long as you don’t have it nested in another JSF repeating tag. You’ll only miss that valueChangeListener attribute/feature you had in <ice:repeat>.

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

Sidebar

Related Questions

I have a list of string values that I want add to a hashtable
Say a class Person +Name: string +Contacts: List<Person> I want to be able to
I have a method that returns a list of type string. I want to
I want to sort a list of strings based on the string length. I
I have a list control where i want to show a string (thats fine)
If I want to cut a list of text using a string as a
I want to test whether a certain string is contained in a short list
I have a Dictionary<string, List<Order>> and I want to have the list of keys
I have a list of values I want to display in a template of
I created one domain in that domain i created nearly 500 user accounts.I want

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.