[TYPO3-project-formidable] Edit in list using a modalbox, using renderlet:LISTBOX inside the modalbox
Jerome Schneider
typo3dev at ameos.com
Mon Mar 9 16:43:35 CET 2009
Hi Kontaxis Panagiotis,
I gave a try to your code, and everything was ok for me.
What version of Formidable are you using ?
To explain the workaround: the problem is that Formidable adds the
javascript file for listbox to the HTML page if listboxes can be found
only in the modalbox (this is due to a bug). The workaround is then to
add another listbox (this time, not in the modalbox) to help Formidable
detect that your application needs the javascript file for listbox.
Regards,
Jerome Schneider
Kontaxis Panagiotis a écrit :
> O/H Jérôme Schneider έγραψε:
>> Hi Kontaxis Panagiotis,
>>
>> There's is a bug in Formidable there. A quick workaround is to add
>> another listbox in your XML, but this time *not* in the modalbox.
>>
>>
>> I'll report this to the BugTracker if you confirm this.
>>
>> Best regards,
>> Jerome
>>
>> Kontaxis Panagiotis a écrit :
>>> Hello!
>>>
>>> I tried the new "Edit in list using a modalbox" example.
>>>
>>> I used renderlet:TEXT and renderlet:BUTTON inside the modalbox
>>> successfully but I couldn't use renderlet:LISTBOX inside the
>>> modalbox. When I added renderlet:LISTBOX, the modalbox didn't appear.
>>>
>>> Maybe modalbox supports only renderlet:TEXT and renderlet:BUTTON?
>>>
>>> My code of modalbox follows:
>>> <renderlet:MODALBOX name="editbox">
>>> <childs>
>>> <renderlet:TEXT name="title" label="Title" />
>>> <renderlet:LISTBOX name="list_pack" label="Packs List">
>>> <data>
>>> <items>
>>> <item caption="pack1" value="1"/>
>>> <item caption="pack2" value="2"/>
>>> </items>
>>> </data>
>>> </renderlet:LISTBOX>
>>> <renderlet:BUTTON name="btnCancel" label="Cancel">
>>> <onclick runat="client" exec="cb1.btnCancel_click()" />
>>> </renderlet:BUTTON>
>>> <renderlet:BUTTON name="btnSave" label="Save and close">
>>> <onclick
>>> runat="ajax"
>>> params="editbox.title, editbox.subtitle"
>>> cache="false"
>>> exec="cb1.btnSave_click()"
>>> />
>>> </renderlet:BUTTON>
>>> </childs>
>>> </renderlet:MODALBOX>
>
> Hi!
> Thanks for the quick answer.
> I submit the bug to the bugtracker.
> I didn't understand very well the workaround. Outside the modalbox I 'm
> using renderlet:LISTBOX normally.
>
> Regards
> Panagiotis
More information about the TYPO3-project-formidable
mailing list