Questions tagged [uirepeat]

JSF/Facelets component to iterate over a collection or array without generating markup.

The <ui:repeat> is a Facelets component which allows you to iterate over a collection or an array without generating any additional markup.

224 questions
2
votes
1 answer

Checkbox inside ui:repeat not refreshed by Ajax

I work with Mojarra 2.1.3. When the user click on button "refresh don't work", it refresh the content of the ui:repeat.I expect the checkbox to be checked, just as at the initialization. What I've found: If I remove h:head in the facelet "refresh…
msteinbe
  • 21
  • 2
2
votes
1 answer

how to generate different div id inside ui:repeat for javascript code

I have one ui:repeat component and inside that ui:repeat there is one div which is using in my javascript code. I have to dynamically change this div id on each ui:repeat call. how can i make it possible? Please find the below code for your…
Anandha
  • 47
  • 10
2
votes
3 answers

h:inputText inside ui:repeater displays wrong value after an ajax update

I've got a JSF page with a ui:repeater tag that simply displays a list of strings and some controls to add a string to a list. When adding a string I use ajax to update the repeater tag and have the new string be shown immediately without the page…
Alex
  • 23
  • 1
  • 3
2
votes
1 answer

Control generated ID of ui:repeat

Sorry for the simple question. I am learning to use JSF 2.2 to create a form and trying to keep it close to plain HTML5 as possible. I have an ui:repeat generated list that goes like this:
2
votes
1 answer

Use ui:repeat with b:carousel?

Environment: I'm working with JSF2.2, Bootsfaces 0.9.1, Primefaces 6.0, JEE7 and Hibernate 5.2 in combination with MySQL 5.7 DB. What I have: I've got a model which has a set of images. The set contains instances of my custom Image class which holds…
mweber
  • 107
  • 1
  • 9
2
votes
1 answer

ui:repeat value expression evaluated on every ajax request

I have a page with a very simple form which submits ajax requests targeted only at components in that same form. In the same page (but outside the form), there is also a ui:repeat which iterates over an array returned from a request scoped managed…
maurizeio
  • 266
  • 2
  • 11
2
votes
1 answer

Iteration over array of primitives using

Documentation of ui:repeat, attribute value states that it can iterate over List, array, java.sql.ResultSet, or an individual java Object However it seems that int[] is understood as Object rather than array. Is that any way how to iterate over…
czerny
  • 15,090
  • 14
  • 68
  • 96
2
votes
1 answer

input component inside ui:repeat, how to save submitted values

I'm displaying a list of questions from database and for each question I have to display a list of options, in this case radio buttons.
Jones
  • 1,036
  • 5
  • 20
  • 37
2
votes
1 answer
2
votes
1 answer

how to display radio buttons with ui:repeat?

I have some troubles displaying some data on a JSF page. It deals with a pizza sql-search programm I have written. The java program itself works fine but the output makes some problem. All pizzas are stored in an ArrayList of instances, like List<…
user3548416
  • 117
  • 1
  • 1
  • 11
2
votes
1 answer

InputText with validation does not work properly inside ui:repeat JSF 2.2.6

I have the following xhtml, validator, and managedBean:
2
votes
1 answer

ui:repeat not working inside h:dataTable

I have problem with ui:repeat in h:dataTable tag. I have one collection with names of the field ant another with data. So I am matching them by indexes. When I load the page, exception OutOfBoundsException is thrown. But when i put…
Xenon
  • 189
  • 1
  • 1
  • 14
2
votes
1 answer

f:selectItem inside ui:repeat - doesn't work

I want to loop through List and make each element a checkbox. The code which i have is:
Tot
  • 207
  • 8
  • 25
2
votes
0 answers

Primefaces action at ajax blur event at p:inputText created through ui:repeat is not called

I am currently working on a primefaces webapp and I have the following problem: I create p:inputText fields dynamically inside an ui:repeat. There is a list with users and for each user an input can be made. To keep track of this…
Christian
  • 113
  • 1
  • 3
  • 8
2
votes
3 answers

How to set submitted values of inside into map, set or list

I would like to know if it possible to push a value from inside a to a map, a set or a list? I would like to pass the value of the to a set. Code:
LStrike
  • 1,598
  • 4
  • 26
  • 58