Fórum

RichFaces <a4j:jsFunction> problem..

Emanuele Carozzo, modificado 15 Anos atrás.

RichFaces <a4j:jsFunction> problem..

New Member Postagens: 2 Data de Entrada: 24/03/09 Postagens Recentes
Hello everyone, I have a problem with RichFaces ... the following code explains in a simplified way everything (he was taken from the richfaces examples). Run this code inside a portlet, there is no way to be able to call the javascript generated by jsfunction (updateName). The only error that comes up is in the Firefox Error console where just tells me when I click "Error: updateName is not defined" ... I think it's just a problem with the portlet bridge or richfaces ... any advice is welcome!
My developping platform is composed by:
LifeRay 5.2.2
JBoss PortletBridge 1.0.0b6
RichFaces 3.3.1 beta

The code:

<table width="400">
<tbody>
<tr>
<td><span onclick="updateName('Alex')" onclick="updateName('')">Alex</span></td>
</tr>
<rich:spacer height="10" />
<tr>
<td colspan="3">Name: <b><h:outputText id="showname" value="#{userBean.name}" /></b></td>
</tr>
</tbody>
</table>

<a4j:form>
<a4j:jsFunction name="updateName" reRender="showname">
<a4j:actionparam name="param1" assignTo="#{userBean.name}" />
</a4j:jsFunction>
</a4j:form>

Anyone have the same issue?
Thanks in advance!
Jose Miguel Loor, modificado 12 Anos atrás.

RE: RichFaces <a4j:jsFunction> problem..

New Member Postagens: 3 Data de Entrada: 13/12/11 Postagens Recentes
hi

did you find any solution for this ?? i am having the exact same problem