Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 62400 invoked from network); 31 Aug 2007 12:09:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Aug 2007 12:09:52 -0000 Received: (qmail 98482 invoked by uid 500); 31 Aug 2007 12:09:46 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 97516 invoked by uid 500); 31 Aug 2007 12:09:43 -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 97504 invoked by uid 99); 31 Aug 2007 12:09:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Aug 2007 05:09:43 -0700 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 (athena.apache.org: domain of wkluge@ebi.ac.uk designates 193.62.196.100 as permitted sender) Received: from [193.62.196.100] (HELO maui.ebi.ac.uk) (193.62.196.100) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Aug 2007 12:09:40 +0000 Received: from wolfgang-kluges-computer.local ([172.22.69.19]) by maui.ebi.ac.uk (8.11.7+Sun/8.11.7) with ESMTP id l7VC9GQ08934 for ; Fri, 31 Aug 2007 13:09:16 +0100 (BST) Message-ID: <46D7F5FD.3000904@ebi.ac.uk> Date: Fri, 31 Aug 2007 13:05:33 +0200 From: Wolfgang User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070728) MIME-Version: 1.0 To: users@myfaces.apache.org Subject: set default value by h:selectOneRadio Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, I tried to set a default value by the h:selectOneRadio tag but it didn't work my bean looks like this: private String radio="Accessions"; if (radio.equals("0")) { System.out.println("Accession choosed"); } else { System.out.println("Sequence choosed"); } public String getRadio() { return radio; } public void setRadio(String radio) { this.radio = radio; } and my xhtml like this: Cheers WOlfgang