Hello,
How can I define an action or event when clicking on a table cell (<td onclick='....'>) to set a specific value to the managed bean property?
For example,
@ManagedBean(name="myBean")
@SessionScoped
class MyBean {
private List<String> values = new ArrayList<String>();
private void setValues(List<String> vals) {
...
}
private void getValues() {
}
private void addValue(String s) {
}
}
in the index.xhtml
<td id='jan_1' onclick='.....'>1</td>
How can I set the call MyBean.addValue when clicking on the <td ....> ???
Best regards,
Eric
[Message sent by forum member 'ericmacau' (ericmacau_at_gmail.com)]
http://forums.java.net/jive/thread.jspa?messageID=382687