det er et testprojekt som kommer med netbeans
<jsp:root version="2.1" xmlns:f="
http://java.sun.com/jsf/core" xmlns:h="
http://java.sun.com/jsf/html" xmlns:jsp="
http://java.sun.com/JSP/Page" xmlns:webuijsf="
http://www.sun.com/webui/webuijsf"> <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
<f:view>
<webuijsf:page id="page1">
<webuijsf:html id="html1">
<webuijsf:head id="head1">
<webuijsf:link id="link1" url="/resources/stylesheet.css"/>
</webuijsf:head>
<webuijsf:body id="body1" style="-rave-layout: grid">
<webuijsf:form binding="#{Page1.form1}" id="form1" virtualFormsConfig="genre | mainPanel:currentViewPanel:currentGenre | mainPanel:currentViewPanel:currentGenre , add | mainPanel:addMoviePanel:addYear mainPanel:addMoviePanel:addImage mainPanel:addMoviePanel:addRating mainPanel:addMoviePanel:addGenre mainPanel:addMoviePanel:addLength mainPanel:addMoviePanel:addDescription mainPanel:addMoviePanel:addTitle | mainPanel:addMoviePanel:add , update | mainPanel:moviesTablePanel:movies:tableRowGroup1:tableColumn6:textArea1 mainPanel:moviesTablePanel:movies:tableRowGroup1:tableColumn2:dropDown1 mainPanel:moviesTablePanel:movies:tableRowGroup1:tableColumn1:textField1 mainPanel:moviesTablePanel:movies:tableRowGroup1:tableColumn3:textField2 mainPanel:moviesTablePanel:movies:tableRowGroup1:tableColumn4:textField3 mainPanel:moviesTablePanel:movies:tableRowGroup1:tableColumn5:textField4 | mainPanel:moviesTablePanel:update , preview/review | | mainPanel:moviesTablePanel:movies:tableRowGroup1:tableColumn7:preview mainPanel:moviesTablePanel:movies:tableRowGroup1:tableColumn7:remove">
<div style="position: absolute; left: 0px; top: 0px">
<jsp:directive.include file="Masthead.jspf"/>
</div>
<h:panelGrid id="mainPanel" style="margin: 5px; padding: 5px; height: 100%; left: 0px; top: 160px; position: absolute; width: 760px">
<h:panelGrid columns="3" id="currentViewPanel" style="height: 100%; width: 50%">
<webuijsf:label id="label1" text="Genre:"/>
<webuijsf:dropDown binding="#{Page1.currentGenre}" id="currentGenre" items="#{ApplicationBean1.genreOptions}"
onChange="webui.suntheme.common.timeoutSubmitForm(this.form, 'mainPanel:currentViewPanel:currentGenre');" valueChangeListenerExpression="#{Page1.currentGenre_processValueChange}"/>
<webuijsf:message for="currentGenre" id="message7" showDetail="false" showSummary="true"/>
</h:panelGrid>
<h:panelGrid id="moviesTablePanel" style="width: 100%; height: 100%;">
<webuijsf:table augmentTitle="false" id="movies" title="Movies" width="840">
<webuijsf:tableRowGroup binding="#{Page1.tableRowGroup1}" id="tableRowGroup1" rows="10"
sourceData="#{SessionBean1.movieListDataProvider}" sourceVar="currentRow">
<webuijsf:tableColumn headerText="Title" id="tableColumn1" sort="title">
<webuijsf:textField id="textField1" text="#{currentRow.value['title']}"/>
</webuijsf:tableColumn>
<webuijsf:tableColumn headerText="Rating" id="tableColumn2">
<webuijsf:dropDown id="dropDown1" items="#{ApplicationBean1.ratingOptions}" selected="#{SessionBean1.movieListDataProvider.value['rating']}"/>
</webuijsf:tableColumn>
<webuijsf:tableColumn headerText="Year" id="tableColumn3" sort="year">
<webuijsf:textField id="textField2" text="#{currentRow.value['year']}"/>
</webuijsf:tableColumn>
<webuijsf:tableColumn headerText="Length" id="tableColumn4" sort="length">
<webuijsf:textField id="textField3" text="#{currentRow.value['length']}"/>
</webuijsf:tableColumn>
<webuijsf:tableColumn headerText="Image" id="tableColumn5" sort="image">
<webuijsf:textField id="textField4" text="#{currentRow.value['image']}"/>
</webuijsf:tableColumn>
<webuijsf:tableColumn headerText="Description" id="tableColumn6" sort="description">
<webuijsf:textArea id="textArea1" text="#{currentRow.value['description']}"/>
</webuijsf:tableColumn>
<webuijsf:tableColumn id="tableColumn7">
<webuijsf:button actionExpression="#{Page1.preview_action}" id="preview" text="Preview"/>
<webuijsf:button actionExpression="#{Page1.remove_action}" id="remove" text="Remove"/>
</webuijsf:tableColumn>
</webuijsf:tableRowGroup>
</webuijsf:table>
<webuijsf:button actionExpression="#{Page1.update_action}" id="update" text="Update"/>
</h:panelGrid>
<h:panelGrid columns="3" id="addMoviePanel" style="height: 100%; width:75%">
<webuijsf:label id="label2" text="Genre:"/>
<webuijsf:dropDown binding="#{Page1.addGenre}" id="addGenre" items="#{ApplicationBean1.genreOptions}"/>
<webuijsf:message for="addGenre" id="message1" showDetail="false" showSummary="true"/>
<webuijsf:label id="label3" text="Title:"/>
<webuijsf:textField binding="#{Page1.addTitle}" id="addTitle"/>
<webuijsf:message for="addTitle" id="message2" showDetail="false" showSummary="true"/>
<webuijsf:label id="label4" text="Year:"/>
<webuijsf:textField binding="#{Page1.addYear}" converter="#{Page1.yearIntegerConverter}" id="addYear" validatorExpression="#{Page1.yearRangeValidator.validate}"/>
<webuijsf:message for="addYear" id="message3" showDetail="false" showSummary="true"/>
<webuijsf:label id="label5" text="Minutes:"/>
<webuijsf:textField binding="#{Page1.addLength}" converter="#{Page1.lengthIntegerConverter}" id="addLength" validatorExpression="#{Page1.lengthRangeValidator.validate}"/>
<webuijsf:message for="addLength" id="message4" showDetail="false" showSummary="true"/>
<webuijsf:label id="label6" text="Rating:"/>
<webuijsf:dropDown binding="#{Page1.addRating}" id="addRating" items="#{ApplicationBean1.ratingOptions}"/>
<webuijsf:message for="addRating" id="message5" showDetail="false" showSummary="true"/>
<webuijsf:label id="label9" text="Image:"/>
<webuijsf:textField binding="#{Page1.addImage}" id="addImage"/>
<webuijsf:message for="addImage" id="message8" showDetail="false" showSummary="true"/>
<webuijsf:label id="label7" text="Upload Image:"/>
<webuijsf:upload binding="#{Page1.uploadIImage}" id="uploadIImage"/>
<webuijsf:message for="uploadIImage" id="message6" showDetail="false" showSummary="true"/>
<webuijsf:staticText id="imagePad1"/>
<webuijsf:button actionExpression="#{Page1.uploadImage_action}" id="uploadImage" text="Upload Image"/>
<webuijsf:staticText id="imagePad2"/>
<webuijsf:label id="label8" text="Description:"/>
<webuijsf:textArea binding="#{Page1.addDescription}" id="addDescription"/>
<webuijsf:staticText id="staticText6"/>
<webuijsf:staticText id="staticText4"/>
<webuijsf:button actionExpression="#{Page1.add_action}" id="add" text="Add"/>
<webuijsf:staticText id="staticText5"/>
</h:panelGrid>
</h:panelGrid>
</webuijsf:form>
</webuijsf:body>
</webuijsf:html>
</webuijsf:page>
</f:view>
</jsp:root>