Hmmmm , there's something new !! Anyway getting started by New Project --> web --> web application. Give project name and location --> choose server --> select framework : visual web java server faces --> Finish. Here "page1.jsp" is your welcome page , (check out a green triangle before it which means that ! ). edit design / jsp / java code as you need. Here a new feature is added in 6.1 i.e ON DEMAND BINDING. "NetBeans IDE 6.1 features on-demand binding. Where components require Java coding, you must now manually add the binding attribute to components in a Visual Web JSF application. To do so, right-click each component and choose Add Binding Attribute. For more information, see the On-demand Binding Attribute Wiki."
Check out the following docs from NetBeans.org:
Developing a Visual Web JSF Application
Navigating Pages in a Web Application
Using Page Fragments
Converting and Validating Data in Visual Web JSF Applications
Understanding Scope and Managed Beans
Getting Started with Visual Web JSF Application Development
Disclaimer
The views expressed on this blog are my own and do not necessarily reflect the views of my employer.
Showing posts with label j2ee. Show all posts
Showing posts with label j2ee. Show all posts
Friday, May 30, 2008
Tuesday, May 27, 2008
NetBeans IDE 6.1 : simple Web application
Now I have started developing web applications using NB 6.1 . Just click New project --> web --> web application. There's nothing new in setting up a new web project , I have followed the same as in 6.0.1 except an option for using a dedicated folder for storing libraries.
You can use a server of your choice : Apache Tomcat / GlassFish V2. Different frameworks are also available , select according to your need and start web programming.
As usual , "index.jsp" file will be created under Project name --> Web Pages --> WEB-INF --> index.jsp.This is your default welcome page of the program.you change the title , edit the body to write your own program. As html tags are used for designing a jsp program , netbeans provides a huge opportunity to write codes graphically. Just look at the Palette ([CTRL]+[SHIFT]+[8]) , you will find almost everything you need. If you put your mouse cursor on a button in the palette , html code will be appeared as tool tip text. simply drag and drop and design your html page."Html Forms" elements are used to take input from user and "HTML" elements are used for designing purpose.
Now write your first "Helloweb" program. Check out Docs and Support from netbeans.org : "Introduction to Developing Web Applications"
You can use a server of your choice : Apache Tomcat / GlassFish V2. Different frameworks are also available , select according to your need and start web programming.
As usual , "index.jsp" file will be created under Project name --> Web Pages --> WEB-INF --> index.jsp.This is your default welcome page of the program.you change the title , edit the body to write your own program. As html tags are used for designing a jsp program , netbeans provides a huge opportunity to write codes graphically. Just look at the Palette ([CTRL]+[SHIFT]+[8]) , you will find almost everything you need. If you put your mouse cursor on a button in the palette , html code will be appeared as tool tip text. simply drag and drop and design your html page."Html Forms" elements are used to take input from user and "HTML" elements are used for designing purpose.
Now write your first "Helloweb" program. Check out Docs and Support from netbeans.org : "Introduction to Developing Web Applications"
Subscribe to:
Posts (Atom)