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 : > 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

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: users

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 wrote: >> Hi all, >> If you use DataTables, when the bottomToolBars view has no items to render, >>

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 wrote: > maven repo is not working > > On Thu, Nov 25, 2010 at 9:19 PM, Richard Nichols wrote: > > > Thanks for all the pos

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 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 and some > r

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, RI

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 wrote: > Hi all, > If you use DataTables, when the bottomToolBars view has no items to render, > the markup exported is invalid: > > >       >       >       >           ... >           ... >

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 wrote: > Hi > > I've an AddressEdit which is a FormComponentPanel > > The addressEdit is composed of two parts: a structured

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 wrote:

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 wrote: > > If a user has entered some HTML in a TextField or TextArea when I do > not want HTML to be entered, what is a good way to prevent

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 Nabble.com.

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:

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 TextArea 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 (slash

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 : > > If a user has entered some HTML in a TextField or TextArea when I

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 configu

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 N

Preventing user input script-injection attacks

2010-11-25 Thread Ian Marshall
If a user has entered some HTML in a TextField or TextArea 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 Component.setEscapeModelStrings(tr

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 @SpringBe

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 w

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 wrote: >

Re: need help with spring annotations

2010-11-25 Thread adam.gibbons
It worked!! Thank you sooo much!! \(^_^)/ On 25 November 2010 13:36, Ernesto Reinaldo Barreiro-4 [via Apache Wicket] < ml-node+3058948-296965573-201...@n4.nabble.com > wrote: > Can you try adding line > > InjectorHolder.getInjector().inject(this); > > on CustomAuthenticatedWebSession constructor

Re: need help with spring annotations

2010-11-25 Thread Ernesto Reinaldo Barreiro
Can you try adding line InjectorHolder.getInjector().inject(this); on CustomAuthenticatedWebSession constructor? Ernesto On Thu, Nov 25, 2010 at 2:31 PM, Adam Gibbons wrote: > Hi there, > I was wondering if anyone could help me with spring annotations, I seem to > have having some problems. >

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 bee

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: ... ... I suppose the same happens with the thead. thead and tfoot tags can't be empty. I have overridden the class and manua

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 "A

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 contain

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: 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 recommen

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 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 this releas

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: http://apache-wicket.1842946.n4.nabble.com/java-lang-NoClassDefFoundError-org-apache

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 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 : > > java.l

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)

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/

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 > getResourceSettings().addStringRes

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 wrote: > > Hi, > > > Martin Grigorov-4 wrote: >> >> What is the relation between CarMessa

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 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 another thread, thu

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: "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 > wrote: > There's no CarMessages.java, just the two I mentioned, whi

Re: "Shared" 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 wrote: > > How about better architecture? Using a database instead of a file would be > much nicer. With proper cachi

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 wrote: >

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 AM

Re: "Shared" 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] < ml-node+3058612-308220060-201...@n4.

"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