1 2 Previous Next 28 Replies Latest reply on Aug 22, 2007 9:48 AM by acdias

    dragIndicator Error

    acdias

      I have a problem with a dragIndicator. When I use this tag, the generated code is invalid and firefox do not render the page.

      Erro no processamento de XML: not well-formed
      Posição: http://localhost:8080/curriculo/bancas/banca.unipam
      Número da linha 179, Coluna 5://]]>
      ----^

      Here my code:
      <rich:modalPanel id="autorPanel" width="400" height="200" rendered="true"
       resizeable="false">
       <f:facet name="header">
       Selecionar Autores
       </f:facet>
       <f:facet name="controls">
       <a href="javascript:Richfaces.hideModalPanel('autorPanel')"><img
       src="../img/close.png" style="margin:0px;padding:2px;border:none;" /></a>
       </f:facet>
      
      
       <h:form prependId="true" id="fnautores">
       <rich:dragIndicator id="indicator"/>
       <a4j:region>
       <label for="nautor">Nome do Autor:</label>
       <t:inputText id="nautor" forceId="true" required="true" requiredMessage="Campo requerido"
       value="#{autorController.autor.nome}"
       onkeypress="return entsub(event)" />
       <label for="nautorc">Nome em Citações:</label>
       <t:inputText id="nautorc" forceId="true" required="true" requiredMessage="Campo requerido"
       value="#{autorController.autor.nomeCitado}"
       onkeypress="return entsub(event)" />
      
       <a4j:commandButton value="Cadastrar" id="cadastraAutor"
       action="#{autorController.action}"
       reRender="tautoresSel,datascrolAutor" />
       </a4j:region>
      
       <h:panelGrid width="100%" columns="2">
       <rich:panel>
       <f:facet name="header">Autores Disponíveis</f:facet>
       <h:dataTable id="tautoresSel"
       value="#{curriculoController.curriculo.autores}" var="autorValue"
       summary="autores" rows="5">
       <h:column>
       <a4j:outputPanel>
       <rich:dragSupport dragValue="#{autorValue}">
       <rich:dndParam name="label" value="#{autorValue.nome }"/>
       </rich:dragSupport>
       <h:outputText value="#{autorValue.nome}" />
       </a4j:outputPanel>
       </h:column>
       <h:column>
       <h:outputText value="#{autorValue.nomeCitado}" />
       </h:column>
       </h:dataTable>
       </rich:panel>
      
       <rich:datascroller for="tautoresSel" id="datascrolAutor" fastControls="first,last,next,previous">
       <f:facet name="next"> &gt;</f:facet>
       <f:facet name="previous">&lt;</f:facet>
       </rich:datascroller>
       </h:panelGrid>
       <a4j:commandButton oncomplete="windowClose('autorPanel')" reRender="tautores,tautoresSel" value="Confirmar e Finalizar">
       <f:setPropertyActionListener target="#{bancaController.banca.autores }" value="#{dadosFormacaoController.autores }"/>
       </a4j:commandButton>
       </h:form>
       </rich:modalPanel>

      Someone know what happening and why the generated XML is invalid?

      Thanks

        • 1. Re: dragIndicator Error
          • 2. Re: dragIndicator Error
            acdias

            Why this example works well?
            http://livedemo.exadel.com/richfaces-demo/richfaces/dragSupport.jsf?c=dragIndicator
            It's the same version that I'm using.
            I have to change some configuration file?

            • 3. Re: dragIndicator Error

              Hmm. How one can say is it a different version or not if you even does not mentioned the version you use. The environment you use is also unknown.

              • 4. Re: dragIndicator Error
                acdias

                I'm using 3.0.1 version and the site says they're using 3.0.1!
                I'm programming with Eclipse IDE, Exadel Plugin and Tomcat 5.5.17.

                • 5. Re: dragIndicator Error
                  acdias

                  It works with 3.0.0!
                  What I'm loosing if I use this version? Some feature?

                  • 6. Re: dragIndicator Error

                    Your dev environment does not make a lot of sense. What is in your run-time?
                    JSF-RI or MyFaces
                    JSF 1.2 or JSF 1.1
                    Facelets or not
                    IE or FF or both

                    • 7. Re: dragIndicator Error
                      acdias

                      MyFaces
                      JSF 1.2
                      Facelets
                      Both

                      • 8. Re: dragIndicator Error
                        ilya_shaikovsky

                        please try to update RF version to 3.0.2 or even to 3.1.0 SNAPSHOT.. seems like a bug in concrete build.

                        • 9. Re: dragIndicator Error
                          acdias

                          Where can I download this updates?

                          • 10. Re: dragIndicator Error
                            ilya_shaikovsky
                            • 11. Re: dragIndicator Error
                              acdias

                              Wich version of Ajax4JSF should I use with this version of Richfaces?
                              I tried 1.1.2 Snapshot and 1.1.1 and not work.
                              The server throws a ClassNotFound exception.

                              • 12. Re: dragIndicator Error

                                No One. Ajax4jsf jar is not need anymore. You need to have three Richfaces jar files and that is it.

                                • 13. Re: dragIndicator Error
                                  acdias

                                  The 3.1 version throws a lot of exceptions and 3.0.2 have the same error than 3.0.1.
                                  I try to replace the component dragindicator, dragsupport and dropsupport from 3.0.0 to 3.0.1. I replaced javascript, css and *.class.
                                  The dragindicator worked well, but when I drop the item the app throws an excetion.

                                  java.lang.AbstractMethodError
                                   at org.ajax4jsf.framework.ajax.AjaxActionComponent.broadcast(AjaxActionComponent.java:78)
                                   at org.richfaces.component.UIDragSupport.broadcast(UIDragSupport.java:71)
                                   at javax.faces.component.UIData.broadcast(UIData.java:854)
                                   at org.ajax4jsf.framework.ajax.AjaxViewRoot.processEvents(AjaxViewRoot.java:180)
                                   at org.ajax4jsf.framework.ajax.AjaxViewRoot.broadcastAjaxEvents(AjaxViewRoot.java:200)
                                   at org.ajax4jsf.framework.ajax.AjaxViewHandler.processAjaxEvents(AjaxViewHandler.java:274)
                                   at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:230)
                                   at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:134)
                                   at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
                                   at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
                                   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
                                   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
                                   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                                   at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:97)
                                   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                                   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                                   at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
                                   at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
                                   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                                   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                                   at br.edu.unipam.curriculo.filter.CurriculoSession.doFilter(CurriculoSession.java:47)
                                   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                                   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                                   at br.edu.unipam.curriculo.filter.HibernateFilter.doFilter(HibernateFilter.java:32)
                                   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                                   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                                   at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
                                   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                                   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                                   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
                                   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
                                   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
                                   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
                                   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
                                   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
                                   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
                                   at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
                                   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
                                   at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
                                   at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
                                   at java.lang.Thread.run(Thread.java:619)

                                  This error ocrrurs because I changed the components in the jar file?

                                  Thanks

                                  • 14. Re: dragIndicator Error
                                    acdias

                                    I downloaded the source of Richfaces 3.0.2 and fixed the problem with XML. The problem was a CDATA that was duplicated.
                                    I only remove in the DragIndicatorRenderer.java and DragIndicatorRendererBase.java the insertions of CDATA in the code.
                                    But now I have another problem. After every a4j:commandButton appear a link with text "_" that direct for nothing. What can be happen? In 3.0.1 this error not occurs.

                                    1 2 Previous Next