![xmlns icefaces xmlns icefaces](https://hobione.files.wordpress.com/2008/03/facelets2.jpg)
G2d.setComposite(AlphaComposite.getInstance(AlphaComposite.CLEAR)) īufferedImage bi2 = new BufferedImage(img1.getWidth(), img1.getHeight(), BufferedImage.TYPE_INT_RGB) clear the composite, so that it doesn't affect the second image Graphics2D g2d = (Graphics2D)bi.getGraphics() ĪlphaComposite alphaComposite = AlphaComposite.getInstance( AlphaComposite.SRC_OVER, alphaValue ) Post me questions in case you have any.īufferedImage img1 = ImageIO.read(new File("C:\\bun.JPG")) īufferedImage img2 = ImageIO.read(new File("C:\\flower.JPG")) īi = new BufferedImage(img2.getWidth(), img2.getHeight(), BufferedImage.TYPE_INT_ARGB)
Xmlns icefaces code#
Please find the code to merge two images in java below. Now right click on your project in the project explorer and run as Run On Server ( choose tomcat which you have set up earlier ).Īnd access ur app using I could get this working, ping me if the case is otherwise for you :0) ĪBQIAAAADlu0ZiSTam64EKaCQr9eTRTOTuQNzJNXRlYRLknj4cQ89tFfpxTEqxQnVWL4k55OPICgF5_SOZE06AĬom.PersistentFacesServletĬom.BlockingServletĬom.FileUploadServletĬom.servlet.ContextEventRepeaterĥ: Now you are just inches away from setting up your dev environment:Ĭreate a new html file test.html under WebContent/test.xhtml directory in eclipse and as above copy the and paste the code below :-)Ħ: Phew! that was some amount of work. of Developer Guide.Ī Google Maps API key is required if gMap component is used. See Synchronous and Asynchronous Updates in Chapter 3. Turn on/off application-wide synchronous or asynchronous updates.
Xmlns icefaces windows#
To allow multiple windows for a single application. Create faces-config.xml and copy the below code into it:Ĭom.2DFaceletViewHandlerĤ: Open your web.xml and clear everything in it and copy the code below:Ĭom.11Compatibility
![xmlns icefaces xmlns icefaces](https://i.stack.imgur.com/T4DhI.jpg)
Under WEB-INF/lib copy in the following jarsģ.
![xmlns icefaces xmlns icefaces](http://i.stack.imgur.com/X0igw.png)
Create a new dynamic web project in EclipseĮasy : Use File -> New -> Dyanamic Web ProjectĢ. PS: At the time of writing I was using Eclipse 3.4 Ganymede, Icefaces 1.72 and Tomcat 6.0.18.ġ. So if you find anything confusing please excuse :-) This is more of a self note than a proper blog.