[JBoss Seam] - Re: Seam Flex Integration, How Easy It Is!
by thinkblue
Hey Cingram,
I downloaded your Seam Flex example and I was able to deploy and run it without any errors....The only problems that I ran into are the following:
1) When using Firefox or IE7 after filling in the text field and clicking the "Say Hello" button I get a Seam Debug window that pops up...This is what was in it:
| Mon Oct 15 00:04:44 PDT 2007: Request packet:
| <envelope><header><context></context></header><body><call component="helloAction" method="sayHello" id="0">
| <params><param><str>Blue</str></param></params><refs></refs></call></body></envelope>
|
| Mon Oct 15 00:04:44 PDT 2007: Response packet:
| <envelope><header><context><conversationId>5</conversationId></context></header><body><result id="0"><value><str>Hello%2C%20Blue</str></value><refs></refs></result></body></envelope>
|
Is this the expected behavior?
2) With IE7 after clicking the "Say Hello" button I get the Seam Debug Window and IE7 gets a javascript error which indicates:
| Line: 49
| Char: 7
| Error: 'FABridge.flash' is null or not an object
| Code: 0
| URL: http://localhost:8080/seam-helloworld/flexhelloworld.html
|
With Firefox I don't get a javascript error...
I have a clean install of Seam 2.0...I'm on JBoss Server 4.2...Flash 9 player...Let me know if you need any further information about my setup.
If anyone could help me out with these things I would greatly appreciate it.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095105#4095105
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095105
18Â years, 9Â months
[EJB 3.0] - Re: How to define unique constraint on foreign keys ?
by chawax
Thanks. But what I need is a unique constraint on multiple columns, including columns that are foreign keys.
Anyway, I solved my problem by using the attribute "name" of the JoinColumn annotation instead of the property name.
@javax.persistence.Table(
| name = "UNITE_EMPLOYE",
| uniqueConstraints = {
| @javax.persistence.UniqueConstraint(columnNames = {"EMPLOYE_FK", "NOEUD_ORGANISATION_FK"})})
|
What is strange is that in the Hibernate documentation, it is said :
anonymous wrote : The @Table element also contains a schema and a catalog attributes, if they need to be defined. You can also define unique constraints to the table using the @UniqueConstraint annotation in conjunction with @Table (for a unique constraint bound to a single column, refer to @Column).
|
| @Table(name="tbl_sky",
| uniqueConstraints = {@UniqueConstraint(columnNames={"month", "day"})}
| )
|
| A unique constraint is applied to the tuple month, day. Note that the columnNames array refers to the logical column names.
Am I wrong when I think that logical column name is the property name of the entity bean ? Or maybe there's a difference between Hibernate and EJB3 entities about this ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095104#4095104
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095104
18Â years, 9Â months