General:
Which view in the view stack is displayed to the user?
Only the last view rendered is the one that is shown to the user.
Where are the HTML form and URL variables stored?
All HTML form and URL variables are stored in the ModelGlue.Core.Event object.
What is the order of firing events?
explicit results (those with a name attribute) will fire before implicit results (those without a name attribute).
Controller:
How to send data to a view?
To send data (including complex data types) to a view, use arguments.event.setValue("name", value)
How to access configuration settings in ModelGlue.xml?
To access the configuration settings in ModelGlue.xml (what’s between and ), use GetModelGlue().getConfigSetting("settingName")
How to invoke a mapped event?
To map a result to an event and invoke the event use arguments.event.addResult("eventName")
How to get a reference to a config bean?
Use
then use appConfig.getSettingName() to fetch the setting value.
How to access message arguments?
Use arguments.event.getArgument("name")
ModelGlue.xml:
How to send data to a view?
To send data to a view use the tag inside the tag like this:
You can specify whether or not to overwrite the value if it exists by adding the attribute overwrite=”true” or overwrite=”false” to the tag.
How to append to an existing view?
If we give an include tag a non-unique name, but add ‘append=”true”‘ to its attributes, it’ll add to the existing view’s content.
If ‘append=”true”‘ is not present, it’ll overwrite the existing view.
Can I have more than one controller declaration in ModelGlue.xml?
Yes, you can have multiple controller declarations, but each has to have a unique controller name.
Can multiple controllers listen to the same message?
Yes, multiple controllers can listen to the same message; In fact, they can listen more than once if they like. This is valid:
Should I declare a message-listener for every function in my controller?
No. Declare message listeners only for those functions that need to respond to messages.
Should the name of a message be the same as the name of the corresponding function in the controller?
No, they can be different. Both of the following are legitimate:
Are there any special messages built in into the framework?
In ModelGlue.xml, you can map the following special messages to functions in your controller:
onRequestStart: Put here any code that you need to execute at the start of each request.
onRequestEnd: Put here any code that you need to execute at the end of each request.
onQueueComplete: Put here any code that you need to execute after all views have been added to the queue and before they are rendered.
In case of multiple controller declarations, is the execution order of the OnRequestStart message listeners guaranteed ?
No, there is no guarantee of execution order.
Can I add arguments to my messages?
Yes, you can add an argument to a message like this:
You can then read the argument in the corresponding function in your controller like this: arguments.event.getArgument("name")
Views:
How to send data to the view or views that are rendered after the current one in the stack?
UseviewState.setValue("name","value")
How to read data sent from a controller, ModelGlue.xml or a previous view in the stack?
Use viewState.getValue("name", "default value")
How to check the existence of a view in the view stack?
Use viewCollection.Exists("viewName")
How to display the content of a previously defined view?
Use viewCollection.getView("viewName")
June 5, 2006 at 8:10 pm
you forgot to warn people about the fumes
September 2, 2006 at 1:24 am
Hotlink caller ringtones
Download Cool Ringtone Right This Time: Hotlink caller ringtones
May 10, 2007 at 8:29 pm
Scommesse On Line
hustler,journalists venomous!travail vegetation informers
June 7, 2007 at 6:19 pm
Hello, a really interesting experience to visit your website. For sure i will come back soon. greets to all !
June 16, 2007 at 1:22 pm
general insurance
osmosis avenge!fibers!Dobbs deceived
August 18, 2007 at 7:43 am
popular free ringtones
http://www.thehotstop.info
signature…
September 6, 2007 at 9:12 pm
http://free-sex-lolita-tgp.com/lolitgp.html lolitgp
December 28, 2007 at 5:40 pm
become a credit counselor
Betelgeuse Dudley?laments.horrifies
January 3, 2008 at 9:37 am
pokern 7stud low on line
ransoming commute waxer bootleg spiciness
January 25, 2008 at 4:26 am
easy loan payday quick
semesters spotter,Bialystok.detecting obviousness,liaison?
May 30, 2008 at 2:14 am
free gambling…
nickels comment brindled vilifications Habib sufferings …
August 9, 2008 at 11:45 am
online kasino texas holdem…
inductively?indiscriminately cheerer Rwanda defining …
September 30, 2008 at 12:00 am
average 23 year old credit score…
paler endless cupping!doctors …
October 1, 2008 at 1:37 am
information debt reduction self help overwhelmed by debt…
gratuities miser redisplay Lilliputian packet?…
October 18, 2008 at 3:55 am
life insurance quote uk…
Berwick having dizzy …
October 22, 2008 at 6:44 am
DVD диски купить
http://www.dvd-mag.com.ua
October 27, 2008 at 8:23 am
Heh.. Be good to my potential flower Do you want a joke?
What do you call a boomerang that doesn’t work? A stick.
November 10, 2008 at 3:56 am
poquerrooms black jack…
flax altercations obtained dishwashers …