我正在研究JSF,我正在使用此代码来显示错误框.
<div class="pnx-msg pnx-msg-warning clearfix">
<i class="pnx-msg-icon pnx-icon-msg-warning"/>
</div>
Run Code Online (Sandbox Code Playgroud)
该<i class.../>部件导入警告图标.它的默认大小是36像素,但我需要将其调整为24像素.我该怎么做呢?
谢谢!
当我从我的工作区导入Maven项目并且这些项目是父项目的子项时,它们的项目名称与artifact-id完全一样.但是当我导入父项目时,项目名称就像目录名称一样.
目录结构示例:
project-parent (artifactId = project-application-parent)
--web (artifactId = project-webapp)
--core (artifactId = project-core)
Run Code Online (Sandbox Code Playgroud)
当我导入所有项目时,我的工作区看起来像这样:
project-parent
project-webapp
project-core
Run Code Online (Sandbox Code Playgroud)
我想要的是将父项目命名为artifact-id(project-application-parent).有没有办法实现这个目标?
有谁知道如何冻结primefaces选项列表中的任何行
或者如何使用itemDisabled
我正在尝试在SQL PLus上执行脚本,这很简单.
SET serveroutput ON;
DECLARE
mode NUMBER(1) := 1;
IF (mode = 1) THEN
prompt 'HERE'
END IF;
prompt 'fim'
Run Code Online (Sandbox Code Playgroud)
我在使用sqlplus user/pw@db和@myscript.sql成功连接后使用SQLPlus调用脚本.但输出对我来说很奇怪:
Conectado a:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> @myscript.sql
9
10
11
Run Code Online (Sandbox Code Playgroud)
它会继续无限期地打印这个序列.我究竟做错了什么?
我在 applicationContext 中定义了一个 Spring Bean,如下所示:
<bean id="spaceReader" class="com.company.SpaceReader">
</bean>
Run Code Online (Sandbox Code Playgroud)
我希望能够在我的应用程序 Servlet 中访问此 bean,而无需使用:
ApplicationContext context = new ClassPathXmlApplicationContext(CONTEXT_LOCATION);
context.getBean("SpaceReader");
Run Code Online (Sandbox Code Playgroud)
我尝试使用以下命令导出它:
<bean id="ContextExporter" class="org.springframework.web.context.support.ServletContextAttributeExporter">
<property name="contextExporterAttributes">
<map>
<entry key="SpaceReaderKey">
<ref local="spaceReader" />
</entry>
</map>
</property>
</bean>
Run Code Online (Sandbox Code Playgroud)
但是当我将它注入到 Servlet 中时,它返回一个 Null 值。只是想知道当我导出 Bean 或当我尝试在 Servlet 中访问它时是否缺少某些内容?