DnD problem
maeste Apr 24, 2007 8:58 AMI tried to configure in our seam application Drag and drop support putting this code in our facelets:
<a4j:form> <h:panelGrid columnClasses="panelc" columns="3" width="100%"> <rich:dataTable value="#{products}" var="product"> <f:facet name="caption">Product List</f:facet> <h:column> <a4j:outputPanel style="border:1px solid gray;padding:2px;" layout="block"> <rich:dragSupport dragIndicator=":indicator" dragType="#{fm.family}" dragValue="#{fm}"> <rich:dndParam name="label" value="#{fm.name}" /> </rich:dragSupport> <h:outputText value="#{fm.name}"></h:outputText> </a4j:outputPanel> <a4j:outputPanel style="border:1px solid gray;padding:2px;" layout="block"> <rich:dragSupport dragIndicator=":form:ind" dragType="text"> <a4j:actionparam value="#{product.nomeProdotto}" name="name"/> </rich:dragSupport> <h:outputText value="#{product.nomeProdotto}"/> </a4j:outputPanel> </h:column> </rich:dataTable> <rich:panel style="width:100px;height:100px;"> <f:facet name="header">Drop Zone</f:facet> <rich:dropSupport acceptedTypes="text" reRender="box" dropListener="#{ItalyNavManager.addSelectedProduct}"/> </rich:panel> <a4j:outputPanel id="box"> <rich:dataTable value="#{selectedProducts}" var="selectedProduct" > <f:facet name="caption">Products chosen</f:facet> <h:column> <h:outputText value="#{selectedProduct.nomeProdotto}"/> </h:column> </rich:dataTable> </a4j:outputPanel> </h:panelGrid> </a4j:form>
And I get this error:
2007-04-24 12:14:26,301 ERROR [STDERR] 24-apr-2007 12.14.26 com.sun.facelets.impl.DefaultFacelet refresh INFO: Facelet[/layout/template.xhtml] was modified @ 12.14.26, flushing component applied @ 12.14.21 2007-04-24 12:14:26,302 ERROR [STDERR] 24-apr-2007 12.14.26 com.sun.facelets.impl.DefaultFacelet refresh INFO: Facelet[/layout/template.xhtml] was modified @ 12.14.26, flushing component applied @ 12.14.21 2007-04-24 12:14:26,302 ERROR [STDERR] 24-apr-2007 12.14.26 com.sun.facelets.impl.DefaultFacelet refresh INFO: Facelet[/layout/template.xhtml] was modified @ 12.14.26, flushing component applied @ 12.14.21 2007-04-24 12:14:26,303 ERROR [STDERR] 24-apr-2007 12.14.26 com.sun.facelets.impl.DefaultFacelet refresh INFO: Facelet[/layout/template.xhtml] was modified @ 12.14.26, flushing component applied @ 12.14.21 2007-04-24 12:14:26,303 ERROR [STDERR] 24-apr-2007 12.14.26 com.sun.facelets.impl.DefaultFacelet refresh INFO: Facelet[/layout/template.xhtml] was modified @ 12.14.26, flushing component applied @ 12.14.21 2007-04-24 12:14:26,304 ERROR [STDERR] 24-apr-2007 12.14.26 com.sun.facelets.impl.DefaultFacelet refresh INFO: Facelet[/layout/template.xhtml] was modified @ 12.14.26, flushing component applied @ 12.14.21 2007-04-24 12:14:26,324 ERROR [STDERR] 24-apr-2007 12.14.26 com.sun.facelets.impl.DefaultFacelet refresh INFO: Facelet[/layout/template.xhtml] was modified @ 12.14.26, flushing component applied @ 12.14.21 2007-04-24 12:14:26,325 ERROR [STDERR] 24-apr-2007 12.14.26 com.sun.facelets.impl.DefaultFacelet refresh INFO: Facelet[/layout/template.xhtml] was modified @ 12.14.26, flushing component applied @ 12.14.21 2007-04-24 12:14:26,326 ERROR [STDERR] 24-apr-2007 12.14.26 com.sun.facelets.impl.DefaultFacelet refresh INFO: Facelet[/layout/template.xhtml] was modified @ 12.14.26, flushing component applied @ 12.14.21 2007-04-24 12:14:26,326 ERROR [STDERR] 24-apr-2007 12.14.26 com.sun.facelets.impl.DefaultFacelet refresh INFO: Facelet[/layout/template.xhtml] was modified @ 12.14.26, flushing component applied @ 12.14.21 2007-04-24 12:14:26,327 ERROR [STDERR] 24-apr-2007 12.14.26 com.sun.facelets.impl.DefaultFacelet refresh INFO: Facelet[/layout/template.xhtml] was modified @ 12.14.26, flushing component applied @ 12.14.21 2007-04-24 12:14:26,327 ERROR [STDERR] 24-apr-2007 12.14.26 com.sun.facelets.impl.DefaultFacelet refresh INFO: Facelet[/layout/template.xhtml] was modified @ 12.14.26, flushing component applied @ 12.14.21 2007-04-24 12:14:26,328 ERROR [STDERR] 24-apr-2007 12.14.26 com.sun.facelets.impl.DefaultFacelet refresh INFO: Facelet[/layout/template.xhtml] was modified @ 12.14.26, flushing component applied @ 12.14.21 2007-04-24 12:14:26,328 ERROR [STDERR] 24-apr-2007 12.14.26 com.sun.facelets.impl.DefaultFacelet refresh INFO: Facelet[/layout/template.xhtml] was modified @ 12.14.26, flushing component applied @ 12.14.21 2007-04-24 12:14:26,329 ERROR [STDERR] 24-apr-2007 12.14.26 com.sun.facelets.impl.DefaultFacelet refresh INFO: Facelet[/layout/template.xhtml] was modified @ 12.14.26, flushing component applied @ 12.14.21 2007-04-24 12:14:26,329 ERROR [STDERR] 24-apr-2007 12.14.26 com.sun.facelets.impl.DefaultFacelet refresh INFO: Facelet[/layout/template.xhtml] was modified @ 12.14.26, flushing component applied @ 12.14.21 2007-04-24 12:14:26,330 ERROR [STDERR] 24-apr-2007 12.14.26 com.sun.facelets.impl.DefaultFacelet refresh INFO: Facelet[/layout/template.xhtml] was modified @ 12.14.26, flushing component applied @ 12.14.21 2007-04-24 12:14:26,330 ERROR [STDERR] 24-apr-2007 12.14.26 com.sun.facelets.impl.DefaultFacelet refresh INFO: Facelet[/layout/template.xhtml] was modified @ 12.14.26, flushing component applied @ 12.14.21 2007-04-24 12:14:26,331 ERROR [STDERR] 24-apr-2007 12.14.26 com.sun.facelets.impl.DefaultFacelet refresh INFO: Facelet[/layout/template.xhtml] was modified @ 12.14.26, flushing component applied @ 12.14.21 2007-04-24 12:14:26,331 ERROR [STDERR] 24-apr-2007 12.14.26 com.sun.facelets.impl.DefaultFacelet refresh INFO: Facelet[/layout/template.xhtml] was modified @ 12.14.26, flushing component applied @ 12.14.21 2007-04-24 12:14:26,332 ERROR [STDERR] 24-apr-2007 12.14.26 com.sun.facelets.impl.DefaultFacelet refresh INFO: Facelet[/layout/template.xhtml] was modified @ 12.14.26, flushing component applied @ 12.14.21 2007-04-24 12:14:26,332 ERROR [STDERR] 24-apr-2007 12.14.26 com.sun.facelets.impl.DefaultFacelet refresh INFO: Facelet[/layout/template.xhtml] was modified @ 12.14.26, flushing component applied @ 12.14.21 2007-04-24 12:14:26,333 ERROR [STDERR] 24-apr-2007 12.14.26 com.sun.facelets.impl.DefaultFacelet refresh INFO: Facelet[/layout/template.xhtml] was modified @ 12.14.26, flushing component applied @ 12.14.21 2007-04-24 12:14:26,333 ERROR [STDERR] 24-apr-2007 12.14.26 com.sun.facelets.impl.DefaultFacelet refresh INFO: Facelet[/layout/template.xhtml] was modified @ 12.14.26, flushing component applied @ 12.14.21 2007-04-24 12:14:26,334 ERROR [STDERR] 24-apr-2007 12.14.26 com.sun.facelets.impl.DefaultFacelet refresh INFO: Facelet[/layout/template.xhtml] was modified @ 12.14.26, flushing component applied @ 12.14.21 2007-04-24 12:14:26,334 ERROR [STDERR] 24-apr-2007 12.14.26 com.sun.facelets.impl.DefaultFacelet refresh INFO: Facelet[/layout/template.xhtml] was modified @ 12.14.26, flushing component applied @ 12.14.21 2007-04-24 12:14:26,335 ERROR [STDERR] 24-apr-2007 12.14.26 com.sun.facelets.impl.DefaultFacelet refresh INFO: Facelet[/layout/template.xhtml] was modified @ 12.14.26, flushing component applied @ 12.14.21 2007-04-24 12:14:26,335 ERROR [STDERR] 24-apr-2007 12.14.26 com.sun.facelets.impl.DefaultFacelet refresh INFO: Facelet[/layout/template.xhtml] was modified @ 12.14.26, flushing component applied @ 12.14.21 2007-04-24 12:14:26,336 ERROR [STDERR] 24-apr-2007 12.14.26 com.sun.facelets.impl.DefaultFacelet refresh INFO: Facelet[/layout/template.xhtml] was modified @ 12.14.26, flushing component applied @ 12.14.21 2007-04-24 12:14:26,336 ERROR [STDERR] 24-apr-2007 12.14.26 com.sun.facelets.impl.DefaultFacelet refresh INFO: Facelet[/layout/template.xhtml] was modified @ 12.14.26, flushing component applied @ 12.14.21 2007-04-24 12:14:26,337 ERROR [STDERR] 24-apr-2007 12.14.26 com.sun.facelets.impl.DefaultFacelet refresh INFO: Facelet[/layout/template.xhtml] was modified @ 12.14.26, flushing component applied @ 12.14.21 2007-04-24 12:14:26,337 ERROR [STDERR] 24-apr-2007 12.14.26 com.sun.facelets.impl.DefaultFacelet refresh INFO: Facelet[/layout/template.xhtml] was modified @ 12.14.26, flushing component applied @ 12.14.21 2007-04-24 12:14:26,338 ERROR [STDERR] 24-apr-2007 12.14.26 com.sun.facelets.impl.DefaultFacelet refresh INFO: Facelet[/layout/template.xhtml] was modified @ 12.14.26, flushing component applied @ 12.14.21 2007-04-24 12:14:26,343 ERROR [STDERR] 24-apr-2007 12.14.26 com.sun.facelets.impl.DefaultFacelet refresh INFO: Facelet[/layout/navMenu.xhtml] was modified @ 12.14.26, flushing component applied @ 12.14.21 2007-04-24 12:14:26,349 ERROR [STDERR] 24-apr-2007 12.14.26 com.sun.facelets.impl.DefaultFacelet refresh INFO: Facelet[/layout/loginout.xhtml] was modified @ 12.14.26, flushing component applied @ 12.14.21
I also tried with h:form instead of a4j:form without success.
what's wrong?
Thanks in advance