zul' Zorander

Greenhorn
+ Follow
since Aug 12, 2009
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 zul' Zorander

Hi all
I am facing with a wierd problem. I have a JSF page with a fixed width. I am trying to add two rich:extendedDataTable 's into a h:panelGrid with 2 columns and add it to a page . The page is rendering properly in Firefox (i.e scroll bar for the panelGrid and able to scroll horizontally to view both the tables). But while viewing the same page in Internet Explorer the tables are being displayed over the panelGrid (Please see the attached images for page view in IE and Firefox). I assumed this might be a z-index problem and tried it correct giving postion:relative to the dataTable but could'nt get proper rendering. Please help me to solve this problem.

Thanks
Zeddicus


14 years ago
JSF
Is there any way to set selected node of a rich tree dynamically based on a action event??
I have a boolean checkbox enclosed within a tree node and i need to set selected tree node based on checkbox selection. I tried using advisenodeselected but that didnt give correct functionality. I tried triggering click event on tree on checkbox selection and tried to set advicenodeselected on tree click. But the problem I am facing is the node above or below the desired node is getting selected. From what I understand is that the method binding to advisenodeselected executes once for each node and based on return value the node is selected.
But for the click the method is called number of nodes+1 times. I am thinking that the tree needs to deselect the selected node before selecting a new node. But the problem I am facing is the for the tree click the method is executing number of nodes times some times and +1 some time leading to the above or below node the desired node to be selected.
Please explain the reason behind this

Thanks
Zeddicus
14 years ago
JSF
I am facing a wierd problem with rich tree. I am trying to reRender a rich:tree based on selection of a list box . I have given the id of the tree to the reRender attribute of the a4j:support tag of list box and in the action listener i am setting the rendered attribute of the tree to true. But on the event the tree is not getting rendered. But if I add the tree to be rendered in a output panel and rerender the output panel instead ,the tree is rendered fine. What can be the reason behind this??? and also when I try to rerender the tree directly with the tree id ,the tree which is not rendering on the the event is rendering perfectly on refresh of the page after the event). Can anyone explain the reason behind this.

Thanks
Zeddicus
14 years ago
JSF
did you start the rmi registry???
14 years ago

As of the J2SE 5.0 release, stub classes for remote objects no longer need to be pregenerated using the rmic stub compiler, unless the remote object needs to support clients running in pre-5.0 VMs. If your application needs to support such clients, you will need to generate stub classes for the remote objects used in the application and deploy those stub classes for clients to download. For details on how to generate stub classes, see the tools documentation for rmic [Solaris, Windows]. For details on how to deploy your application along with pregenerated stub classes, see the codebase tutorial.


This is from the web page http://java.sun.com/j2se/1.5.0/docs/guide/rmi/hello/hello-world.html
Hope this helps

Regards
Zeddicus
14 years ago
Thanks Vijitha and Freddy for your replies
My requirement doesnot allow me to host any server (http,ftp,rmi). I had run my program sucessfully from a diffrent machine by placing all classes required by the client program in that machine. Is it a good practice??? Any thoughts??

Thanks
Zeddicus
14 years ago
I am a newbie to RMI programming, so this question may sound trivial. What I understand after reading some material on RMI is that we need to have a server running and set a codebase to run RMI programs in multiple machines. Is running the server necessary??? Can I make all the class files available at each client,avoiding the need to set codebase and achieve distributed computing??? Any suggestions in this regard would be rally helpful.

Thanks
Zeddicus
14 years ago
I am a newbie to RMI so this question may sound trivial. I understand that to have access to java classes from a different machine than server we need to set codebase on server. But the examples I found on net sets code basing using "http://........ which i guess needs a webserver to be running on server machine. So my question is can we set codebase to classes on my local disk drive(i.e without having a webserver running on my machine)??? Thanks in advance

Zeddicus
14 years ago
Thanks Edward I fixed the problem. Can you suggest any good resources for learning RMI. I am finding it difficult to find one

Thanks
Zeddicus
14 years ago
I was going through this tutorial http://java.sun.com/j2se/1.5.0/docs/guide/rmi/hello/hello-world.html" target="_blank" rel="nofollow">Example . I followed the tutorial and got proper output from client.java. But when I tried to run the program i am getting following exception no security manager rmi class loader disabled. I understand that we need to add security manager in our server class so i added the following code in my server.java
if (System.getSecurityManager() == null) {
System.setSecurityManager(new RMISecurityManager());
}
After this when i try to run client class from my machine i am getting following message java.security.accessControlException. Do I need to add similar code in client class also???
Also I am not finding good tutorails for RMI. Can any one suggest good books or site that has detailed information about RMI???
Any help in this regard would be appreciated.

Thanks
Zeddicus
14 years ago
Is there a way to select multiple rows from rich dataTable/dataGrid ??? I am looking for a method similar to selecting multiple rows from a rich extendedDataTable/richscrollable dataTable via "selection" attribute.

Thanks
Zeddicus
14 years ago
JSF
Most of a4j tags have an attribute called oncomplete attribute which is used to execute javascript on clientside after request. Try using that. Hope it helps

Cheers
Zeddicus
14 years ago
JSF
ArrayList<String> loc=new ArrayList<String>();
int randnum= (int) (Math.random() * 5);
System.out.println(randnum);
Integer i=new Integer(randnum);
loc.add(i.toString());
System.out.println(loc.get(0));
Wrapping int to a integer object and converting integer object to string
Hope this helps
Regards
Zeddicus
14 years ago
JSF
Can we enclose a rich:dataGrid within rich:scrollableDataTable??? I want that sort of implementation
14 years ago
JSF
Is there any method to display values of a single arrayList(/collection) as multiple columns in rich datatable (or any rich data iteration components)???

Thanks
Zeddicus
14 years ago
JSF