[开发] Can't find resource for bundle com.liferay.portlet.PortletResourceBundle
mousepc
2011-08-03
搞了一周了,不知道问题是出在Language*.properties文件上还是portlet的配置文件上。
<!--liferay-display.xml--> <?xml version="1.0"?> <!DOCTYPE display PUBLIC "-//Liferay//DTD Display 5.2.0//EN" "http://www.liferay.com/dtd/liferay-display_5_2_0.dtd"> <display> <category name="category.sample"> <portlet id="training-management" /> </category> </display> <!--liferay-portlet.xml--> <?xml version="1.0"?> <!DOCTYPE liferay-portlet-app PUBLIC "-//Liferay//DTD Portlet Application 5.2.0//EN" "http://www.liferay.com/dtd/liferay-portlet-app_5_2_0.dtd"> <liferay-portlet-app> <portlet> <portlet-name>training-management</portlet-name> <instanceable>false</instanceable> <render-weight>0</render-weight> </portlet> <role-mapper> <role-name>administrator</role-name> <role-link>Administrator</role-link> </role-mapper> <role-mapper> <role-name>guest</role-name> <role-link>Guest</role-link> </role-mapper> <role-mapper> <role-name>power-user</role-name> <role-link>Power User</role-link> </role-mapper> <role-mapper> <role-name>user</role-name> <role-link>User</role-link> </role-mapper> </liferay-portlet-app> <!--portlet.xml--> <?xml version="1.0"?> <portlet-app> <!-- xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" --> <portlet> <portlet-name>training-management</portlet-name> <display-name>Training Management</display-name> <portlet-class>com.portlet.HibernatePortlet</portlet-class> <!-- namespace --> <init-param> <name>viewNamespace</name> <value>/trainingmanagement</value> </init-param> <!-- The default action to invoke in view mode.--> <init-param> <name>defaultViewAction</name> <value>trainingManagement</value> </init-param> <expiration-cache>0</expiration-cache> <supports> <mime-type>text/html</mime-type> </supports> <resource-bundle>com.liferay.portlet.StrutsResourceBundle</resource-bundle> <security-role-ref> <role-name>administrator</role-name> </security-role-ref> <security-role-ref> <role-name>guest</role-name> </security-role-ref> <security-role-ref> <role-name>power-user</role-name> </security-role-ref> <security-role-ref> <role-name>user</role-name> </security-role-ref> </portlet> </portlet-app> Language.properties文件中配置:
javax.portlet.title.training-management=Training Management category.sample=Sample |
|
caoc1983
2011-08-09
遇到过,把portal重新覆盖了一下就好了
|
|
mousepc
2011-08-09
已经解决了,是在portlet.xml中配置了过滤器的原因。
|
|
mousepc
2011-08-09
错了,是少配置了过滤器的原因。
|