03-16-2006 03:36 AM
03-20-2006 09:00 AM
<%– TestPanel –%>
<%@ include file="../parts/testpanel.jsp" %>
<tr valign=top>
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_4.gif)" width=4></td>
<td style="padding:4px">
<a:panel id="content-panel" border="white" bgcolor="white" titleBorder="blue" titleBgcolor="#D3E6FE" styleClass="mainSubTitle" label="#{msg.browse_content}">
<h:inputTextarea id="textArea" rows="24" cols="112" value="#{CheckinCheckoutBean.editorOutput}" />
</a:panel>
</td>
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_6.gif)" width=4></td>
</tr>
03-20-2006 11:38 AM
<%– Primary column for details view mode –%>
<a:column primary="true" width="200" style="padding:2px;text-align:left" rendered="#{BrowseBean.browseViewMode == 'details'}">
<f:facet name="header">
<a:sortLink label="#{msg.name}" value="name" mode="case-insensitive" styleClass="header"/>
</f:facet>
<f:facet name="small-icon">
<a:actionLink value="#{r.name}" href="#{r.url}" target="new" image="#{r.fileType16}" showLink="false" styleClass="inlineAction" />
</f:facet>
<a:actionLink value="#{r.name}" href="#{r.url}" target="new" />
<r:lockIcon value="#{r.nodeRef}" align="absmiddle" />
</a:column>
<%– Primary column for icons view mode –%>
<a:column primary="true" style="padding:2px;text-align:left;vertical-align:top;" rendered="#{BrowseBean.browseViewMode == 'icons'}">
<f:facet name="large-icon">
<a:actionLink value="#{r.name}" href="#{r.url}" target="new" image="#{r.fileType32}" showLink="false" styleClass="inlineAction" />
</f:facet>
<a:actionLink value="#{r.name}" href="#{r.url}" target="new" styleClass="header" />
<r:lockIcon value="#{r.nodeRef}" align="absmiddle" />
</a:column>
<%– Primary column for list view mode –%>
<a:column primary="true" style="padding:2px;text-align:left" rendered="#{BrowseBean.browseViewMode == 'list'}">
<f:facet name="large-icon">
<a:actionLink value="#{r.name}" href="#{r.url}" target="new" image="#{r.fileType32}" showLink="false" styleClass="inlineAction" />
</f:facet>
<a:actionLink value="#{r.name}" href="#{r.url}" target="new" styleClass="title" />
<r:lockIcon value="#{r.nodeRef}" align="absmiddle" />
</a:column>
<a:actionLink value="#{r.name}" href="#{r.url}" target="new" />
This style of actionlink component uses a direct generated HREF to download the content, if you change this to a JSF style action link that executes your custom code such as:
<a:actionLink value="#{r.name}" actionListener="#{MyBean.myMethod}" />
So as you have already worked out, you will want to put similar code in your bean actionlistener method as you can see in the CheckinCheckoutBean - basically you need to get the content from the node, set the content into a field that has a getter method (similar to getEditorOutput() in CheckinCheckoutBean ) and then bind your textarea to that getter.03-21-2006 08:31 AM
outputText value="#{CheckinCheckoutBean.documentContent}"Now, when i want to show the .txt files, the text will be shown straigt after each other, so, there is no more structure in it.03-21-2006 01:23 PM
03-21-2006 03:23 PM
outputText value="#{InlinereadingBean.documentContent}"03-21-2006 04:06 PM
03-27-2006 02:46 AM
// looking for the type of file
if (MimetypeMap.MIMETYPE_TEXT_PLAIN.equals(mimetype) ||
MimetypeMap.MIMETYPE_XML.equals(mimetype) ||
MimetypeMap.MIMETYPE_TEXT_CSS.equals(mimetype) ||
MimetypeMap.MIMETYPE_HTML.equals(mimetype))
else
{ if (MimetypeMap.MIMETYPE_IMAGE_JPEG.equals(mimetype) ||
MimetypeMap.MIMETYPE_IMAGE_GIF.equals(mimetype) ||
MimetypeMap.MIMETYPE_IMAGE_RGB.equals(mimetype))
{
setDocumentContent("image");03-27-2006 05:16 AM
05-18-2006 09:39 AM
<h:panelGroup id="inline-panel-facets">
<f:facet name="title">
<a:actionLink id="panelLink1-inline" value="Close Content" action="#{CheckinCheckoutBean.closeContent}" showLink="false" image="/images/icons/close.gif" />
<a:actionLink id="panelLink2-inline" value="Resize" action="#{PanelBean.resizePanels}" showLink="false" image="/images/icons/fullscreen.gif" />
</f:facet>
</h:panelGroup>
<a:panel label="#{CheckinCheckoutBean.titleContent}" id="inline-details-panel" facetsId="inline-panel-facets" progressive="true"
border="white" bgcolor="white" titleBorder="blue" titleBgcolor="#D3E6FE"
expanded='#{PanelBean.panels["inline_details"]}' expandedActionListener="#{PanelBean.expandPanel}">
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.