AJAX - Asynchronous JavaScript and XML.
Using AJAX with RAD and WebSphere
1. import the tag lib into your jsp page
<%@taglib uri="http://www.ibm.com/jsf/html_extended" prefix="hx" %>
2. <hx:scriptCollector>
<h:panelGrid width="50%" id="gripPanel" cellspacing="0" cellpadding="0" columns="2" >
<h:outputText id="output1" value="Menu Items : "/>
<h:selectOneMenu id="selectMenu" style="font-size: 12px"
valueChangeListener="#{beanInstance.checkBoxChange}" value="#{beanInstance.pmethod}">
<f:selectItems id = "menuItems" value="#{beanInstance.menuTypes}" />
<hx:behavior id="menuChangeBehavior" event="onchange" target="selectMenu" behaviorAction="get"
targetAction="gripPanel">
</hx:behavior>
</h:selectOneMenu>
<h:outputText id="output1" value="Value : "/>
<h:outputText id="output2" value="#{beanInstance.changedValue}"/>
</h:panelGrid>
<hx:ajaxRefreshSubmit id="refreshSubmit" target="gripPanel"/> // this is for refresh
</hx:scriptCollector> // you have wrap the ajax code in this tag
Having a masters degree in Computational Science, working in Java, developed applications on different domains such as Finanical Services, B2B, Banking, Utility...