As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
It would not be hard to add them!
javax.faces.el.ReferenceSyntaxException: Invalid expression: '${CheckinCheckoutBean.getImage(r.id)}'caused by:org.apache.commons.el.parser.ParseException: Encountered "(" at line 1, column 31. Was expecting one of: "}" … "." … ">" … "gt" … "<" … "lt" … "==" … "eq" … "<=" … "le" … ">=" … "ge" … "!=" … "ne" … "[" … "+" … "-" … "*" … "/" … "div" … "%" … "mod" … "and" … "&&" … "or" … "||" … "?" …
public String getImage(String id) { Node node = setupContentDocument(id); //retrieve the content reader for this node ContentReader reader = getContentService().getReader(node.getNodeRef(), ContentModel.PROP_CONTENT); String mimetype = reader.getMimetype(); String url = (String) node.getProperties().get("url"); String img = (String) node.getProperties().get("fileType32"); if (MimetypeMap.MIMETYPE_IMAGE_JPEG.equals(mimetype) || MimetypeMap.MIMETYPE_IMAGE_GIF.equals(mimetype) || MimetypeMap.MIMETYPE_IMAGE_RGB.equals(mimetype)) { return url; } else { return img; } }
url="#{CheckinCheckoutBean.image ? 'r.url':'r.fileType32'}"
url="#{CheckinCheckoutBean.image ? 'r.url':'r.fileType32'}"
public String getImage() { if (expression) return getDocument().getProperties.get("url"); else return getDocument().getProperties.get("fileType32"); }