Bug 793856 (JBEPP-930)

Summary: Error message about portlet dimensions (width, height) not clear enough
Product: [JBoss] JBoss Enterprise Portal Platform 5 Reporter: Viliam Rockai <vrockai>
Component: PortalAssignee: Peter Palaga <ppalaga>
Status: VERIFIED --- QA Contact:
Severity: low Docs Contact:
Priority: medium    
Version: 5.2.0.GACC: epp-bugs, mvecera, theute
Target Milestone: ---   
Target Release: 5.2.2.ER01   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/JBEPP-930
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Enhancement
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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.