Thursday, January 20, 2011
Thursday, November 11, 2010
Setting up quick log4j for testing
Just put the following code on top of your code:
BasicConfigurator.configure();
log.setLevel(Level.DEBUG);
Wednesday, November 10, 2010
log.debug not working in grails unit test
Use the following method call to enable debug level messages to be printed.
where, grails_artifact_class is domain/controller/service class.
mockLogging(grails_artifact_class, true)where, grails_artifact_class is domain/controller/service class.
Friday, November 5, 2010
Exception while starting grails from STS
Problem: Getting java.lang.ClassNotFoundException: sun.tools.native2ascii.Main while starting grails application from STS.
Solution: Go to build path. Change your default system JRE to JDK. You are good!
Solution: Go to build path. Change your default system JRE to JDK. You are good!
Friday, October 29, 2010
Specifying JVM in STS
Although STS is build on top of elcipse it uses STS.ini instead of eclipse.ini for inititializing startup parameter. You need to specify JVM in this file as follows:
Make sure:
-vm
C:/Program Files/Java/jdk1.6.0_22/bin/javaw.exe
Make sure:
- -vm and the path are in two seperate line.
- This option is set before -vmargs.
Tuesday, November 10, 2009
Test your webpages in multiple version of IE browser using IETester
It has been always a problem to install multiple version of IE on same computer and testing our web pages in different version of IE. IETester eliminates this problem. It can simulate multiple version of Internet Explorer.
Download IETester here.
Download IETester here.
Sunday, October 18, 2009
jQuery - How To ...
How to get selected option value?
var optionValue = $("#DropdownId option:selected").val();
How to check existance of an HTML element?
$("#elementId").size()>0
or
$("#elementId").length>0
If you know any cool jQuery expression please post it here...
var optionValue = $("#DropdownId option:selected").val();
How to check existance of an HTML element?
$("#elementId").size()>0
or
$("#elementId").length>0
If you know any cool jQuery expression please post it here...
Subscribe to:
Posts (Atom)