7 Replies Latest reply on Feb 25, 2008 8:33 AM by Kai Hennig

    RichFaces, Seam and Leopard

    Vincent Wiencek Newbie

      Hi,

      I just switched to the new Mac OSX Leopard .... and I'm forced to constat that the last stable version of richfaces makes Safari 3 close !!

      Do yout think it's a Safari problem or a javascript richfaces bug ?

      Vincent

        • 1. Re: RichFaces, Seam and Leopard
          Sergey Smirnov Master

          Safari 3 is not in the list of supported browser yet. Safari 3 must be a little more stable before spending time on it support

          • 2. Re: RichFaces, Seam and Leopard
            Kai Hennig Newbie

            ... speaking from my own experience with Safari 3 it seems to be very stable.

            I found only a single problem (rendering/crashes) in the final (Leopard) release 3.0.4 since it is released (daily use): Webapps using RichFaces. The crash is very easy to reproduce, it simply crashes without exceptions in the first second without displaying anything whatever sample application I tried, even very small test applications. Have to use Firefox to develop on Mac OS X.

            The OS crash reporter indicates an xml parsing problem by the Apple WebCore framework. Here are the first (simplyfied) lines of the stack trace (?):

            Thread 0 Crashed:
            0 com.apple.WebCore ... WebCore::XMLTokenizer::lineNumber ...
            1 com.apple.WebCore ... WebCore::XMLTokenizer::startElementNs ...
            2 libxml2.2.dylib ... 0x9395019a xmlIOParseDTD ...
            3 libxml2.2.dylib 0x93923042 xmlParseElement ...
            4 libxml2.2.dylib 0x93924347 xmlParseContent ...

            I guess its a bug on both sides:
            - Safari is not fault tolerant in xml parsing
            - Richfaces has a minor xml bug

            Kai

            • 3. Re: RichFaces, Seam and Leopard
              Sergey Smirnov Master

              Could you explain what the "minor xml bug" is?

              • 4. Re: RichFaces, Seam and Leopard
                Brian Parkinson Newbie

                I see the same problem.

                Simply visiting the RichFaces demo site at:

                http://livedemo.exadel.com/richfaces-demo/index.jsp

                causes Safari 3 to crash.

                Hope it gets fixed pronto.

                parki...


                • 5. Re: RichFaces, Seam and Leopard
                  Kai Hennig Newbie

                  > Could you explain what the "minor xml bug" is?

                  ... no idear, just a guess.

                  I have written this little test page. Some components work fine, others don't, i.e. result in a Safari crash:

                  <?xml version="1.0" encoding="UTF-8" ?>
                  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
                   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
                  <html xmlns="http://www.w3.org/1999/xhtml"
                   xmlns:f="http://java.sun.com/jsf/core"
                   xmlns:h="http://java.sun.com/jsf/html"
                   xmlns:rich="http://richfaces.org/rich">
                  <f:view>
                   <body>
                   <h:form>
                  
                   <!-- This part works fine with Safari 3.0.4 on Mac OS X 10.5 -->
                   <rich:toolBar>
                   <rich:toolBarGroup>
                   <h:commandLink value="CommandLink1" />
                   </rich:toolBarGroup>
                   </rich:toolBar>
                  
                   <!-- This part results in creash -->
                   <rich:toolBar>
                   <rich:dropDownMenu value="DropDownMenu1">
                   <rich:menuItem value="MenuItem1" />
                   </rich:dropDownMenu>
                   </rich:toolBar>
                  
                   </h:form>
                   </body>
                  </f:view>
                  </html>


                  • 6. Re: RichFaces, Seam and Leopard
                    Kai Hennig Newbie

                    ... another hint: Safari doesn't crash (in my test cases, i.e. RichFaces demo site etc.) if JavaScript is turned off (of course without JavaScript you can check almost nothing but displaying a page).

                    Any idear how to debug Safari to get more information about the reason for the crash?