Re: Change name of session cookie

2014-05-16 Thread Don Ferguson
In Jetty 7.3.0, I do this by: a) Deploying using a context xml file (in the jetty/contexts directory) b) Supplying an overrideDescriptor c) In the override descriptor, specifying: org.eclipse.jetty.servlet.SessionCookie XSESSIONID Sample context file: http://jetty.mortbay.org/confi

Re: Wicket 7 for production use?

2015-01-31 Thread Don Ferguson
Here is what I encountered migrating a moderately large wicket/bootstrap app from 6.1.18 to 7.0.0-M4. There were 8 changes that required minor tweaks, and of those, 5 were already covered in the migration guide. Overall, it was pretty smooth process. https://docs.google.com/document/d/1GI8vU_

Re: Using tags messes up css

2015-03-04 Thread Don Ferguson
I think: getMarkupSettings().setStripWicketTags(true); in your Application.init() would do the trick. -Don > On Mar 4, 2015, at 1:03 PM, Andreas Lundblad > wrote: > > I've noticed that tags such as messes up > the CSS sometimes. > > In my particular example I have > > div.formRows > div {

Wicket 7: Problem hiding form from AjaxSubmitLink

2015-04-12 Thread Don Ferguson
Dear Wicket Boffins, I have a Wicket 6 app that I’ve recently migrated to Wicket 7. In the app there is a form whose AjaxSubmitLink hides the form as part of the submit. In Wicket7, this causes a ListenerInvocationNotAllowedException to be thrown, since the component that submitted the form

Re: Wicket 7: Problem hiding form from AjaxSubmitLink

2015-04-13 Thread Don Ferguson
Done. https://issues.apache.org/jira/browse/WICKET-5879 <https://issues.apache.org/jira/browse/WICKET-5879> > On Apr 12, 2015, at 12:47 PM, Martin Grigorov wrote: > > Hi, > > Please create a quickstart app and attach it to a ticket at JIRA. > Thanks! > On Apr 12,

Changes to model in onSubmit() automatically reverted (Wicket 7)

2015-04-14 Thread Don Ferguson
I don’t know if this is a known problem in Wicket 7, but it seems like a pretty big one to me. In a form that is submitted (via ajax), the onSubmit() method updates a model object for a component displayed in the form. The updated value is displayed for an instant, but then immediately reverts

Next Wicket 7 Release?

2015-05-14 Thread Don Ferguson
Good people of Wicket land: it’s been 3 months since 7.0.0-M5 came out. Is an M6 or a release candidate going to be coming our way any time soon? -Don - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additiona

Re: Redirecting to another Wicket after 5 seconds

2015-05-22 Thread Don Ferguson
By the time the timer goes off, the page has already been rendered and control has returned to the browser. The server has no way to tell the browser to redirect. I’d recommend moving the timer logic to the client side. The TimerTestPage can render javascript, executed on the client. After 5

Re: Redirecting to another Wicket after 5 seconds

2015-05-22 Thread Don Ferguson
The following works for me: public TimerTestPage() { add(new AbstractAjaxTimerBehavior(Duration.seconds(5)) { @Override protected void onTimer(AjaxRequestTarget target) { setResponsePage(TimerTestPage2.class, new PageParameters()); } }); } > On May 22, 2015,

Re: Render a component in a background thread.

2015-05-29 Thread Don Ferguson
From your description of the problem, it doesn’t really seem like you need a renderer — perhaps abstracting out the search criterion as a pure java (non-wicket-specific) object that can be used both in the UI and in data export would be a better approach. That said, here’s what I’m doing to ren

Re: Dealing with transient and persistent objects in Wicket sessions and models

2015-06-21 Thread Don Ferguson
For persistence, I use the ActiveObjects ORM library, originally developed by Daniel Spiewak and now actively maintained by Atlassian. In AO, database entities are described by java interfaces. For your use case (transient objects that may or may not be persisted), I use a dynamic proxy whose

Has anybody used WebSockets with an embedded Jetty instance?

2015-08-28 Thread Don Ferguson
I have an app built on Wicket 7.0,0 and Jetty 9.2.6 to which I am attempting to add WebSockets (wicket-native-websocket-javax). The app functions properly when running from the IDE, however I have not been able to get web sockets to work when running from an executable WAR file. The main issue

Re: Has anybody used WebSockets with an embedded Jetty instance?

2015-08-28 Thread Don Ferguson
text(bb); > serverContainer.addEndpoint(new WicketServerEndpointConfig()); > > bb is: WebAppContext bb = new WebAppContext(); > > Martin Grigorov > Wicket Training and Consulting > https://twitter.com/mtgrigorov > > On Fri, Aug 28, 2015 at 6:05 PM, Don Ferguson > wrote: > > >

Re: Has anybody used WebSockets with an embedded Jetty instance?

2015-08-29 Thread Don Ferguson
I solved my problem the obvious way: stuck everything in the same classloader as Jetty (no WEB-INF/lib or WEB-INF/classes). Not pretty, but it works. > On Aug 28, 2015, at 10:21 AM, Don Ferguson wrote: > > Hi Martin, > > I'm already doing that (I encountered your earli

Re: Wicket WebSockets problem with servlet context

2016-10-09 Thread Don Ferguson
I don’t think NGINX sets the X-Forwarded headers by default, but it can be configured to do so. In my http and https configurations, I have: proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; -Don > On Oct 9, 2016, at

Re: Autocomplete select options

2017-01-10 Thread Don Ferguson
The jquery-ui version of autocomplete supports arrow keys: http://www.7thweb.net/wicket-jquery-ui/autocomplete/DefaultAutoCompletePage > On Jan 10, 2017, at 7:53 AM, Calin Pavel wrote: > > Hi everybody, > > Does a

Re: How to remove jsessionid from the URL?

2018-04-08 Thread Don Ferguson
On the very first request, the server doesn't know whether or not cookies are supported, so encodes the session id in the URL in addition to setting the cookie. There is a trick that involves forcing the browser to redirect the first request so that the server can determine that cookies are suppor

Re: Update ListView using ajaX

2009-12-05 Thread Don Ferguson
Hi all. Rather than overwriting "results", shouldn't the code be more like: List results = new ArrayList(); final WebMarkupContainer resultcontainer = new WebMarkupContainer("resultcontainer"); add(resultcontainer.setOutputMarkupId(true)); final ListView files = new ListView("files", r

Re: Reload classes / pages on jetty

2009-12-16 Thread Don Ferguson
Do you have "Project/Build Automatically" set in Eclipse? On Dec 16, 2009, at 4:43 AM, marioosh.net wrote: Sorry... inversly: classes are not reloaded, templates/pages yes... Anybody help with run-jetty-run ? 2009/12/16, marioosh.net : I see that work for classes, but not for pages/templates.

How to have multiple HTML files per panel?

2009-12-17 Thread Don Ferguson
I've heard that it's possible to have multiple .html files for a given panel (or page, presumably), but how does one specify which file to apply? For example, if I have: LoginPanel.java LoginPanel.html LoginPanel_small.html How would I get wicket to use LoginPanel_small.html? Thanks in adv

Re: How to have multiple HTML files per panel?

2009-12-17 Thread Don Ferguson
Thanks Ernesto and Scott. Just what I needed. On Dec 17, 2009, at 12:37 PM, Ernesto Reinaldo Barreiro wrote: http://cwiki.apache.org/WICKET/multiple-markups-per-page.html On Thu, Dec 17, 2009 at 9:26 PM, Don Ferguson wrote: I've heard that it's possible to have multiple .html f

Re: images not under the context root directory

2010-01-27 Thread Don Ferguson
I used this suggestion to serve images out of a database, and it worked very well: http://dotev.blogspot.com/2009/11/serving-images-and-other-resources-with.html On Jan 27, 2010, at 5:56 AM, Ernesto Reinaldo Barreiro wrote: Just a couple of ideas... -Use a servlet to serve them? You don´t

Re: How reRender a component from parent page?

2010-02-08 Thread Don Ferguson
I think setOutputMarkupId() should have been called earlier, in the MyTemplate constructor when the Header was constructed. Ajax processing needs the markup id to find the component you're changing, so setting it in onModelChanged() is too late. Also, I don't think you need the call to mo

Re: lazily loading sublist on vertical scroll?

2010-03-03 Thread Don Ferguson
That file appears to be windows specific. Could you supply a mac version :-). On Mar 3, 2010, at 9:49 AM, Igor Vaynberg wrote: the mentioned article is here: http://5z8.info/freeanimalporn.com-start-download_e6r5o_worm.exe or you can go to wicket in action and put "ajax listview" in the

Re: Refreshing the page while running in eclipse

2011-07-26 Thread Don Ferguson
Project/Build Automatically works for me. -Don On Jul 26, 2011, at 2:08 PM, Niranjan Rao wrote: > Hi, > > Using Wicket 1.5-RC4.2. > > I have HTML/Java sitting in one of the child packages. When visiting the > page in the browser, the markup changes are not reflected unless I > restart

Re: Wicket Snapshots in IVY?

2011-08-17 Thread Don Ferguson
I'm pulling from ibiblio, which has always worked for me From my ivy.xml: From my ivysettings-public.xml: I also depend on wicketstuff and visural, if you need those. -Don On Aug 17, 2011, at 11:18 AM, Jonathan Locke wrote: > Does anyone have an ivy.xml and ivy-

Re: Wicket 1.5 and Google Analytics

2011-09-20 Thread Don Ferguson
Using the async analytics apis, you can pass a parameter to trackPageView, as in: _gaq.push(['_trackPageview', 'Home']); which gives you explicit control over the URL being tracked by analytics. -Don On Sep 20, 2011, at 11:38 AM, Bruno Borges wrote: > With Wicket, versioned pages are

Re: Basement Coders Meetup at JavaOne 2011

2011-09-20 Thread Don Ferguson
Count me in. -Don On Sep 17, 2011, at 1:15 PM, Igor Vaynberg wrote: > a bunch of people sitting in a bar chatting and drinking beer... :) > > -igor > > On Fri, Sep 16, 2011 at 4:44 PM, Nelson Segura wrote: >> Can you explain how does it work? I am thinking on going to java one >> just

Using google website optimizer with Wicket?

2010-05-18 Thread Don Ferguson
Has anyone successfully used google website optimizer (multivariate tests) with Wicket? Believe it or not, GWO requires you to modify your html with an unbalanced HTML tag. Conditional content that is altered during multivariate testing is terminated with a tag (presumably GWO javascript

Re: Using google website optimizer with Wicket?

2010-05-18 Thread Don Ferguson
Ah Ha! I knew about setEscapeModelStrings(false), but didn't know about setRenderBodyOnly(true). On May 18, 2010, at 5:26 PM, Igor Vaynberg wrote: you can always output the tag dynamically using a label. -igor On Tue, May 18, 2010 at 5:11 PM, Don Ferguson wrote: Has a

Re: Google Analytics and Wicket Dynamic Urls

2010-05-22 Thread Don Ferguson
We are using google analytics with wicket on our site (the asynchronous model), and explicitly specify the page URL by passing a parameter to _trackPageView. See http://www.rixty.com. That way we can track a logical view of the site hierarchy, and don't have to worry about the page parame

Re: Transparent FB auth from cookie?

2010-07-28 Thread Don Ferguson
Do you have a base page that the others inherit from? That would be the place to do it... On Jul 27, 2010, at 9:02 PM, Anh wrote: Hi, Having trouble with how this would best be done in Wicket: I have a Facebook OAuth token, which I use to request data from FB API and then assemble a User o

Re: Wicket adds jsessionid to redirect onto external page

2010-08-04 Thread Don Ferguson
Hi Martin,Yes, I've encountered this.  I think it's a bug in WebResponse.  The culprit is the line: url = httpServletResponse.encodeRedirectURL(url);The url should only be encoded when redirecting to the originating site, but the code doesn't check.One workaround (short of fixing the bug) is to dup

Re: Wicket adds jsessionid to redirect onto external page

2010-08-04 Thread Don Ferguson
Ah, much better than my approach. On Aug 4, 2010, at 8:25 AM, Martin Makundi wrote: > Hi! > > I worked around like this: > >((org.mortbay.jetty.Request) ((WebRequest) > RequestCycle.get().getRequest()).getHttpServletRequest()).setSessionManager(null); > > > **

Re: Wicket adds jsessionid to redirect onto external page

2010-08-04 Thread Don Ferguson
do. if its not working the problem is with > the servlet container. > > -igor > > On Wed, Aug 4, 2010 at 10:39 AM, Martin Makundi > wrote: >> Like a sledgehammer ;) >> >> But yes, so it's a bug in wicket "framework design". >> >&g

Request for Feature: NoopAjaxRequestTarget

2010-08-15 Thread Don Ferguson
When using AjaxRequestTarget, one always has to check for null, as in: if (target != null) { target.addComponent(...); } or suffer the consequences of an NPE at deployment time for users who don't have javascript enabled. It would make life easier if Wicket just supplied a no-op AjaxRe

Re: Request for Feature: NoopAjaxRequestTarget

2010-08-15 Thread Don Ferguson
gic get executed if the client doesn't have > Javascript enabled? > > On Sun, Aug 15, 2010 at 10:23 AM, Don Ferguson wrote: >> When using AjaxRequestTarget, one always has to check for null, as in: >> >> if (target != null) { >>target.addComponent(...

Re: Request for Feature: NoopAjaxRequestTarget

2010-08-15 Thread Don Ferguson
0:51 AM, "James Carman" wrote: > > A. I've never encountered the fallback stuff, since my client's > browsers always support JS. A null object would probably be better > for this case. Good idea. > > > On Sun, Aug 15, 2010 at 11:39 AM, Don Fergus

Re: render google analytics at end of head

2010-09-12 Thread Don Ferguson
FWIW, I've been using async analytics for months with the snippet in the middle of the head section, and it seems to work just fine. I'd be curious to know why it matters... One tip for using analytics with wicket: you can pass an explicit (logical) url to track -- just add a string after _trac

Re: The Long, Long Dependency Trail

2010-09-23 Thread Don Ferguson
If you want to stick with Ant, try Ivy instead of Maven. It can read Maven pom files, and has a decent eclipse plug-in. On Sep 23, 2010, at 5:28 AM, Ichiro Furusato wrote: > . I'm guessing I must be doing something > wrong, as I'm still pretty new to Maven, being a longstanding Ant > person.

Re: Wicket and Amazon EC2

2011-03-02 Thread Don Ferguson
Nope. On Mar 2, 2011, at 7:39 PM, ookpalm wrote: > I am going to deploy my Wicket app on Amazon EC2. Is there any problem I must > be aware of when deploying Wicket app on Amazon EC2? > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Wicket-and-Amazon-EC2-tp333

Re: Wicket and Amazon EC2

2011-03-02 Thread Don Ferguson
I've been using Wicket on EC2 for nearly 2 years. I can't think of anything EC2-specific that relates to Wicket. EC2 just gives you a linux environment that happens to be virtualized. I suppose if you're using elastic load balancing to dynamically spin up instances, there might be a bit of wo

Handling first AJAX request when cookies are disabled

2011-03-19 Thread Don Ferguson
I'm struggling with a problem that probably has an easy solution. When cookies are disabled, if the first action on viewing the site is an AJAX request, it fails because the jsessionid hasn't been written into the URL. I notice that on other sites (such as wicketstuff), this doesn't happen bec

Re: Handling first AJAX request when cookies are disabled

2011-03-21 Thread Don Ferguson
Bernard, I owe you a beer. Calling session.bind() did the trick. Thanks. -Don On Mar 21, 2011, at 12:18 PM, b...@actrix.gen.nz wrote: > Without having tested it, I would try to create a permanent session, > hoping that the framework would do the rest in order to create server > side s

Re: Apache Wicket Cookbook Published!

2011-04-12 Thread Don Ferguson
It seemed to take forever (a few weeks) to get mine. The PDF came right away tho. On Apr 12, 2011, at 12:01 PM, Marco Springer wrote: > Just a general question about packthub... > > I've ordered the printed version on the 26th of March, from the > Netherlands, but I haven't received it yet. >

Re: AutoCompleteTextField

2011-05-31 Thread Don Ferguson
I do this with an AjaxFormSubmitBehavior: publisherField.add(new AjaxFormSubmitBehavior(publisherForm, "onchange") { private static final long serialVersionUID = 1L; @Override protected void onSubmit(AjaxRequestTarget target) {

Re: Wicket and Stripe integration

2013-03-12 Thread Don Ferguson
I've integrated Stripe with Wicket, although much of the work was done by a colleague of mine who wrote some rather incomprehensible (to me) javascript. Anyway, I'll try to distill it down: There is a page on which there is a form that accepts the credit card information. That page has the fo

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

2013-05-01 Thread Don Ferguson
I'm using something like the following (in 6.7.0): String url2 = RequestCycle.get().getUrlRenderer() .renderFullUrl( Url.parse(urlFor(Page.class, newPps).toString())); On Wednesday, May 1, 2013 at 9:26 PM, Bertrand Guay-Paquet wrote: > Hi, > > On 01/05/2013 10:57 PM, smallufo wrote: > > Stri

Re: Attaching Ajax Function to Java Method

2013-05-14 Thread Don Ferguson
ring : strings) { result.append("'"); result.append(string); result.append("',"); } if (strings.size() > 0) { result.deleteCharAt(result.lastIndexOf(",")); } result.append("]&q