-
1. Re: no ajax request generated
nbelaevski Jul 6, 2010 5:00 PM (in response to m4njasper)Hi,
First of all, is your rich:progressBar placed in form and set to use AJAX mode via attributes?
Second, please add a4j:log to the page and check what's going on there.
-
2. Re: no ajax request generated
m4njasper Jul 7, 2010 10:10 AM (in response to nbelaevski)The progress bar is in the form. Ajax mode should be default but I have tried to set it explicitly to ajax. Also I have explicitly set enabled to true.
a4j:log gives no output.
this is a simplified version of the form:
<jsp:root version="2.0"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:jsp="http://java.sun.com/JSP/Page"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:t="http://myfaces.apache.org/tomahawk"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich"
>
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<h:form >
<rich:panel style="border-style: none;padding: 0px;" styleClass="actionbox">
<h:panelGrid columns="3" rendered="#{!actionRequestController.hideActionBar}">
<h:outputText value="#{actionRequestController.jobName}" rendered="#{actionRequestController.jobRenderProgressBar}"/>
<pb:progressBar interval="1400" value="#{actionRequestController.jobPercentage}" rendered="#{actionRequestController.jobRenderProgressBar}" />
<h:commandButton value="stop" id="job" actionListener="#{actionRequestController.stopJobAction}" rendered="#{actionRequestController.jobRenderProgressBar}"/>
</h:panelGrid>
</rich:panel>
</h:form>
</jsp:root>but this is included in other files. It never gets called directly.
-
3. Re: no ajax request generated
nbelaevski Jul 7, 2010 10:32 AM (in response to m4njasper)I see that there's no pb:* prefix declared on the page.
-
4. Re: no ajax request generated
m4njasper Jul 7, 2010 11:35 AM (in response to nbelaevski)oops, sorry. Ignore the pb tag, that's our own component we want to replace. It should be rich:progressbar. I was running both components next to each other and in trying to anonymize and simplify it I made a mistake.
-
5. Re: no ajax request generated
m4njasper Jul 7, 2010 11:39 AM (in response to m4njasper)Btw, we also use jsf 1.2
-
6. Re: no ajax request generated
m4njasper Jul 8, 2010 7:47 AM (in response to m4njasper)I made a test project to see if I could get progressbar working at all. I've include the file but basically:
<a4j:log id="lolo"/>
<a4j:outputPanel id="asdf">
<h:outputText value="This is a text"></h:outputText>
<rich:progressBar id="pb3" mode="ajax" minValue="0" maxValue="100" label="#{test.progress}" value="#{test.progress}" enabled="true" reRenderAfterComplete="asdf" rendered="true"></rich:progressBar>
</a4j:outputPanel>If you remove the outputText nothing happens whatsoever.
with the outputText there are ajax request generated but nothing is happening.
firebug console says:
$(this.id) is null
onbeforedomupdate(Object { name="id"}, Object { name="containerId"}, Object { name="formId"}, Object { name="mode"}, Object { name="minValue"}, Object { name="maxValue"}, Object { name="context"}, Object { name="markup"}, Object { name="options"}, Object { name="progressVar"}, Object { name="state"}, Object { name="value"})progre....js.jsf (line 3)
klass()3_3_1....ipt.jsf (line 4)
test.jsf()test.jsf (line 5)
[Break on this error] this.mode=mode;this.state=state;this.m...'){parentForm=parentForm.parentNode;}am also including a4j:log ouptut
-
a4j.log.zip 4.0 KB
-
faces-config.xml 528 bytes
-
web.xml 1.5 KB
-
test.jsp.zip 503 bytes
-
Test.java.zip 279 bytes
-