Show disk.jsp syntax highlighted
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
<f:view>
<f:loadBundle basename="fi.hip.gb.portlet.resource.example_messages" var="example_messages"/>
<style type="text/css">
.ajaxListItem {}
.ajaxList {}
</style>
<%
response.addHeader("HEADER_CONTENT", "<script>wsrp_rewrite_OnFocus(){alert('hello');}</script>");
%>
<f:verbatim><b>Global view</b></f:verbatim>
<h:form id="globalForm">
<h:dataTable id="global_files"
columnClasses="list-column-center, list-column-right, list-column-center, list-column-right"
headerClass="list-header"
rowClasses="list-row" styleClass="list-background"
value="#{globalBean.files}" var="files"
binding="#{globalBean.dataTable}">
<h:column>
<f:facet name="header"><h:outputText value="File name"/></f:facet>
<h:outputText value="#{files.fileName}"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Size"/>
</f:facet>
<h:outputText value="#{files.fileSize}"/>
</h:column>
<h:column>
<f:facet name="header"><h:outputText value="Download"/></f:facet>
<h:commandButton id="get" value="Download" action="#{globalBean.download}" />
</h:column>
</h:dataTable>
<a href="<portlet:renderURL/>">Refresh</a>
</h:form>
</f:view>
See more files for this project here