Saturday Apr 26, 2008

VW user tip2: User Friendly Error Messages For Woodstock AutoValidation

One of the powerful features of  Woodstock TextField components bundled with Netbeans Visual Web is, client side auto validation. However, it is kind of tricky, if you want to change the default messages it displays. David Heffelfinger sent me this neat tip on how to achieve this.

For other user tips, visit Netbeans Visualweb user tips and code snippets


A while back I was experimenting with Woodstock. One of the things I liked about it was the "ajaxified" auto validation of text fields and text areas. Unfortunately when I tried it out I was disappointed that neither <h:message> nor <webuijsf:message> would "catch" validation errors when auto validation "kicked in". Reading about it I noticed that we can use an alert component to display validation errors, via the "notify" attribute.

Unfortunately by default both the "Header" and the "body" of the alert display the same message, not exactly user friendly.

After some research I found a solution, we need to override the "detail" and "summary" error messages via a resource bundle.

I blogged about this at http://www.jroller.com/heffel/entry/user_friendly_error_messages_for


Friday Apr 04, 2008

Updated plugin - Visual Web Woodstock Component Theme Builder

I have updated Visual Web Woodstock Component Theme Builder to work with Netbeans  releases. The updated  plugins available are for

For details on how to install and use the  plugin read my previous blog

Creating Netbeans 6.0 Visual Web Components Custom Theme Using Theme Builder

As I mentioned in that blog, you can directly add the jar created using Theme Builder project to any Visual Web Application. Interestingly, if you change CSS or messages in the Theme Builder project, just build the project to create the jar and refresh the page in the Web application that uses that jar. The changes should be  reflected  immediately in that page.  

Note: I noticed that the project build might fail if there are spaces in the project path. Try to create the project with out spaces in the path.

Sunday Nov 04, 2007

NB 6.0 Tip: Finding the examples for Visual Web Woodstock AJAX Components

Do you know each and every Woodstock AJAX Component bundled with Netbeans 6.0 Visual Web has plenty of examples explaining every details of the component. My recommendation is to go through these examples to learn about the powerful features of these components.

Getting these examples is very easy. They are available in the TLD documents which are bundled in the IDE. To bring up the TLD documentation invoke the action Help -> Javadoc Reference -> Project Woodstock 4.1 Tag Library.

TLD Doc Menu

This brings up the browser with component TLD doc. The examples are embedded in the TLD description

Component Example

Here is an example in the Button TLD doc for Asynchronous Update

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today