Skip to content
Snippets Groups Projects
Commit 922cab25 authored by jez04's avatar jez04
Browse files

feat: initial commit

parent f0bdaf14
No related merge requests found
Pipeline #2047 failed with stages
in 0 seconds
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- Use old namespaces to allow content assist in eclipse -->
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:f="http://xmlns.jcp.org/jsf/core">
<!--
xmlns:h="jakarta.faces.html"
xmlns:f="jakarta.faces.core"
-->
<h:head>
<title>Index page</title>
</h:head>
<body>
<h2>
<h:outputText value="#{helloController.greeting}" /> from application javaee-wildfly-archetype
</h2>
<h:link outcome="persons" value="Persosns table"/>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- Use old namespaces to allow content assist in eclipse -->
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
<!--
xmlns:h="jakarta.faces.html"
xmlns:f="jakarta.faces.core"
xmlns:ui="jakarta.faces.facelets"
-->
<h:head>
<title>List Of persons</title>
</h:head>
<body>
<h2>List of Persons</h2>
<h:dataTable value="#{personController.findAll()}" var="p">
<h:column>
#{p.id}
</h:column>
<h:column>
<f:facet name="header">Name</f:facet>
<h:outputText value="#{p.name}" />
</h:column>
<h:column>
<f:facet name="header">Follow</f:facet>
<h:outputText value="#{p.follow.name}" />
</h:column>
<h:column>
<f:facet name="header">Followers</f:facet>
<ui:repeat var="f" value="#{p.followers}" varStatus="iter">
<h:outputText value="#{f.name}" />
<h:outputText rendered="#{not iter.last}" value=", " />
</ui:repeat>
</h:column>
<h:column>
<h:form>
<h:commandButton action="#{personController.edit(p)}" value="Edit" />
<h:commandButton action="#{personController.delete(p)}"
value="Delete" />
</h:form>
</h:column>
</h:dataTable>
<h:form>
<h:commandButton action="#{personController.create()}" value="Create" />
</h:form>
</body>
</html>
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment