Once the user selects an image file for upload, enters a title and optional tags into this form and submits it, the second half of the script swings into action.
一旦用户选择了要上传的文件,将标题和可选标记输入此表单并提交后,脚本的另一半就会发挥作用。
Figure 7 and Figure 8 show the fmt library's message-related tags in action, showing the output resulting from the code in Listing 7 and the localized resource bundles in Listing 4 and Listing 5.
图7和图8演示了正在工作的fmt库与消息相关的标记,显示了由清单 7中代码所产生的输出,以及 清单4和 清单5中的本地化资源束。
UI tags are designed to get data from the ValueStack (action added data onto the ValueStack) or from data tags.
UI标记用于从ValueStack (action添加到ValueStack的数据)或数据标记获得数据。
First, for XHTML tags that allow subelements like the final four (action, model, trigger, and repeat) you added in Part 1, you'll make sure that only the allowed XHTML tags are added as children.
首先,对于允许使用子元素(如您在第1部分添加的最后四个action、model、trigger和repeat)的XHTML标记,您要确保只有允许的XHTML标记才作为子元素添加。
As you browse through the generated views, you'll come across many other Grails tags in action.
在浏览生成的视图时,还会看到其他许多Grails标记。
Note that multiple tags are allowed under the same, resulting in multiple database transactions per user action.
注意在同一下允许多个标签,会导致每用户操作出现多个数据库事务。
For example, take a look at 'action' : Only dispatch, insert, setvalue, and load XHTML tags are allowed as children.
例如,查看一下‘action’:只有dispatch、insert、setvalue和load这四个XHTML标记可以作为子元素。
Listing 17. Opening and closing of the action, repeat, model and trigger tags.
清单17.action、repeat、model和trigger标记的打开和关闭。
Listing 17. Opening and closing of the action, repeat, model and trigger tags.
清单17.action、repeat、model和trigger标记的打开和关闭。
应用推荐