Chuyển đến nội dung chính

Bài đăng

Đang hiển thị bài đăng từ Tháng 1, 2016

Install Oracle Jdbc driver in your Maven local repository

If you are using Oracle, you must first install your Oracle JDBC driver in your local Maven repository. Here is how to proceed: Step 1 - Download the Oracle JDBC driver Please download manually the Oracle JDBC driver  from Oracle web site . Step 2 - install your Oracle JDBC driver in your local Maven repository We follow the instructions from this Maven FAQ I have a jar that I want to put into my local repository. How can I copy it in? In this example, we assume that your Oracle JDBC driver is in a file called  classes12_g.jar Open a console and go to the folder containing the classes12_g.jar file. c:\oracle\jdbc>dir 23/06/2008 13:02 2 044 594 classes12_g.jar Let's assume you want to register your driver under the group id 'com.oracle', use 'oracle' as the name of the artifact id and that you want the version to be '10.2.0.2.0'. You can now run the following command: c:\oracle\jdbc>mvn install:install-file -Dfile=ojdbc6-11.

[DIALOG] Active a tab of dialog

How to activate/inactivate a tab on a dialog base on an event of item? Resolution: In the sample code, we add a listener to listen ‘activate’ event for dialog. <listeners jcr:primaryType="nt:unstructured" activate="function(dialog) {     dialog.findByType('tabpanel')[0].setActiveTab(2);  } " /> * param of setActiveTab method is the index of tab. 0 is the first tab, 1 is the second, so forth.