[jboss-jira] [JBoss JIRA] Created: (JBAS-5950) SelectManyListBox is not working in SUN RI
Alexis Binu (JIRA)
jira-events at lists.jboss.org
Thu Sep 11 07:56:39 EDT 2008
SelectManyListBox is not working in SUN RI
------------------------------------------
Key: JBAS-5950
URL: https://jira.jboss.org/jira/browse/JBAS-5950
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: JSF
Environment: I am using JBoss 4.3.0
Reporter: Alexis Binu
Assignee: Stan Silvert
h:selectManyListbox is not working in JSF Sun RI.
When i click on create.....The create() method is not calling...
Can anyone help me in this ?
My code
<h:selectManyListbox value="#{Bean.addTasks}" id="availableTasks" >
<f:selectItems value="#{Bean.allTasks}" />
</h:selectManyListbox>
<h:commandButton " value="Create" type="submit"
styleClass="jsf-command-button" action="#{Bean.create}"/>
Bean
private ArrayList<SelectItem> allTasks=null;
private ArrayList<String> addTasks=null;
public ArrayList<SelectItem> getAllTasks() {
allTasks = new ArrayList<SelectItem>();
allTasks.add(new SelectItem("Task1","Task1"));
allTasks.add(new SelectItem("Task2","Task2"));
allTasks.add(new SelectItem("Task3","Task3"));
return allTasks;
}
public ArrayList<String> getAddTasks() {
return this.addTasks;
}
public void setAddTasks(ArrayList<String> addTasks) {
this.addTasks = addTasks;
}
public void create()
{
System.out.println(" Inside create");
System.out.println(" Task :- "+addTasks);
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list