Hi,
When I want to add <h:commandButton type='button'>, renderer renders it as submit button. Because of the following code in ButtonRenderer encodeBegin method
// Which button type (SUBMIT, RESET, or BUTTON) should we generate?
String type = (String) component.getAttributes().get("type");
String styleClass;
if (type == null || (!"reset".equals(type) && !"submit".equals(type))) {
type = "submit";
// This is needed in the decode method
component.getAttributes().put("type", type);
}
Because type not reset and not submit always put submit type.
Is it intentionally written like this?
Thanks
Gurkan
____________________________________________________________________________________
Got a little couch potato?
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz