This content has been marked as final.
Show 2 replies
-
1. Re: Readout "step" of InputNumberSpinner via Java
ilya_shaikovsky Nov 8, 2010 4:33 AM (in response to wyattearp)try just to use EL in attribute. step="#{controller.step}"
-
2. Re: Readout "step" of InputNumberSpinner via Java
wyattearp Nov 8, 2010 5:21 AM (in response to ilya_shaikovsky)Thank you for your answer, but that is not what I wanted .... I solved the problem yet via the "getAttributes"-Method (didn't know this method when I wrote my post). Here's the code for my solution:
public void validate(FacesContext context, UIComponent component, Object object) {
Map<String, Object> attributes = component.getAttributes();
Double step = Double.parseDouble((String) attributes.get("step"));
...
}