Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 22150 invoked from network); 27 Nov 2006 13:22:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Nov 2006 13:22:51 -0000 Received: (qmail 44126 invoked by uid 500); 27 Nov 2006 13:22:55 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 44095 invoked by uid 500); 27 Nov 2006 13:22:55 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 44082 invoked by uid 99); 27 Nov 2006 13:22:55 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Nov 2006 05:22:55 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Nov 2006 05:22:42 -0800 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1GogRB-0000qh-HH for users@myfaces.apache.org; Mon, 27 Nov 2006 05:22:21 -0800 Message-ID: <7559905.post@talk.nabble.com> Date: Mon, 27 Nov 2006 05:22:21 -0800 (PST) From: JS To: users@myfaces.apache.org Subject: Re: select a row In-Reply-To: <8c9d4eaa0611270235y49dda9e7i13da9585df169ea9@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: jyotsnasuraj@yahoo.co.uk References: <7542933.post@talk.nabble.com> <4568D311.1000908@apache.org> <7546933.post@talk.nabble.com> <8c9d4eaa0611260452u3a94c958pc32726ade62e9ad1@mail.gmail.com> <7547087.post@talk.nabble.com> <8c9d4eaa0611260505w7121235ekde4d9e267f43fa91@mail.gmail.com> <7547126.post@talk.nabble.com> <311295120611260642n55168bc7ma4d7ae8995e98b95@mail.gmail.com> <7548643.post@talk.nabble.com> <311295120611261105p13f8d0e0i635081bef8fed24b@mail.gmail.com> <7550444.post@talk.nabble.com> <7556438.post@talk.nabble.com> <8c9d4eaa0611270235y49dda9e7i13da9585df169ea9@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org No I haven't . I am trying one by one. Could you please give me an example bean for the sandbox selectOneRow component ? Firstly I am trying an easy method.=20 I have given the radio inside a command link. The datatable is binding with an HTMLDataTable object. From that I am trying to get row datata. But the commandlink action is not working. Cagatay Civici wrote: >=20 >> >> datatable rows : >> select column1 column2 >> o row1 row1 >> o row2 row2 >> >> Generate Delete >=20 >=20 > Hi JS, have you tried selectOneRow in sandbox? >=20 > http://example.irian.at/example-sandbox-20061127/selectOneRow.jsf >=20 > Cagatay >=20 > On 11/27/06, JS wrote: >> >> >> Hi Andrew, >> >> Thanks for the reply. I have downloaded the jar. But where can I find th= e >> jenia tag library documentation ? >> >> Thanks, >> JS. >> >> >> Andrew Robinson-5 wrote: >> > >> > I recommend using the controls from "http://www.jenia.org/". They have >> > a radio and a checkbox that are made to work with data tables (and >> > work nicely with the tomahawk data table). >> > >> > -Andrew >> > >> > On 11/26/06, JS wrote: >> >> >> >> Thanks Gerald. Let me just clear, so in short you are saying, I can >> use >> >> radio >> >> inside command link for just selection purpose even though its a >> circular >> >> way. >> >> >> >> Thanks, >> >> JS. >> >> >> >> Gerald M=C3=BCllan wrote: >> >> > >> >> > Hi, >> >> > >> >> > from usability point of view i would suggest to delete an item >> >> > directly via clicking on a commandLink as the "o"; the requirement >> of >> >> > selecting only one entry can be also met with this approach. >> >> > >> >> > You are achieving the same result as with the radio structure, the >> >> > radio way seems little bit circular to me. >> >> > >> >> > The only way which comes to my mind to simulate the >> commandLink-radio >> >> > is doing a submit on every onchange event. But updateActionListener >> >> > will not work in this case, it`s only for components with an action >> >> > attribute (ActionSource comps). >> >> > >> >> > cheers, >> >> > >> >> > Gerald >> >> > >> >> > On 11/26/06, JS wrote: >> >> >> >> >> >> Thanks Gerald. >> >> >> What I want exactly is, >> >> >> >> >> >> datatable rows : >> >> >> select column1 column2 >> >> >> o row1 row1 >> >> >> o row2 row2 >> >> >> >> >> >> Generate Delete >> >> >> >> >> >> Above shown 'o' represents radio(or checkbox or commandlink) >> Generate >> >> and >> >> >> Delete are command buttons. So when I select a row and press a >> command >> >> >> button I only need to get the value of the unique id. So when I >> user >> >> >> press >> >> >> the link or radio or check box , he can select only one row , not >> >> >> multiple >> >> >> rows. When he press another row the earlier slected one needs to b= e >> >> >> deselected. I think as you said command link works for that. But >> can >> I >> >> >> use >> >> >> radio inside command link ? >> >> >> >> >> >> Thanks, >> >> >> JS. >> >> >> >> >> >> >> >> >> >> >> >> Gerald M=C3=BCllan wrote: >> >> >> > >> >> >> > Hi, >> >> >> > >> >> >> > well, in this case it would be best to use >> t:updateActionListener. >> >> You >> >> >> > can specify a value and push it to somewhere in the model. There >> is >> >> no >> >> >> > special need of a radio button or checkbox, you only have to giv= e >> it >> >> a >> >> >> > commandLink and embed the updateActionListener in it. >> >> >> > >> >> >> > Have a look: >> >> >> > >> >> >> > > action=3D"#{bean.goDeleteItem}"> >> >> >> > > >> >> > value=3D"#{bean.entryId}"/> >> >> >> > >> >> >> > >> >> >> > Hope this helps, >> >> >> > >> >> >> > cheers, >> >> >> > >> >> >> > Gerald >> >> >> > >> >> >> > On 11/26/06, JS wrote: >> >> >> >> >> >> >> >> >> >> >> >> Thank you. Sorry for my vague question. I know we can select a >> row >> >> >> using >> >> >> >> checkbox. But I don't want multiple row selection. I want to >> select >> >> >> only >> >> >> >> one >> >> >> >> row since I want to get a unique id from that. So can I use >> >> >> selectBoolean >> >> >> >> checkbox for that ? Thanks for the time for me. >> >> >> >> >> >> >> >> JS. >> >> >> >> >> >> >> >> >> >> >> >> Cagatay Civici wrote: >> >> >> >> > >> >> >> >> > Builds are here; >> >> >> >> > http://people.apache.org/builds/myfaces/nightly/ >> >> >> >> > >> >> >> >> > There are several ways to select a row, selectOneRow is just >> one >> >> of >> >> >> >> them >> >> >> >> > that uses a radio button. >> >> >> >> > >> >> >> >> > Regards, >> >> >> >> > >> >> >> >> > Cagatay >> >> >> >> > >> >> >> >> > On 11/26/06, JS wrote: >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> Thanks for your reply Cagatay. Can you please tell me from >> where >> >> >> can I >> >> >> >> >> download jar for sandbox ? >> >> >> >> >> Is there anyway in jsf or myfaces for selecting a row ? >> >> >> >> >> >> >> >> >> >> Thanks, >> >> >> >> >> JS. >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> Cagatay Civici wrote: >> >> >> >> >> > >> >> >> >> >> > Hi, >> >> >> >> >> > >> >> >> >> >> > There is a special datatable enhancement in sandbox for >> that >> >> >> called >> >> >> >> >> > selectOneRow; >> >> >> >> >> > >> >> >> >> >> > >> >> http://example.irian.at/example-sandbox-20061126/selectOneRow.jsf >> >> >> >> >> > >> >> >> >> >> > Cagatay >> >> >> >> >> > >> >> >> >> >> > On 11/26/06, JS wrote: >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> Hi paul, >> >> >> >> >> >> >> >> >> >> >> >> Thanks for the reply. Could you please tell me how can I >> >> select >> >> >> a >> >> >> >> row >> >> >> >> >> >> from >> >> >> >> >> >> the datatable ? I need to take a unique id from the >> datatable >> >> >> and >> >> >> >> with >> >> >> >> >> >> that >> >> >> >> >> >> id I need to do different actions. Please give me a >> solution >> >> . >> >> >> Can >> >> >> >> I >> >> >> >> >> use >> >> >> >> >> >> selectBooleanCheckBox for that purpose ? Can I get that >> >> unique >> >> >> >> value ? >> >> >> >> >> >> >> >> >> >> >> >> Thanks for the help, >> >> >> >> >> >> JS. >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> Paul Spencer-3 wrote: >> >> >> >> >> >> > >> >> >> >> >> >> > JS, >> >> >> >> >> >> > I am not sure what you are asking for. A radio button i= s >> >> not a >> >> >> >> link, >> >> >> >> >> >> > this it can not be used to select a row. See the >> >> MasterDetail >> >> >> >> >> >> > example[1] for an example of linking from an detail row= . >> >> >> >> >> >> > >> >> >> >> >> >> > Paul Spencer >> >> >> >> >> >> > >> >> >> >> >> >> > >> >> >> >> >> [1]http://example.irian.at/example-simple-20061125/masterDetail.jsf >> >> >> >> >> >> > >> >> >> >> >> >> > >> >> >> >> >> >> > JS wrote: >> >> >> >> >> >> >> Hi, >> >> >> >> >> >> >> >> >> >> >> >> >> >> Please anyone tell me how can I select a row from >> >> t:datatable >> >> >> >> using >> >> >> >> >> >> >> t:selectoneradioButton ? >> >> >> >> >> >> >> >> >> >> >> >> >> >> Please help me. >> >> >> >> >> >> >> >> >> >> >> >> >> >> Thanks, >> >> >> >> >> >> >> JS. >> >> >> >> >> >> > >> >> >> >> >> >> > >> >> >> >> >> >> > >> >> >> >> >> >> >> >> >> >> >> >> -- >> >> >> >> >> >> View this message in context: >> >> >> >> >> >> http://www.nabble.com/select-a-row-tf2705195.html#a754693= 3 >> >> >> >> >> >> Sent from the MyFaces - Users mailing list archive at >> >> >> Nabble.com. >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> > >> >> >> >> >> > >> >> >> >> >> >> >> >> >> >> -- >> >> >> >> >> View this message in context: >> >> >> >> >> http://www.nabble.com/select-a-row-tf2705195.html#a7547087 >> >> >> >> >> Sent from the MyFaces - Users mailing list archive at >> >> Nabble.com. >> >> >> >> >> >> >> >> >> >> >> >> >> >> > >> >> >> >> > >> >> >> >> >> >> >> >> -- >> >> >> >> View this message in context: >> >> >> >> http://www.nabble.com/select-a-row-tf2705195.html#a7547126 >> >> >> >> Sent from the MyFaces - Users mailing list archive at >> Nabble.com. >> >> >> >> >> >> >> >> >> >> >> > >> >> >> > >> >> >> > -- >> >> >> > http://www.irian.at >> >> >> > >> >> >> > Your JSF powerhouse - >> >> >> > JSF Consulting, Development and >> >> >> > Courses in English and German >> >> >> > >> >> >> > Professional Support for Apache MyFaces >> >> >> > >> >> >> > >> >> >> >> >> >> -- >> >> >> View this message in context: >> >> >> http://www.nabble.com/select-a-row-tf2705195.html#a7548643 >> >> >> Sent from the MyFaces - Users mailing list archive at Nabble.com. >> >> >> >> >> >> >> >> > >> >> > >> >> > -- >> >> > http://www.irian.at >> >> > >> >> > Your JSF powerhouse - >> >> > JSF Consulting, Development and >> >> > Courses in English and German >> >> > >> >> > Professional Support for Apache MyFaces >> >> > >> >> > >> >> >> >> -- >> >> View this message in context: >> >> http://www.nabble.com/select-a-row-tf2705195.html#a7550444 >> >> Sent from the MyFaces - Users mailing list archive at Nabble.com. >> >> >> >> >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/select-a-row-tf2705195.html#a7556438 >> Sent from the MyFaces - Users mailing list archive at Nabble.com. >> >> >=20 >=20 --=20 View this message in context: http://www.nabble.com/select-a-row-tf2705195.= html#a7559905 Sent from the MyFaces - Users mailing list archive at Nabble.com.