Cocoon3: string-template; collections

2011-09-20 Thread Andre Juffer
Hi, I am dealing with the following. I created a simple REST resource, like (without setters): @Path(/test) public class TestResource { @GET @Path(/{id}) public Response getTest(@PathParam(id) String id) { TestDTO testDTO = this.testFacade.find(id); MapString,

RE: Cocoon3: string-template; collections

2011-09-20 Thread Robby Pelssers
Hi Andre, I found some example online but I haven't tested it personally. The example the syntax how to iterate ul $orders: {order| liOrder $order.OrderId$/li }$ /ul Let me know if that works out for you. Robby -Original Message- From: Andre Juffer

Re: how to set initial value in MultiValueField widjet

2011-09-20 Thread Serge Aleshin
Hello Robby! I solved my problem. In form defenition file: fd:multivaluefield id=mm fd:labelName:/fd:label fd:datatype base=string/ fd:selection-list fd:item value=IVAN/ fd:item value=PETR/ fd:item value=LIDA/ fd:item value=GEORG/ fd:item value=FEDYA/ /fd:selection-list /fd:multivaluefield In

RE: how to set initial value in MultiValueField widjet

2011-09-20 Thread Robby Pelssers
Hi Serge, Nice to hear you managed to resolve your own question. I see you are actually using an XML document as your datasource. I never had this particular use case so I never used the binding functionality. Thx for sharing your solution. I'm sure others will benefit from this. Robby