[TYPO3-project-formidable] Showing renderlet:MODALBOX in Formidable 1.0 branch
Jerome Schneider
typo3dev at ameos.com
Tue Jun 23 11:45:15 CEST 2009
Hi Niels !!
I tried the code and it worked ok for me on versions 1.0.0 and 1.1.0
PHP says that the class containing the code for datahandler:DBMM is not
loaded when objects are unserialized from the SESSION in the ajax
execution context.
To quickly correct this, you may uncomment in
ameos_formidable/ext_localconf.php the line:
//"DBMM" => array("key" => "dh_dbmm", "base" => TRUE),
To tell formidable to always load the DBMM datahandler.
The code I tried:
config.myform < config.tx_ameosformidable.quickconf.nodb
config.myform.elements {
10 = renderlet:BUTTON
10.label = Click me
10.onclick {
runat = ajax
userobj.php (
return $this->majixDebug("Hello World !");
)
}
button_test = renderlet:BUTTON
button_test {
name = button_test
label = Test
onclick {
runat = ajax
userobj.php (
return $this->aORenderlets['modalbox_test']->majixShowBox();
)
}
}
modalbox_test = renderlet:MODALBOX
modalbox_test {
name = modalbox_test
childs {
label_test = renderlet:TEXT
label_test {
name = label_test
label = Test
}
}
}
}
--
Best regards,
Jerome Schneider
Niels Pardon a écrit :
> Hey guys!
>
> I'm currently trying to let a modalbox appear with Formidable 1.0
> branch. I'm currently doing the following (via TypoScript):
>
> button_test = renderlet:BUTTON
> button_test {
> name = button_test
> label = Test
> onclick {
> runat = ajax
> userobj.php (
> return $this->aORenderlets['modalbox_test']->majixShowBox();
> )
> }
> }
>
> modalbox_test = renderlet:MODALBOX
> modalbox_test {
> name = modalbox_test
> childs {
> label_test = renderlet:TEXT
> label_test {
> name = label_test
> label = Test
> }
> }
> }
>
> I always get the following result displayed via javascript:alert():
>
> Fatal error: formidable_mainrenderlet::i18n_shouldNotTranslate() [<a
> href='formidable-mainrenderlet.i18n-shouldnottranslate'>formidable-mainrenderlet.i18n-shouldnottranslate</a>]:
> The script tried to execute a method or access a property of an
> incomplete object. Please ensure that the class definition
> &quot;tx_dhdbmm&quot; of the object you are trying to operate on
> was loaded _before_ unserialize() gets called or provide a __autoload()
> function to load the class definition in
> /var/www/seminars/typo3conf/ext/ameos_formidable/api/class.mainrenderlet.php
> on line 986
>
> What should I do to make this work?
>
> Greets,
>
> Niels
More information about the TYPO3-project-formidable
mailing list