<f:view xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:ice="http://www.icesoft.com/icefaces/component">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></meta>
    <title>Type Attribute Test for Command Button</title>
    <link rel='stylesheet' type='text/css' href='./xmlhttp/css/xp/xp.css'/>
    </head>
    <body>
    
	
		<h3>This simple page dynamically sets "type" attribute of commandButton with both value binding and component binding. If viewed in Firebug, "type" attribute is set to "reset" after clicking "Set Type Reset" for component binding but not for value binding although the outputText showed that both "type" has been set to "reset"</h3>
	
<ice:form>
<h4>Value Binding</h4>
		<ice:commandButton type="{bean.type}" value="Target"/>

	
		<ice:commandButton partialSubmit="true" value="Set Type Reset" action="#{bean.testValueBinding}" />
		<br/>
		<ice:outputText value="Type attribute of target button is #{bean.type}"/>	
	</ice:form>
	<br/>
	<br/>
	<br/>
	<ice:form>
	<h4>Component Binding</h4>	
	<ice:commandButton value="Target" binding="#{bean.button}"/>

		
		<ice:commandButton partialSubmit="true" value="Set Type Reset" action="#{bean.testCompBinding}" />
		<br/>
		<ice:outputText value="Type attribute of target button is #{bean.button.type}" />
		</ice:form>
	
	</body>

</html>
</f:view>