Re: AjaxButton doesn't work in WebMarkupContainer

2013-03-28 Thread Pointbreak
Well the error messages kind of gives it away, doesn't it? But to explain further: setDefaultFormProcessing(false) doesn't mean the button can be placed outside a a form. It means that the default validation and submit behavior of the form is not executed when pressing the button. Why do you want

Re: Proper resource versioning

2013-03-28 Thread Pointbreak
I don't think there's anything wrong with serving resources from the webapp-folder, and making the webapp container (e.g. jetty) responsible for serving them instead of Wicket. Most webapp containers will serve static resources much more efficiently than any servlet-based (including Wicket's) appro

Re: Serverside caching of IResource's that are expensive to generate

2013-03-27 Thread Pointbreak
a new one if the CSS has been generated is > before the last modification of the Less file(s) Please note that LessSource.URLSource is not threadsafe, your CacheManager seems to assume that. I went the same route as you, caching LessSource, but made my own threadsafe LessSource implementation for that (

Re: Serverside caching of IResource's that are expensive to generate

2013-03-26 Thread Pointbreak
ket has a CachingResourceStreamLocator that caches the resource streams. > > > > here's my wicket less implementation, could be helpful too: > > https://github.com/l0rdn1kk0n/wicket-bootstrap/tree/master/bootstrap-less > > > > > > Am 26.03.2013 um 01:01

Re: Serverside caching of IResource's that are expensive to generate

2013-03-26 Thread Pointbreak
, Michael Haitz wrote: > Wicket has a CachingResourceStreamLocator that caches the resource > streams. > > here's my wicket less implementation, could be helpful too: > https://github.com/l0rdn1kk0n/wicket-bootstrap/tree/master/bootstrap-less > > > Am 26.03.2013 u

Re: Serverside caching of IResource's that are expensive to generate

2013-03-26 Thread Pointbreak
probably better at caching than a Java solution could > ever > be. > > On Mon, Mar 25, 2013 at 5:01 PM, Pointbreak > wrote: > > > I have implemented a LessCssResource (it generates a CSS resource from > > Less source files) + LessCssResourceReference. Since computing th

Serverside caching of IResource's that are expensive to generate

2013-03-25 Thread Pointbreak
I have implemented a LessCssResource (it generates a CSS resource from Less source files) + LessCssResourceReference. Since computing the CSS is expensive, I would like to cache the generated CSS on the server, once generated. It is unclear to me whether Wicket has mechanisms to do this. I expected

Re: Question about name suffix that wicket appends to ResourceReferences

2013-03-22 Thread Pointbreak
Thanks! On Fri, Mar 22, 2013, at 14:07, Thomas Götz wrote: > Please have a look at FilenameWithVersionResourceCachingStrategy. > >-Tom > > > On 22.03.2013, at 14:01, Pointbreak > wrote: > > > When rendering the header items for packeded resource reference

Question about name suffix that wicket appends to ResourceReferences

2013-03-22 Thread Pointbreak
When rendering the header items for packeded resource references, wicket appends a suffix like "-ver-1363953702887" to the name of the resource. Can somebody point me add the place in the code where this suffix is generated and/or document if/how this could be disabled (preferably on a case by case

Re: Prioritize header items in html templates

2013-03-19 Thread Pointbreak
his is not possible. > is just a convenience. The full power is in the Java based > header contributors. > > > On Tue, Mar 19, 2013 at 2:42 PM, Pointbreak > wrote: > > > Is there a way (in Wicket 6) to prioritize items in wicket:head/head > > elements to get th

Prioritize header items in html templates

2013-03-19 Thread Pointbreak
Is there a way (in Wicket 6) to prioritize items in wicket:head/head elements to get them inside the head of the final page before all code contributed header items? I.e. something like PriorityHeaderItem, but applied to the markup of an item in the wicket:head of a template? Thanks!

Re: Wicket Session Expiration - Ajax interactions

2013-01-21 Thread Pointbreak
Why don't you just keep the session alive as long as the user has an ajax page open? You can easily do this by letting the page do a timed ajax call to the server every x minutes, where x is slightly less than your session timeout. On Mon, Jan 21, 2013, at 17:56, sthomps wrote: > I'm currently in

Re: Call Wicket repeatedly from JQplot (Jquery based) graphing framework

2012-10-31 Thread Pointbreak
With that code the javascript should be added to the markup (which is easy to check if you view the source form your browser). Your problem is that the generated javascript is incorrect: you have no closing ['] after the url. That would have shown up if you opened the page in Firebug with Scripts e

Re: Custom CSS for Feedback message is broken in 1.5

2012-10-29 Thread Pointbreak
[X] Other suggestion: don't have a class on the span, or even better, don't have the span element at all inside the list-item For any customisations beyound this, just create your own FeedbackPanel, it's easy and gives complete control. On Sun, Oct 28, 2012, at 17:03, Sebastien wrote: > Hi, > >

Re: [DISCUSS] Security Frameworks

2012-10-18 Thread Pointbreak
[X] I use Shiro Because it's simple in use and simple to integrate with Wicket or other frameworks, but still powerful enough for most security related tasks. And because I liked it more than Spring Security three years or so ago. I think Spring Security is more feature complete out of the box tho

Re: Wicket and jQuery UI

2012-10-02 Thread Pointbreak
ne it for many projects so far). That's obviously very subjective. It looks like an impressive library nonetheless! On Tue, Oct 2, 2012, at 15:30, Sébastien Gautrin wrote: > Hi Pointbreak, > > At least for wicket-jquery-ui, it offers also pure behaviours > integration for jque

Re: Wicket and jQuery UI

2012-10-02 Thread Pointbreak
It's a very long time ago that I looked at the API's, so it's likely things have changed since that time. But the problem I had with both products is that they are mostly component based API's (meaning they offer an Accordion component, Autocomplete component, etc.). Imho, a much more flexible appr

Re: Wicket rendering jquery late

2012-09-26 Thread Pointbreak
If your panel depends on jquery, you should render the reference to jquery also in your panel. On Wed, Sep 26, 2012, at 13:40, Oscar Besga Arcauz wrote: > Hi wickers ! > > I've a problem with wicket and jquery resource rendering. > > My webpage has many panels wich uses jquery, and they have ja

Re: Best practices for passing configurations, such as Facebook app_id, to JavaScript

2012-08-29 Thread Pointbreak
I would use PackageTextTemplate to render the javascript, e.g. put your javascript in MyPage.js along with the other templates, and use ${facebookId} for the id, then add this to your class: @Override public void renderHead(IHeaderResponse response) { super.renderHead(response); PackageTex

Re: Wicket tags in output markup may change styles

2012-08-21 Thread Pointbreak
You should at least escape your ':', i.e. something like: BODY WICKET\:MESSAGE * { } But I doubt it will work on any browser. If you really want to keep the wicket:message tags (imho you're better of without them), you could wrap them in another container (div/span) and use that conatiner as a cs

Re: page version and forms

2012-08-21 Thread Pointbreak
The tree node selections are fully handled by ajax requests, so they will (obviously) never change the url of the page. Change the selection of e.g. the dropdown for "Content", and you will see that the url changes. There are ways to have forms without version/id information in the URL. Search thi

Re: Wicket Application on GoDaddy

2012-04-03 Thread Pointbreak
You probably have another webapp already mounted as root context (in your webapps/ROOT). You obviously can't have two webapps under the root... On Tue, Apr 3, 2012, at 09:31, Satrix wrote: > I changed the name of WAR file to ROOT.war but no luck now it's > www.domain.com/ROOT/home :/ > From what

Re: What real life scenario calls for page ID?

2012-03-22 Thread Pointbreak
On Thu, Mar 22, 2012, at 15:46, Igor Vaynberg wrote: > On Thu, Mar 22, 2012 at 3:39 PM, heikki wrote: > > What's the point in refreshing if it returns exactly the same page as > > before ? > > it allows components such as datatables and others that pull data from > the database to refresh, while

Re: What real life scenario calls for page ID?

2012-03-22 Thread Pointbreak
On Thu, Mar 22, 2012, at 14:34, Igor Vaynberg wrote: > On Thu, Mar 22, 2012 at 1:58 PM, Pointbreak > wrote: > > On Thu, Mar 22, 2012, at 12:30, Igor Vaynberg wrote: > >> On Thu, Mar 22, 2012 at 12:24 PM, Pointbreak > >> wrote: > >> > On Thu, M

Re: What real life scenario calls for page ID?

2012-03-22 Thread Pointbreak
On Thu, Mar 22, 2012, at 12:30, Igor Vaynberg wrote: > On Thu, Mar 22, 2012 at 12:24 PM, Pointbreak > wrote: > > On Thu, Mar 22, 2012, at 12:05, Igor Vaynberg wrote: > >> On Thu, Mar 22, 2012 at 11:55 AM, Pointbreak > >> wrote: > >> > On Thu, M

Re: What real life scenario calls for page ID?

2012-03-22 Thread Pointbreak
On Thu, Mar 22, 2012, at 12:30, Igor Vaynberg wrote: > On Thu, Mar 22, 2012 at 12:24 PM, Pointbreak > wrote: > > On Thu, Mar 22, 2012, at 12:05, Igor Vaynberg wrote: > >> On Thu, Mar 22, 2012 at 11:55 AM, Pointbreak > >> wrote: > >> > On Thu, M

Re: What real life scenario calls for page ID?

2012-03-22 Thread Pointbreak
On Thu, Mar 22, 2012, at 12:05, Igor Vaynberg wrote: > On Thu, Mar 22, 2012 at 11:55 AM, Pointbreak > wrote: > > On Thu, Mar 22, 2012, at 11:42, Igor Vaynberg wrote: > >> On Thu, Mar 22, 2012 at 11:37 AM, Pointbreak > >> wrote: > >> > On Thu, M

Re: What real life scenario calls for page ID?

2012-03-22 Thread Pointbreak
On Thu, Mar 22, 2012, at 11:42, Igor Vaynberg wrote: > On Thu, Mar 22, 2012 at 11:37 AM, Pointbreak > wrote: > > On Thu, Mar 22, 2012, at 10:56, Igor Vaynberg wrote: > >> On Thu, Mar 22, 2012 at 10:20 AM, Pointbreak > >> wrote: > >> > On Thu, M

Re: What real life scenario calls for page ID?

2012-03-22 Thread Pointbreak
On Thu, Mar 22, 2012, at 11:42, Igor Vaynberg wrote: > On Thu, Mar 22, 2012 at 11:37 AM, Pointbreak > wrote: > > On Thu, Mar 22, 2012, at 10:56, Igor Vaynberg wrote: > >> On Thu, Mar 22, 2012 at 10:20 AM, Pointbreak > >> wrote: > >> > On Thu, M

Re: What real life scenario calls for page ID?

2012-03-22 Thread Pointbreak
On Thu, Mar 22, 2012, at 10:56, Igor Vaynberg wrote: > On Thu, Mar 22, 2012 at 10:20 AM, Pointbreak > wrote: > > On Thu, Mar 22, 2012, at 09:49, Igor Vaynberg wrote: > >> On Thu, Mar 22, 2012 at 8:54 AM, Pointbreak > >> wrote: > >> > On Thu, M

Re: What real life scenario calls for page ID?

2012-03-22 Thread Pointbreak
On Thu, Mar 22, 2012, at 09:49, Igor Vaynberg wrote: > On Thu, Mar 22, 2012 at 8:54 AM, Pointbreak > wrote: > > On Thu, Mar 22, 2012, at 08:23, Igor Vaynberg wrote: > >> On Thu, Mar 22, 2012 at 7:59 AM, Pointbreak > >> wrote: > >> > On Sun, Mar 18, 2012

Re: What real life scenario calls for page ID?

2012-03-22 Thread Pointbreak
On Thu, Mar 22, 2012, at 08:23, Igor Vaynberg wrote: > On Thu, Mar 22, 2012 at 7:59 AM, Pointbreak > wrote: > > On Sun, Mar 18, 2012, at 20:00, Igor Vaynberg wrote: > >> i think there is some confusion here. wicket 1.4 had page ids. it also > >> had page versions. i

Re: What real life scenario calls for page ID?

2012-03-22 Thread Pointbreak
On Sun, Mar 18, 2012, at 20:00, Igor Vaynberg wrote: > i think there is some confusion here. wicket 1.4 had page ids. it also > had page versions. in 1.5 we simply merged page id and page version > into the same variable - page id. this made things much simpler and > also allowed some usecases that

Re: What real life scenario calls for page ID?

2012-03-22 Thread Pointbreak
On Sun, Mar 18, 2012, at 20:00, Igor Vaynberg wrote: > i think there is some confusion here. wicket 1.4 had page ids. it also > had page versions. in 1.5 we simply merged page id and page version > into the same variable - page id. this made things much simpler and > also allowed some usecases that

Using AbstractAjaxBehavior.getCallbackUrl during page construction

2012-03-22 Thread Pointbreak
We have recently upgraded our application from Wicket 1.4 to Wicket 1.5. One problem we encounter is with Ajax handlers we have that use AbstractAjaxBehavior.getCallbackUrl to bind serverside code to actions in the browser. I have been debugging this, and the problem seems to be that the callback-u

Re: What real life scenario calls for page ID?

2012-03-20 Thread Pointbreak
On Tue, Mar 20, 2012, at 10:50, Martin Grigorov wrote: > On Tue, Mar 20, 2012 at 10:45 AM, Pointbreak > wrote: > > On Tue, Mar 20, 2012, at 10:40, Martin Grigorov wrote: > >> On Tue, Mar 20, 2012 at 10:38 AM, Pointbreak > >> wrote: > >> > Yes (sort

Re: What real life scenario calls for page ID?

2012-03-20 Thread Pointbreak
On Tue, Mar 20, 2012, at 10:40, Martin Grigorov wrote: > On Tue, Mar 20, 2012 at 10:38 AM, Pointbreak > wrote: > > Yes (sort of) except you don't need two users. Just bookmark a page with > > a version/id e.g. ?5, close the sessions, open a new session, do some > >

Re: What real life scenario calls for page ID?

2012-03-20 Thread Pointbreak
he mount if it > > doesnt. jira please. > > This is already the case, no need of a ticket for this. If there is no > ?5 then Wicket creates ?0 and shows it. > > The "problem" Pointbreak actually mean is that userA may have opened > ?5 in his session, copy the url

Re: What real life scenario calls for page ID?

2012-03-19 Thread Pointbreak
rsionMount thanks to pointbreak > > in my MainApplication. And It will be my template for future app. But > > to do it, I needed to understood the problem, check on google, read a > > lot of pages, without found a solution, so post the question here, and > > after 3 post, got a

Re: I don't want url page count parameter: localhost:8080/context/?0

2012-03-18 Thread Pointbreak
Create a class NoVersionMount: /** * Provides a mount strategy that drops the version number from * stateful page urls. */ public class NoVersionMount extends MountedMapper { public NoVersionMount(String path, Class pageClass) { super(path, pageClass, new PageParametersEncoder());

Re: Wicket 1.5 rewrites template content - imho should not

2012-02-21 Thread Pointbreak
See https://issues.apache.org/jira/browse/WICKET-4425 On Tue, Feb 21, 2012, at 14:01, Martin Grigorov wrote: > Hi, > > Agree. Wicket should not do this in this case. > File a ticket with a quickstart. > > On Tue, Feb 21, 2012 at 1:42 PM, Pointbreak > wrote: > > I

Re: Updating a component from custom thread or why getRequestCycle returns null

2012-02-21 Thread Pointbreak
You will still need client initiated requests to get your "non-stop-updates" from the page/component to the browser. Hence, just separate the work (which you can do continuously in your thread) from the page rendering (which will need to be initiated by a browser request whatever you do). Will make

Wicket 1.5 rewrites template content - imho should not

2012-02-21 Thread Pointbreak
I have recently upgraded from Wicket 1.4.14 to 1.5.4. One issue that I encountered is that tags in panel templates are rewritten by Wicket, even when the