ActionListern
costascostas Jan 17, 2008 2:54 AMHi,
I am writing a JSF-component pivot-table extending UIComponentBase. pivot-table creates itself Rich-Faces a4j-Children. If I embed pivot-Table directly in a form-tag, it works well. But in some other cases it doesn't:
AjaxViewRoot.processEvents() calls
HtmlTree.broadcast() calls
...
UIComponentBase.broadcast()
Finally, in UICompontentBase the member liestener is emtpy, so the no component will be rerendered.
I think, the cause for this lies in wrong html-code, generated by pivot-table. If the browser sends an ajax-request based on the wrong html-code, the request-parameters might be wrong.
How is the member liestener filled? How does RichFaces create IDs for the HTML-tags? Where can I start to study?
Here is the not working html-code:
<form id="repForm" name="repForm" method="post" action="/de.zeb.control.rep.pl.birtwebviewer-0.1.0-SNAPSHOT/report.jsf" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="repForm" value="repForm" />
<form id="repForm:form275" name="repForm:form275" method="post" action="/de.zeb.control.rep.pl.birtwebviewer-0.1.0-SNAPSHOT/report.jsf">
<!-- begin pivot-table -->
<div id="repForm:form275:zeb_jsf_table275" style="background-color:#F0F0F0; font-size:0.6em; border-style:solid; border-color:#000000; border-width:2px; padding:4px; width:800px; height:600px; overflow:hidden;" >
<input id="repForm:form275:btn_13764661"
name="repForm:form275:btn_13764661"
onclick="A4J.AJAX.Submit(
'_viewRoot',
'repForm:form275',
event, {
'parameters':
{'repForm:form275:btn_13764661'
:'repForm:form275:btn_13764661'} ,
'actionUrl':'/de.zeb.control.rep.pl.birtwebviewer-0.1.0-SNAPSHOT/report.jsf?javax.portlet.faces.DirectLink=true'
}
);
return false; "
value="-"
type="button" />
</div>
</div>
<!-- end pivot-table -->
<input type="hidden" name="repForm:form275" value="repForm:form275" />
<input type="hidden" name="autoScroll" value="" />
<input type="hidden" name="repForm:form275:_link_hidden_" value="" />
<input type="hidden" name="repForm:form275:_idcl" value="" />
<input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="j_id13" />
</form>
<input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="_id13" />
</form>
What's the error?
Costas