-
1. Re: noSelectionLabel with selectOneRadio
tausuahmed May 3, 2011 12:50 AM (in response to gebuh)Hi,
Instead on using noSelectionLabel=
All areas
you add an object to your bean.areaSelected list with area name as All areas with some value say 0.Regards,
Tauseef -
2. Re: noSelectionLabel with selectOneRadio
gebuh May 3, 2011 4:06 AM (in response to gebuh)
Tauseef Ahmed wrote on May 03, 2011 00:50:
Hi,
Instead on using noSelectionLabel=All areas
you add an object to your bean.areaSelected list with area name as All areas with some value say 0.
Regards,
Tauseefarea objects consist of an area name and a sysid. When a user selects an area the sysid is used to search another db table. If the sysid is null it performs an open search. I tried creating an object that that just held all areas as an area name and everything else null, but that just generated NPE's. Maybe if I set the sysid to -1 and catch that in the restrictions?
-
3. Re: noSelectionLabel with selectOneRadio
tausuahmed May 3, 2011 5:45 AM (in response to gebuh)I didn't understand
I tried creating an object that that just held all areas as an area name and everything else null
,Your list must have values as
Name value(sysid)
All areas 0
north 1
south 2
east 3
west 4On searching you will see that if the sysid is 0 then populate as required.