Matthew Constans

Greenhorn
+ Follow
since May 10, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Matthew Constans

Issue resolved, the problem was in import of sessionScope (faces.bean. / enterprise.context.). Me, dumb one, spent 7 hours of analysing code, when mistake wasn't there...
12 years ago
JSF

Stefan Evans wrote:
When you submit the page it should iterate through your list of performers, and set the value of "user" for each performer based on what you selected in each select one menu.



That's the thing i would like to achieve

I did like you said, moved the userList into performer but when i do saveIt the list of performers is null!

That is the part of bean i am talking about:



I did also control prints in setter methods of WFPerformers, none of them is called after i press "Save"
12 years ago
JSF
Hi, for couple days i struggle with that task.
I need to display datatable with names and choose from list another names to coapt.

Here is the snippet of code:


MyBean.performers returns list of performers with getName() method;
MyBean.userList returns list of users with getName() and getId() methods;

Whats the problem:
When i click "Save" i want to save the matches, e.g. Performer1: User2 (2), Performer2: User1(1), Performer3: User3(3).

I don't know how to get to these matchings from bean. I tried
HtmlDataTable htDT = (HtmlDataTable) FacesContext.getCurrentInstance().getUIViewRoot().findComponent("someDataTableId");
but it always returns null.

I did something with binding attribute but couldn't get that to work either.

Any sugestions?
Thanks in advance :-)
12 years ago
JSF