This tutorial explains one of the cool feature in Eclipse, that is Type Filters to filter the suggestions listed as autocomplete for your object. If you type a class name with dot, Eclipse would suggest the list of methods in that class or object reference. Typically it retrieves all the methods from the super classes. …
JavaScript – Difference Between Two Dates
Let us see an example on how calculate difference between dates using Javascript. First write a HTML code with Javascript as below: The above program is used to calculate the days of difference between two dates . we have set two dates to two variables in the program var d1 = new Date(“12/12/2011”); and var …
JSF + Groovy Integration
Groovy is another popular programming language for the Java Virtual Machine. Groovy is dynamically typed, and groovy code can be more concise than the equivalent Java because you can omit types of variables and parameters. Almost any Java code is legal groovy, that’s make it simple and easier for getting started using it. Ultimately, using the Groovy …
JSF SystemEventListener – UIComponent Events Example
You’ve already examined the events that could be fired from both of Application and UIViewRoot. But those aren’t only the events that might be handled. The UIComponent – UIComponent is the base class for all user interface components in JavaServer Faces. The set of UIComponent instances associated with a particular request and response are organized into a component tree under …
JavaScript document.createElement()
Document.createElement() is used for creating element node. In HTML document, it creates specified HTML element .In other words it creates an instance of element for the specified tag. In document.createElement (), the element creates the element interface as soon it’s created. To create a text button, text node is created. The document.createElement( ) is supported by …
JavaScript Location Object
This object is used to get information about current URL of the browser and automatically navigates the user to another page. This object is part of the window object and can be accessed using the window.location property. There is no public standard that applies to the location object, but all major browsers support it. JavaScript Location …
JavaScript Screen Object
The screen object specifies information about dimensions of the user’s screen and display settings. It is special object for inspecting properties of the screen on which the current window is being rendered. There is no public standard that applies to the screen object, but all major browsers support it. Javascript Screen Object Properties The following are the …
How To Get Operating System using JavaScript
To determine operating system on the client machine, we can make use of navigator.appVersion or navigator.userAgent. Example To Get Operating System using JavaScript The following example demonstrates detection of operating system on the client machine. <script type=”text/javascript”> tag is used to define client side script which uses attribute type for specifying MIME type. Navigator object …