Here is my code:
jsp page:
<f:view>
<h:form>
<h:selectOneRadio value="
#{choice.choiceEntry}">
<f:selectItems value="#{choiceList.choiceMap}
"/>
</h:selectOneRadio>
<h:commandLink immediate=
"true" value="Create" action="#{choice.createEntry}
" />
</h:form>
</f:view>
Bean:
public class Choice {
private String choiceEntry;
public Choice () { }
public void getChoiceEntry () { return choiceEntry;}
public String getChoiceEntry (String e) ( choiceEntry = e;}
public void createEntry () { System.out.println(choiceEntry); }
}
In the createEntry method, I just want to see the value of changed choices. It is always null. The initial value is null, that is fine, why after I made selection, then click the "Create" command link,
the returned page had correctly remembered the selection, but the console printout is null all the time. Thanks for your help.
On 12/18/05, Emily Gu <[EMAIL PROTECTED]> wrote:
Here is my code:jsp page:<f:view><h:form></h:form></f:view>
On 12/18/05, Balaji Kalyansundaram <[EMAIL PROTECTED] > wrote:You need to send the code to analyse it.-----Original Message-----
From: Emily Gu [mailto: [EMAIL PROTECTED]]
Sent: Monday, 19 December 2005 1:08 PM
To: MyFaces Discussion
Subject: Re: Submit and h:commandLink questionHi,I don't know whether my is the similar issue. When I click the CommandLink, the value selection changes in SelectOneRadio never get changed in the backing bean. Any idea?Thanks!!
On 12/18/05, Balaji Kalyansundaram <[EMAIL PROTECTED] > wrote:
Hi
I had the similar (may be same) problem as the collection for the dataTable was empty at the Restore View Phase. Since it is empty it could not restore the command link components and hence nothing happens.
You should
1. Store the dataTable's collection value in saveState
2. Have the bean in session scope and make sure the collection does not loose teh value.
HIH
Balaji
-----Original Message-----
From: Mario Ivankovits [mailto:[EMAIL PROTECTED]]
Sent: Saturday, 17 December 2005 6:15 AM
To: MyFaces Discussion
Subject: Re: Submit and h:commandLink question
Hi!
> I use myfaces-1.1.1 and it looks like I have a similar problem when I
> place a inputHtml component in my form ... currently investigating it.
I dont know what was the problem, but using the lates nightly fixed it.
---
Mario
This correspondence is for the named persons only.
It may contain confidential or privileged information or both.
No confidentiality or privilege is waived or lost by any mis transmission.
If you receive this correspondence in error please delete it from your system immediately and notify the sender.
You must not disclose, copy or relay on any part of this correspondence, if you are not the intended recipient.
Any opinions expressed in this message are those of the individual sender except where the sender expressly,
and with the authority, states them to be the opinions of the Department of Emergency Services, Queensland.
This correspondence is for the named persons only.
It may contain confidential or privileged information or both.
No confidentiality or privilege is waived or lost by any mis transmission.
If you receive this correspondence in error please delete it from your system immediately and notify the sender.
You must not disclose, copy or relay on any part of this correspondence, if you are not the intended recipient.
Any opinions expressed in this message are those of the individual sender except where the sender expressly,
and with the authority, states them to be the opinions of the Department of Emergency Services, Queensland.

