Description

Dialog is an extension of Panel and can do form submissions

Screen Shot

API

component-family net.sf.yui4jsf.Container
renderer-type net.sf.yui4jsf.component.DialogRenderer
component-class net.sf.yui4jsf.component.dialog.Dialog
renderer-class net.sf.yui4jsf.component.dialog.DialogRenderer
tag-class net.sf.yui4jsf.component.dialog.DialogTag

Usage

<yui:dialog 
			postMethod="form|async|none"
			close="{true|false}"
			draggable="{true|false}"
			underlay="{true|false}"
			modal="{true|false}"
			visible="{true|false}"
			monitorResize="{true|false}"
			x="150"
			y="200"
			fixedCenter="{true|false}"
			width="400"
			height="300"
			zIndex="1"
			constrainToViewport="{true|false}"
			iframe="{true|false}">
	<h:form>
		...
	</h:form>
</yui:dialog>
            

Attributes

<yui:simpleDialog>

Standard Attributes - id, rendered, binding
Standard Panel Attributes - See panel component for more info
postMethod - The method to be used during form submission, possible values are form|async|none. Async can do requests with ajax. Currently only form submission is supported

Instructions

see dialog.jsp for an example

Upcoming Features

- Styling
- Async requests

Additional Information

- Show and Hide

Dialog is not visible by default, suppose the id of the simpleDialog is "myDialog", in order to show it you'll need to call it's visibility functions;
YUI4JSF.myDialog.show();
YUI4JSF.myDialog.hide();