ColdBox JQueryUI Plugin (Active)

http://jqueryuiplugin.riaforge.org/

Hi,

I am trying to get this plugin working on CB 3.0 but having issues. Is anyone else using it on 3.0?

Some of the directions say to add this to the config file:

However, in 3.0 I am not sure where to put it.

Thanks in advance,

Mal

I know this was developed on 2.6.4, not sure if Ernst tested it on 3.0, yet.

But the value is a YOURSETTING in CB 2 and XML config and a custom setting in CB 3 config CFC.

// Custom Settings

settings = {

JQueryUIPlugin.baseRelativePath = includes/jQueryUI

};

Let us know if it works in 3.0

Tom

Hi Mallory,

I’m not using the plugin however in regards to the setting, place that in your Coldbox.cfc in the settings block. For example:

settings = {
JQueryUIPlugin.baseRelativePath = “includes/jQueryUI”
}

cheers,

Bill

Hey there. Thanks for getting back to me about this issue.

I emailed Ernst directly and he was nice enough to respond but it lead me to another issue.

Let me share with the list what he suggested.

Add it to the custom settings in your configure method, see:

http://wiki.coldbox.org/wiki/ConfigurationCFC.cfm

see example below:

// Custom Settings
settings = {
JQueryUIPlugin = {baseRelativePath=‘includes/
jQueryUI’},
myCoolArray = [1,2,3,4],
skinsPath = “views/skins”,
myUtil = createObject(“component”,"#appmapping#.model.util.MyUtility")
};

Now, I tried that code and got an error but, I figured that it was looking for the jQueryUI.cfc so I changed it to this:

// Custom Settings
settings = {
JQueryUIPlugin = {baseRelativePath=‘includes/jQueryUI’},
myCoolArray = [1,2,3,4],
skinsPath = “views/skins”,
myUtil = createObject(“component”,"#appmapping#.plugins.JQueryUI")
};

Now I get this error:

Oops! Exception Encountered
Application Execution Exception
Error Type: Controller.SettingNotFoundException : [N/A]
Error Messages: The setting jQueryUIPlugin.baseRelativePath does not exist.
FWSetting flag is false

The jquery js is in my includes directory under the jQueryUI directory

I’m not sure if anyone else can duplicate this.

Thanks,

Mal

Mallory,

Those other settings where just an example.

The only line you need is of course is:

JQueryUIPlugin = {baseRelativePath='includes/jQueryUI'}

Ernst

The structure notation won't work.

You need to use

settings = {
        JQueryUIPlugin.baseRelativePath = 'includes/jQueryUI'
};

And make sure you reinit, if you get the FWSetting flag is false that means
the previous reinit failed.

Hi Ernst,

I have this line exactly

settings = JQueryUIPlugin = {baseRelativePath=‘includes/jQueryUI’};

and I still get the error of:

Application Execution ExceptionError Type: Controller.SettingNotFoundException : [N/A]

Error Messages: The setting jQueryUIPlugin.baseRelativePath does not exist.
FWSetting flag is false

Try what Tom posted, that should work.

Next release of the plugin will use what I posted.

Ernst

I tried that code with the same results.

Thanks for you help guys. I know this may be tricky being between two different versions.

Mallory,

You are right, I apologize.

The plugin needs to be updated to work with 3.0 configuration CFC.

However, it will run in 3.0 if you are using the config XML file.

Tom

Try this instead:

settings[ 'JQueryUIPlugin.baseRelativePath' ] = 'includes/jQueryUI';

That should ensure the key name has the . in it and I believe it will
work (like the XML setting would).

Sean

Good call, Sean. That does the trick.

No worries,

My boss and I have been hacking and slashing at this to get it to work. It will be ugly but we might be able to help someone get it working if they are on 3.0

Thanks to everyone who replied!