<%--
This example uses JSTL, uncomment the taglib directive above.
To test, display the page like this: index.jsp?sayHello=true&name=Murphy
--%>
<!-- here we have a HTML comment to see the difference form JSP comment --> <style type="text/css">
<!-- body { color: #2F2F2F; padding:0px; margin:0px; font-size: 0.7em; font-family: Verdana, "Verdana CE", Arial, "Arial CE", "Lucida Grande CE", lucida, "Helvetica CE", sans-serif; height:500px; } A:link, A:visited { color: #1E2A60; font-weight : normal; text-decoration: underline; } A:link:hover, A:visited:hover { color: #1E2A60; font-weight : normal; text-decoration : underline; } --> </style> <%@page contentType="text/html"%> <%@page pageEncoding="UTF-8"%> <%@taglib uri="http://java.sun.com/jsf/core" prefix="f" %> <%@taglib uri="http://java.sun.com/jsf/html" prefix="h" %> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>List MicroMarket</title> </head> <body> <% String text = "test"; System.out.println("from scripting"); /** Creates new form Anagrams */ public Anagrams() { initComponents(); getRootPane().setDefaultButton(guessButton); scrambledWord.setText(WordLibrary.getScrambledWord(wordIdx)); pack(); guessedWord.requestFocusInWindow(); // Center in the screen Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); Dimension frameSize = getSize(); setLocation(new Point((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.width) / 2)); } %> <f:view> <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/> <h1>Listing MicroMarkets</h1> <h:form> <%-- below current line --%> <h:commandLink action="#{microMarket.createSetup}" value="New MicroMarket"/> <br> <a href="/WebApplication5/index.jsp">Back to index</a> <br> <h:outputText value="Item #{microMarket.firstItem + 1}..#{microMarket.lastItem} of #{microMarket.itemCount}"/>  <h:commandLink action="#{microMarket.prev}" value="Previous #{microMarket.batchSize}" rendered="#{microMarket.firstItem >= microMarket.batchSize}"/>  <h:commandLink action="#{microMarket.next}" value="Next #{microMarket.batchSize}" rendered="#{microMarket.lastItem + microMarket.batchSize <= microMarket.itemCount}"/>  <h:commandLink action="#{microMarket.next}" value="Remaining #{microMarket.itemCount - microMarket.lastItem}" rendered="#{microMarket.lastItem < microMarket.itemCount && microMarket.lastItem + microMarket.batchSize > microMarket.itemCount}"/> <h:dataTable value='#{microMarket.microMarkets}' var='item' border="1" cellpadding="2" cellspacing="0"> <h:column> <f:facet name="header"> <h:outputText value="ZipCode"/> </f:facet> <h:commandLink action="#{microMarket.detailSetup}" value="#{item.zipCode}"/> </h:column> <h:column> <f:facet name="header"> <h:outputText value="Radius"/> </f:facet> <h:outputText value="#{item.radius}"/> </h:column> <%-- below matching parentheses --%> <h:column> <f:facet name="header"> <h:outputText value="AreaLength"/> </f:facet> <h:outputText value="#{item.areaLength}"/> </h:column> <h:column> <f:facet name="header"> <h:outputText value="AreaWidth"/> </f:facet> <h:outputText value="#{item.areaWidth}"/> </h:column> <h:column> <h:commandLink value="Destroy" action="#{microMarket.destroy}"> <f:param name="zipCode" value="#{item.zipCode}"/> </h:commandLink> <h:outputText value=" "/> <%-- below selected text --%> <h:commandLink value="Edit" action="#{microMarket.editSetup}"> <f:param name="zipCode" value="#{item.zipCode}"/> </h:commandLink> </h:column> </h:dataTable> </h:form> </f:view> </body> </html>

Project Features

About this Project

ui was started in November 2009, is owned by Jiří Kovalský, and has 44 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20160708.bf2ac18). © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close