Ok, so I debuggged, but it looks like more than a spacing issue. In my
execution, the contents you are asserting against do not contain the
expected text. So I need you to look into it after all. I've @Ignored the
test for now, so you'll need to remove that annotation to get the test to
run again.
Looks like the 'int type' is not getting generated somehow? Possibly
because it is a primitive type? Same thing happened when I commented that
out - it then began failing on the boolean field.
It's possible that I caused this with some of the updates to the
JavaParser, but I'm not exactly sure where or why, so if you could give me
some insight that would be great, Thanks!
*Contents*
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
template="/resources/scaffold/page.xhtml">
<f:metadata>
<f:viewParam name="page" value="#{petBean.page}"/>
<f:event type="preRenderView"
listener="#{petBean.paginate}"/>
</f:metadata>
<ui:param name="pageTitle" value="Search Pet entities"/>
<ui:define name="header">
Pet
</ui:define>
<ui:define name="subheader">
Search Pet entities
</ui:define>
<ui:define name="footer"/>
<ui:define name="main">
<h:form id="search">
<h:panelGroup styleClass="search">
<h:messages globalOnly="true"/>
<h:panelGrid columnClasses="label,component,required"
columns="3">
<h:outputLabel for="petBeanSearchName"
value="Name:"/>
<h:panelGroup>
<h:inputText id="petBeanSearchName" value="#{
petBean.search.name}"/>
<h:message for="petBeanSearchName"
styleClass="error"/>
</h:panelGroup>
<h:outputText/>
<h:outputLabel for="petBeanSearchOwner"
value="Owner:"/>
<h:panelGroup>
<h:selectOneMenu converter="#{ownerBean.converter}"
id="petBeanSearchOwner" value="#{petBean.search.owner}">
<f:selectItem/>
<f:selectItems value="#{ownerBean.all}"/>
</h:selectOneMenu>
<h:message for="petBeanSearchOwner"
styleClass="error"/>
</h:panelGroup>
<h:outputText/>
</h:panelGrid>
<h:panelGroup styleClass="buttons">
<h:commandLink value="Search"
action="#{petBean.search}"/>
<h:commandLink value="Create New"
action="#{petBean.create}"/>
</h:panelGroup>
</h:panelGroup>
<h:dataTable id="petBeanPageItems"
styleClass="data-table"
value="#{petBean.pageItems}" var="_item">
<h:column>
<f:facet name="header">
<h:outputText value="Name"/>
</f:facet>
<h:link outcome="/scaffold/pet/view"
value="#{_item.name
}">
<f:param name="id"
value="#{_item.id}"/>
</h:link>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Type"/>
</f:facet>
<h:link outcome="/scaffold/pet/view"
value="#{_item.type}">
<f:param name="id"
value="#{_item.id}"/>
</h:link>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Send Reminders"/>
</f:facet>
<h:link outcome="/scaffold/pet/view"
value="#{_item.sendReminders}">
<f:param name="id"
value="#{_item.id}"/>
</h:link>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Owner"/>
</f:facet>
<h:link outcome="/scaffold/pet/view"
value="#{_item.owner}">
<f:param name="id"
value="#{_item.id}"/>
</h:link>
</h:column>
</h:dataTable>
<ui:include src="/resources/scaffold/paginator.xhtml">
<ui:param name="paginatorBean"
value="#{petBean}"/>
</ui:include>
</h:form>
</ui:define>
</ui:composition>