TWiki
>
WebXEO Web
>
XeoPrimerXeoXwc
>
AttributeNumber
(2011-11-17,
PedroRio
)
(raw view)
E
dit
A
ttach
Tags:
tag this topic
create new tag
,
view all tags
-- Main.PedroRio - 22 Mar 2010 ---++ AttributeNumber The AttributeNumber component is used to store numeric values. If has properties to force minimum and maximum values. Note: When you use the attributeNumber and store the value using the property valueExpression you create a getter and setter for the property value. These must accept and return a BigDecimal value, you also need to set the displayValue property (you can set it to nothing, like displayValue="") because otherwise it will trigger an error. Example: Bean Code <verbatim>private BigDecimal numberValue; public BigDecimal getNumberValue(); public void setNumberValue(BigDecimal value){ numberValue = value; }</verbatim> Viewer Code <pre><verbatim><xvw:attributeNumber valueExpression='#{viewBean.numberValue}' displayValue=""></verbatim> </pre> If you use the xvw:attribute component and set the *inputType* property to "<strong>attributeNumber</strong>" *you can skip* setting the "displayValue" property.
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r7
<
r6
<
r5
<
r4
<
r3
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r7 - 2011-11-17
-
PedroRio
WebXEO
XEO Primer
-
Instalation
-
Introduction
-
Concepts
-
Architecture
-
XEO Library
-
Deploy to EAR
-
PreferenceStore
XEO - Core
-
XEO Model Reference
-
Security
-
Java API
-
BOL
-
XEOQL (BOQL)
-
Administrating
-
Background Tasks
-
boConfig.xml
-
Web.xml
-
Known Issues
-
XEO Flags
XEO - XWC
- Web Components
- Java Samples
- Custom Components
- Component Plugins
- Internationalization
- Viewer Events
- Value Change Listeners
- XUIServlet
- XeoLocalization
- XvwTemplates
Create New Topic
WebXEO Web
No permission to view
TWiki.WebTopBar
No permission to view
TWiki.WebBottomBar