TWiki
>
WebXEO Web
>
XEOECCXEOWebComponents
>
XEOMenuCounter
(revision 4) (raw view)
Edit
Attach
Tags:
tag this topic
create new tag
,
view all tags
-- Main.JoaoCarreira - 22 Dec 2009 ---+ Menu Counter The component xeo:MenuCounter allows adding counters to the TreePanel option. This extends Menu, all his properties are inherited. Component MenuCounter ---++++++ Declaration <xeo:menuCounter ... > ---++++++ Properties | *Property* | *Values* | *Description* | | id | string | Component Id | | boql | string / EL | BOQL to give the count. Eg. select Ebo_Perf where active='1' | | sql | string / EL | SQL to give the count. Eg: select count(*) from OEbo_Perf | | counterValue | string / EL | Value to put in the counter, if the couter result is a bean property, or a fix value | | counterMask | string | Value Apresentation Mask: Eg: <b style='color:red'>%s</b> Where %s is replaced by the counter value. | | updateInterval | string | Time in seconds of the counter update interval | ---++++++ Observations The component to get the count uses the following processing order: <!---O componente para obter a contagem, utiliza a seguinte ordem de processamento:---> 1 Checks if the counterValue has value. 1 Checks if the boql is filled. 1 Checks if the sql has filled value 1 Checks if the value has a JSON Object, and if it has the property boql. In the first condition that is found the value is returned or the count is made to the sql/boql. <!--Na primeira condição que se verifique é devolvido o valor ou é feita a contagem ao sql/boql.--> ---++++++ Descendents NO ---+++++ Using examples ---++++++ Declaring a MenuCounter in a viewer using the pré-defined buttons. <verbatim><xvw:viewer (...)> <xvw:treePanel renderComponent='false' id='tree'> <xeo:menuCounter id='testeCntr' boql="select Teste " sql="" updateInterval='60' icon='resources/Ebo_Package/ico16.gif' text='Packages' value="{viewerName:'viewers/Ebo_Package/list.xvw', boql:'select Ebo_Package where deployed=\'1\''}" target='Tab' serverAction="#{viewBean.listObject}" /> </xvw:treePanel> (...) </verbatim> In the exemplified case, as there are no counterValue, boql and sql properties defined the cont will be done to the boql in the JSON Object of the value. <!--O Caso exemplificado, como não está definidos as propriedades counterValue, boql e sql, será efectuada a contagem ao boql que se encontra no JSON Object do value.--> Update the example counter in a Bean action:<!-- Actualizar o contador exemplo numa acção de uma Bean:--> <verbatim> // Update the specified counter public void updateCounter() { MenuCounter.updateClientCounter( "formMain:testeCntr" ); } public void updateCounter() { MenuCounter.updateClientCountera(); } </verbatim>
Edit
|
Attach
|
P
rint version
|
H
istory
:
r11
|
r6
<
r5
<
r4
<
r3
|
B
acklinks
|
V
iew topic
|
Raw edit
|
More topic actions...
Topic revision: r4 - 2011-03-22
-
NicolauGrosskopf
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