Application Execution Exception [Plugins Loading!!!] :(

Hi Guys,

Im getting this ERROR.

Application Execution ExceptionError Type: Application : [N/A]

Error Messages: The method warning was not found in component D:\ColdFusion10\cfusion\wwwroot\coldbox\system\plugins\MessageBox.cfc.
Ensure that the method is defined, and that it is spelled correctly.

Funny thing is when im check this “D:\ColdFusion10\cfusion\wwwroot\coldbox\system\plugins\MessageBox.cfc” file is there even when I pest this path in WINDOWS - RUN - BOX. it is opening the file.

I was writing “warning” method name. after checking messageBox.cfc. I found name “warn” Not “Warning”, I changed the name this error not coming anymore. But still message box not appearing.

Hi there,

Are you using renderMessage anywhere in your view?

The method warn will set your message. It does not display it.

Cheers,
Tom

That is because it is warn and not warning.

No I don’t think so, can you give an example? where should I use render function ? what is the syntax ?

Sorry im beginner

As you have posted no code.

Here is what my assumption is from that error message.

there is no warning method, means that you should be using the method warn as I said there is no method called warning it is warn and you can see this by opening the messagebox plugin.

For more information on how messagebox works.

http://wiki.coldbox.org/wiki/Plugins:MessageBox.cfm

hi Tom & Andrew,

can you all tell me Is there anyway I can use “cfmessagebox” for confirmation? or is there any coldbox plugin available ?

Thanks

show us how your trying to use MessageBox, you have given us very little to go on.

#getPlugin(“MessageBox”).renderIt()#

it solved my problem now it is rendering … Thanks

now this is my problem…

**

This is example script of coldfusion. im trying to use in my View confirmation box is not appearing. if it will true then it will call my delete method …

onclick is a JavaScript event, you cant run ColdFusion code on the client.

Look into jQuery for that.

hi Andrew,

`

Untitled Document

#getPlugin(“MessageBox”).renderIt()#

   
Select Category #**Name**#

 

`

This my code it is not working in normal cfm file it is working confirmation box is opening.

Ok I see what your doing, sorry you cant reference messagebox this way, I am assuming that your not using an event handler that returns the object?

Secondly, please for god sake. Move away from ColdFusion UI tags… Please… I can’t beg you enough here.

Look into jQuery.

Thanks Andrew,

sorry im just learning. I’ll keep in my mind not to use coldfusion UI Tags. im trying jquery now you have any example where you used confirmation box ?

I don’t use jQuery others do, so hopefully they will chime in, but that example should be in the jQuery docs.

ive extended the messageBox plugin to render a jquery powered message box.

What a coincidence! I was just trying out the MessageBox myself today for the first time, and I run into the same thing with the “warn” and “warning” differences. I took the liberty of changing the source code and submitted a pull request for the ColdBox guys to look at:

And since we are on the topic, I also submitted another pull request for adding the messages returned as an array as well instead of simply a string separated by
<br/>

ooh that last one is something I keep wanting too, I thought I raised a ticket for that many moons ago.

@Andrew Scott,
Just to clarify, I already made the changes to their code. You can just copy them into your CFC from the pull request I linked above, even if they decide not to implement them in their plugin.

That’s why I went oooh, because I have not got around to doing anything except raise a ticket many years ago. Problem is I forgot about it as I don’t use it much any more.

Anyway look forward to maybe Luis adding it to ColdBox.