Hi Werner, i had looked into myfaces accordeon panel, there is an other prototype version used than in inputSuggestAjax! My question was how AddResource would handle this?
Regards. Volker Werner Punz wrote: > Volker Weber schrieb: > >> Hi, >> >> accordeonpanel uses prototype version 1.4.0_pre11 from its own resource, >> inputSuggestAjax uses prototype version 1.4.0 from tomahawk prototype >> recource. >> >> I don't know exactly how addRecource works, but i guess they will get >> included both, with potentially conflicts. >> > Add resource is basically a resource handler, which loads the needed > resources for given components MyFaces basically avoids that way > duplicate imports. > > The resources themselves are loaded from the Tomahawk.jar by a class > referenced from AddResource (this class also is the reason for the > servlet filter in the tomahawk extensions, the filter triggers the > resource loader which serves the javascripts and other resources > directly from the jars). > > I woud say you will get potential conflicts because proto messes around > with basic objects at load time and you might get duplicate definition > of classes. > > Your best bet would be to reference the Proto lib from myfaces and avoid > your own import of the proto lib or to set a selective if before your > own import to avoid further conflicts. > > Also have a look at the accordeon panel implementation in myfaces, it > might be exactly what you need anyway. > -- Don't answer to From: address! Mail to this account are droped if not recieved via mailinglist. To contact me direct create the mail address by concatenating my forename to my senders domain.

