else if ( DesignChoiceConstants.PARAM_VALUE_TYPE_DYNAMIC .equals( parameterHandle.getValueType( ) ) ) {  label = ParameterValidationUtil.getDisplayValue( null, parameterHandle.getPattern( ), label, locale ); }
	protected void prepareParameterBean( HttpServletRequest request,			IViewerReportService service, ScalarParameterBean parameterBean,			Locale locale ) throws ReportServiceException	{		ViewerAttributeBean attrBean = (ViewerAttributeBean) request				.getAttribute( IBirtConstants.ATTRIBUTE_BEAN );		assert attrBean != null;		InputOptions options = new InputOptions( );		options.setOption( InputOptions.OPT_REQUEST, request );		Collection selectionList = null;		ParameterDefinition paramDef = parameterBean.getParameter( );		if ( paramDef.getGroup( ) != null && paramDef.getGroup( ).cascade( ) )		{			Map paramValues = attrBean.getParameters( );			selectionList = getParameterSelectionListForCascadingGroup(					attrBean.getReportDesignHandle( request ), service,					paramValues, options );			// Set cascade flag as true			parameterBean.setCascade( true );		}		else		{			selectionList = service.getParameterSelectionList( attrBean					.getReportDesignHandle( request ), options, parameter					.getName( ) );			// Set cascade flag as false			parameterBean.setCascade( false );		}		parameterBean.setValueInList( false );		if ( selectionList != null )		{			// Get Scalar parameter handle			ScalarParameterHandle parameterHandle = (ScalarParameterHandle) attrBean					.findParameter( parameter.getName( ) );			for ( Iterator iter = selectionList.iterator( ); iter.hasNext( ); )			{				ParameterSelectionChoice selectionItem = (ParameterSelectionChoice) iter						.next( );				// Convert parameter value using standard format				String value = DataUtil.getDisplayValue( selectionItem						.getValue( ) );				if ( value == null )					continue;				String label = selectionItem.getLabel( );				if ( label == null || label.length( ) <= 0 )				{					// If label is null or blank, then use the format parameter					// value for display					label = ParameterValidationUtil.getDisplayValue( null,							parameterHandle.getPattern( ), selectionItem									.getValue( ), locale );				}				else if ( DesignChoiceConstants.PARAM_VALUE_TYPE_DYNAMIC						.equals( parameterHandle.getValueType( ) ) )				{					// Format display text of dynamic parameter					label = ParameterValidationUtil.getDisplayValue( null,							parameterHandle.getPattern( ), label, locale );				}				if ( label != null )				{					parameterBean.getSelectionList( ).add( label );					parameterBean.getSelectionTable( ).put( label, value );				}				if ( value.equals( parameterBean.getValue( ) ) )				{					parameterBean.setValueInList( true );				}			}		}	}