More prettier (#8990)

This commit is contained in:
Trask Stalnaker 2023-07-20 09:58:27 -07:00 committed by GitHub
parent 2535a758f7
commit ba996ba77b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 61 additions and 66 deletions

View File

@ -1,13 +1,17 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Example</title> <title>Example</title>
<script type="text/javascript" language="javascript" src="greeting/greeting.nocache.js"></script> <script
</head> type="text/javascript"
<body> language="javascript"
<p id="buttonContainer"></p> src="greeting/greeting.nocache.js"
<p id="messageContainer"></p> ></script>
</body> </head>
</html> <body>
<p id="buttonContainer"></p>
<p id="messageContainer"></p>
</body>
</html>

View File

@ -1,23 +1,21 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en" <html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://xmlns.jcp.org/jsf/html">
xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://xmlns.jcp.org/jsf/html">
<h:head> <h:head>
<title>Hello, World!</title> <title>Hello, World!</title>
</h:head> </h:head>
<h:body> <h:body>
<h:form id="app-form"> <h:form id="app-form">
<p> <p>
<h:outputLabel for="name" value="Enter your name" required="true"/> <h:outputLabel for="name" value="Enter your name" required="true" />
<h:inputText id="name" value="#{greetingForm.name}"/> <h:inputText id="name" value="#{greetingForm.name}" />
<h:message for="name"/> <h:message for="name" />
</p> </p>
<p> <p>
<h:commandButton id="submit" value="Say hello" action="#{greetingForm.submit()}"/> <h:commandButton id="submit" value="Say hello" action="#{greetingForm.submit()}" />
</p> </p>
<p> <p>
<h:outputText id="output-message" value="#{greetingForm.message}"/> <h:outputText id="output-message" value="#{greetingForm.message}" />
</p> </p>
</h:form> </h:form>
</h:body> </h:body>
</html> </html>

View File

@ -1,8 +1,8 @@
<f:view xmlns:ui="http://xmlns.jcp.org/jsf/facelets" <f:view
xmlns:f="http://xmlns.jcp.org/jsf/core" xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
contentType="text/html" xmlns:f="http://xmlns.jcp.org/jsf/core"
encoding="UTF-8"> contentType="text/html"
<ui:composition> encoding="UTF-8"
Hello >
</ui:composition> <ui:composition> Hello </ui:composition>
</f:view> </f:view>

View File

@ -1,24 +1,22 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en" <html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html">
xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html">
<head> <head>
<title>Hello, World!</title> <title>Hello, World!</title>
</head> </head>
<body> <body>
<h:form id="app-form"> <h:form id="app-form">
<p> <p>
<h:outputLabel for="name" value="Enter your name" required="true"/> <h:outputLabel for="name" value="Enter your name" required="true" />
<h:inputText id="name" value="#{greetingForm.name}"/> <h:inputText id="name" value="#{greetingForm.name}" />
<h:message for="name"/> <h:message for="name" />
</p> </p>
<p> <p>
<h:commandButton id="submit" value="Say hello" action="#{greetingForm.submit()}"> <h:commandButton id="submit" value="Say hello" action="#{greetingForm.submit()}">
</h:commandButton> </h:commandButton>
</p> </p>
<p> <p>
<h:outputText id="output-message" value="#{greetingForm.message}"/> <h:outputText id="output-message" value="#{greetingForm.message}" />
</p> </p>
</h:form> </h:form>
</body> </body>
</html> </html>

View File

@ -1,6 +1,3 @@
<f:view xmlns:f="http://java.sun.com/jsf/core" <f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets">
xmlns:ui="http://java.sun.com/jsf/facelets"> <ui:composition> Hello </ui:composition>
<ui:composition>
Hello
</ui:composition>
</f:view> </f:view>

View File

@ -1,23 +1,21 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en" <html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://xmlns.jcp.org/jsf/html">
xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://xmlns.jcp.org/jsf/html">
<h:head> <h:head>
<title>Hello, World!</title> <title>Hello, World!</title>
</h:head> </h:head>
<h:body> <h:body>
<h:form id="app-form"> <h:form id="app-form">
<p> <p>
<h:outputLabel for="name" value="Enter your name" required="true"/> <h:outputLabel for="name" value="Enter your name" required="true" />
<h:inputText id="name" value="#{greetingForm.name}"/> <h:inputText id="name" value="#{greetingForm.name}" />
<h:message for="name"/> <h:message for="name" />
</p> </p>
<p> <p>
<h:commandButton id="submit" value="Say hello" action="#{greetingForm.submit()}"/> <h:commandButton id="submit" value="Say hello" action="#{greetingForm.submit()}" />
</p> </p>
<p> <p>
<h:outputText id="output-message" value="#{greetingForm.message}"/> <h:outputText id="output-message" value="#{greetingForm.message}" />
</p> </p>
</h:form> </h:form>
</h:body> </h:body>
</html> </html>

View File

@ -1,8 +1,8 @@
<f:view xmlns:ui="http://xmlns.jcp.org/jsf/facelets" <f:view
xmlns:f="http://xmlns.jcp.org/jsf/core" xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
contentType="text/html" xmlns:f="http://xmlns.jcp.org/jsf/core"
encoding="UTF-8"> contentType="text/html"
<ui:composition> encoding="UTF-8"
Hello >
</ui:composition> <ui:composition> Hello </ui:composition>
</f:view> </f:view>

View File

@ -1,9 +1,9 @@
<html> <html>
<head> <head>
<title>PLAIN HTML</title> <title>PLAIN HTML</title>
</head> </head>
<body> <body>
<h1>HELLO!</h1> <h1>HELLO!</h1>
</body> </body>
</html> </html>

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:wicket="http://wicket.apache.org"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:wicket="http://wicket.apache.org">
<body> <body>
<span wicket:id="message" id="message">Message goes here</span> <span wicket:id="message" id="message">Message goes here</span>
</body> </body>
</html> </html>