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
1
vote
1 answer

ui:repeat in o:tree not working as expected

I'm using a omnifaces o:tree of "branches" where each branch has a "list of leafs" with the attribute "color" which should be editable in the tree. - branch 0 - leaf 0 (color = "green") - leaf 1 (color = "yellow") - branch 1 - leaf 0 (color =…
Ralf
  • 569
  • 4
  • 14
1
vote
0 answers

JSF commandlink not working in ui:repeat inside a facet in a subTable in dataTable

i have a problem with JSF commandlink inside ui:repeat with a subtable/datatable. I already trie use a viewscoped bean with @PostConstruct method loading all data and still not working. I read @BalusC explanation in commandButton/commandLink/ajax…
Oliveira
  • 11
  • 2
1
vote
1 answer

Is it possible to use EL in ui:repeat?

Mojarra 2.1.29 I've read that usually it's not necessary to use EL to generate id-attribute dynamically. I also know that the id-attribute resolved at view-building phase. But in our projects we have to write some Selenium tests which are goign to…
user3663882
  • 6,957
  • 10
  • 51
  • 92
1
vote
0 answers

PrimeFaces UI repeat will not shuffle images when effect is set to "shuffle". What am I doing wrong?

I am trying to follow the primefaces showcase code that is posted on their website here. I have my code set up exactly the same way from what I can tell, but when I run my code all I see is my images displayed on the screen without being shuffled…
level2fast
  • 31
  • 3
1
vote
1 answer

h:outputStylesheet inside ui:repeat

I'm trying to use to output a stylesheet link for every element of an ArrayList. This code produces no result: However, if i change the…
lmerry213
  • 409
  • 6
  • 16
1
vote
0 answers

Command button does not invoke action after updating section by f:ajax

When I click on (without selecting item from ), I'm able to invoke method of bean which redirects me to same page as well as server side validations works perfectly. However, when I select item from…
1
vote
1 answer

Validate if list in has at least one non-empty/null value

I've a List in my model: private List list; // Add to list: "d","e","f","a","u","l","t" // Getter. I'm presenting it in the view as below:
lorraine batol
  • 6,001
  • 16
  • 55
  • 114
1
vote
1 answer

JSF ui:repeat in ui:repeat with dynamically assigned var-value

We created a JSF table component for our projects which uses to create the table. A new requirement to add a table inside a table (the second table resides in a row and is collapsable) has gotten us into trouble as the
1
vote
0 answers

doesn't work inside

I have string list named dataSetUris. I tried to make if condition on it. It returns true but I cant print the command buttons. What is my wrong here? Thanks for help.
rLyLmZ
  • 495
  • 4
  • 21
1
vote
1 answer

Access previous/next item when iterating over a ListDataModel using JSF 2 facelets tag

I'm iterating over a list and want certain attributes of the current element to be rendered only when they're different from the previous element. Right now I have:
NotGaeL
  • 8,344
  • 5
  • 40
  • 70
1
vote
1 answer

Prevent from being inserted in generated html

I'm trying to combine JSF2.2 with bootstrap 3.2.0 components and got stuck when trying to use the button group with a dynamically generated list of labels. I traced the problem down to the ui:repeat tag being included in the generated html and thus…
Yamada
  • 723
  • 6
  • 23
1
vote
2 answers

JSF & ui:repeat - issue with adding an object to cart

Once again I need some help with my pizza-search-programm I have written with Java Server Faces. The program: A user can search for pizzas by entering a form. A filtered search is possible as the user can decide whether he searches for a pizza name,…
user3548416
  • 117
  • 1
  • 1
  • 11
1
vote
0 answers

getting null value when calling method from inside jsf ui:repeat

I have a list of items that I have to display with a textbox for each item which is bound to a rating object's points property. At first I used a primefaces p:dataList like this:
Peter
  • 1,047
  • 2
  • 18
  • 32
1
vote
0 answers

JSF 2.2 - everything inside ui:repeat is evaluated, although rendered = "false"

I'm currently migrating a web application from JSF 1.2/Richfaces 3.3.3 to JSF 2.2 For data iteration, we used a4j:repeat from Richfaces. I now want to change the iterators to ui:repeat, because we want to throw out Richfaces. However, I came across…
msh
  • 11
  • 4
1
vote
2 answers

Why does not work with java.util.Iterator?

Why does JSF2/Facelet's ui:repeat not accept java.util.Iterator's for value? One can hide so much implementation and memory conservation behind an Iterator since length need not be known, it would be so useful to have. But instead I need to…
DWoldrich
  • 3,817
  • 1
  • 21
  • 19