Ajax, Netbeans Woodstock, Woodstock

HI:
I need help with the following please.
The issue to resolve is this:
I need to display on the screen a log that I receive from a Servlet asynchronously
I do not need to update the server side data, only to see the results on the screen.
Following is the code I am using in Netbeans 6.0 staticText component.
I do get the correct response from the server but I cannot update it on the textArea, it just goes blank.
Is this possible the way I am doing it or do I nee to go to Richfaces?
Secondly I would like to have a google map on the same screen and
update it with coordinates received from the same servlet.
What aproach should I take?
Thank you
function getXml()
                                    var  xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
                                    if (!xmlHttp) {
                                        xmlHttp = new XMLHttpRequest();
                                    var url = "http://localhost:8084/WebApplication1/NewServlet";
                                    xmlHttp.open("POST", url, true);
                                     xmlHttp.send("I SENT THIS");
                                    xmlHttp.onreadystatechange = updatePage;
                                    function updatePage()
                                        if (xmlHttp.readyState == 4) {
                                               var response = xmlHttp.responseText;
                                              var domNode = document.getElementById("form1:sText1");
                                               domNode.value = response;
                                               alert (domNode.value);
                                              return domNode.refresh();
                                 }  

Follow the next steps, works in netbeans 6.5 and MySQL 5.1.3
1.     install SinglePageCrudForm sample and show this
2.     virtual form in field calendar (participate), save button (submit)
3.     Properties – selectedDate - NO
4.     save button
java.util.Date uDate = (java.util.Date) depDateCalendar.getValue();
if ( uDate != null ) {
java.sql.Date date = new java.sql.Date( uDate.getTime() );
tripDataProvider.setValue("TRIP.DEPDATE", date);
} else {
tripDataProvider.setValue("TRIP.DEPDATE", null);
5.     prerender
boolean tripsFlag = getSessionBean1().getTripRowSet().size() > 0;
if ( tripsFlag ) {
java.sql.Date date = (java.sql.Date) tripDataProvider.getValue("TRIP.DEPDATE");
depDateCalendar.setValue(date);
} else {
depDateCalendar.setValue(null);
}

Similar Messages

  • NetBeans 6.1----Woodstock component : Bubble Help

    Hi All,
    I recently came across the new Woodstock component : Bubble help.
    I have used it in the Onclick event of an image hyperlink which is in a table Column.
    Now if i select the image hyperlink in first row of the table, the bubble appears half and the other half is hidden inside the table header.
    Can anyone suggest me how to fix the bubble to the center of the page or how to make it visible completely even if we scroll to last row of the table.
    thanks
    Madhu
    Edited by: MadhuSudhir on Nov 26, 2008 6:05 AM

    Your question is not specific to JSF, but to Netbeans/Woodstock. In the years I walk around here, I haven't seen a drag'n'dropper around who has above average knowledge of the tools used. Try a forum/mailinglist devoted to the tool in question.

  • JSF Components (Woodstock, Richfaces) Vs. Ajax Component (YUI, JMaki)

    Hello. I am pretty new in the Web 2.0 development. I started learning JSF 1.2 and I like it. I also found interesting by using Sun�s Woodstock, JBoss�s Richfaces and Oracle�s ADF components.
    There are also so many Ajax libraries out there like JMaki, YUI (Yahoo), DWR. Now my question would be, is there any advantages using pure Ajax component like YUI to create GUI then using Richfaces or ADF? Please keep this in mind that I still want to use JSF architecture for the backend.
    Thanks much
    Hobi
    Oklahoma, USA

    http://hobione.wordpress.com/2008/02/22/jsf-drag-n-drop-with-jdeveloper-11g/

  • (woodstock) table pagination controls customization in netbeans

    Hi;
    We have developing a program using Netbeans and there are tables (woodstock) in it.
    Because our target audience do not speak English, we have to customize pagination controls , change images's tooltip (alt) texts into another language. Let say, "go" , "go to last page" ," go to next page", "show data in single page" , "page" and such.
    Your help will be highly appreciated.

    You might have more luck if you post component library specific questions in a website/forum/mailinglist devoted to the component library in question. In case of Woodstock, it is [http://woodstock.dev.java.net].

  • Java Server Faces 1.2 � RichFaces 3.1.4 or Woodstock 4.0?

    Hi, I am about to build a prototype for my upcoming project and I have looked both component libraries. RichFaces supports Facelets, I like that but Woodstock has a great plugin for Netbean 6.0.1
    I can�t decide which route I should choose. I am not sure both can be integrated together either. Please advise.
    Thanks much
    Hobi

    Thanks for you reply but here what I found out in between IceFaces Vs. RichFaces.
    http://hobione.wordpress.com/2008/02/27/javaserver-faces-icefaces-or-richfaces/

  • It seems to be a fault in the Woodstock Bacic library - Checkbox Group

    Ver. NetBeans IDE ver. 6.5.1
    The project is a Visual Web Javaserver Faces.
    The example page has the following two components from the Woodstock Basic Library:
    - Checkbox Group ( CB )
    - Static text. ( ST )
    The CB is implemented with "Auto-Submit on Change"
    This means that I reads the choice after each change in the CB, and shows the value in the ST. This works fine.
        public void radioButtonGroup1_processValueChange(ValueChangeEvent vce) {
            *this.staticText1.setValue(vce.getNewValue().toString());*
        }The fault is then uncovered when I then choose one of the choices as a default in the CB
      private void _init() throws Exception {
            radioButtonGroup1DefaultOptions.setOptions(new com.sun.webui.jsf.model.Option[]{new com.sun.webui.jsf.model.Option("item1", "Item 1"), new com.sun.webui.jsf.model.Option("item2", "Item 2"), new com.sun.webui.jsf.model.Option("item3", "Item 3")});
            *radioButtonGroup1DefaultOptions.setSelectedValue("item2")*;
        }The default choice is then not shown in the ST. I can select the default choice, but nothing is shown in the ST.
    The other choices is shown in the ST after a selection.
    My company is in a evaulating periode and it's important for me to get this working. It is a basic function.
    The CB must me choosen to go further and its a haze to always pick a choice to go further when default value is de-selected.
    Regards
    -Gunnar;)

    Hi,
    Thanks for giving time craig.mcc
    Do you think this code should still work.
    <h:selectone_radio id="selectedUser" valueRef="UserInfo.userId">
    <h:selectitem valueRef="UserInfo.userId"/>
    </h:selectone_radio>
    Though panel_data is iterating through the UserInfo and it is also printing radio buttons on each row. But not assigning value to the radio button. And the same in the next line
    <h:output_text id="userId" valueRef="UserInfo.userId"/> is printing the value from the UserInfo variable.

  • Pagination controls customization in table (woodstock)

    Hi;
    We have developing a program using Netbeans and there are tables (woodstock) in it.
    Because our target audience do not speak English, we have to customize pagination controls , change images's tooltip (alt) texts into another language. Let say, "go" , "go to last page" ," go to next page", "show data in single page" , "page" and such.
    Your help will be highly appreciated.

    You might have more luck if you post component library specific questions in a website/forum/mailinglist devoted to the component library in question. In case of Woodstock, it is [http://woodstock.dev.java.net].

  • Naviagation using woodstock tree

    I am developing a jsf application and I am using netbeans with woodstock components. I used tabs for top most navigation. I want a left-right navigation using tree. The tab component works fine for navigation since it displays different views on click. But it is not possible to do the same thing using tree component. I want to develop content pages individually and integrate them in my application when a node on the tree is clicked. Is that possible? If not what is the best way to handle a left right naviagation using the visual jsf framework?

    The problem seems to be the Application Item that lives on the Tree page. The help for this attribute is as follows:
    "This attribute identifies an application or page item which specifies the starting point of the tree (the first node). The query which defines the tree identifies a starting position. The value of this item should equal the primary key of the tree.
    The parent of the first node is typically zero or null. If it is another value then an up link displays to facilitate drilling up."
    When I created the tree I used an item on the page for this attribute, P74_TICKET_ID. Now when I try to use this tree on another page, it still points to the original Application Item from the original page. If I change this item to point to a value on the new page, P80_TICKET_ID, the tree works fine on the new page, but now the original page no longer works because it is now points to the new page Application Item.
    I would basically like the tree to use P74_TICKET_ID as the starting point on one page and P80_TICKET_ID on another page, but the tree will ony point to one or the other.

  • Get cell value from Woodstock table

    Hello,
    I am using a Woodstock Basic Table from the NB palette.
    One of the columns is editable and I need to get the updated values upon a button click event.
    How do I get the value of a specific cell from the table?
    Thanks

    Hi Rajashekar ,
    here is the code :
    // Get a handle to the table footer bean
    OATableBean tableBean = ...;
    OATableFooterBean tableFooterBean = tableBean.getFooter();
    if (tableFooterBean != null)
    // Get a handle to the total row bean
    OATotalRowBean totalRowBean = tableFooterBean.getTotal();
    --Keerthi                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • I am on a MAC PPC G5 with OSX 10.5.8 and can't get the Leopard disk to stay in the drive, although " Woodstock - The Director's Cut plays fine " HELP !!

    I am on a MAC PPC G5 with OSX 10.5.8 and can't get the Leopard disk to stay in the drive, although " Woodstock - The Director's Cut " plays fine, HELP !!

    Yes it is the right Disc...
    2Z691-6040-A  (OEM) Drop-in DVD...
    System Requirements 
Mac computer with an Intel, PowerPC G5, or PowerPC G4 (867MHz or faster) processor. User must already have 10.4 or above to install this 10.5 upgrade.
    Compatibility 
eMac (2005), iBook G4 (Mid 2005), iMac G5 17-inch (ALS), iMac G5 20-inch (ALS), iMac G5 (17-inch iSight), iMac G5 (20-inch iSight), iMac (Early 2006 17-inch), iMac (Early 2006 20-inch), iMac (Mid 2006 17-inch), iMac (17-inch Late 2006 CD), iMac (17-inch Late 2006), iMac (20-inch Late 2006), iMac (24-inch Late 2006), iMac (20-inch Mid 2007), iMac (24-inch Mid 2007), Mac mini, Mac mini (Late 2005), Mac mini (Early 2006), Mac mini (Late 2006), Mac mini (Mid 2007), Mac Pro, Mac Pro (8-core), MacBook (13-inch), MacBook (13-inch Late 2006), MacBook (13-inch Mid 2007), MacBook (13-inch Late 2007), MacBook (13-inch Early 2008), MacBook Air, MacBook Pro, MacBook Pro (17-inch), MacBook Pro (15-inch Glossy), MacBook Pro (15-inch Core 2 Duo), MacBook Pro (17-inch Core 2 Duo), MacBook Pro (15-inch 2.4/2.2GHz), MacBook Pro (17-inch 2.4GHz), MacBook Pro (Early 2008), Power Mac G5 (Early 2005), Power Mac G5 (Late 2005), PowerBook G4 (15-inch Double-Layer SD), PowerBook G4 (17-inch Double-Layer SD), Xserve (Late 2006)
    http://www.welovemacs.com/2z6916040a.html
    I'd try to find another Mac to make a DMG of it & burn a copy to see if that works better.

  • How to make a selected item in woodstock Basic's drop down list highlighted

    I am trying to create a JSF web page and populate Woodstock Basic drop down with options from a MySql database and highlight some options that a user had selected from previous session. How do I make the selected items appear highlighted?
    I would appreciate a response soon.
    Thanks,
    ITTSwengr79

    More specific? It can´t be more specific. Maybe you want me to be less specific.
    At any way, this coding example should say more than enough.
    <sometaglib:someInputComponent value="#{someBean.someProperty}" />
    public class SomeBean {
        private String someProperty; // +getter +setter
        public SomeBean() {
            this.someProperty = "some default value";
    }

  • Ajax components in Netbeans 6 M10

    I could not fine any Ajax components in Netbeans 6 M10. Anyone please advice me how to get it or import it.
    Thank you very much.

    I am still looking for help in this matter. Any advice from anyone will be greatly appreciated.
    Thank you.

  • Paging large results?? - Woodstock + Provider Framework

    I'm using the Table & TableRowGroup components out of the com.sun.webui.jsf.component package. I created a table backed by an ObjectListDataProvider. Since my query will literally return thousands of very large objects, I must implment the provider in such a way that the internal list it wraps only has a page of that data at a time.
    In order to do this, I need to make sure that whenever the user clicks on one of the buttons on some pagination control (page forward, page backward) that the server-side backing UIComponent object gets that updated state.
    I'm already sure that the refresh method on my provider is executing after the ApplyRequestValues phase, but it seems that those state values aren't updated. The UI shows that the page number is moving forward and backward, but the backing UIComponent still shows page=1.
    I've looked at the source for the TablePaginationActionListener, and it seems to respond to the table events of interest (all pagination events), but I don't see how to attach this listener to the table. The javadoc in the class says that it should be attached to the Table component using addActionListener, but I do not see that method available on the Table.
    I even tried adding the listener as a child <f:actionListener> tag. For completeness sake, I tried nesting this tag in the Table, the TableRowGroup, and the TableColumn - but all of them threw exceptions because it's not a valid child tag. So I have no idea how to attach this listener to the table to make sure the server-side model values will stay fresh.
    I want to use the provider framework, but I can't afford to load all of the table data into memory. I need to be able to have the provider contain a single page of data at a time, and for the server-side UIComponent to always be up-to-date (so that my refresh method on the provider always knows which page of data to get from my backing Session Facade).
    Am I using the wrong provider? Is there something fundamental I'm misunderstanding? I'm using 4.0.1 stable release of Woodstock.
    Regards,
    -joseph

    Well the server right now is a 32-bit VM machine, so the memory limit is 1400m on -XMX setting. We are upgrading from the one production machine to 2 production machines with 2 instances of Jboss and 16gb of memory each machine. So each Jboss would theoretically have 7750mb of memory, leaving 512mb for Windows 2003 64-bit. It will help the problem, but only delay capacity.
    Sometimes our data is the exact same, and we are loading it for each user. We may go out and get all the routes for all of our trucks, and refresh that every 5 minutes for each user. Even that piece is taking up probably 2-3mb per user...so if we could streamline that it would help.
    What can you recommend for having a central cache of data say on our Jboss server that we update say every 5 minutes, and multiple users could access it? I was looking into EJB 3.0, but they are a little confusing when it comes to persistence, and I have not found a good example of a bean holding a cache of data, and having a way to refresh every X minutes.
    How much memory can JVM take up for the heap on a 64-bit machine?

  • Getting error while deploying woodstock project in jdeveloper

    Hi All,
    At last I deployed woodstock project in tomcat server and it is working fine but when I am trying to deploy it in jdeveloper I am getting lot of errors like
    Error: Unable to instantiate tag: webuijsf:page (class: null)  Make sure that the tag class is available and that the tag library containing the class is not excluded from this application.
    Can any one tell me do I need to copy jar files some where else??or do I need to change any thing,
    I am using oc4j app server...
    Thanks.

    Assuming you are using the Sun RI, you may want to ask on the users mailing list (or search through the archives). I don't recall the specifics but there have been threads specifically addressing OC4J.

  • Pagination for Woodstock webuijsf:table component

    Hello,
    would someone be so kind to explain me how I can get pagination working with the Woodstock webuijsf:table component?
    I'm using an ObjectListDataProvider and I can get all the elements and put them in my table, but when I click on the buttons that should change the page nothing happens (this means I always see the first page).
    I spent a lot of time studying examples from http://webdev2.sun.com/woodstock-tlddocs/webuijsf/ and from http://webdev2.sun.com/example/faces/index.jsp, but I think that those ones are too much wide and complex and explained-no-so-well, so good and simple examples would be really appreciated.
    Thanks in advance.

    I think that it's a very common situation.
    No ideas?
    I think that it's interesting to create appz with great performance.

Maybe you are looking for