Wednesday, September 15, 2010

SimpleTogglePanel

SimpleTogglePanel is a  panel with a label text, that is shown with an outline  and additional content that can be shown or hidden when clicked. This operation of hidden/shown is known as toggling and can be done on a click of a mouse. This can be achived on the client side as well as server side by changing the value of the attribute "switchType" as client, ajax or server.

Rich Output - Model Panel

The model panel is displayed for a link and when the link is clicked the model panel is displayed over the page. All other page links get disables. It is an extension of the overlay panel.

Ajax Form

a4j:form or Ajax Form functionality is used to submit the form when the link is clicked.

When ajaxSubmit="true", all standard action components on this form become ajaxable.

Ajax components

These are  some of the common  Ajax components - a4j:support, a4j:commandButton, a4j:jsFunction, a4j:poll, a4j:push.

Source Code Example:

<a4j:commandButton value="Inform" reRender=":informIdDiv" />

<h:panelGrid id="informIdDiv">
-----
-----
</h:panelGrid>


These are useful for AJAX operations

Action Parameters

this component assign the value to the property of the manager bean directly using the assignTo attribute.