[opencms-dev] Dynamic ComboBox Question (URGENT)
Jonathan Woods
jonathan.woods at scintillance.com
Fri May 5 10:19:21 CEST 2006
Good point.
There needn't be a problem with XML document validation, because the
OpenCms-flavoured schema would probably not be valdating down to that level.
As far as rendering old data is concerned, you'd just have to write a more
intelligent extension of CmsComboWidget: when called upon to render itself
with an obsolete value as the current value, it would have to render the
obsolete entry too, but have some means - Javascript, I guess - of
preventing reselection annd allowing only current entries to be chosen.
This is a problem which must have been solved many times in the past - I
know I've ended up writing several HTML form toolkits over the years! - so I
wonder if for OpenCms 7 some more extensible and de facto standard toolkit
couldn't be used. Perhaps this will all be part of the AJAX work which
Alkacon have said they'll do.
Jon
-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Tomáš Adámek
Sent: 05 May 2006 09:07
To: The OpenCms mailing list
Subject: Re: [opencms-dev] Dynamic ComboBox Question (URGENT)
Hello,
This sounds very interesting, I just would to ask if there wont be some
problem with this "dynamic content listbox" in saved XML document. What
would happen, if the content of listbox will be changed later and I will try
to edit previously created document saved with some different count or
parameters names of that combo box. Thx for your answer.
Alexander Kandzior napsal(a):
> Yes, this is possible.
>
> I assume you want to have this "dynamic combobox" in an XML content.
>
> To do this, you need to extend the class
> "org.opencms.widgets.CmsComboWidget". In the extended class, you need
> to replace the logic that creates the select entries with something
> else. See
> "org.opencms.widgets.A_CmsSelectWidget#addSelectOption(CmsSelectWidget
> Option )" for a method you potentially need to overload. You will have
> to register your custom widget class in the appinfo node of your XML
> content or the global configuration file "opencms-vfs.xml".
>
> Kind Regards,
> Alex.
>
> -------------------
> Alexander Kandzior
>
> Alkacon Software GmbH - The OpenCms Experts
> http://www.alkacon.com - http://www.opencms.org
>
>
>
>
>
> ________________________________
>
> From: opencms-dev-bounces at opencms.org
> [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Mario D'Angelo
> Sent: Thursday, May 04, 2006 3:33 PM
> To: opencms-dev at opencms.org
> Subject: [opencms-dev] Dynamic ComboBox Question (URGENT)
>
>
>
> Hi List,
>
>
>
> I need to create a custom xml article where users can select the
area
> name from the list of microsites. I was thinking about creating a
> Dynamic ComboBox getting the resource name of all MicroSites. Is it
> possible to make Dynamic ComboBox using OpenCms 6.2 ?
>
>
>
> Please somebody answer this question whether it is positive or
> negative.
>
>
>
> Thank you,
>
>
>
> M.
>
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list To change
> your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
--
Tomas Adamek Qbizm technologies, a.s.
analyst-developer ... the art of software.
____________________________________________________________________
www.qbizm-technologies.cz www.qbizm.cz www.qbizm-services.cz
_______________________________________________
This mail is sent to you from the opencms-dev mailing list To change your
list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev
More information about the opencms-dev
mailing list