HI Mark, Mark A Fortner <[EMAIL PROTECTED]> wrote on 07/06/2006 02:58:23 PM:
> Normally I would expect the applet to render the SVG file that it's passed. > However, all that appears is a big white blank spot. If I take the same code, > and turn it into an application, the same file renders perfectly. I was really trying to figure out what you had debugged that looked fine... > I wrap the Batik code with a try/catch and no exceptions are thrown. You might register listeners with the canvas to track document load events, GVTTree build events, on load events, and rendering events. > I'll try loading a simple SVG diagram with no JPEGs or JavaScript and see if > it renders properly. Definitely a good idea. > If that doesn't work, I'll do a checkout and build the library. > > Thanks for the suggestions. > > Mark > > [EMAIL PROTECTED] wrote: > Hi Mark, > > Mark A Fortner wrote on 06/26/2006 06:27:03 PM: > > > I wrote a small applet to render an SVG file. However, it can't seem to > > > render the file. When the applet appears it's blank. > > > > I've debugged through it and there doesn't seem to be any problem. > > What does this mean? Obviously there is a problem otherwise you > wouldn't be posting here ;) > > Do you wrap all Batik class with try/catch blocks so you > can check if Batik or one of it's libraries is throwing an > exception? I suspect some form of Security error is at fault > here. > > > canvas.setDocumentState(JSVGCanvas.ALWAYS_DYNAMIC); > > Does the document you are trying to display use ECMAScript > (AKA Java script). Rhino has some problems in an Applet context > as it's default behavior is to generate bytecode from the JavaScript. > > I think all of those issues are resolved in the SVN version of > Batik. In either case I would try a simple static SVG first. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
