2008-04-30
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...
2008-03-11
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...
2008-02-01
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...
2008-01-28
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...
2007-11-23
@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}...
2007-11-19
to get the page ID of the current page = #{facesContext.viewRoot.viewId}...
2007-10-30
<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...
2007-09-12
Fields within Jboss Seam are magically populated by Seam fairies
Don't try to work out how or why.. they just are...
2007-09-10
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...
2007-07-25
just a quick note on how to do database drive drop-downs and static list boxes in jsf...