10 Must-Have Attributes of a Next-Gen IT Manager
Posted using ShareThis
Web application R&D notes, from the world of Java, Flex, CSS, XHTML, Flash, .NET, cross-browser compatibility, JavaScript, AJAX, ADA compliance, Photoshop, and any and all things related to Web development!
22 August 2009
21 August 2009
20 August 2009
18 August 2009
Auto-generate Java getter/setter methods in Eclipse
The Eclipse IDE is a powerful tool for Java development. One feature I just discovered: How to automatically generate getter/setter methods (properties) for your classes.
In your class, place your cursor on a private member, and you'll notice a yellow underline and a little popup with options. One of them is "Create getter and setter for 'myPrivateVariable'". Simply click this choice and Eclipse displays a dialog to choose getter and setter method names as well as other options. You can also access this getter/setter auto-generate functionality by placing your cursor on a private field and then going to Refactor > Encapsulate Field.
In your class, place your cursor on a private member, and you'll notice a yellow underline and a little popup with options. One of them is "Create getter and setter for 'myPrivateVariable'". Simply click this choice and Eclipse displays a dialog to choose getter and setter method names as well as other options. You can also access this getter/setter auto-generate functionality by placing your cursor on a private field and then going to Refactor > Encapsulate Field.
13 August 2009
Using custom property file in Seam email template
This was a challenge to track down, and I thought it might help others. For my current project, I'd included an <f:loadBundle/> in the XHTML Facelets' template, thinking it would be available to all pages. Well, the Seam email template, which uses the <m:message/> tag, isn't using the template, and thus it couldn't see the properties file.
Solution was simple: Throw in the same <f:loadBundle/> into the Seam email file, just below the <m:message/> opening tag.
Solution was simple: Throw in the same <f:loadBundle/> into the Seam email file, just below the <m:message/> opening tag.
Subscribe to:
Posts (Atom)