Mount CSS resources in jar module

2013-05-03 Thread Herman Suijs
Hi all, I'm working on multiple portals which use a common-wicket jar containing HTML, styling and some common components. I'm using Wicket 1.5. What I'm trying to do is to render the css in the AbstractPage in this jar module as /css/screen.css. Because I don't have an Application class in

Re: Mount CSS resources in jar module

2013-05-03 Thread Martin Grigorov
Hi, On Fri, May 3, 2013 at 9:02 AM, Herman Suijs her...@suijsmail.com wrote: Hi all, I'm working on multiple portals which use a common-wicket jar containing HTML, styling and some common components. I'm using Wicket 1.5. What I'm trying to do is to render the css in the AbstractPage in

Re: Atmosphere NPE

2013-05-03 Thread Martin Grigorov
Hi, Please create a quickstart and attach it to a ticket in Jira. Thanks! On Fri, May 3, 2013 at 7:36 AM, Noven noven_...@yahoo.com wrote: Hi all, I have issue with atmosphere, below is the log: 2013-05-01 19:11:32.880602500 INFO - AtmosphereBehavior - Resuming the streaming

Re: May Ajax handlers in Wicket 6 slow down rendering?

2013-05-03 Thread Martin Grigorov
Hi, There are many articles in the web about javascript event delegation. Here is one of them: http://davidwalsh.name/event-delegate The idea is that you should use AjaxEventBehavior on the table component without using AjaxLink or any other Ajax component/behavior for the components in the

Re: Mount CSS resources in jar module

2013-05-03 Thread Bas Gooren
Hi, We've written a (wicket 1.5) class for this: ClassResourcesMapper. It allows you to map all resources under a class (the scope) at a fixed url. I've put it on pastebin: http://pastebin.com/0vGHCRMs Met vriendelijke groet, Kind regards, Bas Gooren Op 3-5-2013 9:02, schreef Herman Suijs:

Re: May Ajax handlers in Wicket 6 slow down rendering?

2013-05-03 Thread Martijn Dashorst
Would it be something for 7.x to make this more straightforward? Not sure how to accomplish that from the top of my head, but it would be quite nice to have this out-of-the-box. Martijn On Fri, May 3, 2013 at 9:51 AM, Martin Grigorov mgrigo...@apache.orgwrote: Hi, There are many articles in

Re: May Ajax handlers in Wicket 6 slow down rendering?

2013-05-03 Thread Martin Grigorov
On Fri, May 3, 2013 at 10:42 AM, Martijn Dashorst martijn.dasho...@gmail.com wrote: Would it be something for 7.x to make this more straightforward? Not sure how to accomplish that from the top of my head, but it would be quite nice to have this out-of-the-box. We created our component with

Re: May Ajax handlers in Wicket 6 slow down rendering?

2013-05-03 Thread Sven Meier
With something like this: https://github.com/svenmeier/apachecon-wicket/blob/master/src/main/java/eu/apachecon/base/ui/performance/IndexEventBehavior.java https://github.com/svenmeier/apachecon-wicket/blob/master/src/main/java/eu/apachecon/base/ui/performance/IndexEventBehavior.js ... you can

Re: May Ajax handlers in Wicket 6 slow down rendering?

2013-05-03 Thread Nick Pratt
Thanks Martin - I meant more aligned with the existing Wicket framework - I understand the JS concept, but was wondering if anyone had built the (de)multiplexing code on the client and server to handle a single event handler for a table/repeater component and how that could hook up with existing

Re: Wasp-Swarm documentation

2013-05-03 Thread saty
Anyone? Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wasp-Swarm-documentation-tp4658494p4658522.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe,

What is the wicket recommended approach

2013-05-03 Thread saty
for securing wicket applications, going by no documentation etc available on WASP/SWARM, i am just curious if there are other things available and preferred. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/What-is-the-wicket-recommended-approach-tp4658523.html Sent

Re: Wasp-Swarm documentation

2013-05-03 Thread Martijn Dashorst
I've some documentation on my disk. Takes some time to upload somewhere. Martijn On Fri, May 3, 2013 at 3:40 PM, saty satya...@gmail.com wrote: Anyone? Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wasp-Swarm-documentation-tp4658494p4658522.html

How to deal with JPA Entities in a Wicket Model? (Data handling in models)

2013-05-03 Thread Christian Reiter
Hi! I'm wondering what's the recommended way to store a unpersisted object while it is edited (I'm using EJBs with JPA as backend). Let's imagine I want to build a customer editor which should be able to handle editing of new (unpersisted) and existing (persisted) customers. If I use a

Re: What is the wicket recommended approach

2013-05-03 Thread Bertrand Guay-Paquet
Hi, Have a look at https://code.google.com/p/wicket-guide/ chapter 18. On 03/05/2013 9:46 AM, saty wrote: for securing wicket applications, going by no documentation etc available on WASP/SWARM, i am just curious if there are other things available and preferred. -- View this message in

Re: Wasp-Swarm documentation

2013-05-03 Thread Martijn Dashorst
https://github.com/wicketstuff/core/wiki/Wicket-Security---1.-Overview https://github.com/wicketstuff/core/wiki/Wicket-Security---2.-Introduction https://github.com/wicketstuff/core/wiki/Wicket-Security---3.-Getting-started

Re: Wasp-Swarm documentation

2013-05-03 Thread saty
Thanks, if you could upload that would be great. a link here would help greatly too. https://cwiki.apache.org/WICKET/wasp-swarm-security.html -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wasp-Swarm-documentation-tp4658494p4658527.html Sent from the Users

Re: How to deal with JPA Entities in a Wicket Model? (Data handling in models)

2013-05-03 Thread Bertrand Guay-Paquet
Hi, On 03/05/2013 9:58 AM, Christian Reiter wrote: Hi! I'm wondering what's the recommended way to store a unpersisted object while it is edited (I'm using EJBs with JPA as backend). Let's imagine I want to build a customer editor which should be able to handle editing of new (unpersisted)

Re: Localized urls

2013-05-03 Thread Bertrand Guay-Paquet
Has no one ever done this? Any guidelines as to how to implement it? On 01/05/2013 10:29 AM, Bertrand Guay-Paquet wrote: Hello, I'd like to localize the urls generated by my app like so: /en/account/settings - AccountSettingsPage, locale EN /fr/compte/parametres - AccountSettingsPage,

Re: Wasp-Swarm documentation

2013-05-03 Thread saty
Thanks again, much appreciated. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wasp-Swarm-documentation-tp4658494p4658531.html Sent from the Users forum mailing list archive at Nabble.com. - To

Wicket 6.x and Repeaters API change to use longs

2013-05-03 Thread Paul Bors
I'm a bit confused and can't find the JPA version that uses longs instead of ints as mentioned in the migration guide at: https://cwiki.apache.org/WICKET/migration-to-wicket-60.html Repeaters * `IDataProvider` was converted to using `long` instead of `int` to better line up with JPA and

Re: Wicket 6.x and Repeaters API change to use longs

2013-05-03 Thread Igor Vaynberg
4.8.4 Aggregate Functions in the SELECT Clause The result of a query ... The Java type that is contained in the result of a query using an aggregate function is as follows: COUNT returns Long. ... -igor On Fri, May 3, 2013 at 8:35 AM, Paul Bors p...@bors.ws wrote: I'm a bit confused and can't

RE: Wicket 6.x and Repeaters API change to use longs

2013-05-03 Thread Paul Bors
All good and solid, but take for example Javax's Query API: http://docs.oracle.com/javaee/6/api/javax/persistence/Query.html#setFirstRes ult(int) Since Wicket's DataProvider now offers the first and count as longs, one would have to cast first to an int to pass it through the JEE 6 API, right? Or

Re: [wicket 6] Any shortcut to get full url ?

2013-05-03 Thread Paul Bors
See chapter 7 Under the hood of request processing and 8 Wicket Links and URL generation of the Wicket User Guide at: http://wicket.apache.org/learn/books/freeguide.html ~ Thank you, Paul Bors On Thu, May 2, 2013 at 12:59 AM, Don Ferguson don.fergu...@gmail.comwrote: I'm using something like

Re: Wicket 6.x and Repeaters API change to use longs

2013-05-03 Thread Igor Vaynberg
yes. when i was looking at this i thought about making the dataprovider paging param ints, but then the long return type didnt make sense. since count() returns a long its feasible to request offsets in the long range - eg user presses last page and you actually have more rows then an int can

RE: Wicket 6.x and Repeaters API change to use longs

2013-05-03 Thread Paul Bors
Bummer, now we all have to take a similar approach. Okay, it makes sense. ~ Thank you for the clarification and keep up the good work :) Paul Bors -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Friday, May 03, 2013 12:12 PM To: users@wicket.apache.org

Dynamic Session.style

2013-05-03 Thread Allen Gilbert
We are adding some new pages to our application that we'd like to style differently from existing ones. We also want to reuse Panels we've built, so we're employing the Style mechanism outlined in https://cwiki.apache.org/confluence/display/WICKET/Localization+and+Skinning+of+Applications. We

RE: Dynamic Session.style

2013-05-03 Thread Paul Bors
But isn't that normal behavior? Consider localization alone and setting the user's language in a session. If the user logs in and uses English and then opens a new tab (same session) and choose Spanish, going back to the first tab and refreshing the page should be in Spanish. Same for you. What

Re: Dynamic Session.style

2013-05-03 Thread Allen Gilbert
If locale and/or style are determined by a user-configurable setting, then yes, I agree that all pages should be affected by it. However, we're trying to differentiate styles between pages viewed within the same session. I'm guessing that Session.style was designed to be set once, not

Re: Form not displaying messages correctly

2013-05-03 Thread Taro Fukunaga
After reworking my code to match the example, I found that I still could not get the value from the field. However after upgrading from Wicket 6.6.0 to 6.7.0, I was finally able to get the value from the field. Thanks. -- View this message in context:

Wierd ajax thing

2013-05-03 Thread Entropy
I have a panel that consists of several combo boxes that hierarchically allow selection of an office/org hierarchy. Mostly the 1st combo filters the second which filters the third and so forth. I have a requirement to use this in a fashion that allows multiple selection. I am also being

Re: Wierd ajax thing

2013-05-03 Thread Sven Meier
but I can see that the code is setting the formObject to the right values as the event leaves my code, sets the targets, and i know that it then shows up wrong in the page Maybe a previous input is lurking around? Try calling #clearInput() on your FormComponents when you change the

Validation messages go missing in ajax form example

2013-05-03 Thread Taro Fukunaga
Hi, I'm having a problem with validation in a form with ajax buttons. I am using Wicket 6.7.0 and running Form Example: shows ajax form processing on my local box (I downloaded Wicket 6.7.0 zip file and running it through jettty). The scenario: 1) Type aaa for the name field and click submit via

Re: Validation messages go missing in ajax form example

2013-05-03 Thread Sven Meier
Works fine here: Messages show up with either button (and as you type too). Sven On 05/03/2013 11:11 PM, Taro Fukunaga wrote: Hi, I'm having a problem with validation in a form with ajax buttons. I am using Wicket 6.7.0 and running Form Example: shows ajax form processing on my local box (I