You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Bjørn T Johansen <bt...@havleik.no> on 2007/02/21 22:42:03 UTC

Need to know which values have changed?

I have a small "problem" I am not sure what is the best way to solve..
After a submit, I need to know which submitted fields have changed since it was first displayed on a web page...

Comparing every fields feels like an overkill...?


Regards,

BTJ

-- 
-----------------------------------------------------------------------------------------------
Bjørn T Johansen

btj@havleik.no
-----------------------------------------------------------------------------------------------
Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"
-----------------------------------------------------------------------------------------------

Re: Need to know which values have changed?

Posted by Adrian Mitev <ad...@googlemail.com>.
You can use valueChangeListener on all components related to that bean,
rewrite your setter methods or use dynamic proxy to intercept the bean's
setters.

2007/2/21, Bjørn T Johansen <bt...@havleik.no>:
>
> I have a small "problem" I am not sure what is the best way to solve..
> After a submit, I need to know which submitted fields have changed since
> it was first displayed on a web page...
>
> Comparing every fields feels like an overkill...?
>
>
> Regards,
>
> BTJ
>
> --
>
> -----------------------------------------------------------------------------------------------
> Bjørn T Johansen
>
> btj@havleik.no
>
> -----------------------------------------------------------------------------------------------
> Someone wrote:
> "I understand that if you play a Windows CD backwards you hear strange
> Satanic messages"
> To which someone replied:
> "It's even worse than that; play it forwards and it installs Windows"
>
> -----------------------------------------------------------------------------------------------
>