Rahul, I'm not sure what you're trying to achieve. Using the
selectOneRadio or selectManyCheckbox from
http://sourceforge.net/projects/jsf-comp/ is usefull if you just want to
have a list of radiobuttons or checkboxes rendered in more then 1 column.
So if that's what you're trying to achieve then this might be useful for
you. It does not use dataTable so if you want do other more complicated
things with it (f.e. combine the checkboxes with other components within
your table), you might need a dataTable for that and than you can't use
these components.
The selectOneRadio or selectManyCheckbox components from
http://sourceforge.net/projects/jsf-comp/ are just an extension to the
x:selectOneRadio and x:selectManyCheckbox components. It adds the column
parameter to specify how many columns the selectItem objects should be
rendered in.
You can find a jar on http://www.ivpv.UGent.be/~jan/myfacessandbox.jar
containing these components and the
necessary tld file since a jar is not included on the sourceforge website.
It meant to be used with myfaces 1.0.9 and not the current nightly build
version. This is because it extends the x:selectOneRadio and
x:selectManyCheckbox components and these components have undergone some
changes since the release of version 1.0.9.
Also on http://www.ivpv.UGent.be/~jan/selectTest.jsp you can find a jsp
file that demonstrates the use of
the components.
Hope this helps.
Jan
On Wed, 29 Jun 2005 18:08:13 +0200, Rahul Pilani <[EMAIL PROTECTED]>
wrote:
Do you think it would do what I am trying to achieve? Also is there any
documentation available on the usage of the component and renderer?
Thanks a lot.
Rahul
-----Original Message-----
From: Jan Bols [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 29, 2005 12:41 AM
To: 'MyFaces Discussion'
Subject: Re: x:selectOneRadio and dataTable
I had the same problem but wasn't able to fix it. The thing I wanted to
do
is to have multiple columns of radiobuttons and checkboxes. I ended up
coding a new component and renderer called selectOneRadio and
selectManyCheckbox with an extra called "columns". You can download the
source from http://sourceforge.net/projects/jsf-comp/ .
greetings
Jan
On Wed, 29 Jun 2005 02:21:25 +0200, Rahul Pilani <[EMAIL PROTECTED]>
wrote:
I wanted to make the x:selectOneRadio to work within a dataTable. I read
the
forum archive and noticed that a lot of people are having the same
problem.
I was just wondering if anyone has found a possible solution to it yet.
If
not , what is the possible approach to get it to work?.. create a just a
new
renderer ? or create an entirely new component?
I got it working to a point that I was able to select only one radio for
the
entire column, but the value binding was not working, meaning the bean
wasn't getting the value set in form. I tried setting the binding
attribute
in the x:radio tag, but I couldn't get any useful information from that.
The
values still don't get passed onto the backing bean in any way.
Thanks
Rahul
--
Jan Bols
IVPV - Instituut Voor Permanente Vorming
Universiteit Gent
Technologiepark 913
9052 Zwijnaarde
++32-(0)9-264 55 92
[EMAIL PROTECTED]
[EMAIL PROTECTED]
http://www.ivpv.UGent.be