要针对特定项目定制导航视图模板的显示
To customize the wording in the navigation view template for your specific project
视图模板在理解工作原理时具有极高的价值。
The view template was highly valuable in understanding how things work.
您需要为刚才创建的视图创建一个视图模板。
You need to create a view template for the view you just created.
另一方面,您可能不希望验证标记打乱您的视图模板。
On the other hand, you probably don't want to clutter your view template with validation tags.
随后进行的视图呈现将数据提供给视图模板,将视图展现出来。
View rendering, which happens afterward, feeds data into a view template to generate a presentation.
这些注释使变量能够在视图模板和Seam组件之间双向流动。
These annotations enable a bidirectional flow of variables between the view template and Seam components.
可以使视图为每个文档创建对象,然后将其他XML放置在视图模板中。
You can have the view create the objects for each document, and then place the rest of the XML in a view template.
要提供视图模板或使用Streamlined提供的默认视图模板。
You provide a view template or use the default one Streamlined supplies.
如果您在控制器中创建了一个实例变量,那么这个变量就可以直接在视图模板中使用。
If you create an instance variable in your controller, that variable will magically be available to your view template.
这个例子很明显地演示了jsf请求url与视图模板之间并不一定存在一对一的关系。
This example clearly demonstrates that the one-to-one mapping between a JSF request URL and view template is not imperative.
我们将会导入该类(装载我们通过视图模板生成的类)并且接下来检验代码的相关部分。
We will import the class (overriding the one generated for us by the View template) and then examine the relevant portions of the code.
Razor尽量减少编写一个视图模板需要敲入的字符数,实现快速流畅的编程工作流。
Razor minimizes the number of characters and keystrokes required when writing a view template, and enables a fast, fluid coding workflow.
DPTK还提供了简单的视图模板的示例,即dump.pat文件(图15)。
The DPTK also provides a simple example of a view template, the dump.pat file (Figure 15).
稍后会看到,Streamlined可以把这些值替换进视图模板,形成完整的用户界面屏幕。
Streamlined can substitute these values into view templates, which you'll see later, to form full user interface screens.
从RHTML视图模板中调用API方法并将Web服务输出输出到其他RHTML视图模板中。
Invoke the API methods from an RHTML view template and output the Web service output to another RHTML view template.
这段代码将生成ActiveRecord模型、带有相应映射路径的控制器和几个视图模板。
This generates an ActiveRecord model, a controller with an appropriate route mapped to it, and several view templates.
默认的导航视图模板以一种全面的、经过良好组织的方式封装了用于为IT解决方案编制文档的最佳实践。
The default navigation view template encapsulates best practices for documenting an IT solution in a comprehensive, well-organized way.
取而代之,Seam检查操作的返回值是不是有效的视图模板(技术上称之为视图id),并对其执行动态导航。
Instead, Seam checks whether the return value of the action is a valid view template (technically a view id) and performs a dynamic navigation if it is.
Helper文件里面什么也没有:你可以在里面放入自己写的Ruby方法,并可以从视图模板中调用这些方法。
The helper file is empty: it's a place where you can put Ruby methods that you write and that you want to call from your view templates.
但能够得到一个初始的实现并能很快地运行起来,针对你的场景有一个你可以轻松细调的起始视图模板是非常有用的。
But being able to get an initial implementation up and running quickly, and having an initial view template for your scenario that you can then easily tweak is really useful.
例如,在下面,我们表示想要基于从上面的action方法中传入的Product对象序列生成一个“列表”视图模板。
For example, below we are indicating that we want to scaffold a "List" view template based on the sequence of Product objects we are passing from our action method above.
默认情况下,Streamlined为应用程序中的每个模型创建一个视图,还有一个针对所有应用程序视图的视图模板。
By default, Streamlined creates a view for each model in the application and also a view template for all application views.
点击“添加”按钮会在\Views \Products \文件夹中生成一个编辑视图模板,内含默认的脚手架实现。
Clicking the "Add" button will cause an edit view template to be created with a default scaffold implementation within the \ Views \ Products \ directory.
点击“添加”按钮会在\Views \Products \文件夹中生成一个视图模板,内含默认的“脚手架”实现。
Clicking the "Add" button will cause a view template to be created for us within the \ Views \ Products \ directory with a default "scaffold" implementation.
如果我能选择,我会通过用no_views选项调用Streamlined生成器,用一个视图模板生成我的初始应用程序。
If I had chosen, I could have created my initial application with a single view template by invoking the Streamlined generator with the no_views option.
修改getMsg.rhtml视图模板以输出在Helloadmin控制器类的getMsg方法中定义的 @service_output变量的值。
Modify the getMsg.rhtml view template to output the value of the variable @service_output, which is defined in the Helloadmin controller class's getMsg method.
你现在可以在一个控制器的action方法中键入Ctrl - M, Ctrl - V,或者在一个action方法中右击,选择“添加视图”上下文菜单项来生成新的视图模板。
You can now type Ctrl-M, Ctrl-V within a Controller action method, or right-click within an action method and choose the "Add view" context menu item to create new view templates.
脚手架(scaffolding)基础设施在生成视图模板时会使用反射,这样它可以基于传给它的任何POCO (plainoldCLRobject,普通的CLR对象)生成新的模板。
The scaffolding infrastructure uses reflection when creating view templates – so it can scaffold new templates based on any POCO (plain old CLR object) passed to it.
您可以利用最佳实践和指导原则来为每种视图创建标准模板,以表示体系结构的某个部分或范畴。
You can leverage best practices and guidelines to create standard templates for each view to represent a certain part or dimension of the architecture.
也可以添加定制数据库视图和文档模板。
You can also add custom database views and document templates.
应用推荐