Try migrate from richfaces to Woodstock and found some problem
I wont simple functionality update some element(with children's) on event:
<jsf:view>
<webuijsf:page>
<webuijsf:html id="html">
<webuijsf:head id="head" title="Test">
<%--<jsfExt:scripts/>--%>
</webuijsf:head>
<webuijsf:body id="body">
<webuijsf:form id="form">
<webuijsf:button text="Click me" id="butt"
actionExpression="#{Customer.test}"
onClick="document.getElementById('form:text').refresh('form:text'); return
false;"/>
<webuijsf:button text="Click me" id="butt2"
actionExpression="#{Customer.test}"
onClick="document.getElementById('form:text').refresh('form:text');"/>
<webuijsf:staticText id="text"/>
<webuijsf:staticText id="text2"/>
</webuijsf:form>
</webuijsf:body>
</webuijsf:html>
</webuijsf:page>
</jsf:view>
Code for test method:
public String test() {
((StaticText)findComponent("text")).setText("Hi ha!");
((StaticText)findComponent("text2")).setText("Hi ha 2!");
return null;
}
So on button press I wont update ONLY 1 text filed with id ="text" but seems
in not work any way and all page was refreshed.
Woodstock 4.1.1
jsf 1.2_01-b04-FCS
apache-tomcat-6.0.10
also richfaces components has tag attribute "oncomplete" for invoke some
script action when ajax response completed
PS how can I post messages to forum?