net.sourceforge.fluxion.ajax
Annotation Type Ajaxified


@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface Ajaxified

An annotation that designates a spring-enabled bean as a bean that can be used to populate content that can be requested via a browser ajax request.

This is the specification for Ajaxified objects. The object tagged as ajaxified should be configured in a spring configuration file, ajax.xml, located on the classpath under fluxion/ajax.xml. Any beans declared in this file will be loaded by an AjaxExporter at runtime, and any ajaxified beans will be available to redirect ajax requests to.

Ajaxifiable beans can act as normal, spring managed beans. Clients can request ajax functionality by posting a request specifying a servicename and an action parameter. The servivename binds to the name of the bean, and the action binds to the method name. Note that any methods that are intended to be used as actions have specified parameters: the first param should be a HttpSession, and the second a JSONObject

Author:
Rob Davey



Copyright © 2010. All Rights Reserved.