title: JSF- passing a parameter to valuechangelistener
body: <p>I have a litte radiobutton like this :</p>
  
  <pre><code>&lt;h:selectOneRadio value="#{test.answer}" valueChangeListener="#{TestService.changeanswer}" immediate="true" id="answer"&gt;
   &lt;f:selectItem  itemValue="A" itemLabel="Absolutely True"/&gt;
   &lt;f:selectItem  itemValue="B" itemLabel="True"/&gt;
   &lt;f:selectItem  itemValue="C" itemLabel="Partially True"/&gt;
   &lt;f:selectItem  itemValue="D" itemLabel="Not True"/&gt;
   &lt;f:selectItem  itemValue="E" itemLabel="Definitely Not True"/&gt;
   &lt;f:ajax event="change" process="answer"&gt;&lt;/f:ajax&gt;&lt;/h:selectOneRadio&gt;
  </code></pre>
  
  <p>And my listener is like that :</p>
  
  <pre><code>public void changeanswer(ValueChangeEvent vcEvent) { 
  System.out.println("comeon= " + vcEvent.getOldValue()); 
  System.out.println("comeon= " + vcEvent.getNewValue());}
  </code></pre>
  
  <p>I would like to pass a parameter to the changeanswer method.For example I want to pass the questionid to the changeanswer function. I need to make some arrangements in it.</p>
  
  <p>How can I do that? </p>
  
  <p>Many many many thanks in advance.</p>
  
  <p>Brad - the Rookie..</p>