Problem with CSS in HTML_AREA for thinborder table

Hi,

I can’t seem to be able to set a css definition inside an HTML_AREA.

My goal is to make a table with thin borders using only css. Using css it is possible to do a table with thin borders without using the double table approach described by Robert Ivens in:

http://www.servoymagazine.com/home/2005/05/as_you_probably.html

My code is as follows:

globals.gHTML = '<html>';
globals.gHTML += '<head><style type="text/css">';
globals.gHTML += '   table.myclass { border-top: 1px solid #000000;';
globals.gHTML += '                border-left: 1px solid #000000}';
globals.gHTML += '   table.myclass td { border-right: 1px solid #000000;';
globals.gHTML += '             border-bottom: 1px solid #000000}';
globals.gHTML += '</style></head><body>';

globals.gHTML += '<table class="myclass" border="0" cellpadding="4" cellspacing="0">';

regionARY = new Array('Western', 'Southern', 'Northern', 'Eastern');

for (i=0; i < 4; i++){
  globals.gHTML += '<tr><td>' + regionARY[i] + '</td></tr>';
}

globals.gHTML += '</table></body></html>';

I can make the same definition work on a regular html page. So what’s wrong here?

Best,
mjekl

The HTML component used by Servoy (the default provided by Sun) does not support border settings, as far as I know. That’s why the technique described in the article is currently the only possible approach.

Servoy uses the default html renderer that comes with java.
It’s ok for basic rendering, but quite crappy(especially BORDERS :evil: ) when it comes to more advanced html coding.
We’re investigating possiblities to improve this.

Txs,

Good to know that the problem is with the component - leaves hope for improvement ;-)

Best,
mjekl

Maarten,

What’s the status of the investigation? Any idea when we might see an improved HTML component in Servoy?

Will this improved component also allow for building dynamic GUI’s, for example for data entry, with the ability to retrieve the data entered on the HTML form into Servoy methods?

If the latter would be possible, I see many new oppertunities…

Paul

pbakker:
What’s the status of the investigation? Any idea when we might see an improved HTML component in Servoy?

Your prayers have been answered. Icesoft (http://www.icesoft.com/) now offer a Servoy compatible JavaBean, fully programmable, etc.

More on this bean soon.

Hi Jan,

Can you report any additional information on this bean? Which one is it?

amason:
Hi Jan,

Can you report any additional information on this bean? Which one is it?

It looks like either the ICEbrowser bean or the ICEreader bean can interpret CSS, but the ICEreader has less functionality and is more lightweight.

They don’t work in Servoy. There seems to be an internal conflict with some other lib’s inside Servoy, or oracle help? or something like that.

but just wait a little longer…:wink:
There is a solution on it’s way :D

HJK… I know you are enjoying this… but any chance you can be a little less cryptic? :slight_smile:

no, just wait. my lips are closed! :roll:

ok, ok… how long am I going to be waiting? Days? Weeks? Months?

Any news about the ICEbrowser bean? Does it work with Servoy now?

Thanks
Hans-Peter

Hi guys.

Our Browser Bean embeds a native browser.
You can read about our just released software and download it from here:
http://forum.servoy.com/viewtopic.php?t=6516