Foreign Key Constraints and Persistence Issues in Seam


2008-04-30 Digg! icurtain Delcious icurtain
public String persist() { //this forces the persist function to persist IbUser before Rcs User and avoids the FKC issue getEntityManager().persist(getInstance().getIbUser()); return super.persist(); } finding values through hibernate @Override public String persist(){ //c...

Vista Style Buttons CSS


2008-03-11 Digg! icurtain Delcious icurtain
Vista Style Buttons CSS
Resizable Vista style buttons with a gradient in XHTML/CSS As I had to spend an entire afternoon trying to get these to work I might as well post them To get your lovely Vista Style buttons just screen shot Vista or make a rectangle with 2 gradients that meet.. then add a boarder and blend the c...

Seam - Database Image to Screen Output


2008-02-01 Digg! icurtain Delcious icurtain
front end a4j:mediaOutput id = "telephone" element = "img" mimeTye = "image/png" createContent = "#{imagePainter.drawImage}" value="#{object.instance.objectId}" in this code the object id is handed to the drawImage funtion - this function then looks up the recor...

Cannot insert explicit value for identity column


2008-01-28 Digg! icurtain Delcious icurtain
ERROR [org.hibernate.util.JDBCExceptionReporter] Cannot insert explicit value for identity column in table 'table' when IDENTITY_INSERT is set to OFF. ERROR [org.hibernate.event.def.AbstractFlushingEventListener] Could not synchronize database state with session org.hibernate.exception.Constra...

seam back end code references


2007-11-23 Digg! icurtain Delcious icurtain
@Name sets the front end reference point to the entity bean @Name("userList") public class UserList extends EntityQuery { User user = new User(); public User getUser(){ return user; } } Front end the references it via #{userList.user}...

JSF RichFaces - Get Page Name


2007-11-19 Digg! icurtain Delcious icurtain
to get the page ID of the current page = #{facesContext.viewRoot.viewId}...

drop-down box in RichFaces


2007-10-30 Digg! icurtain Delcious icurtain
<div style="float:left;">     <input type="button" onclick="hideDiv({duration:0.7})" value="Hide" />     <input type="button" onclick="showDiv()" value="Show" />     <rich:effect   name="hideDiv"   for="bubox" type...

Seam Fairies


2007-09-12 Digg! icurtain Delcious icurtain
Fields within Jboss Seam are magically populated by Seam fairies Don't try to work out how or why.. they just are...

Jboss Seam PermGen space crash


2007-09-10 Digg! icurtain Delcious icurtain
HTTP Status 500 - -------------------------------------------------------------------------------- type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Serv...

Static and Dynamic List Options in JavaServer Faces


2007-07-25 Digg! icurtain Delcious icurtain
just a quick note on how to do database drive drop-downs and static list boxes in jsf...