
META-INF.v4.ajax.tld Maven / Gradle / Ivy
The newest version!
Tagria Ajax library
Tagria Ajax
4.0
ajax
http://v4.tagria.jslsolucoes.com/tags/ajax
Renders a ajax animation spinner
Ajax
animation
com.jslsolucoes.tagria.tag.ajax.v4.tag.AjaxAnimationTag
scriptless
It indicates a CSS class to the component
cssClass
true
java.lang.String
<ajax:animation/>
Renders an ajax function
Ajax
function
com.jslsolucoes.tagria.tag.ajax.v4.tag.FunctionTag
scriptless
Indicates the type of return expected by ajax request. Default: json. Options: xml, json, script, html, jsonp, text
dataType
true
java.lang.String
It indicates whether the ajax function should be run to load the DOM. Default: false.
execute
true
java.lang.Boolean
It indicates the name of the ajax function
name
true
true
java.lang.String
Indicates the url to be called by the Ajax request
url
true
true
java.lang.String
It indicates whether the component should be rendered. Default : true
rendered
true
java.lang.Boolean
<html:input name="input1" value="Valor 0"/>
<html:jsEvent attachTo="input1" event="blur">
checkForUrl();
</html:jsEvent>
<ajax:function name="checkForUrl" url="/app/ajax">
<ajax:parameters>
<ajax:parameter name="input1" src="input1" type="val" />
</ajax:parameters>
<ajax:onSuccess>
/* function signature is f(data,textStatus,jqXHR):void. data: result data response, textStatus: status response text,jqXHR: ajax request object */
alert('Value was sent' + data.field);
</ajax:onSuccess>
<ajax:onError>
</ajax:onError>
</ajax:function>
Renders writing in a particular component
Ajax
target
com.jslsolucoes.tagria.tag.ajax.v4.tag.TargetTag
scriptless
Indicates which attribute of the object must be used
data
true
java.lang.String
Indicates the fixed value to be used in target val
value
true
java.lang.String
It indicates whether the component should be rendered. Default : true
rendered
true
java.lang.Boolean
It indicates the type of iteration being used. Options: val, html
type
true
true
java.lang.String
Indicates the component name to be achieved
target
true
true
java.lang.String
<html:input name="input1" value="Valor 0"/>
<html:input name="input2" disabled="true"/>
<html:jsEvent attachTo="input1" event="blur">
checkForUrl();
</html:jsEvent>
<ajax:function name="checkForUrl" url="/app/ajax">
<ajax:parameters>
<ajax:parameter name="input1" src="input1" type="val" />
</ajax:parameters>
<ajax:onSuccess>
<ajax:target type="val" data="field" target="input2"/>
</ajax:onSuccess>
<ajax:onError>
</ajax:onError>
</ajax:function>
Renders the error block if they occur in ajax request
Ajax
onError
com.jslsolucoes.tagria.tag.ajax.v4.tag.OnErrorTag
scriptless
<ajax:function name="checkForUrl" url="/app/url/not/found" execute="true">
<ajax:onSuccess>
</ajax:onSuccess>
<ajax:onError>
/* function signature is f(jqXHR,textStatus,errorThrown):void. jqXHR: ajax request object,textStatus: status response text,errorThrown: error response text */
alert(textStatus);
alert(errorThrown);
alert(jqXHR);
</ajax:onError>
</ajax:function>
Renders before send block on ajax request
Ajax
onBeforeSend
com.jslsolucoes.tagria.tag.ajax.v4.tag.OnBeforeSendTag
scriptless
<ajax:function name="data" url="/app/ajax" execute="true">
<ajax:onBeforeSend>
/* function signature is f(jqXHR,settings):void. jqXHR: ajax request object,settings: ajax settings object */
alert(settings);
alert(jqXHR);
</ajax:onBeforeSend>
</ajax:function>
Renders block on ajax request done
Ajax
onDone
com.jslsolucoes.tagria.tag.ajax.v4.tag.OnDoneTag
scriptless
<ajax:function name="data" url="/app/ajax" execute="true">
<ajax:onDone>
alert('on function done');
</ajax:onDone>
</ajax:function>
Renders success block if the ajax request run smoothly
Ajax
onSuccess
com.jslsolucoes.tagria.tag.ajax.v4.tag.OnSuccessTag
scriptless
<html:input name="input1" value="Valor 0"/>
<ajax:function name="dados" url="/app/ajax" execute="true">
<ajax:parameters>
<ajax:parameter name="input1" src="input1" type="val" />
</ajax:parameters>
<ajax:onSuccess>
/* function signature is f(data,textStatus,jqXHR):void. data: result data response, textStatus: status response text,jqXHR: ajax request object */
alert(textStatus);
alert(data);
alert(jqXHR);
</ajax:onSuccess>
<ajax:onError>
</ajax:onError>
</ajax:function>
Renders the parameter block to be sent by ajax request
Ajax
parameters
com.jslsolucoes.tagria.tag.ajax.v4.tag.ParametersTag
scriptless
<html:input name="input1" value="Valor 0"/>
<ajax:function name="dados" url="/app/ajax" execute="true">
<ajax:parameters>
<ajax:parameter name="input1" src="input1" type="val" />
</ajax:parameters>
<ajax:onSuccess>
</ajax:onSuccess>
<ajax:onError>
</ajax:onError>
</ajax:function>
Renders a parameter that must be sent by ajax request
Ajax
parameter
com.jslsolucoes.tagria.tag.ajax.v4.tag.ParameterTag
scriptless
Indicates the component of the name to be used as the source
src
true
java.lang.String
Indicates the fixed value to be used in parameter name
value
true
java.lang.String
It indicates the type of iteration being used. Options: val, html
type
true
java.lang.Boolean
It indicates the name of the parameter
name
true
true
java.lang.String
It indicates if the value is optional occur to the function call. Default: false.
required
true
java.lang.Boolean
<html:input name="input1" value="Valor 0"/>
<html:input name="input2" value="" />
<html:jsEvent attachTo="input1" event="blur">
datas();
</html:jsEvent>
<ajax:function name="dados" url="/app/ajax">
<ajax:parameters>
<ajax:parameter name="input1" src="input1" type="val" />
<ajax:parameter name="input2" src="input2" type="val" required="false" />
</ajax:parameters>
<ajax:onSuccess>
console.log('success');
</ajax:onSuccess>
<ajax:onError>
</ajax:onError>
</ajax:function>
Renders a mapping of an options list to select a component
Ajax
mapOptions
com.jslsolucoes.tagria.tag.ajax.v4.tag.MapOptionsTag
scriptless
Indicates the component name to be achieved
target
true
true
java.lang.String
It indicates the contents of the option to be displayed
text
true
true
java.lang.Boolean
Indicates the value of the option to be filled
value
true
true
java.lang.String
<html:select name="input2">
<html:option value="">- - -</html:option>
</html:select>
<ajax:function name="dados" url="/app/ajax/list" execute="true">
<ajax:onSuccess>
<ajax:mapOptions target="input2" value="id" text="nome" />
</ajax:onSuccess>
<ajax:onError>
</ajax:onError>
</ajax:function>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy