1 2 Previous Next 19 Replies Latest reply on Jan 28, 2008 9:55 AM by roger_goldman2000

    List shuffle - ResourceNotFoundException OrderingListButtonG

    marcio.dantas

      I'm using ListShuffle in a xhtml page with the following code:

       <rich:listShuttle sourceValue="#{relatorioControlePrazoBean.colunasExibiveis}"
       targetValue="#{relatorioControlePrazoBean.colunasSelecionadas}"
       var="coluna" listHeight="300" listWidth="300"
       sourceCaptionLabel="#{msgs['page.relatorioControlePrazo.label.colunasDisponiveis']}:"
       targetCaptionLabel="#{msgs['page.relatorioControlePrazo.label.colunasSelecionadas']}:">
       <rich:column>
       <h:outputText value="#{coluna}" />
       </rich:column>
       <a4j:support event="onlistchanged" reRender="formControleDePrazo"/>
       </rich:listShuttle>
      


      The source and target lists are ArrayLists of String.

      The exception I get is:

      org.ajax4jsf.resource.ResourceNotFoundException: Resource not registered : org.richfaces.renderkit.html.gradientimages.OrderingListButtonGradient
       at org.ajax4jsf.resource.ResourceBuilderImpl.getResource(ResourceBuilderImpl.java:393)
       at org.ajax4jsf.resource.ResourceBuilderImpl.getResourceForKey(ResourceBuilderImpl.java:337)
       at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:155)
       at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:144)
       at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:265)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
       at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
       at java.lang.Thread.run(Thread.java:619)
      


      Any ideas?

      Thanks

        • 1. Re: List shuffle - ResourceNotFoundException OrderingListBut

          Just upgraded from one version to another, right ?

          • 2. Re: List shuffle - ResourceNotFoundException OrderingListBut
            marcio.dantas

            I upgraded richfaces from version 3.1.2 to 3.1.3.GA to use listShuttle.

            When I load the page with the component, I get the error.

            • 3. Re: List shuffle - ResourceNotFoundException OrderingListBut

              What if you hit Ctrl-F5 once?

              • 4. Re: List shuffle - ResourceNotFoundException OrderingListBut
                marcio.dantas

                I find out why the error was ocurring.. I was using a

                <h:form>
                instead of
                <a4j:form>
                .

                But what happens now is that I can't select any item of the source list.

                • 5. Re: List shuffle - ResourceNotFoundException OrderingListBut

                  no, you can use <h:form>. No reason for a4j:form

                  Are you sure, you have no other version of richfaces in the classpath ?

                  • 6. Re: List shuffle - ResourceNotFoundException OrderingListBut
                    marcio.dantas

                    you're right. the information above wasn't good.

                    The error appeared again. I think it's because I didn't restart the application between the tests.

                    I'll test more carefully now and return. sorry :(

                    • 7. Re: List shuffle - ResourceNotFoundException OrderingListBut
                      marcio.dantas

                      hitting Ctrl-F5 the component works fine.

                      But in my application I can't do this. Is there a workaround?

                      • 8. Re: List shuffle - ResourceNotFoundException OrderingListBut

                        It is a browser cache and nothing more.
                        You said that you move from 3.1.2 to 3.1.3.GA. However, those versions has different cache keys. Did, you try 3.1.3.GA and then 3.1.4-SNAPSHOT ?

                        • 9. Re: List shuffle - ResourceNotFoundException OrderingListBut
                          marcio.dantas

                          When I put the same code inside in a page that uses a template, after a reload the error doesn't repeat, but the component doesn´t work.

                          I can't select any item or move them.

                          • 10. Re: List shuffle - ResourceNotFoundException OrderingListBut
                            marcio.dantas

                            No, I just tried 3.1.3.GA.

                            • 11. Re: List shuffle - ResourceNotFoundException OrderingListBut

                              Do you use FireFox with FireBug. If so, does the console shows any error?

                              • 12. Re: List shuffle - ResourceNotFoundException OrderingListBut
                                marcio.dantas

                                The console doesn't show any error.

                                This is part of the generated page:


                                <div id="painelRelatorios" class="modboxin">
                                <form id="relatorios:relatoriosForm" name="relatorios:relatoriosForm"
                                 method="post" action="/mesa/pages/mesa.jsf" target=""></form>
                                <br />
                                <br />
                                <form id="relatorios:formControleDePrazo"
                                 name="relatorios:formControleDePrazo" method="post"
                                 action="/mesa/pages/mesa.jsf" target=""><span
                                 id="relatorios:formControleDePrazo:painelCampos"> <label
                                 for="relatorios:formControleDePrazo:setorSelect">Setor:</label> <select
                                 id="relatorios:formControleDePrazo:setorSelect"
                                 name="relatorios:formControleDePrazo:setorSelect" size="1">
                                </select> <label>Procurador:</label> <select id="procuradorSelect" class="combo"
                                 name="procuradorSelect">
                                </select> <label for="relatorios:formControleDePrazo:diasSelect">Dias
                                Vencimento:</label> <select id="relatorios:formControleDePrazo:diasSelect"
                                 name="relatorios:formControleDePrazo:diasSelect" size="1">
                                </select> <br />
                                <label for="relatorios:formControleDePrazo:acompanhamentoEspecialCheck">Acompanhamento
                                especial:</label> <input
                                 id="relatorios:formControleDePrazo:acompanhamentoEspecialCheck"
                                 type="checkbox"
                                 name="relatorios:formControleDePrazo:acompanhamentoEspecialCheck" /> <label
                                 for="relatorios:formControleDePrazo:grandesDevedoresCheck">Apenas
                                grandes devedores :</label> <input
                                 id="relatorios:formControleDePrazo:grandesDevedoresCheck"
                                 type="checkbox"
                                 name="relatorios:formControleDePrazo:grandesDevedoresCheck" /> <br />
                                <table id="relatorios:formControleDePrazo:j_id417"
                                 class="rich-list-shuttle" cellspacing="0" cellpadding="0">
                                 <tbody>
                                 <tr>
                                 <td class="rich-list-shuttle-caption" colspan="2">
                                 <div class="rich-shuttle-source-caption">Colunas disponÃÂÂÂveis:</div>
                                 </td>
                                 <td class="rich-list-shuttle-caption" colspan="2"></td>
                                 </tr>
                                 <tr>
                                 <td></td>
                                 <td style="vertical-align: middle;">
                                 <div class="rich-shuttle-controls">
                                 <div id="relatorios:formControleDePrazo:j_id417copyAll"
                                 class="rich-shuttle-control-copyall" style="display: block;">
                                 <div class="rich-list-shuttle-button"
                                 onmouseover="this.className='rich-list-shuttle-button-light'"
                                 onmousedown="this.className='rich-list-shuttle-button-press'"
                                 onmouseup="this.className='rich-list-shuttle-button'"
                                 onmouseout="this.className='rich-list-shuttle-button'"><a
                                 id="relatorios:formControleDePrazo:j_id417copyAlllink"
                                 class="rich-list-shuttle-button-selection" href="#"
                                 onclick="return false;" onblur="Control.onblur(this);"
                                 onfocus="Control.onfocus(this);" />
                                 <div class="rich-list-shuttle-button-content" onclick=""></div>
                                 </div>
                                 </div>
                                 <div id="relatorios:formControleDePrazo:j_id417discopyAll"
                                 class="rich-shuttle-control-disabled" style="display: none;">
                                 </div>
                                 <div id="relatorios:formControleDePrazo:j_id417copy"
                                 class="rich-shuttle-control-copy" style="display: none;"></div>
                                 <div id="relatorios:formControleDePrazo:j_id417discopy"
                                 class="rich-shuttle-control-disabled" style="display: block;">
                                 <div class="rich-list-shuttle-button-disabled"><a
                                 id="relatorios:formControleDePrazo:j_id417discopylink"
                                 class="rich-list-shuttle-button-a-disabled" href="#"
                                 onclick="return false;" disabled="disabled" />
                                 <div class="rich-list-shuttle-button-content"></div>
                                 </div>
                                 </div>
                                 <div id="relatorios:formControleDePrazo:j_id417remove"
                                 class="rich-shuttle-control-remove" style="display: none;"></div>
                                 <div id="relatorios:formControleDePrazo:j_id417disremove"
                                 class="rich-shuttle-control-disabled" style="display: block;">
                                 </div>
                                 <div id="relatorios:formControleDePrazo:j_id417removeAll"
                                 class="rich-shuttle-control-removeall" style="display: none;">
                                 </div>
                                 <div id="relatorios:formControleDePrazo:j_id417disremoveAll"
                                 class="rich-shuttle-control-disabled" style="display: block;">
                                 <div class="rich-list-shuttle-button-disabled"><a
                                 id="relatorios:formControleDePrazo:j_id417disremoveAlllink"
                                 class="rich-list-shuttle-button-a-disabled" href="#"
                                 onclick="return false;" disabled="disabled" />
                                 <div class="rich-list-shuttle-button-content"></div>
                                 </div>
                                 </div>
                                 </div>
                                 </td>
                                 <td></td>
                                 <td style="vertical-align: middle;"></td>
                                 </tr>
                                 </tbody>
                                </table>
                                <br />
                                <input type="submit" name="relatorios:formControleDePrazo:j_id422"
                                 value="Consultar" /> </span> <input type="hidden"
                                 name="relatorios:formControleDePrazo"
                                 value="relatorios:formControleDePrazo" /> <input type="hidden"
                                 name="autoScroll" value="" /> <input type="hidden"
                                 name="relatorios:formControleDePrazo:_link_hidden_" value="" /> <input
                                 type="hidden" name="relatorios:formControleDePrazo:_idcl" value="" /> <script
                                 type="text/javascript">
                                </script> <input id="javax.faces.ViewState" type="hidden"
                                 name="javax.faces.ViewState" value="_id2" /></form>
                                </div>
                                </span></div>
                                


                                There "copy all' button's onClick is empty. Is this correct?

                                • 13. Re: List shuffle - ResourceNotFoundException OrderingListBut
                                  • 14. Re: List shuffle - ResourceNotFoundException OrderingListBut
                                    marcio.dantas

                                    When I test the page, without using a template, it does.

                                    But when I add the template, it stops working fine.

                                    1 2 Previous Next