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>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Example</title>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Example</title>
<script type="text/javascript" language="javascript" src="greeting/greeting.nocache.js"></script>
</head>
<body>
<script
type="text/javascript"
language="javascript"
src="greeting/greeting.nocache.js"
></script>
</head>
<body>
<p id="buttonContainer"></p>
<p id="messageContainer"></p>
</body>
</body>
</html>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>
</body>
</body>
</html>