users@woodstock.java.net

Re: [Fwd: [nbusers] Netbeans Visual Web Pack Support]

From: Ratnadeep Bhattacharjee <Ratnadeep.Bhattacharjee_at_Sun.COM>
Date: Thu, 26 Jul 2007 16:58:55 -0400

>
> Subject:
> [nbusers] Netbeans Visual Web Pack Support
> From:
> "Giuseppe Fasolino (SA/ERI)" <giuseppe.fasolino_at_ericsson.com>
> Date:
> Thu, 26 Jul 2007 18:00:52 +0200
> To:
> nbusers_at_netbeans.org
>
> To:
> nbusers_at_netbeans.org
> CC:
> "Salvatore Avilia XE (SA/ERI)" <salvatore.xe.avilia_at_ericsson.com>
>
>
> Spectable NetBeans support,
> we are testing Netbeans Visual Web Pack to implement an AJAX Web
> Application with _http://www.sun.com/webui/webuijsf_ components in our
> company.
>
> In the official Visual Web Pack presentation
> _http://www.netbeans.org/products/visualweb/index.html_ is specified the
> following text:
>
> *"Ajax-Enabled JavaServer Faces Components*
>
> Create web applications with Ajax-enabled JavaServer Faces components.
> Encapsulate the JavaScript and complex server-side asynchronous
> communication within each JavaServer Faces component. Using an
> Ajax-enabled component is like working with any other component: Drag
> and drop the component, set properties, and customize server-side event
> handlers. "
>
> Can you support us in understanding how to integrate webuijsf components
> with ajax as descripted in the text above?
>

Details about the webuijsf components that are part of visual web pack
is available at woodstock.dev.java.net. The woodstock documentation page
should give you some more information:

https://woodstock.dev.java.net/Documentation.htm

The TLD docs for the components provide all the gory details. You can
find the TLD docs in the downloadable woodstock jars in
https://woodstock.dev.java.net/Download.htm

Basically once you drag and drop the ajax enabled components on the
design surface you can set certain attributes of the components to
provide you with ajax features. In addition you can modify the generated
JSP to add more ajax functionality or tie one component to another.

The following example shows how to use the ajax enabled feature of
textField to asynchronously validate a textField and dynamically update
its associated label and alert components. Although these components are
decoupled from the text field, they can both be updated automatically
via the notify tag attribute.

   <webuijsf:alert id="alert1" type="error" visible="false"/>
   <webuijsf:label id="label1" text="Enter Credit Card Number"
        for="textField1"/>
   <webuijsf:textField
      id="textField1"
      text="4111 1111 1111 1111"
      columns="20"
      required="true"
      autoValidate="true"
      validatorExpression="#{Payment.cardValidator}"
      notify="form1:alert1,form1:label1"/>

Hope this helps,
-Deep.


> Best Regards
>
> Giuseppe Fasolino
>
> Marconi S.p.A.
> Part of the Ericsson Group.
>