Hi,If a row is inserted and style class is added immediately using setStyleClass function one gets a JavaScript error message "Wt internal error: TypeError: j3 is undefined, code: undefined, description: undefined" (or similar).
Now this does not happen for the rows added immediately after WTable is created and not for the first added row; in these cases the setStyleClass works as expected. Also if is inserted explicitly using insertRow before the row is referenced using elementAt the setStyleClass works as expected. Shouldn't this work without the explicit insertRow as the WTable documentation says that the table expands automatically?
The attached code sample should explain this behaviour. To get working example set the workingExample variable on line 9 to true.You can compile and run the example using the attached Makefile (make run to compile and run, server binds to localhost:8001).
This has been tested with Wt 3.1.3 on Linux. Janne
example.tar.gz
Description: GNU Zip compressed data
------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm
_______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
