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 85990 - error messages need to be wrapped in WSDL Wizard
Summary: error messages need to be wrapped in WSDL Wizard
Status: VERIFIED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Dialogs&Wizards (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
: 87464 91502 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-09-28 00:40 UTC by lchang
Modified: 2008-12-22 14:21 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (48.80 KB, application/octet-stream)
2006-09-28 00:40 UTC, lchang
Details
validation error shown also on standard output. (139.50 KB, application/octet-stream)
2006-09-28 01:37 UTC, Ritesh Adval
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lchang 2006-09-28 00:40:15 UTC
Please see the attached screenshot.

The error message gets cut-off.  The only way to view the entire message is to 
expand the window.  The size of the window in the screenshot is by default, so 
the text should at least fit this window.
Comment 1 lchang 2006-09-28 00:40:27 UTC
Created attachment 34643 [details]
screenshot
Comment 2 Shivanand Kini 2006-09-28 01:02:40 UTC
This is a wizard bug, the errormessage is not wrapped automatically.
Comment 3 Ritesh Adval 2006-09-28 01:30:55 UTC
We are using standard netbeans wizard to show errors and it does not wrap the 
error.

A work around is available, the error message is shown also on standard output 
tab.

see attached screen shot.
Comment 4 Ritesh Adval 2006-09-28 01:37:25 UTC
Created attachment 34645 [details]
validation error shown also on standard output.
Comment 5 jlautz 2006-09-28 01:55:48 UTC
Also, if you point over the mouse over the error message, the entire text of the
message is displayed as a float-over. (Not optimal, but better than not seeing
the rest of the message text.)
Comment 6 lchang 2006-10-03 23:06:30 UTC
Can we get this fixed in the standard Netbeans Wizard?  If not for this 
release, at least for a future release?
Comment 7 lchang 2006-10-04 00:13:53 UTC
accidentally removed whiteboard keyword...adding it back
Comment 8 Ritesh Adval 2007-01-18 20:27:25 UTC
This can be fixed in 5.5.1. We can add our own text area which can scroll.
We do not need to rely on netbeans default error message support as it doesn't 
scroll.
Comment 9 Ritesh Adval 2007-01-18 20:41:06 UTC
*** Issue 87464 has been marked as a duplicate of this issue. ***
Comment 10 Ritesh Adval 2007-01-18 21:37:37 UTC
*** Issue 91502 has been marked as a duplicate of this issue. ***
Comment 11 Ritesh Adval 2007-02-22 01:24:35 UTC
Kini,

Lets put a custom UI in the wizard which has a scrollable text area.
Comment 12 Ritesh Adval 2007-02-27 07:01:41 UTC
The netbeans wizard provides this to set error message in wizard panel at the 
bottom which is what we are using:

 wiz.putProperty ("WizardPanel_errorMessage", this.mErrorMessage); // NOI18N
      
The wizard does not wrap the error message.

This should be fixed in netbeans core in the wizard. The bottom error label 
should be scrollable.

Comment 13 Milos Kleint 2007-02-28 09:22:31 UTC
making the error message scrollable is not a good solution.
1. scrolling one line is non-efficient and ugly.
2. having multiple lines reserved for error messages would possibly break
multiple wizards that are optimized for the current content size (which would
get smaller)
3. it's no possible to have a JLabel multiline (with the exception of <html>-zed
test) so whe would have to replace it with JTextArea.

I suggest we either provide a tooltip with complete message (possibly with
automatic initial appearance) or by introducing a button on the right-hand side
that would show the message in a popup window.

none of these shall go to 5.5.1 however. It's too risky to introduce such change
that potencially breaks other wizards.

BTW not sure why this is assigned to projects, should be openide/dialogs instead.
Comment 14 Milan Kubec 2007-02-28 09:27:58 UTC
I suggest to provide shorter message as fix for 5.5.1.

As fix we could consider couple of options:
1) providing a tooltip with the whole text on mouseover
2) or maybe a button to show entire message if the message is too long
Both fixes needs to be consulted with HIE.

Putting the text into scroll pane if the text is too long is not good solution
because it might break the layout of the whole panel or the area would have to
be extended, which will downsize the utilizable place.
Comment 15 Jesse Glick 2007-02-28 14:56:15 UTC
Agreed. This is probably WONTFIX. Suggested approaches for the implementor of
this wizard:

1. Use a shorter error message. Usually for the best anyway.

2. If the message must be multiline, try using HTML, e.g.:

<html>This is one part of the message.<br>This is another part.

As far as I know Swing should render multiline HTML text in a JLabel acceptably.
(Using a JTextArea is a bad idea as it is difficult to make it look right on
every L&F.)
Comment 16 Martin Schovanek 2007-03-06 15:36:09 UTC
5.5.1_candidate status whiteboard removed
Comment 17 Shivanand Kini 2007-07-07 03:06:09 UTC
I have been trying to set html code in the errormessage property. Without the <br>, the label still expands out of the
wizard. And its not possible to find out where to put the <br> in the error/warning message.

It would be good if the wizard could do this.


Comment 18 Milan Kubec 2007-08-08 15:31:01 UTC
Reassigning to openide/dialogs for evaluation.
Comment 19 Jiri Rechtacek 2007-10-04 17:45:25 UTC
Closed as WONTFIX on Jesse's recommendation in some comment before.
Comment 20 jlautz 2008-04-09 15:30:37 UTC
Verified wasn't fixed in NB 6.1