Hi Alain,
Even though things are getting better with rev 547, I still have one
issue. Inside the following xf:submission, I have a xf:insert to insert
the nodes fetched by the submission inside instance "instance-annonces".
The xf:insert works and the xf:message displays the correct number of
announces.
But the UI isn't refreshed.
<xf:submission id="rechercher-des-annonces-multi-communes"
method="get"
serialization="none"
replace="instance"
instance="instance-annonces-reponse">
<xf:resource value="concat('/annonces/recherche/' ,
instance('instance-annonces-requete')/type-d-annonce , '/' ,
fn:string-join(instance('instance-communes-selectionnees')/commune/clef,'_'))"/>
<xf:action ev:event="xforms-submit-done"
if="count(instance('instance-annonces-reponse')/annonce) > 0">
<xf:insert
origin="instance('instance-annonces-reponse')/annonce"
nodeset="instance('instance-annonces')/annonce"/>
<xf:message>count=<xf:output
value="count(instance('instance-annonces')/annonce)"/></xf:message>
</xf:action>
</xf:submission>
I tried adding <xf:refresh /> after the xf:insert, but this didn't solve
the issue.
Did I misunderstand something about xf:insert and the deferred update
behaviour, or is there any other way to force the refresh?
Any help welcome.
Grégoire
|