Re: how to add field to event in a wicket.jquery.ui calendar
Hi sebastien, Thanks for the reply. Yes I called calendar.refresh(target) and I use a CompoundPropertyModel. May be i did not use these the right way? I called also calendar.modelChanged() after the form submit but still the same behavoir. Please see my attached quick start zip. Best regards. s-quickstart.zip http://apache-wicket.1842946.n4.nabble.com/file/n4663644/s-quickstart.zip - Selom -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-add-field-to-event-in-a-wicket-jquery-ui-calendar-tp4663617p4663644.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
how to add field to event in a wicket.jquery.ui calendar
Hi all, I am currently based on the com.googlecode.wicket.jquery.ui.samples.pages.calendar.ExtendedCalendarPage I have added in my dialog panel (AbstractFormDialog) another field ( an identifiant in a wicket.jquery.ui..AutoCompleteTextFieldString(identifiant) ). The event model looks like this: Part of the event popup. But after clicking on the save button from the dialog, my field is not showned in the calendar (like the title) Any help would be appreciate. Thanks to you in advance. - Selom -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-add-field-to-event-in-a-wicket-jquery-ui-calendar-tp4663617.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: RadioGroup selected model value
Hi Sven, Thanks for the clarification . Now I understand much more. I tried out your code your code with the following modification. Now when the page is shown , * the object with value debut2 is effectively selected as expected*. I Thanks you . - Selom -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/RadioGroup-selected-model-value-tp4662998p4663034.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RadioGroup selected model value
Hello, I confess I don't understand wicket radiogroup ( and model ). i spent too much time with it . Here is my problem. *AgPage.html* I would like to have debut2 to be *selected *, since visible = true. Thanks for tour help. - Selom -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/RadioGroup-selected-model-value-tp4662998.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
SortableDataProvider doesn't want to sort my list
Hello Everyboby, //piece of ListeNvxEntrantsPage.html When I click on the nom header nothing happened and no error in the logs. Could you help me please ? Thanks to you in advance. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/SortableDataProvider-doesn-t-want-to-sort-my-list-tp4662447.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Another same probleme with wicket:enclosure tag[SOLVED]
Hi !! Ok for closing this topic. I created a custom panel. and the PanelAgent.html like this. //In web Page class private PanelAgent panelInfosAgent = new PanelAgent(panelInfosAgent,new ModelAgent(Agent.emptyAgent())){ @Override protected void onConfigure(){ if (agentBySesame==null){ this.setVisible(false); } else { setVisible(true); } } }; Then in the web page html wicket:enclosure child=panelInfosAgent div wicket:id=panelInfosAgent/div /wicket:enclosure /div And it works as expected. That's a best pratices I think. Next time. Selom wrote When formulaireRechercheAgent is submitted, formulaireAgent come with * null value model. * Do you mind tell me what wrong with this code ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Another-same-probleme-with-wicket-enclosure-tag-tp4662371p4662425.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Another same probleme with wicket:enclosure tag
Hi, Need your help ... in MyPage .java { //bla bla ... private class FormulaireRechercheAgent extends FormAgent{ public FormulaireRechercheAgent(String id) { super(id,new CompoundPropertyModelAgent(new Agent())); } } final Label labelAgentMailpro = new Label(agentMailpro){ @Override protected void onConfigure(){ if (agentBySesame==null){ this.setVisible(false); } } }; // another bla bla final FormulaireRechercheAgent formulaireRechercheAgent = new FormulaireRechercheAgent(formulaireRechercheAgent); formulaireRechercheAgent.add(new AjaxButton(btnRecherche, new ModelString(Rechercher)) { private static final long serialVersionUID = 1L; @Override public void onSubmit(AjaxRequestTarget target, Form? form) { //selected agent Agent modelObject = formulaireRechercheAgent.getModelObject(); setAgentBySesame(getLdapAgentsDao().findAgentBySesame(modelObject.getSesame())); formulaireRechercheAgent.add(labelAgentMailpro); labelAgentMailpro.setDefaultModelObject(agentBySesame.getEmailPro()); // target.add(labelAgentMailpro); target.add(formulaireRechercheAgent.getParent()); //target.add(formulaireRechercheAgent); }//onsubmit @Override protected void onError(AjaxRequestTarget target, Form? form) { //bla bla } }); } MyPage.html form wicket:id=formulaireRechercheAgent wicket:enclosure child=agentMailpro /wicket:enclosure /form When I call MyPage then it failed. Root cause: org.apache.wicket.WicketRuntimeException: Could not find child with id: agentMailpro in the wicket:enclosure at org.apache.wicket.markup.html.internal.Enclosure.checkChildComponent(Enclosure.java:250) at org.apache.wicket.markup.html.internal.Enclosure.getChildComponent(Enclosure.java:228) at org.apache.wicket.markup.html.internal.Enclosure.onInitialize(Enclosure.java:132) at org.apache.wicket.Component.fireInitialize(Component.java:864) at org.apache.wicket.MarkupContainer.internalInitialize(MarkupContainer.java:955) at org.apache.wicket.MarkupContainer.addedComponent(MarkupContainer.java:932) at org.apache.wicket.MarkupContainer.add(MarkupContainer.java:174) at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:258) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1379) at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1554) at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1529) at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1484) at org.apache.wicket.markup.html.form.Form.onComponentTagBody(Form.java:1683) at org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:71) at org.apache.wicket.Component.internalRenderComponent(Component.java:2549) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1493) at org.apache.wicket.Component.internalRender(Component.java:2379) at org.apache.wicket.Component.render(Component.java:2307) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1390) at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1554) at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1529) at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1484) at org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:71)
Re: Another same probleme with wicket:enclosure tag
Hello, Thanks you for yours reply. Of course, I want to show my label if only if the form formulaireRechercheAgent is submitted successfully. I believe the form is not called yet , since I can not reach the html page. Sincerly yours. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Another-same-probleme-with-wicket-enclosure-tag-tp4662371p4662375.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Another same probleme with wicket:enclosure tag
You are right, adding add(labelAgentMailpro) beforesolved the problem. Thank you very much. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Another-same-probleme-with-wicket-enclosure-tag-tp4662371p4662378.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Another same probleme with wicket:enclosure tag
Now I replace the label by a form like this private FormulaireAgent formulaireAgent = new FormulaireAgent(formulaireAgent, new Agent()){ @Override protected void onConfigure(){ if (agentBySesame==null){ this.setVisible(false); } else { setVisible(true); } } }; public class FormulaireAgent extends FormAgent{ public FormulaireAgent(final String id, Agent agent) { super(id, new CompoundPropertyModelAgent(agent)); add(new Label(idNomPrenom, agent.getPrenom() + + agent.getNom())); add(new Label(idCorps, agent.getCorps())); add(new Label(idAffectations, agent.getAffectation())); add(new Label(idNaissance, agent.getDateNaisAsString())); add(new Label(idEntreeEtab, agent.getDateEntreeAsString())); add(new Label(idDateConvoc, agent.getDateConvocAsString())); add(new Label(idDateVM, agent.getDateVMasString())); } } // Buttons // formulaireRechercheAgent.add(new AjaxButton(btnRecherche, new ModelString(Rechercher)) { private static final long serialVersionUID = 1L; @Override public void onSubmit(AjaxRequestTarget target, Form? form) { //selected agent Agent modelObject = formulaireRechercheAgent.getModelObject(); setAgentBySesame(modelObject); *formulaireAgent.setDefaultModelObject(getAgentBySesame());* formulaireAgent.setVisible(true); target.add(formulaireAgent); target.add(formulaireRechercheAgent.getParent()); }//onsubmit A piece od the html file. When formulaireRechercheAgent is submitted, formulaireAgent come with *null value model. * Do you mind tell me what wrong with this code ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Another-same-probleme-with-wicket-enclosure-tag-tp4662371p4662395.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket integration with Spring ldap
Hello, I am crushing with my hairs with the following problem. I don't know why Wicket won't instantiate my ldap bean. Here is the *web.xm*l ?xml version=1.0 encoding=ISO-8859-1? web-app xmlns=http://java.sun.com/xml/ns/javaee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; version=2.5 display-nameamemet/display-name context-param param-nameconfiguration/param-name param-valuedevelopment/param-value /context-param context-param param-namecontextConfigLocation/param-name param-valueclasspath:applicationContext.xml/param-value /context-param filter filter-namewicket.amemet/filter-name filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class init-param param-nameapplicationClassName/param-name param-valueorg.univ.amemet.ApplicationAmemet/param-value /init-param /filter filter filter-nameSpringContext/filter-name filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class init-param param-nameapplicationFactoryClassName/param-name param-valueorg.apache.wicket.spring.SpringWebApplicationFactory/param-value /init-param /filter filter-mapping filter-namewicket.amemet/filter-name url-pattern/*/url-pattern /filter-mapping filter-mapping filter-nameSpringContext/filter-name url-pattern/*/url-pattern dispatcherREQUEST/dispatcher dispatcherINCLUDE/dispatcher /filter-mapping listener listener-class org.springframework.web.context.ContextLoaderListener /listener-class /listener filter filter-nameOpenEntityManagerInViewFilter/filter-name filter-classorg.springframework.orm.jpa.support.OpenEntityManagerInViewFilter/filter-class /filter filter-mapping filter-nameOpenEntityManagerInViewFilter/filter-name url-pattern/*/url-pattern /filter-mapping /web-app in maven /src/main/resources a piece of my * applicationContext.xml* . ?xml version=1.0 encoding=UTF-8? beans xmlns=http://www.springframework.org/schema/beans; xmlns:p=http://www.springframework.org/schema/p; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:context=http://www.springframework.org/schema/context; xmlns:tx=http://www.springframework.org/schema/tx; xsi:schemaLocation= http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd; context:annotation-config/ tx:annotation-driven/ context:component-scan base-package=org.amemet / context:component-scan base-package=org.univ.amemet / context:component-scan base-package=org.springframework.ldap/context:component-scan import resource=classpath:ldap.xml/ bean id=applicationAmemet class=org.univ.amemet.ApplicationAmemet /beans and the ldap.xml ?xml version=1.0 encoding=UTF-8? beans xmlns=http://www.springframework.org/schema/beans; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd; bean id=contextSource class=org.springframework.ldap.pool.factory.PoolingContextSource property name=contextSource ref=contextSourceTarget / property name=dirContextValidator ref=dirContextValidator / property name=testOnBorrow value=true / property name=testWhileIdle value=true / /bean bean id=dirContextValidator class=org.springframework.ldap.pool.validation.DefaultDirContextValidator / bean id=contextSourceTarget
Re: Wicket integration with Spring ldap
Hi, I removed the SpringContext filter but still got the same error . Then I changed the configuration based on the how to setup Wicket+Spring with annotation based (@Configuration) https://github.com/jWeekend/LegUp/tree/master/wicket-spring-jpa of yours. @Configuration @EnableTransactionManagement(proxyTargetClass = true) public class Config { @Bean public ILdapComposanteDao ldapComposanteDao() { ILdapComposanteDaoImpl iLdapComposanteDaoImpl = new ILdapComposanteDaoImpl(); iLdapComposanteDaoImpl.setLdapTemplate(ldapTemplate()); return iLdapComposanteDaoImpl; } @Bean public LdapTemplate ldapTemplate(){ return new LdapTemplate(contextSource()); } @Bean public DefaultDirContextValidator dirContextValidator (){ return new DefaultDirContextValidator(); } @Bean public PoolingContextSource contextSource(){ PoolingContextSource pc= new PoolingContextSource(); pc.setContextSource(contextSourceTarget()); pc.setDirContextValidator(dirContextValidator()); pc.setTestOnBorrow(true); pc.setTestWhileIdle(true); return pc; } @Bean public LdapContextSource contextSourceTarget(){ LdapContextSource ldapContextSource = new LdapContextSource(); ldapContextSource.setUrl(blablabla); ldapContextSource.setBase(dc=xx,dc=xx,dc=fr); ldapContextSource.setUserDn(cn=...,ou=,dc=...,dc=...,dc=fr); ldapContextSource.setPassword(pwss); return ldapContextSource; } } And I work as expected . Thanks you very much . -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-integration-with-Spring-ldap-tp4662097p4662110.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
jquery.ui.calendar.Calendar disable next button
Hello; Need your help again . I 'd like to disable the next buton when moving the calendar one step forward at my specified date let say 31 december. I there any *option * to do that ? Thanks in advance. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/jquery-ui-calendar-Calendar-disable-next-button-tp4661918.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: jquery.ui.calendar.Calendar disable next button [SOLVED]
I did not see the 2 methods onViewRender and isViewRenderEnabled but I saw *isViewDisplayEnabled *and *onViewDisplay *in the ICalendarListener. I override them with the your code above. wonderful . It works nicely ... Thank you again . -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/jquery-ui-calendar-Calendar-disable-next-button-tp4661918p4661920.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicket- jqueryui Kendo DateTimePicker timePattern
Hi, Sorry I did not explain very well my problem. I am using the DateTimePicker (because i need the date ) class and there no constructor with such options ? Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-jqueryui-Kendo-DateTimePicker-timePattern-tp4661862p4661867.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicket- jqueryui Kendo DateTimePicker timePattern [RESOLVED]
Hello Sebastien, I did it like this. final DateTimePicker startDateTimePicker = new DateTimePicker(start,dd/MM/,HH:mm){ @Override protected TimePicker newTimePicker(String id, IModelDate model, String timePattern) { Options options = new Options(); options.set(interval,45); options.set(min, new Date(2000, 0, 1, 9, 0, 0)); options.set(max, new Date(2020, 0, 1, 12, 0, 0)); return new TimePicker(id, model, timePattern, options); //return new TimePicker(id, model, timePattern); } }; And I enjoyed. Thank you for you help. Sebastien wrote Hi, You can override DateTimePicker#newTimePicker Best regards, Sebastien. On Fri, Oct 18, 2013 at 9:53 AM, Selom lt; pierre.kouvel@ gt; wrote: Hi, Sorry I did not explain very well my problem. I am using the DateTimePicker (because i need the date ) class and there no constructor with such options ? Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-jqueryui-Kendo-DateTimePicker-timePattern-tp4661862p4661867.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscribe@.apache For additional commands, e-mail: users-help@.apache -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-jqueryui-Kendo-DateTimePicker-timePattern-tp4661862p4661870.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
wicket- jqueryui Kendo DateTimePicker timePattern
Hi, In *com.googlecode.wicket.jquery.ui.kendo.datetime.DateTimePicker* How Can I change the Time pattern ?. Instead of having the list 00:00 00:30 1:00 23:30 I would like to have only my own *9:00 9:45 10:30 11:15* for exemple. Thank for your help. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-jqueryui-Kendo-DateTimePicker-timePattern-tp4661862.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: jquery.ui.calendar hiddenDays
Hi! I upgraded from 6.7 to 6.11.0 and It works. Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/jquery-ui-calendar-hiddenDays-tp4661704p4661728.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
jquery.ui.calendar hiddenDays
Hi, For going forward with I am using wicket-jqueryui https://github.com/sebfz1/wicket-jquery-ui/ . I would like to hide some days in the calendar, setting like this : options.set(hiddenDays,[2,5]); But nothing happened. I noticed also that there is no such *hiddenDays *in the *fullCalendar.min.js* fullCalendar v1.6.1 Thank for your help. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/jquery-ui-calendar-hiddenDays-tp4661704.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Calendar set Locale
Hi everybody. I am a newby with wicket ... Actually I am using jquery.ui.*calendar*. Nice. And I don't know how to set this Locale from English to *French*. Thanks for you help. Regards. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Calendar-set-Locale-tp4661491.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Calendar set Locale
Hello, I am using https://github.com/sebfz1/wicket-jquery-ui/ -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Calendar-set-Locale-tp4661491p4661493.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Calendar set Locale [SOLVED]
Hi Seb, Like someone says, it works like clockwork. Thanks you very much. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Calendar-set-Locale-tp4661491p4661496.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org