Skip to main content

debugging jMaki widgets- glue events

1 reply [Last post]
rasane
Offline
Joined: 2007-08-15
Points: 0

Hi,

I am using netbeans 6 m10 IDE..
glue code is written in separate files.. is there a way to write this code in the jsp itself? I tried this and it seems it is not a good thing to do.. my code does not get picked up.. ofcourse jmaki has its own special loading mechanism..

the problem is I cannot debug.. By debug, I mean line-by-line runtime debugging- instead of having to only use
jmaki.log(..)
alert(..)

If i could debug, it would be so easy to look at a object, its current values, exposed properties and ways to access them..

any hints to make this work so that debugging will work?

Regards,
ras

Message was edited by: rasane

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
rasane
Offline
Joined: 2007-08-15
Points: 0

woohoo.. just downloaded the JavaScript debugger.. and life is much better now..
https://addons.mozilla.org/en-US/firefox/addon/216

its 4:50 AM now.. just need figure out how to update table data on client -

for sample table
jmaki.subscribe("/dojo/table/onSelect", function(args){
jmaki.log("current selected row: " + args.targetId);
var tableObj = jmaki.getWidget( "table001");
debugger;//jmaki.log( "tableObj: " + toString(tableObj) );
for( var i=0; i {
var row=tableObj.rows[i];
var cellValue = row.isbn;
cellValue = "Hello World";
}

});
cheers,
ras