you need tr:document as the child under f:view. That component triggers the inclusion of CSS and JS for Trinidad
-M On Tue, Aug 11, 2009 at 12:06 AM, Shaun Campbell<campbell.sh...@gmail.com> wrote: > I'm trying to write a page that displays a "Please wait..." or progress > indicator while my long running process runs. > > I've based my code on examples I have found but I just don't get anything > displayed. I've never done this before so I'm not exactly sure what they > need to produce anything. > > I've a simple xhtml page with: > > <body> > <ui:composition template="/template.xhtml"> > <ui:define name="content"> > <f:view> > <h:form> > <tr:statusIndicator> > <f:facet name="busy"> > <tr:outputText value="Processing..." > styleClass="ajaxStatus"/> > </f:facet> > </tr:statusIndicator> > > <tr:progressIndicator rendered="true" > id="progressIndicator" > value="#{progressRangeModel}" > partialTriggers="pollid"/> > <tr:poll id="pollid" rendered="true" > interval="1000"/> > </h:form> > </f:view> > </ui:define> > </ui:composition> > </body> > > I have the BoundedRangeModel: > > import org.apache.myfaces.trinidad.model.BoundedRangeModel; > > public class ProgressRangeModel extends 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; > } > } > > I have my bean defined: > <managed-bean-name>progressRangeModel</managed-bean-name> > <managed-bean-class> > uk.co.apps2net.mfm.ProgressRangeModel > </managed-bean-class> > <managed-bean-scope>session</managed-bean-scope> > > The only thing I can see is this output: > WARNING: Could not find renderer for CoreStatusIndicator[UIXFacesBeanImpl, > id=j_id16] rendererType = org.apache.myfaces.trinidad.StatusIndicator > 10-Aug-2009 22:45:48 org.apache.myfaces.renderkit.html.HtmlRenderKitImpl > getRenderer > WARNING: Unsupported component-family/renderer-type: > org.apache.myfaces.trinidad.Progress/org.apache.myfaces.trinidad.Indicator > 10-Aug-2009 22:45:48 org.apache.myfaces.trinidad.component.UIXComponentBase > _getRendererImpl > WARNING: Could not find renderer for CoreProgressIndicator[UINodeFacesBean, > id=progressIndicator] rendererType = org.apache.myfaces.trinidad.Indicator > 10-Aug-2009 22:45:48 org.apache.myfaces.renderkit.html.HtmlRenderKitImpl > getRenderer > WARNING: Unsupported component-family/renderer-type: > org.apache.myfaces.trinidad.Poll/org.apache.myfaces.trinidad.Poll > 10-Aug-2009 22:45:48 org.apache.myfaces.trinidad.component.UIXComponentBase > _getRendererImpl > WARNING: Could not find renderer for CorePoll[UIXFacesBeanImpl, id=pollid] > rendererType = org.apache.myfaces.trinidad.Poll > 10-Aug-2009 22:45:48 > org.apache.myfaces.renderkit.html.HtmlResponseStateManager writeState > SEVERE: No component states to be saved in client response! > > Can anyone point out what Im missing? > > Thanks > Shaun > -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf