Here is an example for creating <a4j:commandLink/>
1 2 3 4 5 6 7 8 9 10 | private UICommandLink createSortingLink(String value) { Application application = context.getApplication(); Class<?>[] clazz = new Class<?>[]{}; UICommandLink commandLink = (UICommandLink) application.createComponent(UICommandLink.COMPONENT_TYPE); commandLink.setValue(value); commandLink.setActionExpression(createMethodExpression( "#{tableBean.sort()}" , String. class , clazz)); commandLink.setValueExpression( "render" , createValueExpression( "#{tableBean.render}" , null )); commandLink.setRender( "tableForm:resultsTable" ); return commandLink; } |
0 comments :
Post a Comment