Shared message property file not working on 1.4

2010-11-25 Thread andrea.castello
Hi, here's a new episode of my Wicket upgrade saga. Hope I'm not disturbing anyone :D In my application developed with Wicket 1.3.6 I have a CarMessages.properties file which was sort of shared by two classes CarListPage and CarDetail, since they use the same messages. When I upgraded to 1.4 all

Re: quot;Sharedquot; message property file not working on 1.4

2010-11-25 Thread adam.gibbons
How about better architecture? Using a database instead of a file would be much nicer. With proper caching there's little to no difference in terms of performance than using a file. Cheers, Adam On 25 November 2010 09:07, andrea.castello [via Apache Wicket]

Re: Announcing the Topicus Dashboard

2010-11-25 Thread Martijn Dashorst
Rather strange: they closed the public voting round at the same time as the submission deadline. This strikes me as weird since late registrants (such as ourselves) are unable to garner any community support. Sounds like someone didn't think this through... Martijn On Thu, Nov 25, 2010 at 2:34

Re: Shared message property file not working on 1.4

2010-11-25 Thread Ernesto Reinaldo Barreiro
How was this CarMessages.properties shared by the two classes? If your car CarListPage uses CarDetail placing them on CarListPage should be enough, AFAIK. Additionally on 1.4.X I think package level resource files are supported. Ernesto On Thu, Nov 25, 2010 at 10:07 AM, andrea.castello

Re: quot;Sharedquot; message property file not working on 1.4

2010-11-25 Thread Martin Grigorov
What is the relation between CarMessages.java (if there is such file) and CarDetail.java ? Does the one extend/implement the other ? On Thu, Nov 25, 2010 at 10:11 AM, adam.gibbons adam.s.gibb...@gmail.comwrote: How about better architecture? Using a database instead of a file would be much

Re: Shared message property file not working on 1.4

2010-11-25 Thread andrea.castello
Hi, Martin Grigorov-4 wrote: What is the relation between CarMessages.java (if there is such file) and CarDetail.java ? Does the one extend/implement the other ? On Thu, Nov 25, 2010 at 10:11 AM, adam.gibbons adam.s.gibb...@gmail.comwrote: There's no CarMessages.java, just the two

Re:

2010-11-25 Thread andrea.castello
One thing that I just noticed is that in every class I have this problem I had to change the invocation of the method getModel() to getDefaultModel(), according to the migration guide to 1.4. Can the problem be there (honestly, I don't think so but, who knows, I'm just a Wicket newbie) Andrea

Re: AjaxLazyLoadPanel, nothing else works until it finishes loading

2010-11-25 Thread Avraham Rosenzweig
That helps a lot. Thanks. On Wed, Nov 24, 2010 at 11:47 PM, jwray jwray.deve...@gmail.com wrote: The page will block until the panel is loaded. There are a number of threads discussing this. Here are a couple of gists that allow panel content to be loaded in an asynchronous manner in

Re: Shared message property file not working on 1.4

2010-11-25 Thread Ernesto Reinaldo Barreiro
Another possibility is that had your own IStringResourceLoader registered via getResourceSettings().addStringResourceLoader(new MyResourceLoader())? Ernesto On Thu, Nov 25, 2010 at 10:57 AM, andrea.castello a.castello.pronet...@gmail.com wrote: Hi, Martin Grigorov-4 wrote: What is the

Re: Shared message property file not working on 1.4

2010-11-25 Thread Martin Grigorov
you can use com/example/something/package.properties or MyApplication.properties (global) On Thu, Nov 25, 2010 at 11:12 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Another possibility is that had your own IStringResourceLoader registered via

visural-wicket 0.6.5 released!

2010-11-25 Thread Richard Nichols
Hi all, It's a little overdue, but the next release of the visural-wicket component library is now available. For a detailed list of the enhancements / fixes in this release - http://www.richardnichols.net/2010/11/visural-wicket-0-6-5-release-is-available/

java.lang.NoClassDefFoundError: org/apache/wicket/util/lang/WicketObjects

2010-11-25 Thread Arjun Dhar
Hi, I'm on wicket (core extension) 1.4.12 (Wicket Spring IOC 1.5-M1). On the following scenario I get the error trace : java.lang.NoClassDefFoundError: org/apache/wicket/util/lang/WicketObjects at org.apache.wicket.spring.SpringBeanLocator.getBeanType(SpringBeanLocator.java:222)

Re: java.lang.NoClassDefFoundError: org/apache/wicket/util/lang/WicketObjects

2010-11-25 Thread Martin Grigorov
Why do you mix versions of libraries ?! Stick with either 1.4.12 or 1.5-M1 (even better 1.5-M3) On Thu, Nov 25, 2010 at 12:49 PM, Arjun Dhar dhar...@yahoo.com wrote: Hi, I'm on wicket (core extension) 1.4.12 (Wicket Spring IOC 1.5-M1). On the following scenario I get the error trace :

Re: java.lang.NoClassDefFoundError: org/apache/wicket/util/lang/WicketObjects

2010-11-25 Thread Arjun Dhar
Oh! ..Coz I'm silly to have assumed that the Spring+IOC versioning was somehow independent of Wicket Core+Extensions and until now it never bit me. Thanks for pointing it out :) -- View this message in context:

Re: visural-wicket 0.6.5 released!

2010-11-25 Thread Josh Kamau
Thanks . I have always found this library very useful. On Thu, Nov 25, 2010 at 2:27 PM, Richard Nichols r...@visural.com wrote: Hi all, It's a little overdue, but the next release of the visural-wicket component library is now available. For a detailed list of the enhancements / fixes in

Re: Announcing the Topicus Dashboard

2010-11-25 Thread Emond Papegaaij
For people who want to try the dashboard, it depends on a patched version of WiQuery, which fixes several problems found in the official 1.1 release. You can find this version of WiQuery at https://github.com/papegaaij/wiquery . It requires a very recent, webkit-based browser to run. We

Re: visural-wicket 0.6.5 released!

2010-11-25 Thread alex shubert
Looks good. Thanks for your work. P.S.: Whoa! And with examples too! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: visural-wicket 0.6.5 released!

2010-11-25 Thread alex shubert
I must ask it: why did you make such fat header at your page? Did you every try to take a look at this in 1600*900 notebook screen? All you writings begins in bottom second part of the screen. It is not my busenees of course, but why dont you kill that nice picture and resize header to just

nested form in FormComponentPanel validation issue

2010-11-25 Thread Joseph Pachod
Hi I've an AddressEdit which is a FormComponentPanel The addressEdit is composed of two parts: a structured address and a displayed text. The displayed text can be generated from the structured address (provided the structured address is valid, meaning it has all its field apart from the

Invalid html rendered with DataTable [ex. empty tfoot element]

2010-11-25 Thread Poko Booth
Hi all, If you use DataTables, when the bottomToolBars view has no items to render, the markup exported is invalid: table thead /thead tfoot /tfoot tbody ... ... /tbody /table I suppose the same happens with the thead. thead and tfoot tags can't be

need help with spring annotations

2010-11-25 Thread Adam Gibbons
Hi there, I was wondering if anyone could help me with spring annotations, I seem to have having some problems. I'm trying to inject my UserService into a CustomAuthenticatedWebSession I wrote to do validation for my pages. I get a NPE when I hit any page because my bean does not seem to have

Re: need help with spring annotations

2010-11-25 Thread Ernesto Reinaldo Barreiro
The explanation is that Wicket injection magic only works for components: at other places you have to call the magic yourself:-) Ernesto P.S. Would it make sense to put you service at application level and make session fetch it from there? On Thu, Nov 25, 2010 at 2:39 PM, adam.gibbons

Re: need help with spring annotations

2010-11-25 Thread adam.gibbons
I guess if the Application is a singleton I could use it as a ServiceLocator. Might be better than injecting the bean over and over again in CustomAuthenticatedWebSession. Most of the wicket objects seem to have a getApplication method so it might be a nice way of handling my services for future

Re: need help with spring annotations

2010-11-25 Thread Mauro Ciancio
Hello,   �...@springbean(name=userService)    transient private UserService userService; Do not use injected beans as transient fields, because it will produce that the field is not serialized and thus the reference will be null after the page is hydrated. If you mark fields with @SpringBean,

Preventing user input script-injection attacks

2010-11-25 Thread Ian Marshall
If a user has entered some HTML in a TextField or TextAreaString when I do not want HTML to be entered, what is a good way to prevent this? Currently, I store the offending strings and then render them using a Label or MultiLineLabel, but for neither component does

Re: need help with spring annotations

2010-11-25 Thread adam.gibbons
Oh thanks for the tip! I've corrected that now. :) How do you inject Hibernate DAOs into your Spring Services using annotations? Is that possible? I also seem to be having some problems with the sessionFactory being inject into the DAOs. Any ideas? Services are there now though, yay :) On 25

Re: need help with spring annotations

2010-11-25 Thread Mauro Ciancio
Hi, How do you inject Hibernate DAOs into your Spring Services using annotations? Is that possible? I also seem to be having some problems with the sessionFactory being inject into the DAOs. Any ideas? That is configured with Spring, doesn't depends on Wicket at all. I usually configure

Re: Preventing user input script-injection attacks

2010-11-25 Thread Martin Makundi
Hi! I think there are libraries that can provide you with scripting detection or escaping... However, I do not want HTML to be entered is quite vaque rule. Even plain alphabets are html. ** Martin 2010/11/25 Ian Marshall ianmarshall...@gmail.com: If a user has entered some HTML in a

Re: Preventing user input script-injection attacks

2010-11-25 Thread Patrick Petermair
Am 2010-11-25 16:15, schrieb Ian Marshall: If a user has entered some HTML in a TextField or TextAreaString when I do not want HTML to be entered, what is a good way to prevent this? In our project we are using OWASP Antisamy to prevent XSS attacks. It is easy to use, has a couple templates

Re: Preventing user input script-injection attacks

2010-11-25 Thread Ian Marshall
Sorry about that. By I do not want HTML to be entered I meant character strings which are rendered by a browser additional to, or instead of, being displayed as that character string. Examples are: !-- /body onclick='[Some nasty JavaScript]'; Basically, I want to remove nasty code being

Re: Preventing user input script-injection attacks

2010-11-25 Thread Ian Marshall
Thanks for that, Patrick. I'll take a look at these tomorrow to see what they have got. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Preventing-user-input-script-injection-attacks-tp3059119p3059322.html Sent from the Users forum mailing list archive at

Re: Preventing user input script-injection attacks

2010-11-25 Thread Igor Vaynberg
wicket should already escape the markup for you. please provide a quickstart where it is not doing it. -igor On Thu, Nov 25, 2010 at 7:15 AM, Ian Marshall ianmarshall...@gmail.com wrote: If a user has entered some HTML in a TextField or TextAreaString when I do not want HTML to be entered,

Re: visural-wicket 0.6.5 released!

2010-11-25 Thread Mark Doyle
Great library. I always expected more of these since component creation and reuse is one of Wickets a key strengths. What I like about this lib is it's clean and finished. There is no feeling of immaturity or of a project that has died off. On Thu, Nov 25, 2010 at 2:02 PM, alex shubert

Re: nested form in FormComponentPanel validation issue

2010-11-25 Thread Igor Vaynberg
addressedit should be composing itself in its convertinput() method based on the converted input of the subcomponents. -igor On Thu, Nov 25, 2010 at 5:07 AM, Joseph Pachod j...@thomas-daily.de wrote: Hi I've an AddressEdit which is a FormComponentPanel The addressEdit is composed of two

Re: Invalid html rendered with DataTable [ex. empty tfoot element]

2010-11-25 Thread Igor Vaynberg
mind specifying which wicket version you are using? -igor On Thu, Nov 25, 2010 at 5:17 AM, Poko Booth poko.bo...@gmail.com wrote: Hi all, If you use DataTables, when the bottomToolBars view has no items to render, the markup exported is invalid: table      thead /thead      tfoot /tfoot  

Re: visural-wicket 0.6.5 released!

2010-11-25 Thread Richard Nichols
Thanks for all the positive comments :) If anyone has any suggestions / ideas for the next release (0.7) then let me know. Currently the only things on the RoadMap, are Wicket 1.5 support and some refactoring on the DropDown control (which has become a bit of a maintenance time-sink). cheers,

Re: visural-wicket 0.6.5 released!

2010-11-25 Thread Paul Szulc
maven repo is not working On Thu, Nov 25, 2010 at 9:19 PM, Richard Nichols r...@visural.com wrote: Thanks for all the positive comments :) If anyone has any suggestions / ideas for the next release (0.7) then let me know. Currently the only things on the RoadMap, are Wicket 1.5 support

Re: visural-wicket 0.6.5 released!

2010-11-25 Thread Richard Nichols
What error are you getting? It may be related to my separating the visural-common dependency from the main visural-wicket JAR. On Fri, Nov 26, 2010 at 8:56 AM, Paul Szulc paul.sz...@gmail.com wrote: maven repo is not working On Thu, Nov 25, 2010 at 9:19 PM, Richard Nichols r...@visural.com

Re: Invalid html rendered with DataTable [ex. empty tfoot element]

2010-11-25 Thread Poko Booth
I'm using 1.4.12 Regards, Poko On Nov 25, 2010, at 9:28 PM, Igor Vaynberg wrote: mind specifying which wicket version you are using? -igor On Thu, Nov 25, 2010 at 5:17 AM, Poko Booth poko.bo...@gmail.com wrote: Hi all, If you use DataTables, when the bottomToolBars view has no items to

Re: Preventing user input script-injection attacks

2010-11-25 Thread Michał Letyński
You can also try to use: http://nekohtml.sourceforge.net/ W dniu 2010-11-25 18:39, Ian Marshall pisze: Thanks for that, Patrick. I'll take a look at these tomorrow to see what they have got. - To unsubscribe, e-mail:

Re: visural-wicket 0.6.5 released!

2010-11-25 Thread danisevsky
Visural is very good library! Thank you for it! I would welcome for the next release maven integration. 2010/11/25 Richard Nichols r...@visural.com: Thanks for all the positive comments :) If anyone has any suggestions / ideas for the next release (0.7) then let me know. Currently the only