I have a problem. I'm trying to develope my custom jsf component, It has lot of fields, text,table,input text, and also a button. I have created its fields with html inside the encodeBegin method of my class that extends UIInput, using for example rwWriter.write(sbHeader.toString());
But I have tried to write my commandlink with a
If I use my button appears but when I press the button It doesn't go to the action method
If I use I have two buttons but when I press the button it goes to the action method
What is it wrong?
Thanks in advance,
I have resolved it. The problem was I was using encodebegin of the button and It also renders the button because it was a children of the component. I have removed the encodebegin of the button, I have overriden
And I call the cLink.encodeall in the encodeBegin of my componet when I desire.