05-27-2010 09:13 AM
05-27-2010 09:27 AM
05-28-2010 10:56 AM
05-29-2010 08:45 AM
05-31-2010 12:53 AM
05-31-2010 03:11 AM
05-31-2010 07:44 AM
r.customDatewon't probably work as easily, as there are no propertyResolvers defined for this property.
05-31-2010 08:46 AM
addPropertyResolver("createdsort", resolverCreated);
public NodePropertyResolver resolverCreated = new NodePropertyResolver() {
@SuppressWarnings("deprecation")
public Object get(Node node) {
return node.getProperties().get("created");
}
};
I did not know that does not work like that. hire is solution.05-31-2010 09:20 AM
well you just change jsp/browse.jsp
find column and put
r.title
r.author
r.customdate
<%– Primary column for icons view mode –%>
<a:column id="col11" primary="true" style="padding:2px;text-align:left;vertical-align:top;" rendered="#{BrowseBean.browseViewMode == 'icons'}">
<f:facet name="large-icon">
<a:actionLink id="col11-act1" value="#{r.name}" href="#{r.url}" target="new" image="#{r.fileType32}" showLink="false" styleClass="inlineAction" />
</f:facet>
<a:actionLink id="col11-act2" value="#{r.name}" href="#{r.url}" target="new" styleClass="header" />
<r:lockIcon id="col11-lock" value="#{r.nodeRef}" align="absmiddle" />
<h:outputLabel id="col11-lang" value="#{r.lang}" styleClass="langCode" rendered="#{r.lang != null}"/>
<r:nodeInfo id="col11-info" value="#{r.id}">
<h:graphicImage id="col11-img" url="/images/icons/popup.gif" styleClass="popupImage" width="16" height="16" />
</r:nodeInfo>
</a:column>
05-31-2010 09:39 AM
<%– Primary column for icons view mode –%>
<a:column id="col11" primary="true" style="padding:2px;text-align:left;vertical-align:top;" rendered="#{BrowseBean.browseViewMode == 'icons'}">
//render column if view mode is icons
<f:facet name="large-icon">
//facet large icon , this is icon on the left .
<a:actionLink id="col11-act1" value="#{r.name}" href="#{r.url}" target="new" image="#{r.fileType32}" showLink="false" styleClass="inlineAction" />
//as you see you only see image not link, becaues of show link false
</f:facet>
<a:actionLink id="col11-act2" value="#{r.name}" href="#{r.url}" target="new" styleClass="header" />
//this is where name is shown
<r:lockIcon id="col11-lock" value="#{r.nodeRef}" align="absmiddle" />
//lock icon
<h:outputLabel id="col11-lang" value="#{r.lang}" styleClass="langCode" rendered="#{r.lang != null}"/>
<r:nodeInfo id="col11-info" value="#{r.id}">
<h:graphicImage id="col11-img" url="/images/icons/popup.gif" styleClass="popupImage" width="16" height="16" />
</r:nodeInfo>
//this is info
<a:column id="col6" style="text-align:left" //YOU CHANGE ID'S, BECAUSE JSF ERRORS
rendered="#{BrowseBean.browseViewMode == 'details'}">//ALSO PAY ATENCION ON RENDERED PART OF COLUMN
<f:facet name="header">
<a:sortLink id="col6-sort" label="#{msg.created}"
value="createdsort" styleClass="header" />
</f:facet>
<h:outputText id="col6-txt" value="#{r.created}">YOU CHANGE THIS PART, VALUE PART TO SHOW YOUR CUSTOM PROPERTIE
<a:convertXMLDate type="both" //THIS IS USED TO CONVERT DATE TO NICE DATE TIME FORMAT
pattern="#{msg.date_time_pattern}" />//DATE_TIME_PATTERN IS USED FROM MESSAGES FOR CURRENT LANGUAGE.
</h:outputText>
</a:column>
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.