1 2 Previous Next 25 Replies Latest reply on May 27, 2009 5:06 AM by ilya_shaikovsky Go to original post
      • 15. Re: Components unresponsive

        I'm going to install 4.0.5 GA and test the WAR. I'll let you know what the results are.

        • 16. Re: Components unresponsive

          Actually, I'm going to hold off on that for a minute. I just swapped the jars in my WARs WEB-INF/lib directory with the jars from the RichFaces demo WAR and redeployed and things worked. I also had to remove the declaration from my web.xml to get this to work. Does this shed any light on what the issue might be?

          • 17. Re: Components unresponsive

            I had to remove the 'listener' declaration. That didn't show up in my last post.

            • 18. Re: Components unresponsive

              We tested your war as it was without any modification. web.xml was not modified.
              The richfaces-demo war was created at the same moment when the GA is built. So, it should not be the difference between them. May you you still used to have a problem with cache that was flashed when you replace the jars. (It just a wild guess)

              • 19. Re: Components unresponsive

                I wanted to download and run JBoss 4.0.5 to test on that version, but it seems that since I last downloaded a JBoss app server version, Red Hat requires you to purchase subscriptions in order to download app server versions. It doesn't look like I'll be able to go down that route right now.

                One thing I noticed is that JBoss 4.0.4 GA uses MyFaces (under deploy/jbossweb-tomcat55.sar/jsf-libs as the JSF impl. The version of MyFaces that I have in my server is 1.1.1. The demo WAR uses Suns JSF impl and using that in my WAR makes things work. What JSF impl does JBoss 4.0.5 come with?

                • 20. Re: Components unresponsive
                  alexsmirnov

                  Jboss 4.0.5.GA is bundled with MyFaces 1.1.5.
                  Jboss 4.2.1.GA come with SUN JSF RI 1.2.
                  You war is work fine in both ( of course, I removed MyFaces listener from web.xml in the last case ).

                  • 21. Re: Components unresponsive

                    Okay, so maybe me running JBoss with MyFaces 1.1.1 is the problem. I'm going to try and include MyFaces 1.1.5 in my WAR and see if that solves the issue.

                    • 22. Re: Components unresponsive

                      Including the MyFaces 1.1.5 jars in my WAR deployed on JBoss 4.0.4 fixes the issues. Thanks for helping me figure this out.

                      • 23. Re: Components unresponsive

                        I am also facing the same issue. I have a AJAX enabled custom JSF Checkbox component using a4j support I am creating a4j support dynamically. But onchange event is not working properly with IE? Is it a bug? Do we have any fix for the same?




                        Thanks
                        Shyam

                        • 24. Re: Components unresponsive

                          Please see my code below.

                          @SuppressWarnings("unchecked")
                          private void createOptions() {
                          if (null != model.getModelValueMap()
                          && model.getModelValueMap().size() > 0) {
                          Boolean showCount = model.showDataCount();
                          Collection selectItems = new ArrayList();
                          Iterator<Entry<String, Data>> entryItr = model.getModelValueMap()
                          .entrySet().iterator();
                          Integer index = 0;
                          while (entryItr.hasNext()) {
                          Entry<String, Data> entry = entryItr.next();
                          UISelectItem item = new UISelectItem();
                          if(showCount) {
                          item.setItemLabel(entry.getValue().getData() + "("+entry.getValue().getCount()+")");
                          }else {
                          item.setItemLabel(entry.getValue().getData());
                          }

                          item.setItemValue(entry.getKey());
                          item.setId(model.getId() + index);
                          UIParameter param = new UIParameter();
                          param.setName("index");
                          param.setValue(index++);
                          item.getFacets().put("UIParam", param);
                          selectItems.add(item);
                          if (null != model
                          && null != model
                          .getStoredModelDataInSessionAsCollection()
                          && model.getStoredModelDataInSessionAsCollection()
                          .contains(entry.getKey())) {
                          setSelectedValues(model
                          .getStoredModelDataInSessionAsCollection()
                          .toArray());
                          }
                          getChildren().add(item);
                          }
                          }
                          }

                          @SuppressWarnings("unchecked")
                          private void createAjaxSupport() {
                          if (null != getRerender()) {

                          HtmlAjaxSupport ajaxSupport = new HtmlAjaxSupport();

                          ajaxSupport.setEvent("onchange");
                          ajaxSupport.setEventsQueue("onchangeQueue");
                          ajaxSupport.setIgnoreDupResponses(true);
                          ajaxSupport.setReRender(getRerender());
                          ajaxSupport.setDisableDefault(true);

                          UIParameter parameter = new UIParameter();
                          parameter.setName("component");
                          parameter.setValue(getMappedFor());
                          ajaxSupport.getFacets().put("UIParam", parameter);

                          ajaxSupport.setActionListener(V2SearchUtil.getMethodBinding(
                          FacesContext.getCurrentInstance(),
                          "actionManager.processAction",
                          new Class[] { ActionEvent.class }));
                          ajaxSupport.setAction(V2SearchUtil.getMethodBinding(FacesContext
                          .getCurrentInstance(), "actionManager.doAction", null));

                          ajaxSupport.setId(FacesContext.getCurrentInstance().getViewRoot()
                          .createUniqueId());
                          getFacets().put("a4jsupport", ajaxSupport);
                          }
                          }

                          • 25. Re: Components unresponsive
                            ilya_shaikovsky

                             

                            But onchange event is not working properly


                            please add description about the result you actually got.. JS erorrs? Maybe just forgot form element?

                            1 2 Previous Next