Re: resources in wicket have problem.
Hi thanks for all answers and helps. I find problem and resolve that. problem was in BasePage.html in first line into head tag. it was cause of my issue and after deleting my project working well. again thanks for all of you :* Francois Meillet <francois.meil...@gmail.com> در تاریخ سهشنبه ۸ ژوئن ۲۰۲۱ ساعت ۱۷:۴۴ نوشت: > Could you disable JavaScript in your browser and test your page ? > Or in your MetronicAssets, comment all JavaScriptReferenceHeaderItems. > > PS: create a quickstart with this tool > https://wicket.apache.org/start/quickstart.html < > https://wicket.apache.org/start/quickstart.html> > > François > > > > > Le 8 juin 2021 à 11:29, vahid ghasemi a > écrit : > > > > I'll do that but I'm not sure about working. > > i think if you clone the project and test it you can easily know about > the > > problem. > > my problem is not just images and also in this status all of my js and > css > > working. > > my links don't work and this problem is inconsequential to resources. > > pls clone and just run the project and you can see what is the problem. > > > > Bergmann Manfred <m...@software-by-mabe.com> در تاریخ سهشنبه ۸ > ژوئن > > ۲۰۲۱ ساعت ۱۳:۰۸ نوشت: > > > >> Hi. > >> > >> Just had a quick look. > >> I find it quite difficult to see through. Too many involved classes. > >> > >> All the assets you have in your ’java’ source root should actually be in > >> ‚resources‘, that’s what this is for. > >> Some build tools (I believe also IntelliJ by default) don’t even copy > >> resources from the source folders to build output folders without > >> explicitly saying so. > >> > >> > >> Manfred > >> > >> > >>> Am 08.06.2021 um 10:15 schrieb vahid ghasemi < > vahidghasemi...@gmail.com > >>> : > >>> > >>> test & ui packages are main packages and others are not important. > >>> ir.iais.test.MyApplication is starting. > >>> an my two pages is: > >>> ir.iais.test.panelTest.LabelPage.java > >>> ir.iais.test.panelTest.PabelPage.java > >>> These Panels are extended from BasicPage which is extended from > >> ir.iais.ui.BasePage. > >>> BasePage.html has () that is implemented in LabelPage and > >> PabelPage and my images are in BasePage.html(you can find with searching > >> "profilePhotoHeader" and "profilePhotoPopUp") > >>> The home page is one of (LabelPage,PabelPage) and my clickable Panel is > >> MetronicLinkPanel and I determine the destination Page in that > constructor. > >>> > >>> - > >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > >>> For additional commands, e-mail: users-h...@wicket.apache.org > >> > >> > >
Re: resources in wicket have problem.
add(new Image("profilePhotoHeader", new PackageResourceReference(Bootstrap5.class, "media/avatars/blank.png"))); just say what you need to know. Can I send a file or image here? Bergmann Manfred <m...@software-by-mabe.com> در تاریخ دوشنبه ۷ ژوئن ۲۰۲۱ ساعت ۲۱:۳۷ نوشت: > > Hi. > > Hard to say anything without more info. > How are you loading the images? > > Did you have a look here? > https://ci.apache.org/projects/wicket/guide/8.x/single.html#_package_resources > > > > Manfred > > > Am 07.06.2021 um 18:55 schrieb vahid ghasemi : > > > > I created a new web application with 2 pages. > > The first page is my home page and has a wicket link for getting to the > > second page and has some images. > > The second page has a wicket link for getting to the first page and has > > some images too. > > when I deploy the project on my PC everything is ok(images are shown and > > link working for getting to the second page(with setResponsePage() method)) > > but after clicking on the link and getting on the second page everything is > > wrong(images aren't shown and the link is not working). > > after debugging I figure out images resources on the first page is complete > > (./wicket/resource/{other_path}). > > but when I go to the second page, my URL is > > (localhost:8080/wicket/bookmarkable/{class_page_name}) and Wicket for > > getting a shorter URL images resources is (../resource/{other_path}) and > > when I move my cursor on the link I found out that the absolute image > > source is (localhost:8080/resource/{other_path}) instead of > > (localhost:8080/wicket/resource/{other_path}). > > It is good and should work. but is not working on my project and images are > > not found and also the link for getting to the first page not working. > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
resources in wicket have problem.
I created a new web application with 2 pages. The first page is my home page and has a wicket link for getting to the second page and has some images. The second page has a wicket link for getting to the first page and has some images too. when I deploy the project on my PC everything is ok(images are shown and link working for getting to the second page(with setResponsePage() method)) but after clicking on the link and getting on the second page everything is wrong(images aren't shown and the link is not working). after debugging I figure out images resources on the first page is complete (./wicket/resource/{other_path}). but when I go to the second page, my URL is (localhost:8080/wicket/bookmarkable/{class_page_name}) and Wicket for getting a shorter URL images resources is (../resource/{other_path}) and when I move my cursor on the link I found out that the absolute image source is (localhost:8080/resource/{other_path}) instead of (localhost:8080/wicket/resource/{other_path}). It is good and should work. but is not working on my project and images are not found and also the link for getting to the first page not working.
Re: resources in wicket have problem.
https://github.com/vahida1157/wicketbase this is my project. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: resources in wicket have problem.
test & ui packages are main packages and others are not important. ir.iais.test.MyApplication is starting. an my two pages is: ir.iais.test.panelTest.LabelPage.java ir.iais.test.panelTest.PabelPage.java These Panels are extended from BasicPage which is extended from ir.iais.ui.BasePage. BasePage.html has () that is implemented in LabelPage and PabelPage and my images are in BasePage.html(you can find with searching "profilePhotoHeader" and "profilePhotoPopUp") The home page is one of (LabelPage,PabelPage) and my clickable Panel is MetronicLinkPanel and I determine the destination Page in that constructor. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: resources in wicket have problem.
I'll do that but I'm not sure about working. i think if you clone the project and test it you can easily know about the problem. my problem is not just images and also in this status all of my js and css working. my links don't work and this problem is inconsequential to resources. pls clone and just run the project and you can see what is the problem. Bergmann Manfred <m...@software-by-mabe.com> در تاریخ سهشنبه ۸ ژوئن ۲۰۲۱ ساعت ۱۳:۰۸ نوشت: > Hi. > > Just had a quick look. > I find it quite difficult to see through. Too many involved classes. > > All the assets you have in your ’java’ source root should actually be in > ‚resources‘, that’s what this is for. > Some build tools (I believe also IntelliJ by default) don’t even copy > resources from the source folders to build output folders without > explicitly saying so. > > > Manfred > > > > Am 08.06.2021 um 10:15 schrieb vahid ghasemi >: > > > > test & ui packages are main packages and others are not important. > > ir.iais.test.MyApplication is starting. > > an my two pages is: > > ir.iais.test.panelTest.LabelPage.java > > ir.iais.test.panelTest.PabelPage.java > > These Panels are extended from BasicPage which is extended from > ir.iais.ui.BasePage. > > BasePage.html has () that is implemented in LabelPage and > PabelPage and my images are in BasePage.html(you can find with searching > "profilePhotoHeader" and "profilePhotoPopUp") > > The home page is one of (LabelPage,PabelPage) and my clickable Panel is > MetronicLinkPanel and I determine the destination Page in that constructor. > > > > - > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > For additional commands, e-mail: users-h...@wicket.apache.org > >
pass error in submit method
Hello How can I pass an error in an onSubmit method? I have some errors that can detect in the onSubmit method. I throw exceptions at end of the onSubmit method. In the catch block, I call the error method, but after that, I expect to don't go into the afterOnSubmit method, but he will go and I am getting the wrong response.
Re: pass error in submit method
thanks again for answering my questions. can you send me some examples of this concept? (IRequestCycleListener#onException()) just I want to know more about that. On Tue, Jun 29, 2021 at 8:32 PM Sven Meier wrote: > Hi, > > you could use a FormValidator. > > Or let your onSubmit() (or any code it forwards to) throw exceptions and > register an IRequestCycleListener#onException() to handle exceptions > during form submit. > > Have fun > Sven > > > On 29.06.21 17:51, vahid ghasemi wrote: > > I want to add form data to the database. > > so it's not good to loading data for every input and checks from the > > database. > > I am using validation and when everything is ok then I connect to the > > database for better performance :). > > one Idea is to call the onError method into the onSubmit method. but I > want > > to know is a better way to handle this situation? > > > > On Tue, Jun 29, 2021 at 8:11 PM Maxim Solodovnik > > wrote: > > > >> Maybe it would be better to perform checks during validation ? > >> > >> from mobile (sorry for typos ;) > >> > >> > >> On Tue, Jun 29, 2021, 22:33 vahid ghasemi > >> wrote: > >> > >>> Hello > >>> How can I pass an error in an onSubmit method? > >>> I have some errors that can detect in the onSubmit method. > >>> I throw exceptions at end of the onSubmit method. > >>> In the catch block, I call the error method, but after that, I expect > to > >>> don't go into the afterOnSubmit method, but he will go and I am getting > >>> the wrong response. > >>> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: pass error in submit method
I want to add form data to the database. so it's not good to loading data for every input and checks from the database. I am using validation and when everything is ok then I connect to the database for better performance :). one Idea is to call the onError method into the onSubmit method. but I want to know is a better way to handle this situation? On Tue, Jun 29, 2021 at 8:11 PM Maxim Solodovnik wrote: > Maybe it would be better to perform checks during validation ? > > from mobile (sorry for typos ;) > > > On Tue, Jun 29, 2021, 22:33 vahid ghasemi > wrote: > > > Hello > > How can I pass an error in an onSubmit method? > > I have some errors that can detect in the onSubmit method. > > I throw exceptions at end of the onSubmit method. > > In the catch block, I call the error method, but after that, I expect to > > don't go into the afterOnSubmit method, but he will go and I am getting > > the wrong response. > > >
Re: pass error in submit method
I am trying to use the above code and I getting this error: Non-static method 'getPage()' cannot be referenced from a static context. my wicket version is 8.9.0. On Tue, Jun 29, 2021 at 9:54 PM Sven Meier wrote: > Hi, > > instead of worrying about exceptions in your #onSubmit() and always > wrapping your code in catch-try, you can just use a general exception > handler: > > getRequestCycleListeners().add(new IRequestCycleListener() > { > @Override > public IRequestHandler onException(RequestCycle cycle, > Exception ex) > { > MyCustomValidationException validation = > Exceptions.findCause(ex, MyCustomValidationException.class); > if (validation != null) { > Page page = > IPageRequestHandler.getPage(cycle.getActiveRequestHandler()) > if (page != null) { > // add error messages ... > page.error(page.getString(validation.getCode())); > return new RenderPageRequestHandler(page); > } > } > return null; > } > }); > > Hope this helps > Sven > > > On 29.06.21 18:41, vahid ghasemi wrote: > > thanks again for answering my questions. > > can you send me some examples of this concept? > > (IRequestCycleListener#onException()) > > just I want to know more about that. > > > > On Tue, Jun 29, 2021 at 8:32 PM Sven Meier wrote: > > > >> Hi, > >> > >> you could use a FormValidator. > >> > >> Or let your onSubmit() (or any code it forwards to) throw exceptions and > >> register an IRequestCycleListener#onException() to handle exceptions > >> during form submit. > >> > >> Have fun > >> Sven > >> > >> > >> On 29.06.21 17:51, vahid ghasemi wrote: > >>> I want to add form data to the database. > >>> so it's not good to loading data for every input and checks from the > >>> database. > >>> I am using validation and when everything is ok then I connect to the > >>> database for better performance :). > >>> one Idea is to call the onError method into the onSubmit method. but I > >> want > >>> to know is a better way to handle this situation? > >>> > >>> On Tue, Jun 29, 2021 at 8:11 PM Maxim Solodovnik > > >>> wrote: > >>> > >>>> Maybe it would be better to perform checks during validation ? > >>>> > >>>> from mobile (sorry for typos ;) > >>>> > >>>> > >>>> On Tue, Jun 29, 2021, 22:33 vahid ghasemi > >>>> wrote: > >>>> > >>>>> Hello > >>>>> How can I pass an error in an onSubmit method? > >>>>> I have some errors that can detect in the onSubmit method. > >>>>> I throw exceptions at end of the onSubmit method. > >>>>> In the catch block, I call the error method, but after that, I expect > >> to > >>>>> don't go into the afterOnSubmit method, but he will go and I am > getting > >>>>> the wrong response. > >>>>> > >> - > >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > >> For additional commands, e-mail: users-h...@wicket.apache.org > >> > >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
reset form
Hello guys. I have a form that has two buttons (Submit, Reset) and my form is CompoundPropertiesModel. The type of these buttons are AjaxButtons. but Reset only works when the form is valid, otherwise it goes into the onError method. The type of reset button tag is "reset" and also the submit button is "submit". Before submitting the form (and without the wicket ajax button for reset button) the reset button is working. But after submitting when I click on the reset button (still without the wicket ajax button) my inputs don't go empty. So i think my problem was for CompoundPropertiesModel and i should set empty fields of class and i need to add a wicket button to reset button that reset inputs. But the reset buttons it's not working because he thinks it is a submit button. So my questions are: 1- How can i add some button link reset button for working when form is not valid. 2- What is the best way to reset the form with a button? 3- why the reset button (just with type="reset") is not working after submitting form?
Re: reset form
First, thanks for the speed of your support. 1 AjaxButton reset = new AjaxButton("reset") { 2 @Override 3public void onSubmit(AjaxRequestTarget target) { 4 name = nationalCode = email = phone = password = confirmPassword = ""; 5 target.add(form); 6 } 7 }; 8 reset.setDefaultFormProcessing(false); #setDefaultFormProcessing is working and breakpoint goes in line 4. but after running code my inputs are still filled with values that have been inside. Sven Meier <s...@meiers.net> در تاریخ سهشنبه ۲۹ ژوئن ۲۰۲۱ ساعت ۱۲:۲۶ نوشت: > Hi, > > you have to call #setDefaultFormProcessing(false). > > Have fun > Sven > > > On 29.06.21 09:46, vahid ghasemi wrote: > > Hello guys. > > I have a form that has two buttons (Submit, Reset) and my form is > > CompoundPropertiesModel. > > The type of these buttons are AjaxButtons. > > but Reset only works when the form is valid, otherwise it goes into the > > onError method. > > The type of reset button tag is "reset" and also the submit button is > > "submit". > > Before submitting the form (and without the wicket ajax button for reset > > button) the reset button is working. But after submitting when I click on > > the reset button (still without the wicket ajax button) my inputs don't > go > > empty. > > So i think my problem was for CompoundPropertiesModel and i should set > > empty fields of class and i need to add a wicket button to reset button > > that reset inputs. > > But the reset buttons it's not working because he thinks it is a submit > > button. > > So my questions are: > > 1- How can i add some button link reset button for working when form is > not > > valid. > > 2- What is the best way to reset the form with a button? > > 3- why the reset button (just with type="reset") is not working after > > submitting form? > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Cannot create a session after the response has been committed
Hello I have a problem with my server, tomcat get down after getting many of this error: java.lang.IllegalStateException: Cannot create a session after the response has been committed at org.apache.catalina.connector.Request.doGetSession(Request.java:2992) at org.apache.catalina.connector.Request.getSession(Request.java:2432) at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:908) at org.apache.wicket.session.HttpSessionStore.getHttpSession(HttpSessionStore.java:95) at org.apache.wicket.session.HttpSessionStore.getSessionId(HttpSessionStore.java:166) at org.apache.wicket.Session.bind(Session.java:267) at org.apache.wicket.Page.onBeforeRender(Page.java:808) at org.apache.wicket.Component.internalBeforeRender(Component.java:963) at org.apache.wicket.Component.beforeRender(Component.java:1031) at org.apache.wicket.Component.internalPrepareForRender(Component.java:2248) at org.apache.wicket.Page.internalPrepareForRender(Page.java:242) at org.apache.wicket.Component.render(Component.java:2337) at org.apache.wicket.Page.renderPage(Page.java:1018) I haven't any idea about this error, do you know what is the problem?
login captcha issue
Hello I have a login form with a captcha. I tested my form with Burp suite (penetration test tool). in Burp I can send header requests a lot of time for brood force(just change password). this problem is because of the number at end of my URL(localhost:8080/login?1). so with this way attackers can bypass captcha. how can i fix this problem.
Re: login captcha issue
I used this method but after that my captcha image is not rendered and cant see that. On Sun, Aug 1, 2021 at 11:11 AM Maxim Solodovnik wrote: > You can set-up NoVersionMapper > https://stackoverflow.com/questions/8602489/delete-version-number-in-url > > > > from mobile (sorry for typos ;) > > > On Sat, Jul 31, 2021, 22:39 vahid ghasemi > wrote: > > > Hello > > I have a login form with a captcha. > > I tested my form with Burp suite (penetration test tool). > > in Burp I can send header requests a lot of time for brood force(just > > change password). > > this problem is because of the number at end of my > > URL(localhost:8080/login?1). > > so with this way attackers can bypass captcha. > > how can i fix this problem. > > >
tag into tag
Hello I have a tag and tag inside of it: Dashboard #XRS-45670 my h1 has a Label component. how I can add Lable into Label?
add Dropdown object to List
Hello guys. I have a dropdown and I want to use CompoundPropertyModel OR PropertyModel. the attribute of my model is List and the wicket can't set the drop-down model object to List. what is your option to handle this?
Re: add Dropdown object to List
Can I limit the users' choice number in ListMultipleChoice? On Mon, Sep 27, 2021 at 9:41 AM Martin Grigorov wrote: > Hi, > > On Sun, Sep 26, 2021 at 9:12 PM vahid ghasemi > wrote: > > > So it's not any option to handle this issue? > > I have list but it's singleton list :( > > > > You need to use ListMultipleChoice instead of DropDownChoice. > > > > On Sun, Sep 26, 2021, 6:17 PM Martin Terra < > > martin.te...@koodaripalvelut.com> > > wrote: > > > > > Choices model should be final and the selection model should be one > item > > > not a list > > > > > > > > > > > > On Sun, Sep 26, 2021, 17:36 vahid ghasemi > > > wrote: > > > > > > > model class : > > > > class User { > > > > private List someThing; > > > > } > > > > > > > > Page class : > > > > private User user; > > > > Dropdown dd = new Dropdown("DropDownSomeThing", new > > > > PropertyModel(user,"someThing", ); > > > > > > > > and this is my problem. > > > > how can I add the drop-down model to the user property which is list, > > > with > > > > PropertyModel > > > > > > > > > > > > On Sun, Sep 26, 2021 at 7:31 AM Martin Terra < > > > > martin.te...@koodaripalvelut.com> wrote: > > > > > > > > > Hi! > > > > > > > > > > Can you paste some code with your exact (generic) variables which > > > doesn't > > > > > work, it might be easier to figure out from code example than > verbal > > > > > description? > > > > > > > > > > ** > > > > > Martin > > > > > > > > > > la 25. syysk. 2021 klo 19.46 vahid ghasemi ( > > vahidghasemi...@gmail.com) > > > > > kirjoitti: > > > > > > > > > > > Hello guys. > > > > > > I have a dropdown and I want to use CompoundPropertyModel OR > > > > > PropertyModel. > > > > > > the attribute of my model is List and the wicket can't set the > > > > > > drop-down model object to List. > > > > > > what is your option to handle this? > > > > > > > > > > > > > > > > > > > > >
Re: add Dropdown object to List
So it's not any option to handle this issue? I have list but it's singleton list :( On Sun, Sep 26, 2021, 6:17 PM Martin Terra wrote: > Choices model should be final and the selection model should be one item > not a list > > > > On Sun, Sep 26, 2021, 17:36 vahid ghasemi > wrote: > > > model class : > > class User { > > private List someThing; > > } > > > > Page class : > > private User user; > > Dropdown dd = new Dropdown("DropDownSomeThing", new > > PropertyModel(user,"someThing", ); > > > > and this is my problem. > > how can I add the drop-down model to the user property which is list, > with > > PropertyModel > > > > > > On Sun, Sep 26, 2021 at 7:31 AM Martin Terra < > > martin.te...@koodaripalvelut.com> wrote: > > > > > Hi! > > > > > > Can you paste some code with your exact (generic) variables which > doesn't > > > work, it might be easier to figure out from code example than verbal > > > description? > > > > > > ** > > > Martin > > > > > > la 25. syysk. 2021 klo 19.46 vahid ghasemi (vahidghasemi...@gmail.com) > > > kirjoitti: > > > > > > > Hello guys. > > > > I have a dropdown and I want to use CompoundPropertyModel OR > > > PropertyModel. > > > > the attribute of my model is List and the wicket can't set the > > > > drop-down model object to List. > > > > what is your option to handle this? > > > > > > > > > >
Re: Cannot create a session after the response has been committed
my wicket version is 7.5. this is full stacktrace: java.lang.IllegalStateException: Cannot create a session after the response has been committed at org.apache.catalina.connector.Request.doGetSession(Request.java:2992) at org.apache.catalina.connector.Request.getSession(Request.java:2432) at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:908) at org.apache.wicket.session.HttpSessionStore.getHttpSession(HttpSessionStore.java:95) at org.apache.wicket.session.HttpSessionStore.getSessionId(HttpSessionStore.java:166) at org.apache.wicket.Session.bind(Session.java:267) at org.apache.wicket.page.DefaultPageManagerContext.bind(DefaultPageManagerContext.java:43) at org.apache.wicket.page.RequestAdapter.bind(RequestAdapter.java:79) at org.apache.wicket.page.PageStoreManager$PersistentRequestAdapter.getSessionEntry(PageStoreManager.java:376) at org.apache.wicket.page.PageStoreManager$PersistentRequestAdapter.storeTouchedPages(PageStoreManager.java:398) at org.apache.wicket.page.RequestAdapter.commitRequest(RequestAdapter.java:193) at org.apache.wicket.page.AbstractPageManager.commitRequest(AbstractPageManager.java:76) at org.apache.wicket.page.PageManagerDecorator.commitRequest(PageManagerDecorator.java:74) at org.apache.wicket.page.PageAccessSynchronizer$2.commitRequest(PageAccessSynchronizer.java:270) at org.apache.wicket.Application$3.onDetach(Application.java:1789) at org.apache.wicket.request.cycle.RequestCycleListenerCollection$3.notify(RequestCycleListenerCollection.java:105) at org.apache.wicket.request.cycle.RequestCycleListenerCollection$3.notify(RequestCycleListenerCollection.java:101) at org.apache.wicket.util.listener.ListenerCollection$1.notify(ListenerCollection.java:120) at org.apache.wicket.util.listener.ListenerCollection.reversedNotify(ListenerCollection.java:144) at org.apache.wicket.util.listener.ListenerCollection.reversedNotifyIgnoringExceptions(ListenerCollection.java:113) at org.apache.wicket.request.cycle.RequestCycleListenerCollection.onDetach(RequestCycleListenerCollection.java:100) at org.apache.wicket.request.cycle.RequestCycle.onDetach(RequestCycle.java:649) at org.apache.wicket.request.cycle.RequestCycle.detach(RequestCycle.java:594) at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:297) at org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:261) at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:203) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:284) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:678) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) at org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:399) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:860) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1598) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748) On Mon, Sep 20, 2021 at 10:45 AM Martin Grigorov wrote: > Hi, > > On Fri, Sep 17, 2021 at 4:41 PM vahid ghasemi > wrote: > > > Hello > > I have a problem with my server, tomcat get down after getting many of > this > > error: > > > > java.lang.IllegalStateException: Cannot create a session after the > response > > has been committed > > > > The error says that the response has been written
Re: add Dropdown object to List
model class : class User { private List someThing; } Page class : private User user; Dropdown dd = new Dropdown("DropDownSomeThing", new PropertyModel(user,"someThing", ); and this is my problem. how can I add the drop-down model to the user property which is list, with PropertyModel On Sun, Sep 26, 2021 at 7:31 AM Martin Terra < martin.te...@koodaripalvelut.com> wrote: > Hi! > > Can you paste some code with your exact (generic) variables which doesn't > work, it might be easier to figure out from code example than verbal > description? > > ** > Martin > > la 25. syysk. 2021 klo 19.46 vahid ghasemi (vahidghasemi...@gmail.com) > kirjoitti: > > > Hello guys. > > I have a dropdown and I want to use CompoundPropertyModel OR > PropertyModel. > > the attribute of my model is List and the wicket can't set the > > drop-down model object to List. > > what is your option to handle this? > > >
Re: version of java
We are using wicket 8 Is it a bad idea to get java 17 with wicket 8? On Wed, Jan 5, 2022 at 9:23 AM Martin Grigorov wrote: > Hi, > > Wicket 9.x is regularly tested with Java 11 & 17! > We are not aware of any issues! > > On Wed, Jan 5, 2022 at 7:34 AM vahid ghasemi > wrote: > > > Hello. > > What version of wicket can support the latest LTS version of java(17)? > > >
version of java
Hello. What version of wicket can support the latest LTS version of java(17)?
wicket:child
Hello, How can I use 2 wicket:child for 1 inherited class? Like this: Hello Hello Hello again Hello again
Re: wicket:child
Oh yes. Was a good Idea to Handle this. thanks. On Sun, Jan 9, 2022 at 5:25 PM Bergmann Manfred wrote: > Hi. > > I’m not sure this would be a good feature. > I’d imagine it would not be trivial to implement but more importantly it > would lead to complex designs. > > A proper way to handle this is composition. So (just as an example) > instead of two s you add two and depending > on your need (or your Java subclasses) fill one or the other with an empty > panel. This could probably be done with an abstract base class and two > subclasses which each implement, or add the right panel. > > > Manfred > > > > > Am 09.01.2022 um 14:30 schrieb vahid ghasemi >: > > > > Yes, > > I want to use a child class in multiple places of parent markup. > > How should I handle that? > > If it does not exist and isn't any way to do that, I think it's a good > > feature for the future. > > > > On Sun, Jan 9, 2022 at 4:34 PM Bergmann Manfred > > > wrote: > > > >> Hi. > >> > >> To my knowledge that doesn’t work. > >> This is probably a case to prefer composition over inheritance? > >> > >> > >> Manfred > >> > >> > >>> Am 09.01.2022 um 13:55 schrieb vahid ghasemi < > vahidghasemi...@gmail.com > >>> : > >>> > >>> Hello, > >>> How can I use 2 wicket:child for 1 inherited class? > >>> Like this: > >>> > >>> Hello > >>> > >>> Hello > >>> > >>> > >>> > >>> > >>> Hello again > >>> > >>> Hello again > >> > >> > >> - > >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > >> For additional commands, e-mail: users-h...@wicket.apache.org > >> > >> > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: wicket:child
Yes, I want to use a child class in multiple places of parent markup. How should I handle that? If it does not exist and isn't any way to do that, I think it's a good feature for the future. On Sun, Jan 9, 2022 at 4:34 PM Bergmann Manfred wrote: > Hi. > > To my knowledge that doesn’t work. > This is probably a case to prefer composition over inheritance? > > > Manfred > > > > Am 09.01.2022 um 13:55 schrieb vahid ghasemi >: > > > > Hello, > > How can I use 2 wicket:child for 1 inherited class? > > Like this: > > > > Hello > > > > Hello > > > > > > > > > > Hello again > > > > Hello again > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: Convert to science Number
This is my sample code : add(new TextField<>("grossWeightInKg", new IModel() { @Override public String getObject() { return flightConsignment.getGrossWeightInKg() == null ? "" : flightConsignment.getGrossWeightInKg().toString(); } ... } weightInKg is Double(not double). On Tue, Jan 11, 2022 at 12:03 PM Martin Terra < martin.te...@koodaripalvelut.com> wrote: > Also, are you using a BigDecimal or arbitrary floating point numbers > <https://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html>? Big > decimals should have a built in converter. > > ** > Martin > > ti 11. tammik. 2022 klo 10.26 Martin Grigorov (mgrigo...@apache.org) > kirjoitti: > > > Please give more details > > > > On Tue, Jan 11, 2022 at 9:10 AM vahid ghasemi > > > wrote: > > > > > Hello, > > > In wicket, the number above from 10E7 will convert to science number in > > > input. > > > How can I prevent that? > > > > > >
Convert to science Number
Hello, In wicket, the number above from 10E7 will convert to science number in input. How can I prevent that?
Re: fragment
Its not css/js issue. Because when I load only HTML haven't any problem and works well. On Thu, Mar 17, 2022 at 11:00 AM Martin Terra < martin.te...@koodaripalvelut.com> wrote: > If it's a css/js issue, stackoveflow.com might lead to faster solution. > > to 17. maalisk. 2022 klo 8.49 vahid ghasemi (vahidghasemi...@gmail.com) > kirjoitti: > > > Hello, > > I'm using wicket-fragment in my page, my page has a primitive form, and > > after submit decide to create and show one of the fragments below of my > > primitive form. > > I'm using the bootstrap panel. > > After creating the fragment the height of the panel-heading in my > fragment > > contains my primitive form and the height is too large. > > I created a sample to show you: (also you can see imageSample1.png & > > imageSample2.png) > > > > > https://github.com/vahida1157/wicket-test/tree/master/src/main/java/com/mycompany/problems/fragmentpanelheading > > . > > . > > . > > When I decide to zoom in and send a better image, I realized after > getting > > zoom above 175% the problem was fixed. (you can see imageSample3.png) in > > Github. > > > > So why and what is the problem? > > >
fragment
Hello, I'm using wicket-fragment in my page, my page has a primitive form, and after submit decide to create and show one of the fragments below of my primitive form. I'm using the bootstrap panel. After creating the fragment the height of the panel-heading in my fragment contains my primitive form and the height is too large. I created a sample to show you: (also you can see imageSample1.png & imageSample2.png) https://github.com/vahida1157/wicket-test/tree/master/src/main/java/com/mycompany/problems/fragmentpanelheading . . . When I decide to zoom in and send a better image, I realized after getting zoom above 175% the problem was fixed. (you can see imageSample3.png) in Github. So why and what is the problem?
Re: fragment
Can you lunch my code and see that, please? On Thu, Mar 17, 2022 at 2:29 PM Martin Terra < martin.te...@koodaripalvelut.com> wrote: > to 17. maalisk. 2022 klo 12.42 vahid ghasemi (vahidghasemi...@gmail.com) > kirjoitti: > > > Its not css/js issue. > > Because when I load only HTML haven't any problem and works well. > > > > If zoom affects it, it is a css/js issue. > > ** > Martin > > > > > On Thu, Mar 17, 2022 at 11:00 AM Martin Terra < > > martin.te...@koodaripalvelut.com> wrote: > > > > > If it's a css/js issue, stackoveflow.com might lead to faster > solution. > > > > > > to 17. maalisk. 2022 klo 8.49 vahid ghasemi (vahidghasemi...@gmail.com > ) > > > kirjoitti: > > > > > > > Hello, > > > > I'm using wicket-fragment in my page, my page has a primitive form, > and > > > > after submit decide to create and show one of the fragments below of > my > > > > primitive form. > > > > I'm using the bootstrap panel. > > > > After creating the fragment the height of the panel-heading in my > > > fragment > > > > contains my primitive form and the height is too large. > > > > I created a sample to show you: (also you can see imageSample1.png & > > > > imageSample2.png) > > > > > > > > > > > > > > https://github.com/vahida1157/wicket-test/tree/master/src/main/java/com/mycompany/problems/fragmentpanelheading > > > > . > > > > . > > > > . > > > > When I decide to zoom in and send a better image, I realized after > > > getting > > > > zoom above 175% the problem was fixed. (you can see imageSample3.png) > > in > > > > Github. > > > > > > > > So why and what is the problem? > > > > > > > > > >
Re: document and example
Martin Terra, I read your link, and as you can see It's not a completed document. you can see documents about "wicket:unknown" and "wicket-scope" that does not write. And document writer just guess about and , And I can't see an example about them in the document (I found tag examples In Andrea Del Bene's link). Andrea Del Bene, I had seen your link and it answers some questions, but yet can't find examples about wicket attributes. On Fri, Feb 11, 2022 at 8:11 PM Andrea Del Bene wrote: > You can always go to the user guide > https://nightlies.apache.org/wicket/guide/9.x/single.html and search for > your favorite tag :-) > > On Fri, Feb 11, 2022 at 3:57 PM vahid ghasemi > wrote: > > > Hello, > > I can't find a good document or example about XHTMLs in wicket. > > like "wicket:enclosure attribute" or " and > > tag". > > How can I find some examples or descriptions? > > > > > -- > Andrea Del Bene. > Apache Wicket committer. >
document and example
Hello, I can't find a good document or example about XHTMLs in wicket. like "wicket:enclosure attribute" or " and tag". How can I find some examples or descriptions?
Ajax Error
Hello, I have the below error and I don't know this is from where and how I should fix it. FunctionsExecuter.processNext: ReferenceError: Main is not defined
add json file in bookmarkable file.
Hello, I want to use datatables library: https://datatables.net/ I created a behavior and override renderHead method : response.render(OnDomReadyHeaderItem.forScript("$('table').DataTable({" + ... + "});")); according to this link : https://datatables.net/reference/option/language.url I can pass the JSON file for internationalization, my JSON file should be after http://localhost:8080/wicket/bookmarkable/ I don't know how can I add my JSON file. Thanks. Regards
Re: add json file in bookmarkable file.
Sorry for the many questions, But I'm using wicket 8.9 and this code is not correct : RequestCycle.get().urlFor(new PackageResourceReference(Some.class, "dataTables.persian.json")) [image: image.png] This is my code and file hierarchy. I saw your provided link but I can't find the solution yet. On Tue, Sep 20, 2022 at 6:00 PM Martin Grigorov wrote: > you may also want to check > http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources/ > > On Tue, Sep 20, 2022 at 4:25 PM Martin Grigorov > wrote: > > > > > > > On Tue, Sep 20, 2022 at 4:16 PM vahid ghasemi > > > wrote: > > > >> I don't want to be available always. so I don't want to add to webapp. > >> I think exactly my problem is in the (...). > >> I don't know how should add my file > >> I write this code in renderHead, before > >> > """response.render(OnDomReadyHeaderItem.forScript("$('table').DataTable({" > >> + ... + "});"));""" : > >> > > > > You need to use RequestCycle.get().urlFor(new > > PackageResourceReference(Some.class, "dataTables.persian.json")) > > > > > > > >> WebApplication.get().mountResource("/", new > >> PackageResourceReference("dataTables.persian.json")); > >> > > > > I guess you don't want it on the root ("/"). > > But this will make it "available always" too! > > > > > > > >> But I got 404 for the file > >> [image: image.png] > >> > >> On Tue, Sep 20, 2022 at 5:31 PM Martin Grigorov > >> wrote: > >> > >>> Hi, > >>> > >>> You can put the JSON file in your webapp /static folder. > >>> Or you could use application.mountResource(...) if you want it to be > >>> served > >>> and/or generated by Wicket. > >>> > >>> Also please check > >>> https://github.com/wicketstuff/core/tree/master/datatables-parent > >>> > >>> > >>> On Tue, Sep 20, 2022 at 3:31 PM vahid ghasemi < > vahidghasemi...@gmail.com > >>> > > >>> wrote: > >>> > >>> > Hello, > >>> > I want to use datatables library: https://datatables.net/ > >>> > I created a behavior and override renderHead method : > >>> > > >>> > response.render(OnDomReadyHeaderItem.forScript("$('table').DataTable({" + > >>> > ... + "});")); > >>> > > >>> > according to this link : > >>> > https://datatables.net/reference/option/language.url > >>> > I can pass the JSON file for internationalization, my JSON file > should > >>> be > >>> > after http://localhost:8080/wicket/bookmarkable/ > >>> > I don't know how can I add my JSON file. > >>> > > >>> > Thanks. Regards > >>> > > >>> > >> >
Re: add json file in bookmarkable file.
I don't want to be available always. so I don't want to add to webapp. I think exactly my problem is in the (...). I don't know how should add my file I write this code in renderHead, before """response.render(OnDomReadyHeaderItem.forScript("$('table').DataTable({" + ... + "});"));""" : WebApplication.get().mountResource("/", new PackageResourceReference("dataTables.persian.json")); But I got 404 for the file [image: image.png] On Tue, Sep 20, 2022 at 5:31 PM Martin Grigorov wrote: > Hi, > > You can put the JSON file in your webapp /static folder. > Or you could use application.mountResource(...) if you want it to be served > and/or generated by Wicket. > > Also please check > https://github.com/wicketstuff/core/tree/master/datatables-parent > > > On Tue, Sep 20, 2022 at 3:31 PM vahid ghasemi > wrote: > > > Hello, > > I want to use datatables library: https://datatables.net/ > > I created a behavior and override renderHead method : > > response.render(OnDomReadyHeaderItem.forScript("$('table').DataTable({" + > > ... + "});")); > > > > according to this link : > > https://datatables.net/reference/option/language.url > > I can pass the JSON file for internationalization, my JSON file should be > > after http://localhost:8080/wicket/bookmarkable/ > > I don't know how can I add my JSON file. > > > > Thanks. Regards > > >