This content has been marked as final.
Show 3 replies
-
1. Re: creating MediaOutput component DYNAMICALLY
nbelaevski Oct 2, 2008 4:48 AM (in response to orkun)You've been replied there: http://jboss.com/index.html?module=bb&op=viewtopic&t=143316
-
2. Re: creating MediaOutput component DYNAMICALLY
janson12 Oct 2, 2008 5:09 AM (in response to orkun)generally dynamical elements should look like this:
import org.ajax4jsf.component.html.MediaOutput; public class MyClass { private MediaOutput myMedia; // Constructor public MyClass () { myMedia = new MediaOutput () } // getter & Setter public MediaOutput getMyMedia() { return myMedia; } public void setMyMedia(MediaOutput myMedia) { this.myMedia = myMedia; } }
once you've initialized your MediaOutput in the constructor (or wherever) you should be able to configure it. on your jsf you need to make a property binding such as<a4j:mediaOutput binding="#{MyClass.myMedia }">
hope that helps -
3. Re: creating MediaOutput component DYNAMICALLY
sanjeevkoppal Oct 2, 2008 1:33 PM (in response to orkun)Did you look into your earlier post?