我使用Play中的一个简单控制器和一个路由定义将其绑定到一起。
I tie it all together with a simple controller in Play and a route definition.
打开文本编辑器,并创建一个名为Home的简单控制器。
Open a text editor, and create a simple controller called Home.
您的目标是构建这样一个简单的控制器:它知道应该运行哪个模型和函数,然后返回一个JSON对象作为响应,这个响应可用于事务的远端。
Your goal is to build a simple controller that will know which model and function to run, and then return a JSON object as a response that is usable on the far end of the transaction.
第二个组件是WSDM控制器,提供服务器的简单反馈和服务器自身的配置。
A second component, the WSDM Controller, provides simple feedback from the server and configuration of the server itself.
框架不仅为这个简单的小程序生成了视图和控制器,而且还生成了有助于测试用户界面的功能性测试。
The framework has generated not only the views and controller for a simple little application, but also a functional test to help you test the user interface.
最简单的方法是查询数据库中未完成的请求数量,并将查询放到一个控制器中进行。
The simplest solution is to query the database for the number of outstanding requests and to serve this in a controller.
事实上,简单的控制器类根本与JSF没有联系,这使得它们更加容易测试。
In fact, simple controller classes aren't tied to JSF at all, making them easier to test.
有一个简单的视图控制器管理主视图。
这个想法是为了使控制器类尽可能保持简单以允许业务逻辑被抽象为助手类。
The idea is to keep the controller class as simple as possible to allow business logic to be abstracted to a helper class.
控制器和服务配置好后,这个简单的应用程序就完成了。
With the controller and services configured, this simple application is complete.
为保持简单,我直接从控制器中呈现视图。
Keeping things simple, I'm rendering the view directly from the controller.
这个控制器非常简单,看起来如清单6所示。
要避免此类情况发生,最简单的方法就是在控制器中添加简单的测试。
The easiest thing you can do to keep that from happening is to add a simple test in your controller.
该控制器十分简单。
非常简单,但是对控制器需要做哪些改动呢?
That's trivial enough, but what do we have to change in our controller?
您还看到了一个简单实用的基于Dojo 的阅读器的视图和控制器是如何实现的。
You examined how the view and controller of a simple, yet functioning, Dojo-based reader can be implemented.
为理解breakpointer的运行过程,可创建一个简单的Rails应用程序,生成一个控制器,启动服务器,并启动breakpointer。
To see the breakpointer in action, create a simple Rails application, generate a controller, start the server, and start a breakpointer.
JSPX文件由一个控制器命令生成,该命令将简单的基于JAR的应用程序转换为SpringMVCWeb应用程序。
The JSPX files are generated by a controller command that converts a simple JAR-based application to a Spring MVC web application.
如果这个简单、便宜的控制器像个没有屏幕的iPhone呢?
What if that simple, inexpensive controller is something like an iPhone without the screen?
这一机制背后的原理其实很简单:Rails首先通过反射将控制器中的变量拷贝到一个容器中,其后又将该容器中的变量拷贝回视图实例。
The magic is actually quite simple: Rails uses reflection to copy controller variables into a collection, which is then copied back into the view instance.
这个页面使用form_remote_tag把简单表单的内容提交到控制器中的add方法。
This page USES the form_remote_tag to submit the contents of the simple form to the add method in the controller.
为了再一次运行测试,我们简单的在Robot的录制控制器上(或者选择File菜单上的Playback)点击“play”按钮。
To run the test again, we simply clicked the "play" button on the Robot recording control (or chose Playback from the File menu).
Groovlets使得编写控制器变得非常简单:它们需要更少的代码并自动提供了所需的对象。
Groovlets make controller coding a snap: they require less code and provide needed objects automatically.
一个控制器控制简单的页面,另一个控制器建立一个Ajax响应。
One controls a simple page, and another sets up an Ajax response. Type the following commands.
Rails3中的控制器代码可以极其简单。
The code for a controller in Rails 3 can be exceedingly Spartan.
控制器操作在app/controllers/browsers_controller 中进行,并且很简单。
The controller action goes in app/controllers/browsers_controller and is pretty straightforward.
为简单起见,除调用的视图不同之外,这两个控制器之间并没有太多不同之处。
For simplicity, there is not much difference between the two controllers except for what view they call.
这样的说明确实有些过于简单,顾名思义,ADC(应用程序交付控制器)用于控制和管理应用程序流量的交付方式。
It is a necessarily vague description, but as the name suggests an ADC is used to control and manage the way that application traffic is delivered.
清单5中显示的这个控制器是非常简单的。
它有一个简单的振动控制器,可以通过打开和关闭的来控制原料的供给。
It has a simple vibratory controller that can be turned on and off to feed an increment of material.
应用推荐