- I must have a JTREE in my JSP or Servlet. I used MyFaces. Is it good ? Or is there other projects ? We don't want to use applets because we find that it's very slow. - When i click in a node in the tree i don't want to reload the page to get some properties in the database for this node. I want to get properties in background and display these properties in a textfield for example. Is there a way ? a tool for this ?and it must be fast of course for retrieving and displaying my datas.
It sounds like you mean AJAX If you speak about updating the part of the page without reloading it.
This is a list of the steps have to be done to add AJAX behaviour to the JSF application:
I have a JSP page with simple MyFaces components like two inputTexts and a button. What I want is whatever the user types in the first textbox should get into second textbox on click of the button. I am trying to use Ajax for this. My approach is to have a separate Ajax Servlet and return the response to the JSP. When I test, I see that the response is captured by JSP page and the textbox gets the data into it.... but just for a second or so. After that the page appears to reload and the textbox loses its data and is blank.
I guess I am not implementing the steps correctly.
Can someone please suggest a simple Hello World for this.
Thanks in advance.
subject: How to update the screen without reloading jsp/sertvlet ?