Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 84093 invoked from network); 5 Nov 2007 21:37:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Nov 2007 21:37:06 -0000 Received: (qmail 57072 invoked by uid 500); 5 Nov 2007 21:36:51 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 56562 invoked by uid 500); 5 Nov 2007 21:36:49 -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 56551 invoked by uid 99); 5 Nov 2007 21:36:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Nov 2007 13:36:49 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of robinhoo.2006@gmail.com designates 209.85.198.188 as permitted sender) Received: from [209.85.198.188] (HELO rv-out-0910.google.com) (209.85.198.188) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Nov 2007 21:36:50 +0000 Received: by rv-out-0910.google.com with SMTP id c27so1469260rvf for ; Mon, 05 Nov 2007 13:36:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:to:subject:mime-version:content-type; bh=Yt1IB9G1ExtwdRZTnwyZnaeVqIfo1rx4jlNr7pElkE0=; b=gKn19sO74Vl9iaULKQGLoyd6qKUmqyqGVeYJtAAWZ1JDCen7BAxKwJ6/XYQOXp6dBsFpiQl+I7D8TnkWX6ahAhpI5EWBo4tYH2fVe6Jjpreol098FZ71FGBpTDl7clzc0QkwtBCAXvpVWVXx1xr/YIxJP9fWjqlLYLvkGsken/c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type; b=uhMYEM56kjJBmPpVVaRAfrQheNqGhQ+W2vWPkVZcnEnWjHZE0N1awG/IuzJFA5BZZ/O1HJcAuqT+3ElFBkhcmzhciBDFq0cUQQp9odkstd569/yVofIXQGZp8+Riq1iLgH919gouKEAgMaPV1ba/13rebnDNiyN9FGvojLpebJg= Received: by 10.140.144.4 with SMTP id r4mr2633148rvd.1194298585720; Mon, 05 Nov 2007 13:36:25 -0800 (PST) Received: by 10.141.116.8 with HTTP; Mon, 5 Nov 2007 13:36:25 -0800 (PST) Message-ID: Date: Mon, 5 Nov 2007 23:36:25 +0200 From: "Ali Abdel-Aziz Ali" Reply-To: robinhoo.2006@gmail.com To: "MyFaces Discussion" Subject: SelectOneRadio Not a valid option MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_11552_6280412.1194298585717" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_11552_6280412.1194298585717 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi All, I have a strange problem. I'm using group radio buttons inside the myfaces dataTable and its working properly . but I have faced a strange error today which is: when I "view all" the recorders by pressing on "view All" button (fire action that load all records from database and draw them inside the dataTable) I can select any row I want by choosing the radio button in front of it. and then can do any action (Edit, Delete) I want. But when I make filter on the returned records by entering some value to filter with the returned result is correctly matching the search criteria but the problem arises when I try to edit one row from the returned rows I keep getting [myRadioID : value is not a valid option] this have strange scenario that happen with; that is: suppose we have the following records after pressing on view all button _____________________________________ | index | Code | Name | |_______|__________|___________________| | 1 | 10 | Ali | |_______|__________|___________________| | 2 | 12 | Ali_Ahmed | |_______|__________|___________________| | 3 | 13 | DataTable | |_______|__________|___________________| | 4 | 15 | Radio Button | |_______|__________|___________________| | 5 | 17 | Data Records | |_______|__________|___________________| any record of the the above records can be selected by choosing the radio button in front of it and can be edited for example. but if you make some filter on the Name for example searching for any name starting with "Ali" you will got the following records displayed: _____________________________________ | index | Code | Name | |_______|__________|___________________| | 1 | 10 | Ali | |_______|__________|___________________| | 2 | 12 | Ali_Ahmed | |_______|__________|___________________| if you tried to select any row to edit it will be selected properly with no problem and can be edited after pressing on edit button. but if you tried to search for any Name starting with "Data" you will got the following records _____________________________________ | index | Code | Name | |_______|__________|___________________| | 1 | 13 | DataTable | |_______|__________|___________________| | 2 | 17 | Data Records | |_______|__________|___________________| which will produce [myRadioID : value is not a valid option] when you try to select any row of them my explanation for this is that all records that will appear in the filtered table with the same row index as in view all table will be editable with no problem so the case with "Ali" , and "Ali_Ahmed" records as they appear in the same row index so no problem arise when selecting any one of them. but a problem will arise in the case of "DataTable", and "Data Records" records because they appear in row index different than the one they appear in view all table. -- Ali Abdel-Aziz http://www.aliabdelaziz.com ------=_Part_11552_6280412.1194298585717 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi All,

I have a strange problem.
I'm using group radio buttons inside the myfaces dataTable and its working properly .

but I have faced a strange error today which is:
 when I "view all" the recorders by pressing on "view All" button (fire action that load all records from database and draw them inside the dataTable) I can select any row I want by choosing the radio button in front of it. and then can do any action (Edit, Delete) I want.

But when I make filter on the returned records by entering some value to filter with the returned result is correctly matching the search criteria but the problem arises when I try to edit one row from the returned rows I keep getting [ myRadioID : value is not a valid option]

this have strange scenario that happen with; that is:
suppose we have the following records after pressing on view all button
_____________________________________
|   index  |  Code       |      Name                  |
|_______|__________|___________________|
|    1       |     10         |      Ali                       |
|_______|__________|___________________|
|    2      |      12         |      Ali_Ahmed           |
|_______|__________|___________________|
|    3      |       13        |      DataTable            |
|_______|__________|___________________|
|    4      |      15         |      Radio Button        |
|_______|__________|___________________|
|    5      |      17         |      Data Records       |
|_______|__________|___________________|

any record of the the above records can be selected by choosing the radio button in front of it and can be edited for example.

but if you make some filter on the Name for example searching for any name starting with "Ali"
you will got the following records displayed:
_____________________________________
|   index  |  Code       |      Name                  |
|_______|__________|___________________|
|    1       |     10         |      Ali                       |
|_______|__________|___________________|
|    2      |      12         |      Ali_Ahmed           |
|_______|__________|___________________|

if you tried to select any row to edit it will be selected properly with no problem and can be edited after pressing on edit button.

but if you tried to search for any Name starting with "Data" you will got the following records
_____________________________________
|   index  |  Code       |      Name                  |
|_______|__________|___________________|
|    1       |     13         |      DataTable            |
|_______|__________|___________________|
|    2      |      17         |      Data Records       |
|_______|__________|___________________|


which will produce [myRadioID : value is not a valid option] when you try to select any row of them


my explanation for this is that all records that will appear in the filtered table with the same row index as in view all table will be editable with no problem so the case with "Ali" , and "Ali_Ahmed" records as they appear in the same row index so no problem arise when selecting any one of them.

but a problem will arise in the case of "DataTable", and "Data Records" records because they appear in row index different than the one they appear in view all table.


--
Ali Abdel-Aziz
http://www.aliabdelaziz.com ------=_Part_11552_6280412.1194298585717--