Inevitably, the apps project is going to have BOMS, or builds, or a product hierarchy.
A hierarchy already exists inasfar as products belong to product groups, which in turn belong to ranges. A build is slightly different because a product does not need to belong only to one group.
The definition of a products 'belonging' then does not come from the product itself, but from its parent. i.e. you create a parent product, and then decide what products belong to it. Some of those products may themselves be builds and so on.
If you haven't come across the concept before, then it is difficult to get your head around without a picture, which is where the subject of this blog comes in.
Browsers are notoriously difficult to get dynamic, vector pictures into. The problem has been addressed with flash, java applets and front end applications. However there is another answer : clever javascript libraries.
Include a small 7k library from http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm, then call the drawing elements of the library from java like this:
function myDrawFunction() {
for (i = 10; i < 259 ; i = i + 100) {
jg_doc.setColor("#"+genHex());
jg_doc.drawRect(300-i,300-i,i*2,i*2)
jg_doc.drawString("Some Text",300-i,300-i);
}
jg_doc.paint(); // draws, in this case, directly into the document
}
for (i = 10; i < 259 ; i = i + 100) {
jg_doc.setColor("#"+genHex());
jg_doc.drawRect(300-i,300-i,i*2,i*2)
jg_doc.drawString("Some Text",300-i,300-i);
}
jg_doc.paint(); // draws, in this case, directly into the document
}
var jg_doc = new jsGraphics(); // draw directly into document
It works ! It is cross browser and fast !