[opencms-dev] Problem with method readProperty(String, String) in OpenCms 8

Siegfried Ehret s.ehret at eurelis.com
Tue Jul 31 08:40:08 CEST 2012


You should use the readPropertyObject method from the CmsObject, not readProperty. It will give you a CmsProperty object, and then getValue(), getValueList()...
Is that ok ?

De : opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] De la part de Deiverson Silveira
Envoyé : lundi 30 juillet 2012 18:18
À : The OpenCms mailing list
Objet : [opencms-dev] Problem with method readProperty(String, String) in OpenCms 8

Hi List,

I have migration OpenCms 7 to 8, and I install 8 full, and export my project database/module, but I have problem with method:
javax.servlet.jsp.JspException: org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: 34 in the jsp file: /WEB-INF/jsp/offline/system/modules/my.project.org/resources/inc/global/breadcrumbs.jsp<http://my.project.org/resources/inc/global/breadcrumbs.jsp>
The method readProperty(String, String) is undefined for the type CmsObject
31: CmsJspActionElement cms = new CmsJspActionElement(pageContext, request, response);
32: CmsObject obj = cms.getCmsObject();
33: List list = cms.getNavigation().getNavigationBreadCrumb(1, true);
34: currentPageTitle = obj.readProperty(namePage, "Title");
35: %>
36:

How can soluion this?

Regards,

Deiverson

--
www.solutioncms.com<http://www.solutioncms.com>
The Brazilian
Official Provider OpenCms

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20120731/d10fe6ae/attachment.htm>


More information about the opencms-dev mailing list