VWP Tips for JSC Users
By divas on Nov 08, 2006
Here are some tips for Sun Java Studio Creator IDE users who are new to the NetBeans Visual Web Pack
- Install NetBeans and Application Server 9u1 first. Configure NetBeans to use the Application Server, then install the Visual Web Pack. If you do it in that order, then the Travel database will automatically be available. You need the Travel database to do the tutorials. If you didn't do it in that order, then configure NetBeans to use the Application Server, shut down the NetBeans IDE, and restart the IDE. The Travel database should appear.
- You have to connect to the database every time you start the IDE (if your project uses a database). The password for the Travel database is "travel".
- The server and database nodes are in the Runtime window.
- Use F6 instead of Ctrl-F5 to run the project.
- Use F9 to compile a file instead of Shift-F9.
- The editor macros are different. See http://www.netbeans.org/kb/55/vwp-intro.html#06.
- The Add > Property menu item is not available from the pop-up menu for the managed beans in the Projects window. However, they are available in the pop-up menu for the managed beans in the Outline window. When you add the properties, they don't show up in the Outline window right away. If you open the Java source for the bean and then close it, the property appears in the Outline window.
- The Java source is in src > java instead of just src.
- The JSF 1.2 components have a
validatorExpressionproperty instead of
Dropping a validator on a component adds the validator to the page but does not set the
validatorExpressionproperty for the component. You still have to choose it from the dropdown list for the validatorExpression.
- There are no API references in dynamic window. Instead choose Help > Javadoc References to choose from list of available Javadoc. Or use Tools > Javadoc Index Search. The Javadoc for the application model is in install-dir
miniproperty for the Button component has no effect. Nor does the
typeproperty for the Inline Help component. You have do make your own CSS styles now.
- For JSF 1.2, the component's id (or
labelif the labes is set) by default shows up in the messages sent to the Message and Message Group components. There are ways to customize the validator messages. See Ed Burn's blog.
- For information on importing JSC projects into Visual Web Pack, see James' October 31 blog on "Studio Creator to Visual Web Pack: Making the Move."