7 Replies Latest reply on May 3, 2007 10:30 AM by sergeysmirnov

    CDK and SVG "org.wc3.dom" Problems

    mrnice

      Hi,

      I am currently developing a Component that should display SVG Data.

      So my first thought was declaring a property of my Component of the type "org.wc3.dom.document" (or Element).

      Somehow i do not get access to this property from my backing Bean.


      Is there a possibility to send a full DOM Document or element like this to my component?

      Is there any other way to do something like this?


      Kind regards,
      jan

        • 1. Re: CDK and SVG

          we do not see any restriction on the level we understand you task. If you can say more, we can discuss it it more details.

          • 2. Re: CDK and SVG
            mrnice


            Ok let me clarify again what I have:

            1) In the Component i have a property of the type "org.wc3.dom.Element"

            2) I have a backing Bean with a Field of the same type

            3) I connect them with "svgdoc="#{modelBean.svgdoc}" in my jsp File.

            So the problem I have is:

            a) If i only sewt this property, my Backing Bean is not getting instanciiated

            b) that the getsvgDoc() Method of the backing Bean is never called if the Backing Bean is instanciated by also setting another Property of the Component.


            -> What could be the reason for this property not working? The type or that I did something wrong?



            Regards Jan

            • 3. Re: CDK and SVG
              mrnice

              Hi,

              this is a the setProperties() Function from the component

              protected void setProperties(UIComponent component)
              {
               // TODO Auto-generated method stub
               super.setProperties(component);
              
               // TODO - setup properties for other cases.
               // name svgdoc with type org.w3c.dom.Element
               setStringProperty(component, "svg",this._svg);
              }
              


              It looks like the Porperty svgdoc is not set.

              Could this be the reason for my problems?

              And if yes, how could i resolve them?


              Regards Jan


              • 4. Re: CDK and SVG
                mrnice

                Any news here?

                • 5. Re: CDK and SVG
                  mrnice

                  Nothing new?

                  • 6. Re: CDK and SVG
                    mrnice

                    sorry but this problem is still very urgent to me ...


                    is there a way to directly write a org.wc3.dom.document to a component or would you prefer to use an outputstream or something similar for this?


                    I do have to write the data to the component and later read it the svg data again into my bean.


                    Thanks a lot (even for small hints)

                    • 7. Re: CDK and SVG

                      If you can have or able to create a small application where the problem is reproduced, we can look at it and give recommendations. Otherwise, it is hard to imagine the whole picture you have on your side.