[GSOC-HTML5] ClientBehavior and ClientBehaviorHolder's attributes

2010-05-14 Thread Ali Ok
Hi, I am trying to write some prototypes about DnD support. I want to use ClientBehaviors for this issue. I wonder if a code like can produce What I need is, having a ClientBehavior setting an HTML5 element's "draggable" attribute set to "true". Thanks to ClientBehaviors, I can e

Re: [GSOC-HTML5] ClientBehavior and ClientBehaviorHolder's attributes

2010-05-14 Thread Ali Ok
> > At the components that I cannot modify, things got worse. I can never set > "draggable=true" on them: > > > > > Ignore these 2 sentences, since I can't set 'ondragstart' and 'ondragend' on using a ClientBehavior anyway :) On Sat, May 15, 2010 at 3:02 AM, Ali Ok wrote:

Re: [GSOC-HTML5] ClientBehavior and ClientBehaviorHolder's attributes

2010-05-17 Thread Jakob Korherr
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 M

Re: [GSOC-HTML5] ClientBehavior and ClientBehaviorHolder's attributes

2010-05-17 Thread Ali Ok
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 a