[JBoss Seam] - Re: Seam and Richfaces : Drag and Drop Problem
by ghiormar
this also happened to me.
but when i set UseJBossWebLoader=true
but now my backing bean dosen't find the ajax4jsf.jar and richfaces.jar in my WEB-INF\lib folder, and fails to deploy.
It fails when it has to to call processDrop with org.ajax4jsf.dnd.event.DropEvent argument.
I tried to put the jars in the server/deploy/lib but now it gets
| 2007-04-23 16:04:21,090 WARN [org.apache.myfaces.config.FacesConfigurator] More than one managed
| bean w/ the name of 'a4j' - only keeping the last
| 2007-04-23 16:04:21,090 WARN [org.apache.myfaces.config.FacesConfigurator] More than one managed
| bean w/ the name of 'a4jSkin' - only keeping the last
| 2007-04-23 16:04:21,090 WARN [org.apache.myfaces.config.FacesConfigurator] More than one managed
| bean w/ the name of 'ajaxContext' - only keeping the last
|
when i deploy the first time it works fine. but when i redeploy the time stamp on the jar in WEB-INF/lib change and if i don't copy them againg to server/deploy/lib i get:
javax.servlet.ServletException: loader constraints violated when linking org/ajax4jsf/dnd/Draggable class
|
my question is how can i get around this?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039836#4039836
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039836
19 years
[EJB 3.0] - Problem with composite Primary key which is also a foreign k
by imranpariyani
hello,
I have a entity like:
public class Parent implements Serializable {
@OneToMany(cascade =CascadeType.ALL, mappedBy = "site", fetch=FetchType.EAGER)
@OrderBy("position ASC")
@Sort(type = SortType.NATURAL)
private SortedSet childs;
// method for adding the child object :
public void addChild(Child child) {
if(this.childs==null)
this.childs=new TreeSet();
child.set(this);
this.childs.add(child);
}
}
and the child class as follows:
@Entity
@IdClass(ChildPK.class)
@Table(name = "child")
public class Child implements Serializable, Comparable {
@Id
private int parentId;
@Id
private Language language;
@ManyToOne(cascade = CascadeType.ALL, fetch = FetchType.LAZY, optional = false)
@JoinColumn(name = "parent_id",nullable = false,insertable = false, updatable = false, referencedColumnName = "id", columnDefinition = "parent_id INT NOT NULL")
private Parent parent;
}
And the primary key class as follows :
public final class ChildPK implements Serializable {
@Column(name = "parent_id",insertable = false, updatable = false, nullable = false)
private int parentId;
@Enumerated(EnumType.STRING)
private Language language;
public boolean equals(Object other) {.....}
}
now the problem is if i am inserting a new parent with a new child .. it inserts the parent and then tries to insert the child with the parentId(foreign key) as 0 ...
in other case where there is no composite key it inserts the parent and then gets the autogenerated parent id and assigns it the child and then inserts the child .. why dosent that happen with the child with composite key.
What am i doing worng?
Any help would be appreciated
Regards
Imran
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039831#4039831
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039831
19 years