jspx页面初始化时将View Object中SQL的变量赋bindings中的值 bind variable of the sql in vo
2013-11-04 10:20
357 查看
下面的例子以taskDetails1.jspx文件为例进行说明。
1、新增action。action的id为ExecuteWithParams。此操作在.jspx的binding中进行。此操作是为了给变量赋值。
A、打开jspx文件或这个文件的PagetaskDetails1Def.xml,并点Bingdings中的“+”。
B、选中“action”,并点“OK”
C、选中VO对象,并选中其Iterator和Operation(为ExecuteWithParams),设置变量的值。并点“OK”
新增完看到的图为:
新增后代码为:
<action IterBinding="EiisFileT004Iterator" id="ExecuteWithParams"
InstanceName="AppModuleAMFileFtpDataControl.EiisFileT004"
DataControl="AppModuleAMFileFtpDataControl"
RequiresUpdateModel="true" Action="executeWithParams">
<NamedData NDName="VarInstanceId"
NDValue="#{bindings.instanceId.inputValue}"
NDType="java.lang.String"/>
</action>
2、新增InvokeAction。为了让页面初始化时执行变量赋值。
A、打开jspx文件或这个文件的PagetaskDetails1Def.xml,并点Executables中的“+”。
B、选中“InvokeAction”,并点“OK”
C、设置id和Binds值,Binds设置成前面的操作名称。并点“OK”
D、编辑InvokeAction
E、设置Refresh值。并点“finish”
最后在PagetaskDetails1Def.xml 中生成的代码为:
<executables>
<invokeAction Binds="ExecuteWithParams" id="setValueToVariable" Refresh="always"/>
</executables>
这样在页面初始化时就可以对VO中的变量赋值了。这个值可以是bindings中的属性值。我们在这个例子中就赋予了bindings中的instanceid的值,即:#{bindings.instanceId.inputValue}
1、新增action。action的id为ExecuteWithParams。此操作在.jspx的binding中进行。此操作是为了给变量赋值。
A、打开jspx文件或这个文件的PagetaskDetails1Def.xml,并点Bingdings中的“+”。
B、选中“action”,并点“OK”
C、选中VO对象,并选中其Iterator和Operation(为ExecuteWithParams),设置变量的值。并点“OK”
新增完看到的图为:
新增后代码为:
<action IterBinding="EiisFileT004Iterator" id="ExecuteWithParams"
InstanceName="AppModuleAMFileFtpDataControl.EiisFileT004"
DataControl="AppModuleAMFileFtpDataControl"
RequiresUpdateModel="true" Action="executeWithParams">
<NamedData NDName="VarInstanceId"
NDValue="#{bindings.instanceId.inputValue}"
NDType="java.lang.String"/>
</action>
2、新增InvokeAction。为了让页面初始化时执行变量赋值。
A、打开jspx文件或这个文件的PagetaskDetails1Def.xml,并点Executables中的“+”。
B、选中“InvokeAction”,并点“OK”
C、设置id和Binds值,Binds设置成前面的操作名称。并点“OK”
D、编辑InvokeAction
E、设置Refresh值。并点“finish”
最后在PagetaskDetails1Def.xml 中生成的代码为:
<executables>
<invokeAction Binds="ExecuteWithParams" id="setValueToVariable" Refresh="always"/>
</executables>
这样在页面初始化时就可以对VO中的变量赋值了。这个值可以是bindings中的属性值。我们在这个例子中就赋予了bindings中的instanceid的值,即:#{bindings.instanceId.inputValue}
相关文章推荐
- This function has none of Deterministic,no sql,or reads sql data in its declaration and binary logging is enabled(you *might* want to use the less safe log_bin_trust_function_creators variable
- How to change the language of oracle sqlplus from chinese to english in windows(如何将oracle sql plus中的中文变成英文版)
- Questions[SQL]:Calculate the Number of Days in a Month
- Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection
- What's the difference of name scope and a variable scope in tensorflow?
- Django URLs error: view must be a callable or a list/tuple in the case of include()
- Django URLs error: view must be a callable or a list/tuple in the case of include()
- sharepoint2010:The number of items in this list exceeds the list view threshold, which is 20000 items.
- How to troubleshoot the performance of Ad-Hoc queries in SQL Server [ZT-from MS]
- Error in module RSQL of the database interface
- How to Get the Frequency Table of a Categorical Variable as a Data Frame in R
- How to invoke the method of managed bean and render view in JSF when we are outside the lifecycle of JSF
- 91.View the Exhibit and examine the structure of the PROMOTIONS table. Which two SQL statements woul
- Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control.
- TypeError: view must be a callable or a list/tuple in the case of include().解决办法
- Understanding Object Ownership in sql 2000(how to change the schema table name in sql 2000)
- Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection
- 子类中初始化错误Cannot assign to ’self’ outside of a method in the init family
- The Maximum Number of Bytes Per Row in SQL Server 2000 -- 8060.
- The version of SQL Server in use does not support datatype 'datetime2'.