-
1. Generate dragSupport and dropSupport acceptedTypes dynamically
nbk Feb 8, 2011 4:03 AM (in response to nbk)Ok. I noticed I was wrong about this. It actually is getting the resulting value of EL. I have a String variable attached to the value and when I print with a javascript alert the value of the fields it is dinamically getting the right values. But, when I goto drop it does not accept a value that should be accepted.
I'm trying with a dragSupport that after executing my function has dragType="emp02042011, emp02082011" and a dropSupport that after executing my other function for days has acceptedTypes="emp02082011". But I'm not aloud to drop the values from the drag into the drop.
Thinking about it, may it be so that as in my drag I have multiple values separated by ',' (as a literal would) my drag is not considering that separation and considers that the whole string been recovered from my function is a single type(I mean it's reading type 'emp02042011, emp02082011' and not like this 'emp02042011' and 'emp02082011'). If it were so, how could I make the separation for the dragType to accept different differenced types?