0

我正在开发一个 Spring Web Flow 项目,我想使用 Dojo dijit css 使我的输入表单和字段变得更好。我想让我的领域发光。

在我的 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" />

所以它会发光...谢谢

4

2 回答 2

0

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

<script type="text/javascript">
    Spring.addDecoration(new Spring.ElementDecoration({
        elementId : "first_name",
        widgetType : "dijit.form.ValidationTextBox",
        widgetAttrs : { required : true }}));
</script>
于 2012-10-10T17:21:12.447 回答
0

我错过了

<body class="claro">
于 2012-10-11T12:19:42.587 回答