Author: yradtsevich
Date: 2008-10-28 15:13:57 -0400 (Tue, 28 Oct 2008)
New Revision: 11256
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesComboBoxTemplateHelper.java
Log:
RESOLVED - issue JBIDE-2977: Incorrect definition of "width" attribute of
<rich:comboBox> in VPE.
https://jira.jboss.org/jira/browse/JBIDE-2977
Now if it is impossible to parse the value of 'width' attribute of
<rich:comboBox>, VPE renders a comboBox with default width.
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesComboBoxTemplateHelper.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesComboBoxTemplateHelper.java 2008-10-28
19:12:06 UTC (rev 11255)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesComboBoxTemplateHelper.java 2008-10-28
19:13:57 UTC (rev 11256)
@@ -494,6 +494,7 @@
final int intValue = Integer.parseInt(sourceWidth);
sourceWidth = String.valueOf(intValue)+Constants.PIXEL;
} catch (final NumberFormatException e) {
+ sourceWidth = DEFAULT_LIST_WIDTH;
sourceListWidth = DEFAULT_LIST_WIDTH;
}
}