Article ID: 195174
Article Last Modified on 6/14/2006
import com.ms.wfc.html.*;
import com.ms.wfc.core.*;
import com.ms.wfc.ui.*;
public class Class1 extends DhDocument
{
private DhTable table;
public Class1()
{
this.initForm();
}
public DhElement onElementServerBound(DhElement e)
{
this.add(new DhText("Work-around enabled!"));
return super.onElementServerBound(e);
}
protected void initForm()
{
// bind to the table
table = new DhTable();
table.setBindID("tableData");
// Set its background to red
table.setBackColor(Color.RED);
//--> the following line is the workaround
//this.add(new DhText(""));
this.setBoundElements(new DhElement[]{table});
}
}
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE></TITLE>
</HEAD>
<BODY>
<P>
The table below should have a red background and some text below it that
is coming from Java code.</P>
<P>
<TABLE border=1 cellPadding=1 cellSpacing=1 id=tableData width=75%>
<TR>
<TD>text1</TD>
<TD>text2</TD>
<TD>text3</TD></TR>
<TR>
<TD>text4</TD>
<TD>text5</TD>
<TD>text6</TD></TR>
<TR>
<TD>text7</TD>
<TD>text8</TD>
<TD>text9</TD></TR></TABLE></P>
</BODY>
</HTML>
Page2.asp
<%
Set Module = Server.CreateObject("DhModule")
Module.setCodeClass("Class1")
Module.setHTMLDocument("Page1.htm")
%>
net stop w3svc /y net stop iisadmin /y net stop msdtc mtxstop net start w3svc
Additional query words: WFC HTML DhTable Java data Table null
Keywords: kbbug kbfix kbvs600sp3fix KB195174