Ok. How can I change the order of javascript files loading in Wicket? On 3/12/08, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: > > Hi > > Fernando, looks like there are a clash of some sort with the javascript, > so you could try to change load order of the javascript or something > like that(could it be because the calendar uses a different version of > yahoo lib?). Im sick currently, so cant help out. I hope to be up on my > feet by next week. > > Fernando Wermus wrote: > > I have developed some pages using the Nino Saturnino's accordion which > is in > > wicket-stuff. I got some erros in YU DatePicker when I added it to a > > Accordion. The error, a javascript error is the following, > > > > YAHOO.util.Event.purgeElement is not a function > > > http://..../resources/org.apache.wicket.extensions.yui.YuiLib/calendar/calendar.js > > Line 2983 > > > > For any ideas, this is my code, > > ... > > List<WebMarkupContainer> markupItems = new > > ArrayList<WebMarkupContainer>(); > > markupItems.add(new ResumenPartido( > AccordionPanelItem.ITEM_ID, > > inscripcion)); > > AccordionPanelItem itemResumenDelPartido = new > > AccordionPanelItem( "Resumen del partido " + inscripcion.getNombre(), > > markupItems); > > ... > > > > > > public class ResumenPartido extends Panel {.... > > public ResumenPartido(String id, InscripcionPartido inscripcion) { > > ... > > add(crearFecha("cuando", inscripcion)); > > ... > > } > > private DateTextField crearFecha(String id, InscripcionPartido > > inscripcion) { > > DateTextField fecha=new DateTextField(id,new > > PropertyModel(inscripcion,"cuandoDate")); > > fecha.add(new DatePicker(){ > > @Override > > protected boolean enableMonthYearSelection() { > > return true; > > } > > }); > > return fecha; > > } > > ...} > > > > > > > > -- > -Wicket for love > -Jme for fun > > Nino Martinez Wael > Java Specialist @ Jayway DK > http://www.jayway.dk > +45 2936 7684 > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
-- Fernando Wermus.
