myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Müllan" <gerald.muel...@gmail.com>
Subject Re: submitOnEvent callback
Date Fri, 01 Feb 2008 11:41:00 GMT
Hi Dave,

don`t know why the method is not called, maybe Mario knows it.

It`s not that nice, but you may also write:

callback="mySpecialUserCallback"

..

function mySpecialUserCallback(event, srcComponentId, clickComponentId)
{
      return #{bean.submitOnChange};
}

This should work without any problems;

cheers,

Gerald

On Feb 1, 2008 11:53 AM, Dave <javaone9@yahoo.com> wrote:
> the bean method return a string that is a javascript function name.
>
>
>
> Mario Ivankovits <mario@ops.co.at> wrote:
> Hi!
> > callback="#{bean.callbackFunction}"
> The callback should point to a javascript function name instead of a
> bean method. callback is meant to be executed on the client.
>
> This javascript method then should allow you to return true/false, on
> false the click should not happen.
>
> Ciao,
> Mario
>
>
>
>
>
>  ________________________________
> Looking for last minute shopping deals? Find them fast with Yahoo! Search.



-- 
http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

Mime
View raw message