Stephan Windmüller wrote:
> Please, is there anyone who can tell me how to iterate over a list and
> store data in it?
I found the solution. It was a mixture of three different things:
1. Using the formState="literal:VALUES" in loops.
2. The two value-elements from select and loop must not be th
Stephan Windmüller wrote:
> As long as I do not use a List to store the objects, all works fine. But
> when I submit the form above, it always resets and the list consists of
> "undecided" users.
The next thing I found out: This has nothing to do with my helper
classes. Even when I use a list of
On Mon, 29. Jun 2009, Stephan Windmüller wrote:
> The site is used to assign users to jobs. Each job has a java.util.List
> of users assigned to it. Of course a user should not be assigned twice
> to a job.
To clarify this I modified the example from
http://wiki.apache.org/tapestry/Tapestry5Howto
nille hammer schrieb:
> This looks to me as if you were displaying all users that are allready
> assigned to a Job in a select box.
Correct, one user per SelectBox.
> You´d need a select box with the UN-assigned users to make it possible to add
> new ones to the Job.
The number of users and t
Hi Stephan,
> Of course a user should not be assigned twice
> to a job.
This sounds like a valid use case for a Set rather than a List. To achieve this
implement a reasonable equals-Method for User and rewrite your Job-class/your
helper Bean DisplayJob to return a Set. As implementation of Set us
Christine schrieb:
>> All jobs and select boxes are drawn as expected, but now I am stuck.
>> After submitting the form
> How do you submit the form?
With a standard submit component:
I even tried the GenericSelectModel described on [0] for displaying the
user data, but it seems that my main
Stephan Windmüller wrote:
All jobs and select boxes are drawn as expected, but now I am stuck.
After submitting the form
How do you submit the form?
the values reset, job.assignments is never
changed. Also I am unable to validate if a user has been assigned twice
or more to a job.
JobEncoder