Things I wish I'd Known Earlier

But learned the hard way!

AuthorTim

PrettyFaces downstream effects

Written by Tim on May 22, 2009

Latest in the ongoing story of why even the simple things take much longer than they should: I’m working on an app where the menus generate PrettyFaces bookmarkable URLs. However, when I jump to the target page, then click on a commandLink, the secondary target page won’t post properly. When ( more… )

Posted In Enterprise Java

Myfaces Extensions Validator and RichFaces (Not yet)

Written by Tim on February 18, 2009

The MyFaces extensions validator package looks like someday it will make life a lot more pleasant when designing JSF backing beans. Instead of cluttering up the markup with cumbersome extra XML, the MyFaces Extensions Validator allows you to annotation the backing bean properties. It even adopts the applicable annotations (such ( more… )

Posted In Enterprise Java | Java Persistence Architecture (JPA) and related ORM
Tagged JSF Myfaces validate broken

org.hibernate.PropertyAccessException: could not get a field value by reflection getter of com.mypackage.MyEntity.entityId

Written by Tim on February 8, 2009

There are reports that messages of this sort were due to bugs in one or more Hibernate releases. But this is also a legitimate error. I wasted a lot of time before it hit me. The original code was: @SuppressWarnings(“unchecked”) public List<State> getStatesForCountry(String countryID) { final String SQLCOMMAND = “SELECT ( more… )

Posted In Better Software Design | Enterprise Java | Java Persistence Architecture (JPA) and related ORM
Tagged annoyances jpa hibernate

Writing files into a WAR – Another BAD IDEA

Written by Tim on February 3, 2009

I’ve always recommended against this. For one thing, a WAR is a ZIP file and Java has no builtin support for updating ZIP files. A lot of people abuse the fact that many JEE servers unpack (explode) WARs into a directory such as Tomcat’s webapps directory. They then proceed to ( more… )

Posted In Bad Practices | Better Software Design | Enterprise Java
Tagged amateurgrammers

JSF/Facelets/RichFaces – and Maven

Written by Tim on November 16, 2008

SF itself is fairly straightforward. Getting it functional in an appserver is another matter. Originally, I used MyFaces and Tomahawk. More recently, I’ve replaced MyFaces with the Sun JSF Reference Implementation (RI). Tomahawk, although a MyFaces library works just fine with the RI. The JSF-impl jar is part of the ( more… )

Posted In Enterprise Java
Tagged Facelets | JSF | Maven | RichFaces | Tomahawk | Tomcat | tomcat5 | tomcat6

OpenJPA/Spring/Tomcat6

Written by Tim on November 16, 2008

Oh, what a tangled web we weave… In theory, using JPA and Spring is supposed to make magical things happen that will make me more productive and allow me to accomplish wonderful things. Someday. At the moment, I gain tons of productivity only to waste it when deployment time comes ( more… )

Posted In Enterprise Java | Java Persistence Architecture (JPA) and related ORM
Tagged hibernate | JPA | spring | Tomcat | tomcat6

Why Do-it-Yourself Java Security is a BAD THING

Written by Tim on November 10, 2008

One of my greatest peeves in working with Java in the Enterprise is the fact that everyone+dog seems to think they can do a better job on application security than the Java architects. OK, so there’s some really awful stuff that’s part of the Java standards, but nevertheless, rolling your ( more… )

Posted In Better Software Design | Enterprise Java | Random maniacal ravings
Tagged design | security

Why Software Projects Should Not Depend on an IDE

Written by Tim on November 10, 2008

disclaimer: I’m about to show my age. My first “IDE” was an IBM 029 keypunch machine. I keyed programs in FORTRAN, COBOL, Assembler and PL/1. When I messed up, I threw away the defective cards and punched new ones. After waiting in line for a free keypunch machine. Over the ( more… )

Posted In Better Software Design | Enterprise Java | Random maniacal ravings
Tagged IDE

JBoss and OpenJPA

Written by Tim on August 1, 2008

I developed my Technology Sandbox app using OpenJPA under Tomcat6. Since JBoss 4.2 has its own persistency mechanisms (EJB3 and Hibernate), it looked like some changes might be required to port it. It turns out that very little needed to be done. The most important thing is to get a ( more… )

Posted In Enterprise Java | Java Persistence Architecture (JPA) and related ORM
Tagged JBoss | openjpa | Tomcat Instrumentation | weaver

Embedding graphviz-generated scalable graphics in an OpenOffice Document

Written by Tim on July 23, 2008

You can insert graphics into an OpenOffice Writer document – or any of a number of other document editing programs. It’s generally a simple “Insert picture/from file…” menu option. Getting it not to look like garbage is the hard part. Most images are bitmaps and scaling bitmaps usually results in ( more… )

Posted In Stupid Linux Tricks
Tagged documents | fonts | graphviz | oowriter | scalable graphics | vector graphics

Posts navigation

Previous 1 … 4 5 6 Next

Categories

  • Android
  • Bad Practices
  • Better Software Design
  • Enterprise Java
  • Hardware
  • Internet of Things
  • Java Persistence Architecture (JPA) and related ORM
  • Libre Office
  • MillRight CNC
  • Random maniacal ravings
  • Stupid Linux Tricks
  • The Cloud
  • Uncategorized
May 2022
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
3031  
« Jun    

Categories

  • Android
  • Bad Practices
  • Better Software Design
  • Enterprise Java
  • Hardware
  • Internet of Things
  • Java Persistence Architecture (JPA) and related ORM
  • Libre Office
  • MillRight CNC
  • Random maniacal ravings
  • Stupid Linux Tricks
  • The Cloud
  • Uncategorized

Tags

Android annoyances jpa hibernate Apache Arduino attach ATTiny85 centos centos 7 configuration date/time design detach DigiSpark documents Enterprise Java Facelets floating-point fonts graphviz hibernate howto IDE Imprecise data types JBoss JPA JSF linux Maven oowriter openjpa ORM recipe RichFaces scalable graphics security spring testing Tomahawk Tomcat tomcat5 tomcat6 Tomcat Instrumentation vector graphics weaver Xen

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Copyright © 2022. Things I wish I'd Known Earlier
Powered By WordPress and Auspicious