Hi Jakob, Sine these things are new in HTML5 it is normal that you have to change > stuff on MyFaces in order to integrate it perfectly. The best you can do > here is (as we already discussed some time ago) a special init parameter to > enable/disable this stuff. > Right...
Thanks for the reply and ideas, Ali On Mon, May 17, 2010 at 9:20 PM, Jakob Korherr <[email protected]>wrote: > Hi Ali, > > Just a shot into the blue, but I think the following might work: > > In ClientBehavior.getScript(ClientBehaviorContext behaviorContext) you can > use behaviorContext.getComponent() and use getAttributes().put("draggable", > "true");. However draggable is not a standard bypass attribute and thus > MyFaces won't render it, so you'd have to change this stuff on MyFaces. > > About the thing with ondragstart and ondragend: You can do it, but again > you will have to change stuff on MyFaces. See > org.apache.myfaces.shared.renderkit.ClientBehaviorEvents and > HtmlRendererUtils.renderBehaviorizedEventHandlers() for details. > > Sine these things are new in HTML5 it is normal that you have to change > stuff on MyFaces in order to integrate it perfectly. The best you can do > here is (as we already discussed some time ago) a special init parameter to > enable/disable this stuff. > > I hope this helps you in some kind of way. > > > Regards, > Jakob > > > 2010/5/15 Ali Ok <[email protected]> > > At the components that I cannot modify, things got worse. I can never set >>> "draggable=true" on them: >>> >>> <h:inputText> >>> <fx:dragSupportClientBehavior .../> >>> </h:inputText> >>> >> >> Ignore these 2 sentences, since I can't set 'ondragstart' and 'ondragend' >> on <h:inputText> using a ClientBehavior anyway :) >> >> >> >> On Sat, May 15, 2010 at 3:02 AM, Ali Ok <[email protected]> wrote: >> >>> At the components that I cannot modify, things got worse. I can never set >>> "draggable=true" on them: >>> >>> <h:inputText> >>> <fx:dragSupportClientBehavior .../> >>> </h:inputText> >>> >> >> >> >> -- >> My Blog: http://blog.aliok.com.tr >> Twitter: http://twitter.com/aliok_tr >> >> > > > -- > Jakob Korherr > > blog: http://www.jakobk.com > twitter: http://twitter.com/jakobkorherr > work: http://www.irian.at > -- My Blog: http://blog.aliok.com.tr Twitter: http://twitter.com/aliok_tr
