- 
        1. Re: MediaOutput MediaOutput object innbelaevski Jun 26, 2009 5:49 PM (in response to orkun)1. Create MethodExpression (check TLD file for signature) 
 2. Call setCreateContent() and pass created MethodExpression as argument
- 
        2. Re: MediaOutput MediaOutput object inorkun Jun 28, 2009 5:12 AM (in response to orkun)thank you 
 I was wondering where I could find an example code ?
 regards
- 
        3. Re: MediaOutput MediaOutput object innbelaevski Jun 28, 2009 6:11 AM (in response to orkun)In the sources of tag/tag handler class for this component. 
- 
        4. Re: MediaOutput MediaOutput object inorkun Jun 30, 2009 2:53 AM (in response to orkun)hello 
 I tried in this way:
 MediaOutput myMedia = new MediaOutput ();
 String style = "width:600px ; height:450px ; border='1px'";
 myMedia.setStyle(style);
 myMedia.setCacheable(false);
 ExpressionFactory expressionFactory = FacesContext.getCurrentInstance().getApplication().getExpressionFactory();
 ELContext elContext = FacesContext.getCurrentInstance().getELContext();
 MethodExpression mediaMethodExpression = expressionFactory.createMethodExpression(elContext,
 "#{haritaBean1.drawFoto}",
 null,
 new Class[] {OutputStream.class,Object.class} );
 myMedia.setCreateContentExpression(mediaMethodExpression);
 myMedia.setCacheable(false);
 //view.getChildren().add(myMedia);
 children.add(myMedia);
 but no image can be seen
 What did I do wrong ?
 regards
 
    