03-30-2006 08:26 AM
03-30-2006 08:46 AM
03-30-2006 08:57 AM
It would not be hard to add them!
03-30-2006 10:06 AM
03-31-2006 04:43 AM
03-31-2006 05:57 AM
03-31-2006 07:33 AM
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;
}
}
03-31-2006 07:49 AM
03-31-2006 08:34 AM
url="#{CheckinCheckoutBean.image ? 'r.url':'r.fileType32'}"
04-03-2006 02:02 AM
url="#{CheckinCheckoutBean.image ? 'r.url':'r.fileType32'}"
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.