• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF Custom Component ,IBM Portal 7  RSS feed

 
Natt Gonzalez
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
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,
Regards,
 
Natt Gonzalez
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Thanks
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!