Edited topics dev_e2e_prazak
authorjbranam@netbeans.org
Wed, 01 Aug 2007 12:56:21 +0000
changeset 1210607d20e5ab71
parent 1209 acd6377965dc
child 1211 346365d0668c
Edited topics
visualweb.ravehelp.rave_nbpack/javahelp/org/netbeans/modules/visualweb/ravehelp/rave_nbpack/docs/projects/howtoprojects/create_sample_app.html
     1.1 --- a/visualweb.ravehelp.rave_nbpack/javahelp/org/netbeans/modules/visualweb/ravehelp/rave_nbpack/docs/projects/howtoprojects/create_sample_app.html	Wed Aug 01 02:41:15 2007 +0000
     1.2 +++ b/visualweb.ravehelp.rave_nbpack/javahelp/org/netbeans/modules/visualweb/ravehelp/rave_nbpack/docs/projects/howtoprojects/create_sample_app.html	Wed Aug 01 12:56:21 2007 +0000
     1.3 @@ -1,1 +1,1 @@
     1.4 -<html>
     1.5 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
     1.6 <!--
     1.7  * Copyright © 2007 Sun Microsystems, Inc.
     1.8  * All rights reserved. 
     1.9  * Use is subject to license terms.
    1.10 -->
    1.11 <head>
    1.12  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    1.13  	 <title>Creating a Sample Application</title>
    1.14  	 <link rel="stylesheet" href="nbdocs:/org/netbeans/modules/usersguide/ide.css" type="text/css">
    1.15  </head>
    1.16 
    1.17 <body>
    1.18 <h2>Creating a Sample Application</h2>
    1.19 <p><small><a href="#seealso">See Also</a></small> | <small><a href="#tutorials">Tutorials</a></small></p>
    1.20 <p>There are two sample applications for projects that use the visual web JavaServer Faces framework. 
    1.21 
    1.22 
    1.23  To use a sample application, you must create a new Visual Web project that uses the application, and then connect the project to the sample database if one is provided.
    1.24 <ul class="note">
    1.25 
    1.26   <li>Updates to the IDE might include new sample databases and sample applications for visual web devlopment. After an update, to see if there are new sample applications, choose File &gt; New Project to open the New Project wizard, and then choose Samples &gt; Web to see the list of sample applications in the right pane.</li> </ul>
    1.27 
    1.28 <p>This topic covers the following subjects:</p>
    1.29 <p>&nbsp;&nbsp;&nbsp;<a href="#setup">Setting up the IDE</a><br>
    1.30   &nbsp;&nbsp;&nbsp;<a href="#create">Creating a Sample Application</a><br>
    1.31   &nbsp;&nbsp;&nbsp;<a href="#connect">Connecting to a Java DB Database</a><br>
    1.32   &nbsp;&nbsp;&nbsp;<a href="#viewdata">Viewing Data in a  Database</a>
    1.33 </p>
    1.34 <h3>Setting up the IDE<a name="setup"></a></h3>
    1.35 <ol>
    1.36 <li> <a href="nbdocs:/org/netbeans/modules/j2ee/sun/ide/docs/general/register_appserver.html">Register</a> an instance of the <a href="nbdocs:/org/netbeans/modules/j2ee/sun/ide/docs/general/aboutplugin.html">Sun Java System Application Server</a>.</li>
    1.37 <li>Restart the IDE.</li>
    1.38 <li>In the main toolbar, choose Tools &gt; Java DB Database &gt; Start Java DB Server.</li>
    1.39 <ul class="note"><li>For troubleshooting, see <object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
    1.40              <param name="content" value="http://www.netbeans.org/community/releases/60/install.html">
    1.41              <param name="text" value="Configuration Information in the Installation Instructions.">
    1.42 </object> </li></ul>
    1.43 </ol>
    1.44 <h3><b>Creating a Sample Application<a name="create"></a></b></h3>
    1.45 <ol>
    1.46   <li>Choose File &gt; New Project. <p>
    1.47  	   The New Project Wizard opens.
    1.48  	 </p></li>
    1.49   <li> In the Categories pane of the <a href="nbdocs:/org/netbeans/modules/usersguide/project/csh/proj_wiz.html">New Project Wizard</a>, expand the Samples node and select  Web.</li>
    1.50   <li>Select the sample project from the Projects pane and click Next to continue. </li>
    1.51   <li>Type the name of the project in the Project Name field. <p>The IDE suggests a name that you can edit. </p></li>
    1.52   <li>Based on the project name, the IDE suggests the Project Location and Project Folder. You can change the project location
    1.53     <p>The IDE creates a folder name based on the information you enter.</p></li>
    1.54  	   
    1.55 	<li>Click Finish to create the project. </li>
    1.56 </ol>
    1.57   <h3><b>Connecting  to a  Java DB Database<a name="connect"></a></b></h3>
    1.58   <ol>
    1.59     <li>Make sure that the Java DB Database is running. </li>
    1.60     <li>In the
    1.61         <object classid=java:com.sun.java.help.impl.JHSecondaryViewer>
    1.62           <param name="content" value="../../ui_elements/server_nav/services_win_popup.html">
    1.63           <param name="viewerActivator" value="javax.help.LinkLabel">
    1.64           <param name="viewerStyle" value="javax.help.Popup">
    1.65           <param name="viewerSize" value="325,175">
    1.66           <param name="text" value="Services window">
    1.67         </object>
    1.68         , expand the Databases node <img src="../../images/databasenodeicon.gif" alt="Database node icon">, right-click the database you want to access, and choose Connect.</li>
    1.69     <li>Enter the User ID and Password. <ul class="note">
    1.70       <li>For  Java DB databases included with the Sun Java System Application Server 9.1, the password is the same as the user ID. For example, for the Travel database the username and password are both <code>travel</code>. </li>
    1.71     </ul></li>
    1.72     <li>The IDE connects the database, making the data accessible. </li>
    1.73   </ol>
    1.74   <h3><b>Viewing Data in a Database<a name="viewdata"></a></b></h3>
    1.75   <ol>
    1.76   <li>Connect to the database.</li>
    1.77   <li>Expand the <i>database-name</i> node.</li>
    1.78 
    1.79   <li>Expand the Tables  folder and select the item you want to view. </li>
    1.80   <li>Right-click the item and choose View Data.
    1.81 <p>The table or view opens in the <a href="../../ui_elements/editors/about_query_editor.html">Visual SQL Editor</a>.</p>
    1.82     </li>
    1.83   </ol>
    1.84 <dl> 
    1.85   <dt><a name="seealso">See Also</a></dt>
    1.86   <dd><a href="nbdocs://org.netbeans.modules.usersguide/org/netbeans/modules/db/docs/connectdb.html">Adding a Database Connection</a></dd>
    1.87 
    1.88   <dd><a href="../../connect_data/about_data_binding.html">About Binding Components to Data</a></dd>
    1.89   <dd><a href="../../connect_data/howtodata/add_table_to_page.html">Adding a Database Table to a Page</a></dd>
    1.90 </dl>
    1.91 <dl>
    1.92 <dt><a name="tutorials">Tutorials</a></dt>
    1.93 
    1.94 <dd>
    1.95 <object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
    1.96 		<param name="content" value="http://www.netbeans.org/kb/55/vwp-intro.html">
    1.97 		<param name="text" value="Getting Started With NetBeans Visual Web Pack 5.5">
    1.98 </object>
    1.99 </dd>
   1.100 
   1.101 </dl>
   1.102 <hr>   
   1.103 <!-- Start Customer Feedback Link -->
   1.104 <!-- <p><b>Comments or questions?</b><br>
   1.105 Use the link below to connect to the Visual Web Development contact page. </p>
   1.106   <object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
   1.107     <param name="viewerActivator" value="javax.help.LinkButton">
   1.108     <param name="content" value="http://www.netbeans.org/about/contact_form.html?to=3&subject=Feedback:%20Web%20Application%20Help:%20Creating a Sample Application">
   1.109     <param name="text" value="<html><u>Click here to send feedback</u></html>">
   1.110     <param name="textFontFamily" value="SansSerif">
   1.111   </object><br>
   1.112 <!-- End Customer Feedback Link -->
   1.113   <small><a href="../../credits.html">Legal Notices</a></small> 
   1.114 
   1.115 <table cellpadding="50" border="0">
   1.116   <tr>
   1.117     <td>&nbsp;</td>
   1.118   </tr>
   1.119 </table>
   1.120 
   1.121 </body>
   1.122 </html>
   1.123 \ No newline at end of file
   1.124 +<html>
   1.125 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
   1.126 <!--
   1.127  * Copyright © 2007 Sun Microsystems, Inc.
   1.128  * All rights reserved. 
   1.129  * Use is subject to license terms.
   1.130 -->
   1.131 <head>
   1.132  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   1.133  	 <title>Creating a Sample Application</title>
   1.134  	 <link rel="stylesheet" href="nbdocs:/org/netbeans/modules/usersguide/ide.css" type="text/css">
   1.135  </head>
   1.136 
   1.137 <body>
   1.138 <h2>Creating a Sample Application</h2>
   1.139 <p><small><a href="#seealso">See Also</a></small> | <small><a href="#tutorials">Tutorials</a></small></p>
   1.140 <p>There are two sample applications for projects that use the visual web JavaServer Faces framework. 
   1.141 
   1.142 
   1.143  To use a sample application, you must create a new Web project with the JSF framework that uses the application, and then connect the project to the sample database if one is provided.
   1.144 <ul class="note">
   1.145 
   1.146   <li>Updates to the IDE might include new sample databases and sample applications for visual web devlopment. After an update, to see if there are new sample applications, choose File &gt; New Project to open the New Project wizard, and then choose Samples &gt; Web to see the list of sample applications in the right pane.</li> </ul>
   1.147 
   1.148 <p>This topic covers the following subjects:</p>
   1.149 <p>&nbsp;&nbsp;&nbsp;<a href="#setup">Setting up the IDE</a><br>
   1.150   &nbsp;&nbsp;&nbsp;<a href="#create">Creating a Sample Application</a><br>
   1.151   &nbsp;&nbsp;&nbsp;<a href="#connect">Connecting to a Java DB Database</a><br>
   1.152   &nbsp;&nbsp;&nbsp;<a href="#viewdata">Viewing Data in a  Database</a>
   1.153 </p>
   1.154 <h3>Setting up the IDE<a name="setup"></a></h3>
   1.155 <ol>
   1.156 <li> <a href="nbdocs:/org/netbeans/modules/j2ee/sun/ide/docs/general/register_appserver.html">Register</a> an instance of the <a href="nbdocs:/org/netbeans/modules/j2ee/sun/ide/docs/general/aboutplugin.html">Sun Java System Application Server</a>.</li>
   1.157 <li>Restart the IDE.</li>
   1.158 <li>In the main toolbar, choose Tools &gt; Java DB Database &gt; Start Java DB Server.</li>
   1.159 <ul class="note"><li>For troubleshooting, see <object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
   1.160              <param name="content" value="http://www.netbeans.org/community/releases/60/install.html">
   1.161              <param name="text" value="Configuration Information in the Installation Instructions.">
   1.162 </object> </li></ul>
   1.163 </ol>
   1.164 <h3><b>Creating a Sample Application<a name="create"></a></b></h3>
   1.165 <ol>
   1.166   <li>Choose File &gt; New Project. <p>
   1.167  	   The New Project Wizard opens.
   1.168  	 </p></li>
   1.169   <li> In the Categories pane of the <a href="nbdocs:/org/netbeans/modules/usersguide/project/csh/proj_wiz.html">New Project Wizard</a>, expand the Samples node and select  Web.</li>
   1.170   <li>Select the sample project from the Projects pane and click Next to continue. </li>
   1.171   <li>Type the name of the project in the Project Name field. <p>The IDE suggests a name that you can edit. </p></li>
   1.172   <li>Based on the project name, the IDE suggests the Project Location and Project Folder. You can change the project location
   1.173     <p>The IDE creates a folder name based on the information you enter.</p></li>
   1.174  	   
   1.175 	<li>Click Finish to create the project. </li>
   1.176 </ol>
   1.177   <h3><b>Connecting  to a  Java DB Database<a name="connect"></a></b></h3>
   1.178   <ol>
   1.179     <li>Make sure that the Java DB Database is running. </li>
   1.180     <li>In the
   1.181         <object classid=java:com.sun.java.help.impl.JHSecondaryViewer>
   1.182           <param name="content" value="../../ui_elements/server_nav/services_win_popup.html">
   1.183           <param name="viewerActivator" value="javax.help.LinkLabel">
   1.184           <param name="viewerStyle" value="javax.help.Popup">
   1.185           <param name="viewerSize" value="325,175">
   1.186           <param name="text" value="Services window">
   1.187         </object>
   1.188         , expand the Databases node <img src="../../images/databasenodeicon.gif" alt="Database node icon">, right-click the database you want to access, and choose Connect.</li>
   1.189     <li>Enter the User ID and Password. <ul class="note">
   1.190       <li>For  Java DB databases included with the Sun Java System Application Server 9.1, the password is the same as the user ID. For example, for the Travel database the username and password are both <code>travel</code>. </li>
   1.191     </ul></li>
   1.192     <li>The IDE connects the database, making the data accessible. </li>
   1.193   </ol>
   1.194   <h3><b>Viewing Data in a Database<a name="viewdata"></a></b></h3>
   1.195   <ol>
   1.196   <li>Connect to the database.</li>
   1.197   <li>Expand the <i>database-name</i> node.</li>
   1.198 
   1.199   <li>Expand the Tables  folder and select the item you want to view. </li>
   1.200   <li>Right-click the item and choose View Data.
   1.201 <p>The table or view opens in the <a href="../../ui_elements/editors/about_query_editor.html">Visual SQL Editor</a>.</p>
   1.202     </li>
   1.203   </ol>
   1.204 <dl> 
   1.205   <dt><a name="seealso">See Also</a></dt>
   1.206   <dd><a href="nbdocs://org.netbeans.modules.usersguide/org/netbeans/modules/db/docs/connectdb.html">Adding a Database Connection</a></dd>
   1.207 
   1.208   <dd><a href="../../connect_data/about_data_binding.html">About Binding Components to Data</a></dd>
   1.209   <dd><a href="../../connect_data/howtodata/add_table_to_page.html">Adding a Database Table to a Page</a></dd>
   1.210 </dl>
   1.211 <dl>
   1.212 <dt><a name="tutorials">Tutorials</a></dt>
   1.213 
   1.214 <dd>
   1.215 <object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
   1.216 		<param name="content" value="http://www.netbeans.org/kb/55/vwp-intro.html">
   1.217 		<param name="text" value="Getting Started With NetBeans Visual Web Pack 5.5">
   1.218 </object>
   1.219 </dd>
   1.220 
   1.221 </dl>
   1.222 <hr>   
   1.223 <!-- Start Customer Feedback Link -->
   1.224 <!-- <p><b>Comments or questions?</b><br>
   1.225 Use the link below to connect to the Visual Web Development contact page. </p>
   1.226   <object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
   1.227     <param name="viewerActivator" value="javax.help.LinkButton">
   1.228     <param name="content" value="http://www.netbeans.org/about/contact_form.html?to=3&subject=Feedback:%20Web%20Application%20Help:%20Creating a Sample Application">
   1.229     <param name="text" value="<html><u>Click here to send feedback</u></html>">
   1.230     <param name="textFontFamily" value="SansSerif">
   1.231   </object><br>
   1.232 <!-- End Customer Feedback Link -->
   1.233   <small><a href="../../credits.html">Legal Notices</a></small> 
   1.234 
   1.235 <table cellpadding="50" border="0">
   1.236   <tr>
   1.237     <td>&nbsp;</td>
   1.238   </tr>
   1.239 </table>
   1.240 
   1.241 </body>
   1.242 </html>
   1.243 \ No newline at end of file