This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Kubernetes in Action and have Marko Luksa on-line!
See this thread for details.
Win a copy of Kubernetes in Action this week in the Cloud/Virtualization forum!

James Peter

Ranch Hand
+ Follow
since Sep 15, 2010
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
2
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by James Peter

Hi All,

Struts2jquery grid is submitting the form when I minimize and maximize the grid. It is causing duplicate records in the grid. For better understanding below are the steps.

1. Click the submit button which calls grid action -> get data from action and display in the grid
2. minimize the grid and maximize the grid. Then it is causing reloading the grid again and appending data from action to the existing data in the grid causing duplicate data.

How can we avoid this? I want to avoid calling action (reloading grid ) when we minimize and maximize grid (close and opening).
Please let me know if anyone know solution.

Thanks in advance
Peter
3 years ago
Hi Rob,

It really worked. thanks a lot.


Peter
5 years ago
Hi All,

I am having problem in retrieving data from InteractiveTableModel. Code is like below (part of entire code)



I have one button to print content of table. When I enter the value in table cell and without pressing Enter Key if I click print button I found that content of a cell which is having focus at present is not getting retrieved. I also noticed that tableChanged method is not being called while wevkey in values in cell.

Please let me know how to get rid of this problem.

Thanks
Peter


5 years ago
Hi,
Below code is working. thanks a lot.


Thanks
Peter
5 years ago
Hi All,

I need to avoid dropping of text inside the JSpinner control. Below is my code for custom transferHandler.
Even though canImport method is returning false I am able to drag and drop text into JSpinner.
I searched net but did not find proper solution. Please let me know if any one is having an idea how to do it.



Thanks
Peter
5 years ago
Hi All,

My requirement is to send 2 parameters to remote url. One created dynamically and another from Form text field like specified in below code. I am getting parameter value of studentName in action but getting null value for studentSubject. Both are having getters and setters in action. Please let me know what is wrong in my code.



Thanks
Peter
5 years ago
Hi All,

My requirement is as follows. My application is built on Struts2 framework and using annotation plugin. When I get any RunTimeException I need to call a method of my custom class which prints error stack using e.printStackTrace() method. How can I configure this class in my application. I do not want to use try and catch block in each and every actions I have.

After getting error I want to display error.jsp to user. but in my tomcat console I would like to print error stack. Please let me know if anyone is having idea.

Thanks
Peter
5 years ago
Hi All,

I need to reset date picker control to empty using JQuery. Below is my code to generate datepicker. Please let me know how can I do this.

$('#timeFrom').val(''); is not working.



Thanks
Peter
5 years ago
Hi All,

I need to run a java application using a dos batch file. Below is my code. All jar files are being added to the classpath and also able to display then on console. But it is not executing the class
CommandLineJobRunner. i doubt I am using the command in a properway. I am not sure how to specify parameter like ( applicationContext.xml accountsJob). If anyone is having idea how to do it please let me know.



Thanks
Peter
5 years ago
Hi,

I found the solution. We need to use studentList.*


Thanks
Peter
5 years ago
Hi All,

I am using below code to filter json reply to send only studentList. After calling action if I check studentList it is getting as empty list. but if I print size of studentList in action it is 2.

There are getters and setters from studentList variable in action. Please let me know where I am doing wrong.



Thanks in advance

Peter
5 years ago
Hi All,

I need to know how I can stop form submission if I find form is not having proper input values. Here I am using struts2jquery plugin.If validateForm returns false I need to stop form Submission.
Please let me know if any one is having solution.



Thanks
peter


5 years ago
Hi,

any idea how to add a cssClass to node? I tried in below way but did not work.



Thanks in advance
Peter
6 years ago
Hi Friend,

Thank you very much. problem solved with your suggestion.

Thanks
Peter
6 years ago
Hi All,

When I import struts2-jquery-showcase-3.0.2 war file into eclipse (Version: Helios Service Release 1 Build id: 20100917-0705). I am getting below error.






Thanks in advance
Peter
6 years ago