Re: loop component only reads 'value" once, renders same object each time?

2013-06-01 Thread nhhockeyplayer nashua
This is how I operate mine... and it worked for me this one was in a loop @Property @Parameter(required = false) private Object currentPage; @Property guarantees to provide its own getter/setter Here is another... @Parameter(required = false) private Coach currentObject;

Re: loop component only reads 'value" once, renders same object each time?

2013-06-01 Thread George Ludwig
As I noted above, I created getters/setters to more easily monitor access to the property. In any event, I resolved the issue...it seems like every time I write to the list for help, I figure out the problem in the next 5 minutes :) On Sat, Jun 1, 2013 at 12:51 PM, Boris Horvat wrote: > Is there

Re: loop component only reads 'value" once, renders same object each time?

2013-06-01 Thread Boris Horvat
Is there any reason why you are not using @Property annotation on the currentObject? Try it maybe it will help On Sat, Jun 1, 2013 at 9:35 PM, George Ludwig wrote: > This used to work, and now it doesn't and I'm at a loss. > > What I see happening is that setCurrentObject is called the correct

Re: Loop Component

2008-07-01 Thread Peter Courcoux
Hi Bill, Thanks for your help. Yes all the public getters and setters are there. I just didn't show them to save space. I've been assuming that beans that are simply being iterated over do not themselves need any annotations, that the annotations are confined to the component/page classes.

Re: Loop Component

2008-07-01 Thread Bill Holloway
Peter, make sure that the properties in your superclass are either annotated with @Property or have public getter and setter methods. Bill On Tue, Jul 1, 2008 at 11:43 AM, Peter Courcoux <[EMAIL PROTECTED]> wrote: > Many thanks for your reply Sven. > > However, I think that I didn't explain the p

Re: Loop Component

2008-07-01 Thread Peter Courcoux
Many thanks for your reply Sven. However, I think that I didn't explain the problem properly. If my, much simplified, java class is like this :- public class comp { //note getters/setters/annotations not shown private B valueItem; private List items = new ArrayList(); public Li

Re: Loop Component

2008-06-30 Thread Sven Homburg
the OGNL binding should help you http://code.google.com/p/tapestry5-components/ http://87.193.218.134:8080/t5components/t5c-commons/howto_ognlbinding.html 2008/6/30 Peter Courcoux <[EMAIL PROTECTED]>: > Hi all, > > When the loop component sets the value from the iterator, it seems to miss > prope