OK, some more problems. I was trying a bit more complicated example.
I had some tabls like the following: mysql> show create table user;show create table article;show create table commen | t; | +-------+----------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------+ | | Table | Create Table | | | | +-------+----------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------+ | | user | CREATE TABLE `user` ( | `username` varchar(50) NOT NULL, | `email` varchar(255) NOT NULL, | PRIMARY KEY (`username`) | ) ENGINE=InnoDB DEFAULT CHARSET=latin1 | | +-------+----------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------+ | 1 row in set (0.22 sec) | | +---------+--------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------+ | | Table | Create Table | | | | | | +---------+--------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------+ | | article | CREATE TABLE `article` ( | `id` int(10) unsigned NOT NULL auto_increment, | `username` varchar(50) NOT NULL, | `title` varchar(100) NOT NULL, | `text` text NOT NULL, | PRIMARY KEY (`id`), | KEY `username` (`username`), | CONSTRAINT `article_ibfk_1` FOREIGN KEY (`username`) REFERENCES `user` (`usern | ame`) ON UPDATE CASCADE | ) ENGINE=InnoDB DEFAULT CHARSET=latin1 | | +---------+--------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------+ | 1 row in set (0.03 sec) | | +---------+--------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | --------------------+ | | Table | Create Table | | | | | | | | | +---------+--------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | --------------------+ | | comment | CREATE TABLE `comment` ( | `id` int(10) unsigned NOT NULL, | `username` varchar(50) NOT NULL, | `article_id` int(10) unsigned NOT NULL, | `title` varchar(100) NOT NULL, | `comment` text NOT NULL, | PRIMARY KEY (`id`), | KEY `username` (`username`), | KEY `article_id` (`article_id`), | CONSTRAINT `comment_ibfk_1` FOREIGN KEY (`username`) REFERENCES `user` (`usern | ame`) ON DELETE CASCADE ON UPDATE CASCADE, | CONSTRAINT `comment_ibfk_2` FOREIGN KEY (`article_id`) REFERENCES `article` (` | id`) ON DELETE CASCADE ON UPDATE CASCADE | ) ENGINE=InnoDB DEFAULT CHARSET=latin1 | | +---------+--------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | --------------------+ | 1 row in set (0.01 sec) | | mysql> so, i run seam generate-entities using this database, and a project I called blog. It builds successfully, but I get some errors when I go to the project at http://localhost:8080/blog The first noticeable thing is that when i go to create an article, or a user, etc, I get an error about requiring an ending s:button tag. When I looked at the template, for one of the tags, there was an s:button, but s:link was used to close it. I don't know why is this happening. I'm guessing it is some bug. I figured this wasn't too complicated of an example to test on, but I don't know. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990723#3990723 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990723 _______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
