如何使用spring和dojo制作我的提交按钮主题

时间:2012-10-15 18:26:45

标签: spring-mvc dojo

如何使用Spring Webflow和数字

查看表单上的其他字段
<input type="submit" name="_eventId_submit" id="submit" value="Submit" />
        <script type="text/javascript">
                                            Spring.addDecoration(new Spring.ElementDecoration(
                                                {
                                                    elementId : 'submit',
                                                    widgetType : "dijit.form.Button",
                                                    widgetModule : "dijit.form.Button"
                                                }));
                            </script> 

        <p>

1 个答案:

答案 0 :(得分:1)

我将代码更改为以下内容并且有效:

<input type="submit" name="_eventId_submit" id="submit" value="Submit" />
        <script type="text/javascript">
                                            Spring.addDecoration(new Spring.ElementDecoration(
                                                {
                                                    elementId : 'submit',
                                                    widgetType : "dijit.form.Button",
                                                    widgetModule : "dijit.form.Button",
                                                    widgetAttrs : {
                                                        label: "Submit Page",
                                                        promptMessage : "Click here to submit page"
                                                    }

                                                }));
                            </script>