Get jspx at SourceForge.net. Fast, secure and Free Open Source software downloads home | download | demo project | contact us
jspx

Rate this article:

email
comment
Average Rate= 2.75

Rate

Rate is a start rating control.

Demo



			<page contoller="org.bay.jspx.demo.live.RateController" >
				<html>
					<body>
						<form>
							<ajaxPanel>
								<rate id="rateItDemo" onserverclick="rateIt"/>
							</ajaxPanel>
						</form>
					</body>
				</html>
			</page>
			

package org.bay.jspx.demo.live;

import eg.java.net.web.jspx.engine.annotation.JspxWebControl;
import eg.java.net.web.jspx.engine.message.JspxMessage;
import eg.java.net.web.jspx.engine.util.StringUtility;
import eg.java.net.web.jspx.ui.controls.WebControl;
import eg.java.net.web.jspx.ui.controls.html.elements.inputs.TextBox;
import eg.java.net.web.jspx.ui.pages.ContentPage;

/**
 * @author Amr.ElAdawy
 * Apr 3, 2012 12:01:19 PM
 */
public class RateController extends ContentPage
{
	@JspxWebControl
	Rate rateItDemo;

	public void rateIt(WebControl sender, String args)
	{
		messages.add(new JspxMessage("your rate is " + rateItDemo.getValue()));
	}
}