Screen redraw problems in Servoy Client

Hello!

We noticed some disturbing screen redraw problems that occur only when running the client. This did happen both in Linux and WinXP workstations. Below is a screen capture visualizing the problem; notice that in the tabpanel, two tabs are “active” and there is a blank grey block below the header. Occasionally the screen doesn’t redraw at all.

Version information:
Servoy Client
Version R2 2.2b2-build 317
Java version 1.4.2_06-b03 (same version in Linux & Windows)

I see you work on 2.2b2. Currently, 2.2 RC3 is available.

I had some issues that look remotely lik eit on RC2 (and maybe before) that were fixed in 2.2RC3.

Maybe an upgrade to the latest RC would solve your issue.

Paul

pbakker:
I see you work on 2.2b2. Currently, 2.2 RC3 is available.

I had some issues that look remotely lik eit on RC2 (and maybe before) that were fixed in 2.2RC3.

Maybe an upgrade to the latest RC would solve your issue.

Paul

Ok, will try upgrading the server. I did search all the beta release notes for client changes, but found nothing appropriate.

Thanks!

Upgraded the server to RC3, and now I can’t reproduce the refresh problems anymore. So, I guess it is fixed now!

Thanks :slight_smile:

GOSH!

Now we’re getting the same refresh errors again.
So, updating didn’t help, after all.

I had similar problems a while back; turned out the problem
was one or more bugs in either a form method or a calculation.

when the calc or method got an error, screen drawing would stop.

since then, i always start server from a terminal session (i’m using
(mac os-10/unix), that way i’m aware of any calc or method
errors as soon as they occur.

hope that helps.
rm.

RobertMeyer:
I had similar problems a while back; turned out the problem
was one or more bugs in either a form method or a calculation.

when the calc or method got an error, screen drawing would stop.

since then, i always start server from a terminal session (i’m using
(mac os-10/unix), that way i’m aware of any calc or method
errors as soon as they occur.

hope that helps.
rm.

Thanks for the ideas!

I looked at the Application server log (I redirect the console output to a log file), but there were no entries when the refresh problems appeared.

However, I found out that the problem indeed was caused by a calculation. We have nested calculations that create a HTML field. One calculation creates just the HTML header (with a style sheet, to render the fonts same size at different platforms), one calculation creates the data, another closes the tags.. OK, I stripped out all the CSS code and now it works.

I don’t know whether this is related to the calculations, or is it just a Sun HTML engine problem?

We need a way to set our HTML fields’ font sizes same on every platform. Now it is impossible to use HTML fields in a list view.

Thank you for any ideas,
Joonas

I use HTML all the time in my solutions! I have a global that is set at startup that has all the information in it, and then I use that global in the other calcs with no problems.

For example:

globals.htmlHead = '<html><head><style type="css/text">.body {font: "Verdana" 0.9em}' +
'</style></head><body class="body">'

Then in my other calcs/scripts I use:

var output = globals.htmlHead
if(field1 == 1)
{
     output += 'The result was OK'
}
else
{
     output += 'There was something terribly wrong!'
}

return output + '</body></html>'

Hope this helps.

bcusick:
I use HTML all the time in my solutions! I have a global that is set at startup that has all the information in it, and then I use that global in the other calcs with no problems.

Thanks for the example. I tried that, but the font didn’t change…
I even did a test, made a simple calculation:

return '<html><head><style type="css/text">' +
       '.body {font: 0.9em "Verdana", "Arial", "Helvetica", "sans-serif"}' +
       '</style></head><body class="body"> Sample text </body></html>';

… and inserted the field in a list view - but didn’t get anything but the default font! This is weird, because I have actually been able to change the font some time ago, with CSS. Now I can’t get it to load any code. The only way it works is with the html tag, but CSS would be much nicer!

I’m now using 2.2 rc3.

did you change the default font on the component where you display that html in? (in the designer)