Show status.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://myfaces.apache.org/tomahawk" prefix="t"%>
<%@ taglib uri="http://myfaces.apache.org/sandbox" prefix="s"%>
<f:view>
<f:loadBundle basename="fi.hip.gb.portlet.resource.example_messages" var="example_messages"/>
<h1>
<f:verbatim>Status for</f:verbatim> <h:outputText value="#{selectedFile.fileName}"/>
</h1>
<h:form id="form">
<h:panelGrid columns="3">
<h:outputLabel value="File name"/>
<h:inputText value="#{selectedFile.fileName}"/>
<h:commandButton value="Rename" action="#{selectedFile.renameFile}"/>
<h:outputLabel value="Size"/>
<h:outputLabel value="#{selectedFile.fileSize}"/>
<h:outputLabel value="b"/>
<h:outputLabel value="Errors" rendered="#{selectedFile.errors}"/>
<h:outputLabel value="#{selectedFile.errorMessage}" rendered="#{selectedFile.errors}"/>
<h:outputLabel value=""/>
</h:panelGrid>
<h:inputHidden value="#{selectedFile.fileName}"/>
<h:commandButton value="Back" action="return" immediate="true"/>
<h:commandButton value="Delete file"
action="return" actionListener="#{selectedFile.clear}" immediate="true"/>
</h:form>
</f:view>
See more files for this project here