[Model-Glue] Newbie here, Starter..... Need Help

28 views
Skip to first unread message

Xeondxb

unread,
Apr 17, 2013, 7:07:43 AM4/17/13
to model...@googlegroups.com

hi guys,

 

I successfully made form and made action it is submitting form but I don’t know  how to show result page and I don’t know what ever I did it is proper way or not,  please if someone get spare time have a look and let me know …

Appreciated!

Thanks

M.A


 

 
 

CFMVC.zip

Dan Wilson

unread,
Apr 17, 2013, 3:17:03 PM4/17/13
to model...@googlegroups.com
Read this: https://github.com/modelglue/modelglue-framework/wiki/How-To-Use-Bean-Injection

Looks like there is an error:
$funcREGISTERUSER.runFunction(C:\_web\xeon\controller\GetMyController.cfc:16) at 
Element INSERTDB is undefined in a Java object of type class [Ljava.lang.String;.

You tried to call an object from the beans scope, but you forgot to add that object to the beans attribute:

See your controller code for GetMyController? <cfcomponent output="false" hint="I am a Model-Glue controller." beans="RegUser" extends="ModelGlue.gesture.controller.Controller">

There is no bean in there for InsertDB

but on line 16, you are trying to call insertDB. You have to put it in the beans scope before trying to call it FROM the beans scope.

<cfset event.setValue("RegUser",beans.insertDB.insertData())/>


You can see the same information if you look at the Model Glue debugging:


1233msMessage ListenerInvoking registerUser in CFMVC.controller.GetMyController
 <message-listener message="do.Register.User" function="registerUser" /> 
 

1241msException
struct
Detail[empty string]
ErrNumber0
MessageElement INSERTDB is undefined in a Java object of type class [Ljava.lang.String;.
Resolvedname[empty string]
StackTracecoldfusion.runtime.UndefinedElementException: Element INSERTDB is undefined in a Java object of type class [Ljava.lang.String;. at coldfusion.runtime.CfJspPage.resolveCanonicalName(CfJspPage.java:1724) at coldfusion.runtime.CfJspPage._resolve(CfJspPage.java:1677) at coldfusion.runtime.CfJspPage._resolve(CfJspPage.java:1665) at cfGetMyController2ecfc1593771727$funcREGISTERUSER.runFunction(C:\_web\xeon\controller\GetMyController.cfc:16) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55) at coldfusion.runtime.UDFMet
 

Wednesday, April 17, 2013 7:07 AM
--
--
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog
 
You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to model...@googlegroups.com
To unsubscribe from this group, send email to
model-glue+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en
---
You received this message because you are subscribed to the Google Groups "model-glue" group.
To unsubscribe from this group and stop receiving emails from it, send an email to model-glue+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply all
Reply to author
Forward
0 new messages