223 questions
0
votes
1
answer
40
views
How to address components inside dynamic repeat inside a composite component
Got some difficulties addressing components inside ui:repeat iterating over a collection which is a attribute of a composite component like so:
<ui:component>
<cc:interface>
&...
1
vote
1
answer
78
views
JSF ui:repeat | Just display the first 5 elements of a List
Hi can someone tell me if its possible to just render the first 5 elements of a list with ui:repeat without creating a seperate List for this?
I googled but couldn't find something about this.
Thank ...
0
votes
1
answer
67
views
p:radarChart stacks all objects of an ArrayList<radarModel> in every chart
The user first makes a selection, according to this selection my BackingBean builds the corresponding number of radarModels and adds them in an ArrayList. An <h: form> is then updated and the ...
1
vote
1
answer
74
views
Netbeans doesn't autocomplete properties of var of nested <ui:repeat>
Let me say I have a Book Library with a list of Book. A Book has a List of Page. Page has a list of Line.
In JSF, i'm trying to display all the lines, now I'm using <h:dataTable> or <ui:...
0
votes
0
answers
73
views
How can I use jsf ui:repeat inside af:column for a list per table entry?
I would like to display a list of information per entry in the table. For example for each user, one can have multiple cell phone numbers.
The users are listed in the and I have an for the cell ...
0
votes
0
answers
80
views
JSF ui repeat : Array index out of range: 0 [duplicate]
i have form inside my form i have ui repeat wich repeat input form i want to save value of input text in my bean :
<ui:repeat var="field" value="#{formSettings.studentsFormSettings}" varStatus="...
0
votes
0
answers
45
views
ui:repeat doesn't work, nothing in DOM as well
I have this simple code which uses ui:repeat and based on the list of items, it is supposed to output some data using h:outputText.
XHTML code
<p:fragment id="tail_content" rendered="#{cBean....
-2
votes
1
answer
1k
views
JSF repeat for row grouping or groupRow
I am not too good with JSF, i have searched but couldn't find similar answer on the net please i need help. I have a set of a sample table below which can grow, it is not certain of how many rows each ...
0
votes
0
answers
316
views
JSF nested ui:repeat / DataTable issue
I'm trying to nest a ui:repeat or another DataTable inside of my original DataTable so I can display another list.
So the original DataTable uses one list and the nested ui:repeat is using another ...
1
vote
1
answer
5k
views
How to get current index of ui:repeat tag in a backing bean
I am a new in a primefaces and I have one problem.
In my xhtml file I have ui:repeat tag, and with his varStatus attribute I can get the current index:
<ui:repeat var="i" varStatus="status">
...
1
vote
0
answers
35
views
Load in java chords of dynamic primefaces dragable components
I am trying to load in java chords of dynamic primefaces dragable components.
My code has this look:
Primefaces
<ui:repeat value="#{bbean.list}" var="dato">
<h:panelGroup id="conpnl#{...
0
votes
1
answer
684
views
Dynamically add item to ui:repeat
I'm working on a mobile page and have a list with about 300 items. This is a total of 300kb data when users access that page.
I've implemented a jquery listview as composite component for dynamically ...
3
votes
1
answer
3k
views
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:
<ul id="...
1
vote
0
answers
131
views
ui:repeat h:selectManyCheckbox choice getting values from the h:selectManyCheckbox [duplicate]
I'm working on a JSF 2.2 project, jboss 8.x
I created a dynamic form only with selectManyCheckbox.
I have the following code:
<table border="5">
<ui:repeat var="cat" value="#{beanQuiz....
0
votes
0
answers
320
views
p:push objects and update via ui:repeat
This non-working implementation tries to start a new ScheduledExecutorService to dynamically push new Items to the client and update the form:
index.xhtml
<?xml version="1.0" encoding="UTF-8"?>...
1
vote
0
answers
92
views
How can I add JSF code to xhtml in the attribute id? [duplicate]
I am working with JSF 2.2 and I would like use JSF variables in the id attribute for to send individuals petitions for each list's element.
For example:
<ui:repeat value="#{bean.numbers}" var="...
0
votes
1
answer
376
views
Getting Reference To CheckBox From ui:repeat In JavaScript Code [duplicate]
I have the following code snippet in a JSF 2.0 application:
<ui:repeat var="applicantTypes" value="#{lookupHelper.applicantTypes}">
<h:selectBooleanCheckbox styleClass="applicantType"
...
6
votes
1
answer
398
views
Missing parameter values in invoked method with composite components using ui:repeat
So after several days of debugging, we were eventually able to reproduce some strange interactions between composite components, ui:repeat, p:remoteCommand and partial state saving in JSF that we do ...
0
votes
0
answers
24
views
<h:inputText> in <ui:repeat> submits only the last row [duplicate]
I am trying to change ArrayList in xhtml page using managed bean.
When I am entering data to the table, only the last row in the table getting the data in to the ArrayList. Here is the code.
<?...
0
votes
0
answers
40
views
Iterating loading images w @PostConstruct [duplicate]
I have two files [index.xhtml, details.xhtml]
index.xhtml
...
<c:if test="#{not empty itemBean.listItem}">
<ui:repeat var="items" value="${itemBean.listItem}">
<h:link ...
0
votes
0
answers
33
views
Passing a parameter to the method in each iteration of the loop [duplicate]
I'm trying with each iteration of the loop to get the data to display.
xhtml
...
<ui:repeat var="cat" value="${animalBean.listCat}">
<p:graphicImage value="#{animalBean.getImage(cat)}"/&...
3
votes
1
answer
2k
views
UISelectMany in ui:repeat causes java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to java.util.List
I have used the HashMap method for binding a list of checkboxes to a Map<String, Boolean> with success. This is nice since it allows you to have a dynamic number of checkboxes.
I'm trying to ...
0
votes
1
answer
85
views
Can't access to child list from other list with EL and JSF
I have a list of "listActivite_realise" which contains a list of "activite" and I'm trying to iterate on each "listActivite_realise" to iterate on each "activite" and access to its properties.
I'm ...
0
votes
1
answer
273
views
Map inside Map with ui:repeat throws UpdateModelException
There is a
Map<String,Map<Double,Double>> priceMatrix
I want to use it in a
<ui:repeat value="#{calcModel.priceMatrix.keySet().toArray()}" var="x">
<div style="display: ...
0
votes
2
answers
2k
views
Use ui:repeat variable in c:if statement [duplicate]
I am trying to use a c:if statement inside a ui:repeat tag.
However U cannot get the value of course.days while inside the if tag. It just always evaluates to empty.
<div id="schedule_wrapper"...