我想使用Java生成一个基于树的菜单,该菜单将出现在USSD浏览器上.每个节点可能有子节点,以叶节点结尾.我还必须保持访问此菜单的每个用户的状态(如他在菜单上的当前位置)以便于导航.
关于如何实现树木生成和国家管理的任何想法?
我正在使用spring 3.0.5并尝试通过context元素读取配置文件:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd">
<context:property-placeholder location="classpath:db_config.properties"/>
Run Code Online (Sandbox Code Playgroud)
应用程序启动时,我收到以下错误:
违规资源:ServletContext资源[/WB-INF/spring/applicationContext.xml]; 嵌套异常是org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:来自ServletContext资源[/WEB-INF/spring/db-config.xml]的XML文档中的第20行无效; 嵌套异常是org.xml.sax.SAXParseException:元素"context:property-placeholder"的前缀"context"未绑定.
我究竟做错了什么?
我有一个Dojo前端Web应用程序.每当我尝试发布带有文件附件的表单时,会弹出一条通知,说"验证应用程序要求",停留一段时间,然后再次显示"应用程序下载未成功......"的另一个通知.我在IE8上注意到了这种行为.我无法在网上找到任何令人满意的答案.大多数答案似乎表明此通知出现在ClickOnce应用程序中(无论它们是什么).Bwt,操作系统是Windows 7.
有人知道解决方案或原因吗?
dojo internet-explorer file-upload internet-explorer-8 windows-7
我将以下viewconfig应用于网格面板.它应该根据数据值更改行颜色,但更改在视图上不可见.
.changed_colour {
background-color: #FFCC00
}
viewConfig: {
//Return CSS class to apply to rows depending upon data values
getRowClass: function (row, index) {
var data = row.data;
return data.NoteType === 'PRIVATE' ? 'changed_colour' : '';
}
}
Run Code Online (Sandbox Code Playgroud)
我注意到Firebug中行的样式:
<tr class="x-grid-row changed_colour">
.x-grid-row .x-grid-cell {
background-color: white;
border-color: #FAFAFA #EDEDED #EDEDED;
border-right: 0 solid #EDEDED;
border-style: solid;
border-width: 1px 0;
font: 11px tahoma,arial,verdana,sans-serif;
}
Run Code Online (Sandbox Code Playgroud)
上面的样式片段属于Extjs.任何人都可以建议解决这个问题吗?
谢谢