1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | <context-param> <param-name>contextConfigLocation</param-name> <param-value>classpath:applicationContext.xml</param-value> </context-param> <filter> <filter-name>HomePageApplication</filter-name> <filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class> <init-param> <param-name>applicationFactoryClassName</param-name> <param-value>org.apache.wicket.spring.SpringWebApplicationFactory</param-value> </init-param> </filter> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> |
1 2 3 | <bean id="wicketApplication"class="com.ibm.testrun.model.host.HostApp"> <property name="baseDao"ref="baseDao"/> </bean> |
1 2 | @SpringBean(name="taskDao") privateTaskDao taskDao; |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | @Override protected void appendOptionHtml(AppendingStringBuffer buffer, SuitesFileHolder choice, intindex, String selected) { if(index == 0) { buffer.append("\n<table><tr><td>\n"); } else if((index + 1) % 4 == 1) { buffer.append("\n<tr><td>\n"); } else { buffer.append("\n<td>\n"); } super.appendOptionHtml(buffer, choice, index, selected); inttotalSize = this.getChoices().size(); if(index == totalSize - 1) { buffer.append("\n</td>"); if(totalSize % 4 != 0) { for(inti = 0; (i < 4 - totalSize % 4); i++) { buffer.append("<td></td>"); } } buffer.append("</tr></table>\n"); } else if((index + 1) % 4 == 0) { buffer.append("\n</td></tr>\n"); } else { buffer.append("\n</td>\n"); } } |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |