// Do nothing
return;
}
IDataComposer dataComposer = HDIVUtil.getDataComposer(request);
dataComposer.beginRequest("GET", urlData.getUrlWithoutContextPath());
String processedParams = dataComposer.composeParams(urlData.getUrlParams(), "GET", Constants.ENCODING_UTF_8);
urlData.setUrlParams(processedParams);
if (hasUIParams) {
for (UIComponent comp : component.getChildren()) {
if (comp instanceof UIParameter) {
UIParameter param = (UIParameter) comp;
String name = param.getName();
String value = param.getValue().toString();
dataComposer.compose(name, value, false);
}
}
String stateParam = dataComposer.endRequest();
url = this.urlProcessor.getProcessedUrl(urlData);
component.setValue(url);
// Add a children UIParam component with Hdiv's state
UIParameter paramComponent = (UIParameter) context.getApplication().createComponent(
UIParameter.COMPONENT_TYPE);
String hdivParameter = (String) externalContext.getSessionMap().get(Constants.HDIV_PARAMETER);
paramComponent.setName(hdivParameter);
paramComponent.setValue(stateParam);
component.getChildren().add(paramComponent);
} else {
String stateParam = dataComposer.endRequest();
// Add state directly in the outputLink's value
url = this.urlProcessor.getProcessedUrlWithHdivState(request, urlData, stateParam);
component.setValue(url);
}