因此,我有一个通用的Form Bean,它具有一些值,例如action,offer和code。
我正在开发使用此通用表单(必填)的新表单,但我想使用名称与从中获取值的bean不同的bean的值来填充表单页面。
在页面的第一次加载中,它显示一些基本数据:
Action: (hidden input, name the same as the bean)
<html:hidden property="action"/>
Offer: (user input, name the same as the bean)
<html:text property="offer"/>
Code: (hidden input, name not the same as the bean)
<html:hidden property="code"/>
Run Code Online (Sandbox Code Playgroud)
我要使用的bean是这样的:
<bean:write name="data" property="data.code.description"/>
Run Code Online (Sandbox Code Playgroud)
如何将该值(data.code.desription)放入“隐藏”代码区域,以便在提交表单时,通用表单bean可以获取该值?
如何使用Angular Slick创建外部箭头?该文档并没有真正提供线索。
我已经知道如何使用jQuery,但这并不完全相同,因为slick在angular中使用了实际的标签:
<p class="left">left</p>
$('.left').click(function(){
$('.slider').slickPrev();
})
Run Code Online (Sandbox Code Playgroud)
SELECT pe.prodtree_element_id prodID, pe.prodtree_element_name_s, li.line_name, av2.value
FROM prodtree_element pe
LEFT JOIN prodtree_link pl
ON pe.prodtree_element_id = pl.to_prodtree_node_id
LEFT JOIN line li
ON pe.line_code = li.line_code
INNER JOIN attribute_values av
ON av.attribute_definition_id = #statusCode#
LEFT JOIN attribute_values av2
ON pe.prodtree_element_id = av.prodtree_element_id
WHERE pe.prodtree_element_func_type <> 'WIZARD'
AND pe.prodtree_element_topo_type = 'NODE'
Run Code Online (Sandbox Code Playgroud)
"#statusCode#"是一个静态id,它匹配属性定义表中的id(为了参数,我们假设为22).问题是,查询在任何合理的时间内完成都会遇到很大麻烦.更大的问题是,我有点需要它提前完成,但记录的数量是巨大的,它必须退缩(约30-50,000).我需要来自多个表的数据,这是它开始变慢的地方.这只是我需要的一部分,我还需要一个与当前"prodtree_elment_id"相匹配的整个其他表.
我正在使用ColdFusion,但即使在SQL Server 2005中直接运行查询也会为此查询创建15-30分钟的等待时间(如果它甚至完成).是否有任何可以想象的方法来加快此查询最多花费5分钟或更少?
当调用一个将对象添加到GWT中的集合的方法时,我得到一个空指针错误.我不知道为什么我所做的一切都创建了一个非常简单的对象(只包含一个字符串).这是调用函数和函数的代码:
public class PlantMenu extends VerticalPanel {
private Collection<PlantData> plantList;
private Collection<PlantData> newPlantData;
public PlantMenu() {
createPlants();
/*
for(Iterator<PlantData> i = plantList.iterator(); i.hasNext();) {
Window.alert(i.next().getPlantName());
}*/
}
public Collection<PlantData> createPlants() {
PlantData plant1 = new PlantData("Herbs");
PlantData plant2 = new PlantData("Flowers");
PlantData plant3 = new PlantData("Vegetable");
newPlantData.add(plant1);
newPlantData.add(plant2);
newPlantData.add(plant3);
return newPlantData;
}
}
Run Code Online (Sandbox Code Playgroud)
它在尝试添加第一个工厂时出错(空指针),这一行:
PlantData plant1 =新PlantData("Herbs");
任何帮助赞赏:)
angularjs ×1
generics ×1
gwt ×1
html ×1
java ×1
javabeans ×1
javascript ×1
jsp ×1
jsp-tags ×1
outer-join ×1
performance ×1
slick.js ×1
sql ×1
sql-server ×1
struts ×1
t-sql ×1