Jeya Balaji

Ranch Hand
+ Follow
since Jan 02, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jeya Balaji

hi,

I have eclipse 3.6. I am able to create gwt project using gwt plugin. Also, I had created a different jpa project (eclipselink) and successfully run it.

I want a gwt project with jpa facility. However, when I try 'entities from table', I get an error saying it is not a jpa project.

How do I get both gwt and jpa in the same project?

Thanks
Balaji
well, I dont want to load and pass all 60 when only 25 will be displayed. May be the number 60 is small enough to pass around. Assume the total number to be in thousands or millions. It wont be feasible to collect all records and send them for displaying only a small portion.

There should be a way to send only the records that would be displayed and the table asking for more records.
15 years ago
JSF
No, Dushyant. It is other way around. Let us say that I have 60 records, Instead of sending all at one shot, I want to send 25 at a time. Since I can get the starting row and number of rows per page, I can choose which 25 to send.

However, if I send 25, tr:table assumes that I have only 25 records (and hence doesnt allow me to navigate further). So, I want to tell tr:table that there are 60 rows in total.
15 years ago
JSF
Hi,

I am using <tr:table> to list the data passed on from a bean. The range listener is working fine and I get the current start row. But if I pass only 25 (default number of rows per page), <tr:table> is displaying only those 25 rows and "prev", "next" links are missing. Is there a way to set the total rows to <tr:table>.

Let me go back to search more.
[ January 14, 2008: Message edited by: Jeya Balaji ]
15 years ago
JSF
Just sharing my experience.

I wanted to seperate my code from the generated one. That will give me flexibility in terms of re-running the jaxb to generate the classes again.

My xml had couple of nested levels of data, hence there were many type defn and many classes.

In my wrapper code, I wrote set, get for each of those different classes.

This way, my other part of the application doesnt have to invoke the JAXBContext and directly deal with the generated code. (They need not know that there are n number of classes for the xml file. All they need to know is that the xml can be worked on with the single wrapper class).

Also, the wrapper class had the logic to read and write the xml.
16 years ago
Check out jaxb 2.0. It is very easy to read and write xml nodes without knowing xml.

Regards
Balaji
I would have a seperate one dim integer array. The size of this array is equal to the number of rows (say n) of the 2D.
This int array holds the index of the 2D rows. So, filled with 1 to n.
By performing usual sorting method and changing this index array should do the trick.
After sorting, the 2D array will be intact - none of the rows or data will be exchanged.
Only the index array will go thru change. The index array might be like
5, 4,7,2,8,3 ...
which indicates the sorted position of the 2D array ...

Someone pls comment this method or suggest better one ...
19 years ago
When Diana married Prince Charles, my friend couldn't believe it. She was shocked that Diana left Phantom and married Charles
19 years ago
Hi Tina,
I am looking for project mates. Let me know if u r interested in any of the projects at :
http://products.pithru.com
Regards,
Balaji
jeya.balaji@pithru.com
19 years ago
Hi Sandra,
So, you have two accounting project ...
If possible try for an integrated solution. The internet application itself can be used in the intranet. The intranet users may have more facilities and features.
If such design is possible, maintainance (spelling?) cost will cut into half.
Regards,
Balaji
[ February 25, 2003: Message edited by: Jeya Balaji ]
19 years ago
JSP
hmmm, I had an idea to develop a generic code to do this ... waiting for time.
The skeleton of my idea is :
A bean, say ProgressBean, with methods like

have a progressDisplay.jsp something like :


You may place this jsp inside a frame set (like 1 along with 5 or 6 frames) so that this jsp will occupy a small portion in the browser window and the refresh will be less noticible.
ProgressBean might implement an interface which has those methods. This might end up as a generic code.
If u happen to get a generic code, please pass it to me (j_balaji00@yahoo.com)
Regards,
Balaji
19 years ago
JSP
�� �� �� � � ��
Hi friends,
I have a strange problem. When I generate a .war file using ant, the WEB-INF directory name is stored as Web-inf (the culprit might be windows)
This is not for all the occurance. Only for the files directly under WEB-INF. For the other files like under WEB-INF/classes, the directory name is spelled correctly as WEB-INF
So, eventually, I end up getting a war file with the following directory structure :
...
web-inf\ web.xml
web-inf\ mytag.tld
WEB-INF\classes\mypack myBean.class
...
Why do we have two different dir names? The change in case did not give me a problem in windows environment; but I am afraid it might be a problem in linux where I am going to deploy.
The relavent code in build.xml (which is used by ant to create the WEB-INF dir and build myApp.war)

My development environment is :
Windows 98
jdk 1.3
Ant 1.5.1
Tomcat 4.1.12
The directory names in Windows explorer, shows the wrong name web-inf
In the dos prompt, dir command displays the correct name, WEB-INF
Is there any way I could rectify this problem?
A quick search in sun.com didn't give fruitful result.
Earlier I posted this question in 'Ant' forum and didnot get a response. I don't know the right forum; since I frequently visit jsp forum, I am posting here.
Regards,
Balaji
19 years ago
JSP
Hi friends,
I have a strange problem. When I generate a .war file using ant, the WEB-INF directory name is stored as Web-inf (the culprit might be windows)
This is not for all the occurance. Only for the files directly under WEB-INF. For the other files like under WEB-INF/classes, the directory name is spelled correctly as WEB-INF
So, eventually, I end up getting a war file with the following directory structure :
...
web.xml web-inf\
mytag.tld web-inf\
myBean.class WEB-INF\classes\mypack
...
Why do we have two different dir names? The change in case did not give me a problem in windows environment; but I am afraid it might be a problem in linux where I am going to deploy.
The relavent code in build.xml (which is used by ant to create the WEB-INF dir and build myApp.war)


My development environment is :
Windows 98
jdk 1.3
Ant 1.5.1
Tomcat 4.1.12
When I see the directory names in Windows explorer, I see the wrong name web-inf
In the dos prompt, dir command displays the correct name, WEB-INF
Is there any way I could rectify this problem?
Regards,
Balaji
19 years ago
Checkout these methods of request :
request.getRemoteAddr();
request.getRemoteHost();

Regards,
Balaji
19 years ago
JSP
Thanks a lot for your time.
I forgot to mention that the xml file is located in the same dir as web.xml
I followed the link you gave and found the java code. However, in this problem, we need a similar mechanism in xml ...
Let us c.
Regards,
Balaji