Hi Adrian,

thanks for your reply.
You answered my question, if it is possible to handle theese kind of events
server side.
Alex

----- Original Message ----- 
From: "Adrian Mitev" <[email protected]>
To: "MyFaces Discussion" <[email protected]>
Sent: Sunday, April 05, 2009 12:13 PM
Subject: Re: Trinidad Event handling


On Sun, Apr 5, 2009 at 12:27 PM, alex01130 <[email protected]> wrote:
> Hi,
>
> I'd like to handle an "onfocus"-Event of a trinidatd input text field.
>
> I tried this:
>
> <tr:inputText id="RequestDate" value="#{customerBean.startDate}"
> partialTriggers="timer" onfocus="#{customerBean.stopUpdate}" columns="16"
> />
>
> public void stopUpdate(javax.faces.event.ActionEvent ae){
> updateTimer = false;
> }
>
> It doesn't work, but renders rubbish on the page.
>
> How can I handle this event server side?
>
> Thanks in advance
>
> alex

It's because onfocus is client side event. You can add javascript that
submits the form and calls action (like clicking a command link)

-- 
Although nobody can come back and make a new start, anyone can start
now and make a new end

Reply via email to