如何在SpringWebFlow项目中使用dijit和dojo使输入字段发光

如何在SpringWebFlow项目中使用dijit和dojo使输入字段发光,spring,spring-mvc,dojo,spring-webflow,Spring,Spring Mvc,Dojo,Spring Webflow,我正在从事一个SpringWebFlow项目,我想使用DojoDijitCSS使我的输入表单和字段更漂亮。我想让我的田野发光 在我的JSP上有以下内容: <script type="text/javascript" src="<c:url value="/resources/dojo/dojo.js" />"> </script> <script type="text/javascript" src="<c:url value="/resource

我正在从事一个SpringWebFlow项目,我想使用DojoDijitCSS使我的输入表单和字段更漂亮。我想让我的田野发光

在我的JSP上有以下内容:

<script type="text/javascript" src="<c:url value="/resources/dojo/dojo.js" />"> </script>
<script type="text/javascript" src="<c:url value="/resources/spring/Spring.js" />"> </script>
<script type="text/javascript" src="<c:url value="/resources/spring/Spring-Dojo.js" />"> </script>

<link type="text/css" rel="stylesheet" href="<c:url value="/resources/dijit/themes/claro/claro.css" />" />

但是我如何改变我的Spring表单:输入标签来使用它们和发光

有人能告诉我如何更改以下内容吗

<form:input tabIndex="3"  maxLength="15" size="16" path="first_name" />


所以它会发光。。。thansk

我不确定“发光”是什么意思,但要使用dojo css,您需要添加如下内容:

<script type="text/javascript">
    Spring.addDecoration(new Spring.ElementDecoration({
        elementId : "first_name",
        widgetType : "dijit.form.ValidationTextBox",
        widgetAttrs : { required : true }}));
</script>

Spring.add装饰(new Spring.element装饰)({
elementId:“名字”,
widgetType:“dijit.form.ValidationTextBox”,
WidgeAttrs:{required:true}}});
我错过了

<body class="claro">


如果您正在讨论如何检查submit Spring.addDecoration(new Spring.ValidateAllDecoration({elementId:'buttonId',event:'onclick'})上的必填字段,那么现在提交时如何检查该字段;是的,但是其中一个是单选按钮,我不能让它工作!