This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 57146 - Call Enterprise Bean, Add EJB Reference dialogs need adjusting
Summary: Call Enterprise Bean, Add EJB Reference dialogs need adjusting
Status: CLOSED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Martin Adamek
URL:
Keywords: UI
Depends on:
Blocks:
 
Reported: 2005-03-29 17:42 UTC by Jiri Kopsa
Modified: 2006-03-24 12:52 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Kopsa 2005-03-29 17:42:59 UTC
The following dialogs (which are more or less just one) need to be updated:
* Add EJB Reference - activated from ejb-jar.xml logical editor
* Call Enterprise Bean - activated from source editor

1. If the user chooses local interface of an Enterprise Bean which is not in the
same module or EAR, an error message will appear:
"Since the selected enterprise bean is not in the same module or enterprise
application, the local interface can not be referenced."
and the OK button will be disabled. 

2. The "tree pane" should have a border. 

3. The title of the dialogs should be "Call Enterprise Bean" or "Add EJB
Reference" respectively.

4. "Reference name" should be capitalized as well: "Reference Name". 

5. Validation message should be in a label not in disabled text field - i.e. it
should not have a border and background. It should look the same as in the wizards. 

6. Validation messages are not correct (were not completely specified before): 
6a.
When the dialog pops up, any bean is not selected:
Current: "Select one EJB."
Proposed: "Select an Enterprise Bean."

6b.
If an EJB module is selected:
Current: "Selected node is not EJB."
Proposed: - the same as in 11a 

7c.
If an Enterprise Bean that has only one interface is selected, a warning message
appears:
Current: "EJB doesn't support remote references"
Proposed: This is quite common case. Remove this behaviour, no need to warn
anybody. 

Note: Please don't forget to terminate the messages with full-stop.
Comment 1 Martin Adamek 2005-04-02 12:18:26 UTC
Fixed.

/cvs/j2ee/ejbjarproject/src/org/netbeans/modules/j2ee/ejbjarproject/ui/logicalview/entres/Bundle.properties,v
 <--  Bundle.properties; new revision: 1.8; previous revision: 1.7
/cvs/j2ee/ejbjarproject/src/org/netbeans/modules/j2ee/ejbjarproject/ui/logicalview/entres/CallEjbAction.java,v
 <--  CallEjbAction.java; new revision: 1.15; previous revision: 1.14
/cvs/j2ee/ejbjarproject/src/org/netbeans/modules/j2ee/ejbjarproject/ui/logicalview/entres/CallEjbDialog.java,v
 <--  CallEjbDialog.java; new revision: 1.3; previous revision: 1.2
/cvs/j2ee/ejbjarproject/src/org/netbeans/modules/j2ee/ejbjarproject/ui/logicalview/entres/CallEjbPanel.java,v
 <--  CallEjbPanel.java; new revision: 1.13; previous revision: 1.12
/cvs/j2ee/ejbjarproject/src/org/netbeans/modules/j2ee/ejbjarproject/ui/logicalview/entres/CallEjbPanel.form,v
 <--  CallEjbPanel.form; new revision: 1.8; previous revision: 1.7
/cvs/j2ee/ddloaders/src/org/netbeans/modules/j2ee/ddloaders/multiview/EjbReferencesTableModel.java,v
 <--  EjbReferencesTableModel.java; new revision: 1.9; previous revision: 1.8
/cvs/j2ee/ejbjarproject/src/org/netbeans/modules/j2ee/ejbjarproject/Utils.java,v
 <--  Utils.java; new revision: 1.14; previous revision: 1.13
Comment 2 Jan Horvath 2005-07-14 15:33:43 UTC
v.