for (UIComponent child : link.getChildren()) { if (child instanceof ValueHolder) { return exportValue(context, child);
hiddenFieldName, null); for (final Iterator it = commandLink.getChildren().iterator(); it .hasNext();) { final UIComponent child = (UIComponent) it.next();
for (UIComponent child : link.getChildren()) { if (child instanceof ValueHolder) { return exportValue(context, child);
else { for (UIComponent child : link.getChildren()) if (child instanceof ValueHolder) return exportValue(context, child);
for (final UIComponent child : link.getChildren()) { if (child instanceof ValueHolder) { return exportValue(context, child);
else { for (UIComponent child : link.getChildren()) if (child instanceof ValueHolder) return exportValue(context, child);
link.getChildren().add(parameter); link.getChildren().add(text);
protected HtmlCommandLink getLink(FacesContext facesContext, HtmlCollapsiblePanel collapsiblePanel) throws IOException { Application application = facesContext.getApplication(); HtmlCommandLink link = (HtmlCommandLink) application.createComponent(HtmlCommandLink.COMPONENT_TYPE); link.setId(collapsiblePanel.getId() + LINK_ID); link.setTransient(true); link.setImmediate(true); List children = link.getChildren(); // Create the indicator. You could later make this conditional and render optional images instead HtmlOutputText uiText = (HtmlOutputText) application.createComponent(HtmlOutputText.COMPONENT_TYPE); uiText.setTransient(true); uiText.setValue(collapsiblePanel.isCollapsed() ? ">" : "ν"); uiText.setEscape(false); uiText.setStyleClass(collapsiblePanel.getIndicatorStyleClass()); uiText.setStyle(collapsiblePanel.getIndicatorStyle()); children.add(uiText); // Create the optional label String label = collapsiblePanel.getTitle(); if (label != null) { uiText = (HtmlOutputText) application.createComponent(HtmlOutputText.COMPONENT_TYPE); uiText.setTransient(true); uiText.setValue(" " + label); uiText.setStyleClass(collapsiblePanel.getTitleStyleClass()); uiText.setStyle(collapsiblePanel.getTitleStyle()); children.add(uiText); } return link; }