![]() 2) Preparing styles Before creating templates, we'll copy the ICEfaces styles and icons from component-suite project to our project first. You may use your own styles if you had one already. Go to \samples\component-showcase\common-web\css to \WebContent\WEB-INF\css.Copy three css files: showcase_layout.css, showcase_overrrides.css and showcase_styles.css and also the images folder.Paste all the files to your project css folderģ) Creating and applying template files Now, we've got read-made styles and icons.Then, we gotta create our own templates which are header, footer, default-template jspx files. Add styles called, the following code, before tag.Ĭreate default-template.jspx file under templates folder using New JSP File Wizard, explained in previous post " Creating New JSPX File". Replace the tags with the following code which will use the specific title defined by applied pages # 9. Save all the files, then Export as WAR file and deploy to your tomcat as explained in previou post, " Configuring and Deploying Web Application". now, open your web site from browser and you will see the nice welcome page with cool styles.!!!Īfter creating index.jspx, we've to create welcome page, so called index.xhtml, and add this welcome page to web configuration and redirect to index.jspx using ICEface Servlet.ġ. Create index.xhtml file in the same folder where you created index.jspxĢ. Seriesstateholder icefaces code#Įnter the following code to index.xhtmlĢ. overwrite web.xml file, which is under WEB-INF folder, with the following code:Ĭustomer Relationship Management Web ApplicationĬom.PersistentFacesServletĬom.BlockingServletģ. ![]() Copy the following libs, jar files, from \lib to \WebContent\WEB-INF\libĤ. Right-click on the crm-web-project, select Export-> WAR file from pop-up menu as shown in figure:ĥ. Select your \webapps folder as Destination as shown in figure:Ħ. Select Overwrite existing file to overwite next time when you export war file againħ. Click Finish to complate war file generationĨ. Start Tomcat 6.0, (Restart if already sarted)ĩ. Then connect your web application using browser and url: 10. Congradulation! You've successfully created ICEface application. You'll see the first line of " Tank you for using ICEfaces. In next post, we'll start working on the style and ICEface UI Components.įirst of all, open Eclipse IDE, i) Opening Eclipse, then create new dynamic web project ii) Creating Dynamic Web Project.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |