Possible Duplicate:
Primefaces commandButton in custom component action listener not called
I have created custom component which extends UIComponentBase
. I am creating
some component in encodeBegin
(CommandButton
from Primefaces), but when
is decode
triggered by user clicking button when I look for button it is not
present in UIViewRoot
and not in this.getChildren()
.
It seems that it is a new instance of component invoked when decode
is trigered and components are not present.
What is wrong?
Some code is in: code
If you want I can send whole code.
I found that this technique is used in PrimeFaces and other software, but can you explain why values retrieved from getStateHelper().eval("someKey"); are always null in decode?
Probably problem on my site, but I can not solve it?
This is link to thread I started: