|
Thank you very much for the help so far. The boolean is rendering
properly, and it looks like I need to create a custom binder. So, how
do I add that custom binding to the CForm? I saw the interface, I just
need to hook it in. Simone Gianni wrote: <snip/>Hi Berin, <snip/>First, in both repeaters you should specify that id is the identity field. Without the identity field the repeater binding is not able to find match a row with a bean in the list. When the repeater receives all the request parameters, it takes the terms.0.id (or any other identity field you specified, you can specify more than one) and searches in the list for a bean having that termId. If it finds it then execute the rest of the binding against it, otherwise the row is marked as being a new row and a binding to create the new row is searched. Since there isn't any, something is written in the log file and that repeater row is discarded. But the most harmful thing is that after doing all this, it searches for all the beans that didn't matched any row in the repeater, and removes them from the list, even if there is no explicity binding to remove them. While JXPath is not able to add a new bean in a collection without an explicit binding (since could not know which class instantiate), it's extremely able in removing them :) Second, we usually put the <fb:value> of a repeater inside an <fb:on-bind>. Somewhere between 2.1.6 and 2.1.7 AFAIK fb:on-bind was introduced and many repeaters didn't worked correctly if it's not there. Third, the **<fb:value* id="isHotTopic" path="isPostHT"*/>* is correct? you have a getIsPostHT() in your class? I think this is a common mistake, and believe it should be *<fb:value* id="isHotTopic" path="postHT"*/>* since you have either a public boolean isPostHT() or public boolean getPostHT() in it. So, it should be : Let us know if this works any better. Simone --
| ||||||||||||
- Re: Bean Binding and Repeaters... Simone Gianni
- Re: Bean Binding and Repeaters... Berin Loritsch
- Re: Bean Binding and Repeaters... Bertrand Delacretaz

