Board index JavaServer Faces General p:ajax error with composite component

p:ajax error with composite component

Components, Ajax Framework, Utilities and More.


Posts: 232
Using PrimeFaces 2.2.1, Glassfish 3.2

I have a composite component with an h:se;ectOneMenu component with a p:ajax component to add the ajax behavior.

I am getting the following "Unhandled by MetaTagHandler" error in the server log.
I am also getting the same error for other instances where I have a p:ajax component associated with an h:commandButton component.

Does anyone have an idea what is wrong?

Thanks

Error:
SEVERE: /resources/components/schedule/staffSelectionPanel.xhtml @34,128 id="staffListBoxAjax" Unhandled by MetaTagHandler for type org.primefaces.component.behavior.ajax.AjaxBehavior
S


Composite component:
<?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">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:cc="http://java.sun.com/jsf/composite"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:comp="http://java.sun.com/jsf/composite/components">

    <!-- INTERFACE -->
    <cc:interface>
    </cc:interface>

    <!-- IMPLEMENTATION -->
    <cc:implementation>
        <p:outputPanel id="staffSelectionPanel" styleClass="editStaffSelectionPanel" >
            <h:selectOneMenu id="staffTypeDD" styleClass="editStaffTypeDD"
                             value="#{scheduleEditSessionBean.selectedStaffType}" >
                <f:selectItems id="staffListItems" value="#{scheduleEditSessionBean.staffTypeList}"/>
                <p:ajax listener="#{scheduleEditSessionBean.staffTypeDD_processValueChange}"
                        event="change" update="rightPanelComp:staffSelectionComp:staffListBox" />
            </h:selectOneMenu>
            <h:commandButton id="applyStaffTypeBtn" styleClass="editApplyStaffTypeBtn"
                             action="#{scheduleEditSessionBean.applyStaffTypeBtn_action}" value="Apply">
                <p:ajax />
            </h:commandButton>
            <h:selectOneListbox id="staffListBox" styleClass="editStaffListBox"
                                value="#{scheduleEditSessionBean.selectedPersonId}" >
                <f:selectItems id="listbox1SelectItems" value="#{scheduleEditSessionBean.staffList}"/>
                <p:ajax id="staffListBoxAjax" listener="#{scheduleEditSessionBean.staffListLB_processValueChange}"
                        event="change" update="scheduleEditComp:scheduleEditFormPanel rightPanelComp:scheduleEditRightPanel" />
            </h:selectOneListbox>
            <comp:userImageRight id="staffImagePanel" styleClass="editStaffImagePanel" />
        </p:outputPanel>
    </cc:implementation>
</html>
Using PrimeFaces 3.4, Mojarra 2.1.6, Glassfish 3.1.2, NetBerans 7.2, Hibernate 3.2.5 (sometimes)
Windows 7.

kukeltje Expert Member

Posts: 6064
Location: Netherlands
Maybe use a p:commandButton?
Ronald van Kuijk
______________________________
PrimeFaces 4.0, PrimeFaces plus 0.0.2 | Jboss 7.2.0 | Mojarra 2.1.18
Fedora 19, Firefox 26.0
Read the forum posting rules
Beginners: http://www.coreservlets.com/JSF-Tutorial/jsf2/


Return to General