Re: Forms: Radio and RadioGroup in multiple data row items

2025-08-05 Thread Ernesto Reinaldo Barreiro
Maybe that class should operate in on an IModel On Tue, Aug 5, 2025 at 11:27 AM andrew goh wrote: > I managed to work around / resolve the FileSystemResourceReference > serialization error > > > https://github.com/apache/wicket/blob/ebfd87c5c796c3a0da1350e797b330b5fcfa3f90/wicket-core/src/main/j

Re: Forms: Radio and RadioGroup in multiple data row items

2025-08-05 Thread andrew goh
I managed to work around / resolve the FileSystemResourceReference serialization error https://github.com/apache/wicket/blob/ebfd87c5c796c3a0da1350e797b330b5fcfa3f90/wicket-core/src/main/java/org/apache/wicket/resource/FileSystemResourceReference.java#L95 FileSystemResourceReference has a Path

Re: Forms: Radio and RadioGroup in multiple data row items

2025-08-05 Thread andrew goh
oh it seemed I found some examples where there are 2 radio groups, the 2nd group needs to be added to the 1st group https://github.com/apache/wicket/blob/master/wicket-examples/src/main/java/org/apache/wicket/examples/compref/RadioGroupPage2.java then that the ListView is added to the 2nd rad

Re: Forms: Radio and RadioGroup in multiple data row items

2025-08-05 Thread andrew goh
it turns out I  did not solve the issue. If I leave the radio group on its own (as an orphan), instead of adding the ListView to it I get an error Last cause: submitted http post value [radio0] for RadioGroup component [3:Form:radioGroup] is illegal because it does not point to a Radio compo

Re: Forms: Radio and RadioGroup in multiple data row items

2025-07-31 Thread andrew goh
it turns out the ListView need not be added to the RadioGroup, but that when creating the Radio<> object, the radio group object needs to be passed and that works just well. so it looks like: public class MyObject {   private Integer myInt;   public void setMyInt(Integer myInt) ...   public Int

Forms: Radio and RadioGroup in multiple data row items

2025-07-31 Thread andrew goh
Recently I've a requirement that I need to have a radio button selection across multiple row items. I found some documentation for use of Radio and RadioGroups like this https://cwiki.apache.org/confluence/display/WICKET/Using+RadioGroups public class MyObject {   private Integer myInt;   publi