First, duplicates:

After running the Seam generator in Eclipse, I do an Ant build - I get this:


  | Buildfile: C:\Documents and Settings\A428302\workspace\userlinks\build.xml
  | init:
  |      [echo] Build Seam Application
  | compile:
  |     [javac] Compiling 12 source files to C:\Documents and 
Settings\A428302\workspace\userlinks\build\classes
  |     [javac] C:\Documents and 
Settings\A428302\workspace\userlinks\src\com\sso\domain\SsoUserSelector.java:135:
 com.sso.domain.SsoUserSelector.UserLinkSsoUserSelector is already defined in 
com.sso.domain.SsoUserSelector
  |     [javac] public static class UserLinkSsoUserSelector implements 
SsoUserSelector {
  |     [javac] ^
  |     [javac] C:\Documents and 
Settings\A428302\workspace\userlinks\src\com\sso\domain\SsoUserEditor.java:25: 
createUserLink() is already defined in com.sso.domain.SsoUserEditor
  |     [javac] public String createUserLink();
  |     [javac] ^
  |     [javac] C:\Documents and 
Settings\A428302\workspace\userlinks\src\com\sso\domain\SsoUserEditor.java:26: 
selectUserLink() is already defined in com.sso.domain.SsoUserEditor
  |     [javac] public String selectUserLink();
  |     [javac] ^
  |     [javac] C:\Documents and 
Settings\A428302\workspace\userlinks\src\com\sso\domain\SsoUserEditorBean.java:148:
 selectedUserLink is already defined in com.sso.domain.SsoUserEditorBean
  |     [javac] private UserLink selectedUserLink;
  |     [javac] ^
  |     [javac] C:\Documents and 
Settings\A428302\workspace\userlinks\src\com\sso\domain\SsoUserEditorBean.java:151:
 userlinkEditor is already defined in com.sso.domain.SsoUserEditorBean
  |     [javac] private transient UserLinkEditor userlinkEditor;
  |     [javac] ^
  |     [javac] C:\Documents and 
Settings\A428302\workspace\userlinks\src\com\sso\domain\SsoUserEditorBean.java:153:
 createUserLink() is already defined in com.sso.domain.SsoUserEditorBean
  |     [javac] public String createUserLink() {
  |     [javac] ^
  |     [javac] C:\Documents and 
Settings\A428302\workspace\userlinks\src\com\sso\domain\SsoUserEditorBean.java:161:
 selectUserLink() is already defined in com.sso.domain.SsoUserEditorBean
  |     [javac] public String selectUserLink() {
  |     [javac] ^
  |     [javac] Note: Some input files use unchecked or unsafe operations.
  |     [javac] Note: Recompile with -Xlint:unchecked for details.
  |     [javac] 7 errors
  | 
  | BUILD FAILED
  | C:\Documents and Settings\A428302\workspace\userlinks\build.xml:116: 
Compile failed; see the compiler error output for details.
  | 
  | Total time: 3 seconds
  | 
  | 

When follow the first error, I find this:


  | package com.sso.domain;
  | // Generated Feb 15, 2006 12:32:42 PM by Hibernate Tools 3.1.0.beta4
  | 
  | import java.util.ResourceBundle;
  | import javax.ejb.Interceptors;
  | import javax.ejb.Local;
  | import javax.ejb.Stateless;
  | import org.jboss.annotation.ejb.LocalBinding;
  | import static org.jboss.seam.ScopeType.CONVERSATION;
  | import org.jboss.seam.annotations.Begin;
  | import org.jboss.seam.annotations.In;
  | import org.jboss.seam.annotations.JndiName;
  | import org.jboss.seam.annotations.Name;
  | import org.jboss.seam.ejb.SeamInterceptor;
  | 
  | 
  | 
  | @Local
  | public interface SsoUserSelector {
  | 
  |    public String select();
  |    public String selectNone();
  |      
  |    public String getButtonLabel();
  |    public String getPageTitle();
  |      
  |    public String cancel();
  |             
  |    public boolean isCreateEnabled();
  | 
  |    @Stateless
  |    @Name("ssouserSelector")
  |    @Interceptors(SeamInterceptor.class)
  |    public static class DefaultSsoUserSelector implements SsoUserSelector {
  |    
  |       @In
  |       private transient ResourceBundle resourceBundle;
  |     
  |       @In(create=true)
  |       private transient SsoUserEditor ssouserEditor;
  |       
  |       @In(create=true)
  |       private transient SsoUserFinder ssouserFinder;
  |       
  |       @Begin
  |       public String select() {
  |          ssouserEditor.setInstance( ssouserFinder.getSelection() );
  |          ssouserEditor.setNew(false);
  |          return "editSsoUser";
  |       }
  |       
  |       public String selectNone() {
  |          throw new UnsupportedOperationException();
  |       }
  |       
  |       public String getButtonLabel() {
  |          return resourceBundle.getString("View");
  |       }
  |       
  |       public String cancel() {
  |          throw new UnsupportedOperationException();
  |       }
  |       
  |       public String getPageTitle() {
  |           return resourceBundle.getString("Find") + " " + 
  |                   resourceBundle.getString("SsoUser");
  |       }
  |       
  |       public boolean isCreateEnabled() {
  |          return true;
  |       }
  |       
  |    }
  |    
  |    @Stateless
  |    @Name("userlinkSsoUserSelector")
  |    @LocalBinding(jndiBinding="com.sso.domain.UserLinkSsoUserSelector")
  |    @JndiName("com.sso.domain.UserLinkSsoUserSelector")
  |    @Interceptors(SeamInterceptor.class)
  |    public static class UserLinkSsoUserSelector implements SsoUserSelector {
  |       
  |       @In
  |       private transient ResourceBundle resourceBundle;
  |     
  |       @In(create=true)
  |       private transient SsoUserFinder ssouserFinder;
  | 
  |       @In
  |       private transient UserLinkEditor userlinkEditor;
  |       
  |       private void completed() {
  |          CONVERSATION.getContext().remove("ssouserSelector");
  |       }
  |       
  |       public String select() {
  |          userlinkEditor.getInstance().setSsoUser( 
ssouserFinder.getSelection() );
  |          //TODO: add child to collection on instance!!
  |          completed();
  |          return "editUserLink";
  |       }
  |       
  |       public String selectNone() {
  |          userlinkEditor.getInstance().setSsoUser(null);
  |          completed();
  |          return "editUserLink";
  |       }
  |       
  |       public String cancel() {
  |          completed();
  |          return "editUserLink";
  |       }
  | 
  |       public String getButtonLabel() {
  |          return resourceBundle.getString("Select");
  |       }
  |       
  |       public String getPageTitle() {
  |           return resourceBundle.getString("Select") + " " +
  |                   resourceBundle.getString("SsoUser") + " " +
  |                   resourceBundle.getString("For") + " " + 
  |                   resourceBundle.getString("UserLink");
  |       }
  |    
  |       public boolean isCreateEnabled() {
  |          return false;
  |       }
  |    
  |    }
  |    
  |    @Stateless
  |    @Name("userlinkSsoUserSelector")
  |    @LocalBinding(jndiBinding="com.sso.domain.UserLinkSsoUserSelector")
  |    @JndiName("com.sso.domain.UserLinkSsoUserSelector")
  |    @Interceptors(SeamInterceptor.class)
  |    public static class UserLinkSsoUserSelector implements SsoUserSelector {
  |       
  |       @In
  |       private transient ResourceBundle resourceBundle;
  |     
  |       @In(create=true)
  |       private transient SsoUserFinder ssouserFinder;
  | 
  |       @In
  |       private transient UserLinkEditor userlinkEditor;
  |       
  |       private void completed() {
  |          CONVERSATION.getContext().remove("ssouserSelector");
  |       }
  |       
  |       public String select() {
  |          userlinkEditor.getInstance().setSsoUser( 
ssouserFinder.getSelection() );
  |          //TODO: add child to collection on instance!!
  |          completed();
  |          return "editUserLink";
  |       }
  |       
  |       public String selectNone() {
  |          userlinkEditor.getInstance().setSsoUser(null);
  |          completed();
  |          return "editUserLink";
  |       }
  |       
  |       public String cancel() {
  |          completed();
  |          return "editUserLink";
  |       }
  | 
  |       public String getButtonLabel() {
  |          return resourceBundle.getString("Select");
  |       }
  |       
  |       public String getPageTitle() {
  |           return resourceBundle.getString("Select") + " " +
  |                   resourceBundle.getString("SsoUser") + " " +
  |                   resourceBundle.getString("For") + " " + 
  |                   resourceBundle.getString("UserLink");
  |       }
  |    
  |       public boolean isCreateEnabled() {
  |          return false;
  |       }
  |    
  |    }
  |    
  | }
  | 
  | 

--notice the UserLinkSsoUserSelector class is generated twice (hence the 
duplicate).

Second, "sigh"... well, this is mildly frustrating and tiresome.  I was at 
Gavin's demo in Boston - I thought the demo and his arguments for using Seam as 
well as the feature set make it compelling.  However, with all the issues I am 
having, I feel that this particular release is more correctly categorized as 
either an "early access" or an "alpha" release but not beta.  Note that I 
haven't even mentioned that there is an error in the generated seam.properties 
which must be corrected each time as well (I believe that error is mentioned 
elsewhere on this forum).

Cheers,
Brad

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3923983#3923983

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3923983


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to