-
1. Re: rich:componentControl programmatically
lfryc Jun 16, 2011 11:03 AM (in response to toxor)Hi Patrick,
#{rich:component("popup")}.show()
should be useful.
-
2. Re: rich:componentControl programmatically
toxor Jun 16, 2011 12:31 PM (in response to lfryc)Hi Lukas, thanks for the response.
How do you mean that ? I have the following Code :
UIColumn column_edit = new UIColumn();
actionDataTable.getChildren().add(column_edit);
HtmlOutputText header_edit = new HtmlOutputText();
header_edit.setValue("Edit");
column_edit.setHeader(header_edit);
HtmlGraphicImage bild_edit = new HtmlGraphicImage();
bild_edit.setId("bild_2");
bild_edit.setValue("/images/edit.gif");
bild_edit.setStyle("border:none");
HtmlCommandLink editLink = new HtmlCommandLink();
editLink.setId("ed"); // Custom ID is required in dynamic UIInput and UICommand.
editLink.getChildren().add(bild_edit);
editLink.setActionExpression(createActionExpression("#{facetBean.edit}", String.class));
column_edit.getChildren().add(editLink);
So I have a Link instead of a button, but that should work as well. What I want to do now is to, to add the richComponent to the Link.