Re: NoClassDefFoundError: org/objectweb/asm/Type
Thanks Martin François Meillet Le 21 janv. 2015 à 21:35, Martin Grigorov a écrit : > https://issues.apache.org/jira/browse/WICKET-5817 > > Martin Grigorov > Wicket Training and Consulting > https://twitter.com/mtgrigorov > > On Wed, Jan 21, 2015 at 9:18 PM, Martin Grigorov > wrote: > >> Please create a ticket! >> Thanks! >> >> Martin Grigorov >> Wicket Training and Consulting >> https://twitter.com/mtgrigorov >> >> On Wed, Jan 21, 2015 at 8:50 PM, Francois Meillet < >> francois.meil...@gmail.com> wrote: >> >>> Hi Martin, >>> >>> with version 7.0.4 and using JMX (wicket-jmx.jar) >>> >>> I get >>> java.lang.NoClassDefFoundError: org/objectweb/asm/Type >>>at net.sf.cglib.core.TypeUtils.parseType(TypeUtils.java:184) >>>at net.sf.cglib.core.KeyFactory.(KeyFactory.java:66) >>>at net.sf.cglib.proxy.Enhancer.(Enhancer.java:69) >>>at >>> org.apache.wicket.jmx.Initializer.createProxy(Initializer.java:256) >>> >>> >>> François Meillet >>> >>> >>> >>> >>> >>> >>> >>
Re: NoClassDefFoundError: org/objectweb/asm/Type
https://issues.apache.org/jira/browse/WICKET-5817 Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Jan 21, 2015 at 9:18 PM, Martin Grigorov wrote: > Please create a ticket! > Thanks! > > Martin Grigorov > Wicket Training and Consulting > https://twitter.com/mtgrigorov > > On Wed, Jan 21, 2015 at 8:50 PM, Francois Meillet < > francois.meil...@gmail.com> wrote: > >> Hi Martin, >> >> with version 7.0.4 and using JMX (wicket-jmx.jar) >> >> I get >> java.lang.NoClassDefFoundError: org/objectweb/asm/Type >> at net.sf.cglib.core.TypeUtils.parseType(TypeUtils.java:184) >> at net.sf.cglib.core.KeyFactory.(KeyFactory.java:66) >> at net.sf.cglib.proxy.Enhancer.(Enhancer.java:69) >> at >> org.apache.wicket.jmx.Initializer.createProxy(Initializer.java:256) >> >> >> François Meillet >> >> >> >> >> >> >> >
Re: validation in form component panels in RefreshingView
org.apache.wicket.markup.repeater.RefreshingView#setItemReuseStrategy(org.apache.wicket.markup.repeater.ReuseIfModelsEqualStrategy#getInstance()) Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Jan 21, 2015 at 6:59 PM, lucast wrote: > Dear forum, > > I'm implementing a tabbed panel. > On first panel, user selects number of items. On second tab, user enters > details for each item. > > I've implemented a RefreshingView so that the number of items on list > reflects the number of items selected by user. > > To bundle all of the fields together I use a form component panel and for > each entry on the RefreshingView, I add a form component panel. > > The text fields have FieldDecorators, as explained on the Apache Wicket > Cookbook, chapter 3. > > The problem is that when I submit the form, the error messages for each > field are not shown on the text field FieldDecorators. > > If I use RepeatingView, error messages are displayed as intended. But my > list is dynamic. > > How can I get the proper validation message displayed inside the form > component panel, used in a RefreshingView? > > Thanks in advance, > Lucas > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/validation-in-form-component-panels-in-RefreshingView-tp4669068.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: NoClassDefFoundError: org/objectweb/asm/Type
Please create a ticket! Thanks! Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Jan 21, 2015 at 8:50 PM, Francois Meillet < francois.meil...@gmail.com> wrote: > Hi Martin, > > with version 7.0.4 and using JMX (wicket-jmx.jar) > > I get > java.lang.NoClassDefFoundError: org/objectweb/asm/Type > at net.sf.cglib.core.TypeUtils.parseType(TypeUtils.java:184) > at net.sf.cglib.core.KeyFactory.(KeyFactory.java:66) > at net.sf.cglib.proxy.Enhancer.(Enhancer.java:69) > at > org.apache.wicket.jmx.Initializer.createProxy(Initializer.java:256) > > > François Meillet > > > > > > >
validation in form component panels in RefreshingView
Dear forum, I'm implementing a tabbed panel. On first panel, user selects number of items. On second tab, user enters details for each item. I've implemented a RefreshingView so that the number of items on list reflects the number of items selected by user. To bundle all of the fields together I use a form component panel and for each entry on the RefreshingView, I add a form component panel. The text fields have FieldDecorators, as explained on the Apache Wicket Cookbook, chapter 3. The problem is that when I submit the form, the error messages for each field are not shown on the text field FieldDecorators. If I use RepeatingView, error messages are displayed as intended. But my list is dynamic. How can I get the proper validation message displayed inside the form component panel, used in a RefreshingView? Thanks in advance, Lucas -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/validation-in-form-component-panels-in-RefreshingView-tp4669068.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
NoClassDefFoundError: org/objectweb/asm/Type
Hi Martin, with version 7.0.4 and using JMX (wicket-jmx.jar) I get java.lang.NoClassDefFoundError: org/objectweb/asm/Type at net.sf.cglib.core.TypeUtils.parseType(TypeUtils.java:184) at net.sf.cglib.core.KeyFactory.(KeyFactory.java:66) at net.sf.cglib.proxy.Enhancer.(Enhancer.java:69) at org.apache.wicket.jmx.Initializer.createProxy(Initializer.java:256) François Meillet
Re: Wicket panel #oninitilize for replacing
@sven Thanks for your response 1. i am using nested panels, searchinnerpanel and jobdetailspanel are present in searchbodypanel hence i could not use page to handle the retrival logic. 2. these panels were actually pages hence pageparameters i plan on changing it. - K -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-panel-oninitilize-for-replacing-tp4669063p4669067.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: Use application.setName to set a custom name?
Guten Tag Martin Grigorov, am Mittwoch, 21. Januar 2015 um 11:37 schrieben Sie: > This is a problem that deserves a ticket, IMO. https://issues.apache.org/jira/browse/WICKET-5816 Thanks for your help! Mit freundlichen Grüßen, Thorsten Schöning -- Thorsten Schöning E-Mail: thorsten.schoen...@am-soft.de AM-SoFT IT-Systeme http://www.AM-SoFT.de/ Telefon...05151- 9468- 55 Fax...05151- 9468- 88 Mobil..0178-8 9468- 04 AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: When should one use fragments?
Hi, You can refactor fragments into panel (and should do this, it is easy). I use fragments only if i want to hide components to the outside or reduce the count of files i have to open to solve something.. this happens only if i build some kind of prototype. If you have nothing to "hide" just use panels instead. If you want to avoid switching, you can make them invisible.. but it depends on your usecase.. Michael:) Am 21.01.2015 um 12:10 schrieb ChambreNoire: > Hello, > > I'm going over some old code and I have noticed that some devs are using > fragments to slice up views. For instance, one Panel only has a single > 'content' div and then the 3 different views are displayed by switching > between 3 Fragments with replaceWith(). This seems to me to break the 'avoid > changing the component hierarchy' best practice. My understanding was that > Fragments were mostly of use in ListView scenarios. > > Any thoughts on this and appropriate Fragment use in general? > > Thanks, > > CN > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/When-should-one-use-fragments-tp4669062.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 > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket panel #oninitilize for replacing
If the "job panel" and "search panel" has the same id and parent, you can use the *#addOrReplace(Component)* method on its parent to add the panel that you need to display. If the "search panel" is on the previous page, you need to keep the reference of it and when you submit the form your submit/search button should call *#setResponsePage(Page)* with the previous page as parameter. 2015-01-21 9:54 GMT-02:00 K : > Hi i have been strugguling with this for a while. could you please suggest > changes. > > > > Scenario: when i search for a job, if a job exists job is displayed in this > panel and if the job does not exist it is redirected back to the search > panel. i am unable to redirect back to the search panel. > > > - > K > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Wicket-panel-oninitilize-for-replacing-tp4669063.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 > > -- Rodrigo Ribeiro Miguele
Re: Wicket panel #oninitilize for replacing
Hi, you should move the retrieval of jobs out of your panel: Let your page do this and just pass the retrieved jobs to the panel *or* replace it with something else. BTW it's unusual to have a non-page constructor with pageParameters as arguments. Hope this helps Sven On 21.01.2015 12:54, K wrote: Hi i have been strugguling with this for a while. could you please suggest changes. Scenario: when i search for a job, if a job exists job is displayed in this panel and if the job does not exist it is redirected back to the search panel. i am unable to redirect back to the search panel. - K -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-panel-oninitilize-for-replacing-tp4669063.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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket panel #oninitilize for replacing
Hi i have been strugguling with this for a while. could you please suggest changes. Scenario: when i search for a job, if a job exists job is displayed in this panel and if the job does not exist it is redirected back to the search panel. i am unable to redirect back to the search panel. - K -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-panel-oninitilize-for-replacing-tp4669063.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
When should one use fragments?
Hello, I'm going over some old code and I have noticed that some devs are using fragments to slice up views. For instance, one Panel only has a single 'content' div and then the 3 different views are displayed by switching between 3 Fragments with replaceWith(). This seems to me to break the 'avoid changing the component hierarchy' best practice. My understanding was that Fragments were mostly of use in ListView scenarios. Any thoughts on this and appropriate Fragment use in general? Thanks, CN -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/When-should-one-use-fragments-tp4669062.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: Use application.setName to set a custom name?
On Wed, Jan 21, 2015 at 12:18 PM, Thorsten Schöning wrote: > Guten Tag Martin Grigorov, > am Mittwoch, 21. Januar 2015 um 09:46 schrieben Sie: > > > But how would you decide what name to use if you do this in the > constructor? > > At that time you don't have access to many things, e.g. the servlet > context. > > I would have implemented a ServletContextListener to create my custom > name depending on it's dir name and save that statically. Such a > listener should always be called before the Wicket filter. > > > I meant to add your own MBean somewhere in the root. > > This way it will be easy for you to check the instance "real" name in the > > JMX viewer > > I see, but for that to work I would need more than one wicket specific > entry in the console and currently I have only one. It's always just > one "org.apache.wicket.app.WicketFilter", where WicketFilter is the > name of the filter in web.xml, and not two of them. I guess I only see > the first recognized or whatever, if I change one name in web.xml, I > get two entries. > This is a problem that deserves a ticket, IMO. MyApp#init() method is called *after* the initializers so it would be too late for changing the name even with Java reflection. I guess you could override MyApp#internalInit() to set the name (with reflection) before the initializers, but I'm not sure it will work (I haven't tried). If no one else has better idea then I guess we can add the check in WicketFilter to set the name only if it is not set already. > > > Here is a quick and dirty workaround for the problem: use Reflection to > set > > the Application#name field value to anything by-passing the setter and > the > > check. > > I will rather stick with documentation in web.xml if I can't guarantee > being the first and only one setting this. Thanks anyways! > > Mit freundlichen Grüßen, > > Thorsten Schöning > > -- > Thorsten Schöning E-Mail: thorsten.schoen...@am-soft.de > AM-SoFT IT-Systeme http://www.AM-SoFT.de/ > > Telefon...05151- 9468- 55 > Fax...05151- 9468- 88 > Mobil..0178-8 9468- 04 > > AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln > AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: Use application.setName to set a custom name?
Guten Tag Martin Grigorov, am Mittwoch, 21. Januar 2015 um 09:46 schrieben Sie: > But how would you decide what name to use if you do this in the constructor? > At that time you don't have access to many things, e.g. the servlet context. I would have implemented a ServletContextListener to create my custom name depending on it's dir name and save that statically. Such a listener should always be called before the Wicket filter. > I meant to add your own MBean somewhere in the root. > This way it will be easy for you to check the instance "real" name in the > JMX viewer I see, but for that to work I would need more than one wicket specific entry in the console and currently I have only one. It's always just one "org.apache.wicket.app.WicketFilter", where WicketFilter is the name of the filter in web.xml, and not two of them. I guess I only see the first recognized or whatever, if I change one name in web.xml, I get two entries. > Here is a quick and dirty workaround for the problem: use Reflection to set > the Application#name field value to anything by-passing the setter and the > check. I will rather stick with documentation in web.xml if I can't guarantee being the first and only one setting this. Thanks anyways! Mit freundlichen Grüßen, Thorsten Schöning -- Thorsten Schöning E-Mail: thorsten.schoen...@am-soft.de AM-SoFT IT-Systeme http://www.AM-SoFT.de/ Telefon...05151- 9468- 55 Fax...05151- 9468- 88 Mobil..0178-8 9468- 04 AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Work flow for html design
Hi, I didn't understand the problem. Please try to rephrase and give some more details where is the .html file, where is the .css file and what exactly is the issue you face. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Jan 21, 2015 at 7:48 AM, Km wrote: > Hi there, I am a solo developer also doing the design for my project. I > have a skeleton project in place and now I want to work on that HTML files > in the designer role. I have a set of style sheets and the HTML files are > in the Java source directory, so I cannot access the html page through that > path ( since it does not contain the style sheet). I thought about > adjusting the plain HTML header to have a link to a different style sheet > while having the wicket generated HTML reference to the > production/development style sheet as served by the Web app. This doesn't > solve the problem of images of course but these can be referenced in the > style sheet also. If it matters I am using foundation, sass and compass. > > -- > Sent from my Android device with K-9 Mail. Please excuse my brevity.
Re: Use application.setName to set a custom name?
On Wed, Jan 21, 2015 at 10:12 AM, Thorsten Schöning wrote: > Guten Tag Martin Grigorov, > am Dienstag, 20. Januar 2015 um 19:21 schrieben Sie: > > > This is by design ( > > > https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/Application.java#L944-L945 > > ). > > The application name is used for internal caches, keys, etc. and it must > be > > something stable and unique. > > If it was allowed to change it at any time then many things may break. > > That's fine, but why am I not allowed to set it myself first? > WicketFilter could just test if it is already set and don't set it > than, it doesn't necessarily provide a better one. The problem > currently is only that it always wants to set it, even if I already > did using a custom constructor. > But how would you decide what name to use if you do this in the constructor ? At that time you don't have access to many things, e.g. the servlet context. > > That's the only thing that doesn't make sense to me. > > > I think the easiest thing to do is to export yet another JMX ObjectName > > with the custom name. See > > > https://github.com/apache/wicket/blob/master/wicket-jmx/src/main/java/org/apache/wicket/jmx/Initializer.java#L109 > > I had a look at that as well, but didn't understand what I could do to > change the implementation, as there doesn't seem to be any hook or > callback or whatever to change how the variable "domain" is created. > It always uses the application name. > I meant to add your own MBean somewhere in the root. This way it will be easy for you to check the instance "real" name in the JMX viewer > > Would I need to implement an own Initializer by overriding the > mentioned "init"? How would I register my Initializer to be used by > wicket-jmx then? I would prefer some way like it's now, either the > wicket-jmx gets deployed or not, so everything is as loose coupled as > now. > > Thanks for any more details. > Here is a quick and dirty workaround for the problem: use Reflection to set the Application#name field value to anything by-passing the setter and the check. > > Mit freundlichen Grüßen, > > Thorsten Schöning > > -- > Thorsten Schöning E-Mail: thorsten.schoen...@am-soft.de > AM-SoFT IT-Systeme http://www.AM-SoFT.de/ > > Telefon...05151- 9468- 55 > Fax...05151- 9468- 88 > Mobil..0178-8 9468- 04 > > AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln > AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: Use application.setName to set a custom name?
Guten Tag Martin Grigorov, am Dienstag, 20. Januar 2015 um 19:21 schrieben Sie: > This is by design ( > https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/Application.java#L944-L945 > ). > The application name is used for internal caches, keys, etc. and it must be > something stable and unique. > If it was allowed to change it at any time then many things may break. That's fine, but why am I not allowed to set it myself first? WicketFilter could just test if it is already set and don't set it than, it doesn't necessarily provide a better one. The problem currently is only that it always wants to set it, even if I already did using a custom constructor. That's the only thing that doesn't make sense to me. > I think the easiest thing to do is to export yet another JMX ObjectName > with the custom name. See > https://github.com/apache/wicket/blob/master/wicket-jmx/src/main/java/org/apache/wicket/jmx/Initializer.java#L109 I had a look at that as well, but didn't understand what I could do to change the implementation, as there doesn't seem to be any hook or callback or whatever to change how the variable "domain" is created. It always uses the application name. Would I need to implement an own Initializer by overriding the mentioned "init"? How would I register my Initializer to be used by wicket-jmx then? I would prefer some way like it's now, either the wicket-jmx gets deployed or not, so everything is as loose coupled as now. Thanks for any more details. Mit freundlichen Grüßen, Thorsten Schöning -- Thorsten Schöning E-Mail: thorsten.schoen...@am-soft.de AM-SoFT IT-Systeme http://www.AM-SoFT.de/ Telefon...05151- 9468- 55 Fax...05151- 9468- 88 Mobil..0178-8 9468- 04 AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org