Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JSF
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
JSF
failed to use <af:progressIndicator>, could anyone do me a favor?
ym feng
Ranch Hand
Posts: 31
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
<?xml version='1.0' encoding='GBK'?> <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:af="http://xmlns.oracle.com/adf/faces/rich" xmlns:tr="http://myfaces.apache.org/trinidad"> <jsp:directive.page contentType="text/html;charset=GBK"/> <f:view> <af:form> <af:progressIndicator id="progressIndicator" value="#{progressRangeModel}" partialTriggers="pollid"/> <af:poll id="pollid" interval="1000"/> </af:form> </f:view> </jsp:root>
public class ProgressRangeModel extends org.apache.myfaces.trinidad.model.BoundedRangeModel{ long value = 5; final long maximum = 10; public ProgressRangeModel() { } public long getValue(){ value++; System.out.println("################################# value:\t" + value); return value>=maximum ? maximum : value; } public long getMaximum(){ System.out.println("################################# maximum:\t" + maximum); return 10; } }
the page just render as following:
0%100%
no progress bar, actually
the managed bean is configured in faces-config.xml, so, could anyone tell me the the right way?
thanks very much!
ym feng
Ranch Hand
Posts: 31
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
seems ok on another project following the same steps
this problem may due to project configurations
ym feng
Ranch Hand
Posts: 31
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
it's ok now.
so strange.
aryan Sharma
Greenhorn
Posts: 27
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
what exactly you did to rectify the problem??? actually i am facing the same type of prb...
Amit Ghorpade
Bartender
Posts: 2856
10
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
"dasd professional" please check your private messages for an important administrative matter. You can check them by clicking the
My Private Messages
link above.
SCJP, SCWCD.
|
Asking Good Questions
|
Men call me Jim. Women look past me to this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
navigation rules are not working...
Auto submit the jspx page
Redirect with Java Rich Faces
JSF Tag Problem
JSF navigation rule problem
More...