p:ajax error with composite component

UI Components for JSF
Post Reply
burferd
Posts: 234
Joined: 01 May 2010, 16:15

19 Jun 2011, 21:07

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:

Code: Select all

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

Code: Select all

<?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: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

20 Jun 2011, 01:38

Maybe use a p:commandButton?

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 20 guests