Here is the segment my view that is causing the issue...
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.org/ui"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:d="http://java.sun.com/jsf/composite/components">
<body>
<ui:composition>
<p:tabView style="width: 600px;" orientation="left">
<p:tab title="#{text['general.general']}">
<ui:include src="/WEB-INF/view/admin/dialogs/site.xhtml" />
</p:tab>
<p:tab title="#{text['admin.sites.editdlg.tab.headers.title']}">
<h:panelGrid styleClass="two-col" columns="2" style="width: 400px;">
<h:outputText value="#{text['admin.sites.editdlg.tab.headers.header']}" />
<h:selectOneMenu converter="#{headerConverter}" value="#{siteBean.workingItem.header}">
<f:selectItem itemLabel="#{text['general.selectone']}" itemValue="#{null}" noSelectionOption="true" />
<!-- <f:selectItems value="{headerBean.allItems}" var="item" itemLabel="{item.name}" itemValue="{item}"/> -->
</h:selectOneMenu>
</h:panelGrid>
</p:tab>
<p:tab title="#{text['admin.sites.editdlg.tab.script.title']}">
<h:panelGrid styleClass="two-col" columns="2" style="width: 400px;">
<h:outputText value="#{text['admin.sites.editdlg.tab.script.scripts']}" />
<p:selectManyCheckbox converter="#{scriptConverter}" value="#{siteBean.workingItem.scripts}">
<!--<f:selectItems value="{scriptBean.allItems}" />-->
</p:selectManyCheckbox>
</h:panelGrid>
</p:tab>
<p:tab title="#{text['admin.sites.editdlg.tab.style.title']}">
</p:tab>
<p:tab title="#{text['admin.sites.editdlg.tab.props.title']}">
</p:tab>
</p:tabView>
</ui:composition>
</body>
</html>
The portion of my view that is causing the exception is:
<p:selectManyCheckbox converter="#{scriptConverter}" value="#{siteBean.workingItem.scripts}">
The above file in loaded using (via ajax) by clicking on the site from the following composite component.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:composite="http://java.sun.com/jsf/composite"
xmlns:p="http://primefaces.org/ui"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core">
<!-- INTERFACE -->
<composite:interface>
<composite:attribute name="crudBean" type="net.dupage88.www.beans.CrudBean" required="true" />
<composite:attribute name="tableStyle" type="java.lang.String" required="false" default="default-datatable" />
<composite:attribute name="renderAddButton" type="java.lang.Boolean" required="false" default="#{false}" />
<composite:attribute name="renderActionButtons" type="java.lang.Boolean" required="false" default="#{false}" />
</composite:interface>
<!-- IMPLEMENTATION -->
<composite:implementation>
<p:outputPanel autoUpdate="true">
<p:dataTable
rows="20"
emptyMessage="#{text['general.table.empty']}"
filteredValue="#{cc.attrs.crudBean.filteredList}"
paginatorAlwaysVisible="false"
var="item"
value="#{cc.attrs.crudBean.allItems}"
tableStyleClass="#{cc.attrs.tableStyle}">
<f:facet name="header" >
<p:commandButton action="#{cc.attrs.crudBean.createWorkingItem}" oncomplete="addDialog.show();" rendered="#{cc.attrs.renderAddButton}" icon="ui-icon-circle-plus" />
</f:facet>
<composite:insertChildren />
<p:column>
<f:facet name="header">
<h:outputText value="#{text['admin.general.listing.actions']}" />
</f:facet>
<p:commandLink oncomplete="editDialog.show();" styleClass="small-icon">
<f:setPropertyActionListener target="#{cc.attrs.crudBean.workingItem}" value="#{item}" />
<p:graphicImage url="/public/images/agora/edit.png" />
</p:commandLink>
<p:spacer width="10" height="1" />
<p:commandLink oncomplete="deleteDialog.show();" styleClass="small-icon">
<f:setPropertyActionListener target="#{cc.attrs.crudBean.workingItem}" value="#{item}" />
<p:graphicImage url="/public/images/agora/remove.png" />
</p:commandLink>
</p:column>
</p:dataTable>
</p:outputPanel>
</composite:implementation>
</html>
My scripts lists is define as follows:
Code:
@ManyToMany
@BatchSize(size=5)
@OrderBy("priority ASC")
private List<Script> scripts;