Hello,
I am new to spring javascript. I had gone through the link mentioned below(
http://static.springframework.org/spring-webflow/docs/2.0.x/reference/html/ch11s03.html) but is there any specific document to refer for writing scripts in order to know what all parameters can Spring.addDecoration/Spring.ElementDecoration accept.
Ex -
<form:input id="searchString" path="searchString"/>
<script type="text/javascript">
Spring.addDecoration(new Spring.ElementDecoration({
elementId: "searchString",
widgetType: "dijit.form.ValidationTextBox",
widgetAttrs: { promptMessage : "Search hotels by name, address, city, or zip." }}));
</script>
Sven Lüppken wrote:The book covers Spring JavaScript (in chapter 5), shipped with the Spring Web Flow distribution. Spring JavaScript is an abstraction layer for other JavaScript toolkits, which means that, in theory, it can work with more than one JavaScript toolkit. From the reference documentation:
"Spring JS is designed such that an implementation of its API can be built for any of the popular Javascript toolkits. The initial implementation of Spring.js builds on the Dojo
toolkit. " (http://static.springframework.org/spring-webflow/docs/2.0.x/reference/html/ch11s03.html)
In Spring Web Flow 2, support for Dojo is included.
Hope that helps!
Thanks,
Sven