Listing 4: Action Code snippet.
清单4:action代码片段。
In such a case, the target action code cannot be placed in a view.
在这样的案例中,目标动作代码不能放置在视图中。
Modify the process action code in the portlet class to publish the event.
编辑portlet类的过程操作代码,以发布事件。
NOTE: All this can be changed directly in the WSDL and in the action code when it is generated.
注意:所有这些内容均可在生成时直接在WSDL和操作代码中更改。
Thus, you can present the results of the same Action in different ways and not duplicate any Action code.
这样,您可以以不同的方式显示同一个Action的结果而不用复制任何Action代码。
Both custom action code and XML schema have to be packaged in a single jar, for example, emailAction. Jar.
自定义动作节点和XMLschema文件都需要打包在单独的jar文件中,比方说emailaction. jar。
In this example, the data is set in the RequestScope as a request attribute in the action code that is invoked.
在本例中,数据在RequestScope中设置为调用动作代码的请求属性。
First, you must understand that the action code is not directly tied to any particular view or view instance.
首先,必须了解操作代码并未直接绑定到任何具体的视图或视图实例。
It's important to note that the JSON support described above was activated simply by making changes in the various views, with the action code remaining untouched.
一定要注意的是,上面描述的JSON支持很容易激活,只需在各个视图中做更改,操作代码保持不变。
I'll run that action by evaluating the code; if the code should fail, then I will catch that error.
我将通过对代码求值来执行动作;如果代码可能失败,那么我将会捕获那个错误。
To add the custom action, use the code shown below.
要添加这个定制动作,可以使用如下代码。
The Client-Side Click-to-Action source object code is updated, as shown in Listing 3.
客户端的点击操作源对象代码得到了更新,如列表3所示。
Everywhere a match can be found, an action (code block) can be executed.
每发现一个匹配对象,就会执行一个动作(代码块)。
The core of the event action calls the code in Listing 3.
这个事件动作的核心调用清单3中的代码。
You can see the type substitution code in action in the output at the bottom of Listing 6 (restructured slightly for formatting).
在清单6底部的输出中(为了格式化稍微重新调整了结构),可以看到类型替换代码的作用。
All the actions below end with '1;' because the last code in the action determines whether the action succeeded (0) or failed (1) as a return code.
下面所有的操作都以‘1;’结尾,因为操作中的最后代码确定了该操作是成功(返回码为0)还是失败(返回码为1)。
In the next installment, you'll see actual GTK + code in action.
在下一期中,可以看到实际的GTK +代码的作用。
One of the changes in the JSP code is the action for the form.
JSP代码中的一个改变是表单的动作。
The "verb" is the action taken by the code.
“动词”是代码采取的动作。
Next let's move on to see your code in action.
下面让我们来继续看运行的代码。
Listing 2 shows the code for this action.
列表2列出了它的代码。
Currently in WebSphere Portal, the submit button cannot be named "Submit" for Client-Side Click-to-Action target code to work properly.
在WebSpherePortal 中,submit按钮不能命名为客户端点击操作目标代码的“Submit”以合适地工作。
A snippet of the Action class code shown in Listing 1 illustrates how the Model service is called from the Action class.
清单1中所示的一小段action类代码说明了如何从action类中调用模型服务。
Modify the process action or event code in the portlet class to publish or process the event.
编辑portlet类中的过程行为或者事件代码,以发布或者处理事件。
Modify the Action class and add code for the default value, as shown in Listing 4.
修改action类,并添加默认值的代码,如清单4所示。
Note that the program was able to use the latest available installed gem by default without any explicit action in the code.
需要注意的是,我们不需要在代码中指明,程序就会默认使用gem的最新安装版本。
In action, the code in Listing 12 looks like this.
清单12中代码的效果如下。
This action ensures consistency across the code generated for the project.
此操作可以确保为项目生成的代码的一致性。
This action ensures consistency across the code generated for the project.
此操作可以确保为项目生成的代码的一致性。
应用推荐