chamini prashakthi

Ranch Hand
+ Follow
since Nov 25, 2016
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by chamini prashakthi

My date-time formatter is , "yyyy-MM-DD"


I want to check the date is later than today's date or not. I checked it using this validation.


But every time this returns false when the given date is later or not. Can anyone help with this me, please?
4 years ago
In my js file I used the require command to import some libraries
like


I added that js file to my index file like this way,



but when I load that file it shows as Uncaught ReferenceError: require is not defined in the browser console. How to resolve that issue?
If i have A.js



B.js



if I want to call for function a from B.js how to import A.js to B.js?
it shows
Uncaught DOMException: Failed to construct 'WebSocket': The URL '172.32.32.32:8080' is invalid.
When I am going to create web server with host as localhost,

it works,


but When I am going to use the host as Aws ec2 instance ip address as,
it doesn't works !
I'm facing difficulty on create the connection with the host !
I want to create web socket connection with my local machine and AWS EC2 instance.How to proceed with it?
Here I use JPA object in the project.So It is based on Hibernate.Not Spring as I think. So is it Correct?
Because I don't know where I use Spring in this project !
6 years ago


I'm implemeting a small application with using JBoss Application server. To keep connection between server and the Db I use Entity manager object.
In my bean definition class i use following code for that



Then in save ,delete ,retrieve methods just use entityManager and call Entity Manager class methods.But I don't have any idea why we don't initialize this entityManager
like

How we achieve our behaviors without initializing?
6 years ago
I want to how to verify a method of a non-mock object is called?How can I do that?
6 years ago
The jboss server installation directory path must not contain with spaces.
6 years ago
I need it in this way
6 years ago
To print a string values in console I use this statement.


 
 
when it prints in the console it doesn'r formatted.it looks like

Abc[780] abd
Asdbc[23] abd
Adsdbc[090] asd
Assdsddbc[23] abd
Adssdfdbc[090] abd


but I need this way.

Abc[780]    abd
Asdbc[23]    abd
Adsdbc[090]    asd
Assdsddbc[23] abd
Adssdfdbc[090] abd

How can I format my output ?
6 years ago
I use guava cache in my appliation which was written in a hibernate platform. The problem is my cache doesn't work well when loading the data. It doesn't update quickly when I delete or add a new data.


and this is the way I load data to the server side,


Also I don't use the cache in data saving or deletion. Can some one explain me what is the reson for this issue? Is it a problem of guava cache?

6 years ago

Prasad Saya wrote:Since a custom renderer is used to render the cells one has to use javax.swing.table.TableRowSorter and then set a custom java.util.Comparator for sorting. Here is the Oracle's Swing tutorial for that: https://docs.oracle.com/javase/tutorial/uiswing/components/table.html#sorting


Hey ,
I found the problem of here.In my method I declared column value as the row value (fixValue). So then method in my rendering class gets object value as that fixValue and then get some strings and set that value in the column and the tool tip too.

So I can't sort that column according to the string value here.Because it returns all the row value. So whta Can I do here is set the relevant string in the (column no 3) and then pass that string to renderer class.then just set tool tip only.No need of set text here.Because I set value in model class



Just these 3 lines. Simple !!!  



6 years ago