Drop Support (phaseTracker Error)
richfacesuser11 Sep 26, 2011 4:41 AMHi,
Appologies if it seems like this is a repeat post, but i couldn't find anything recent.
My tech stack is RichFaces-3.3.3-Final used within JBOSS Seam (2.2)
I am having trouble trying to invoke the dropSupport processDrop(DropEvent event) method on the DropListener implementation. i can drag the value into the correct drop zone but my stack trace show's numerous PhaseTracker errors and hence the processDrop is not called.
I have attached the code and error message below, any help would be greatly appreciated
@Name("associateEventBean") @Scope(ScopeType.CONVERSATION) public class AssociateEventBean implements DropListener { public void processDrop(DropEvent dropEvent) { log.debug("processDrop invoked..."); } }
<h:form> <rich:panel id="associatemgr"> <f:facet name="header">Associate Manager</f:facet> <h:panelGrid id="assocList"> <rich:dataTable value="#{associates}" var="_associate"> <rich:column> <rich:dragSupport dragIndicator=":indicator" dragType="email" dragValue="#{_associate}"> <rich:dndParam type="drag" name="label" value="#{_associate.email}"/> </rich:dragSupport> <h:outputText value="#{_associate.email}" /> </rich:column> <rich:column> <h:outputText value="#{_associate.firstName}" /> </rich:column> <rich:column> <h:outputText value="#{_associate.surname}" /> </rich:column> </rich:dataTable> </h:panelGrid> <h:panelGrid id="assocCreate" columns="1"> <h:outputLabel for="firstname" value="Firstname" /> <h:inputText id="firstname" value="#{associate.firstName}" required="true" /> <h:outputLabel for="surname" value="Surname" /> <h:inputText id="surname" value="#{associate.surname}" required="false" /> <h:outputLabel for="email" value="Email" /> <h:inputText id="email" value="#{associate.email}" required="false" /> </h:panelGrid> <rich:panel style="width : 318px; height : 81px;"> <rich:dropSupport actionListener="#{associateEventBean.processDrop}" dropValue="#{associate}" acceptedTypes="email"> </rich:dropSupport> </rich:panel> <h:panelGrid columns="1"> <a:commandButton action="#{associateCreatorAction.save}" value="Add" /> </h:panelGrid> </rich:panel> </h:form>
@Name("associateCreatorAction") @Scope(ScopeType.CONVERSATION) public class AssociateCreatorAction { @In(create = true) @Out(required=false) private Associate associate; @DataModel private List<Associate> associates = new ArrayList<Associate>(); public void save() { // associates.add(associate); associate = new Associate(); } }
22:54:44,930 ERROR [STDERR] 25-Sep-2011 22:54:44 org.exadel.jsf.PhaseTracker beforePhase INFO: BEFORE RESTORE_VIEW 1 22:54:44,956 ERROR [STDERR] 25-Sep-2011 22:54:44 org.exadel.jsf.PhaseTracker afterPhase INFO: AFTER RESTORE_VIEW 1 22:54:44,959 ERROR [STDERR] 25-Sep-2011 22:54:44 org.exadel.jsf.PhaseTracker beforePhase INFO: BEFORE APPLY_REQUEST_VALUES 2 22:54:44,985 ERROR [STDERR] 25-Sep-2011 22:54:44 org.exadel.jsf.PhaseTracker afterPhase INFO: AFTER APPLY_REQUEST_VALUES 2 22:54:44,987 ERROR [STDERR] 25-Sep-2011 22:54:44 org.exadel.jsf.PhaseTracker beforePhase INFO: BEFORE PROCESS_VALIDATIONS 3 22:54:45,006 ERROR [STDERR] 25-Sep-2011 22:54:45 org.exadel.jsf.PhaseTracker afterPhase INFO: AFTER PROCESS_VALIDATIONS 3 22:54:45,033 ERROR [STDERR] 25-Sep-2011 22:54:45 org.exadel.jsf.PhaseTracker beforePhase INFO: BEFORE RENDER_RESPONSE 6 22:54:45,230 ERROR [STDERR] 25-Sep-2011 22:54:45 org.exadel.jsf.PhaseTracker afterPhase INFO: AFTER RENDER_RESPONSE 6