Adding a FileDownload Control by libary control
===


I am trying to build an JSF library control for XPages based on the examples by Keith Strickland.

http://xprentice.gbs.com/A55BAC/keithstric.nsf/default.xsp?documentId=82770C11FA7B9B21852579C100581766

I have a little bit trouble in buildung a FileDownloadControl
here is the code ive build:

public class Libcontrol extends UIComponentBase implements FacesComponent {

            private static final String RENDERER_TYPE = "de.chris.Libcontrol ";
            private static final String COMPONENT_FAMILY = "de.chris";

            public void CommonContactInfo() {
                    setRendererType(RENDERER_TYPE);
            }

            @Override
            public String getFamily() {
                    return COMPONENT_FAMILY;
            }

            @SuppressWarnings("unchecked")
            public void initBeforeContents(FacesContext arg0) throws FacesException {


                FacesContext context;
				ExpressionEvaluatorImpl evaluator;

			
				context = FacesContext.getCurrentInstance();
				evaluator = new ExpressionEvaluatorImpl(context);

			
				XspFileDownload result = new XspFileDownload();
	            String sourceId = "fileDownload1/@value";
	            String valueExpr = "#{document1.FileField}";
	            ValueBinding value = evaluator.createValueBinding(result, valueExpr, sourceId,Object.class);
	            result.setValueBinding("value", value);
	            result.setDisplayLastModified(true);
	            result.setAllowDelete(true);
	            result.setTitle("filedown");
	            result.setRows(30);
	            result.setId("fileDownload1");

                this.getChildren().add(result);


            }

            public void buildContents(FacesContext arg0, FacesComponentBuilder arg1) throws FacesException {
            // Do Nothing
            }

           
            public void initAfterContents(FacesContext arg0) throws FacesException {
            // Do nothing
            }
    }

someone a Idea why the control is not completely rendered?
When I look to the HTML Code I see a starttag from the control but no Files to download
and Yes ive uploaded Files to the corresponding NotesDocument.