Bug 793856 (JBEPP-930) - Error message about portlet dimensions (width, height) not clear enough
Summary: Error message about portlet dimensions (width, height) not clear enough
Keywords:
Status: VERIFIED
Alias: JBEPP-930
Product: JBoss Enterprise Portal Platform 5
Classification: JBoss
Component: Portal
Version: 5.2.0.GA
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: 5.2.2.ER01
Assignee: Peter Palaga
QA Contact:
URL: http://jira.jboss.org/jira/browse/JBE...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-10 13:30 UTC by Viliam Rockai
Modified: 2018-02-06 19:18 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Enhancement


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker GTNPORTAL-2356 0 Major Resolved Error message about portlet dimensions (width, height) not clear enough 2012-08-28 09:53:17 UTC
Red Hat Issue Tracker JBEPP-930 0 Major Closed Error message about portlet dimensions (width, height) not clear enough 2012-08-28 09:53:17 UTC

Description Viliam Rockai 2011-05-10 13:30:19 UTC
project_key: JBEPP

When you try to change the portlet width or height in the edit page/edit portlet window, without proper knowledge of the format you ussually type in only single number like "400", if you want to have it width of 400px. After clicking the save button, you got the error message:

You must enter a pixel value in field "Width:".

which i don't think is clear enough, since it doesn't help you to correct the problem. Adding a sentence "The value must end with the unit definition string, which can be "px" or "%"." 

I'm not sure if the "%" could be used anywhere, but in the cases, where only single unit can be used, which is usually the case (and px is the unit) for most of portlets, i believe that both "500" and "500px" values should be considered valid.

Comment 1 Jared MORGAN 2011-11-16 22:58:20 UTC
Release Notes Docs Status: Added: Documented as Known Issue
Release Notes Text: Added: When you attempt to change a portlet's width or height by specifying a number only (for example, "400"), the following error message is displayed: "You must enter a pixel value in field "Width:"". To workaround the issue, ensure the valid unit of measurement is included with the value. For example, "400px". 


Comment 2 Jared MORGAN 2011-11-16 22:58:43 UTC
Primary SME: Added: theute


Comment 3 hfnukal@redhat.com 2012-01-16 11:56:13 UTC
Labels: Added: EPP_5_2_1_Candidate


Comment 4 Thomas Heute 2012-02-16 09:25:38 UTC
Labels: Removed: EPP_5_2_1_Candidate 


Comment 5 Peter Palaga 2012-06-27 13:01:10 UTC
Solution ported form https://issues.jboss.org/browse/GTNPORTAL-2356: The ExpressionValidator's regular expression was changed to accept also 'px'-less inputs and the save handler was modified to append 'px' if it is not there in width or height parameters. As a result, portlet width and height inputs of both forms

  100px

and

  100

are accepted as correct and have the same meaning.

Comment 6 JBoss JIRA Server 2012-06-27 14:33:47 UTC
Boleslaw Dawidowicz <boleslaw.dawidowicz> updated the status of jira GTNPORTAL-2356 to Resolved

Comment 7 mgottval 2012-08-27 17:00:30 UTC
Verified again in 5.2.2.CR01.


Note You need to log in before you can comment on or make changes to this bug.