Return-Path: X-Original-To: apmail-wicket-users-archive@minotaur.apache.org Delivered-To: apmail-wicket-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C619510AA8 for ; Fri, 19 Apr 2013 14:31:42 +0000 (UTC) Received: (qmail 19392 invoked by uid 500); 19 Apr 2013 14:31:41 -0000 Delivered-To: apmail-wicket-users-archive@wicket.apache.org Received: (qmail 19360 invoked by uid 500); 19 Apr 2013 14:31:41 -0000 Mailing-List: contact users-help@wicket.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@wicket.apache.org Delivered-To: mailing list users@wicket.apache.org Received: (qmail 19351 invoked by uid 99); 19 Apr 2013 14:31:41 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Apr 2013 14:31:41 +0000 Received: from localhost (HELO mail-we0-f181.google.com) (127.0.0.1) (smtp-auth username mgrigorov, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Apr 2013 14:31:41 +0000 Received: by mail-we0-f181.google.com with SMTP id r6so3580267wey.26 for ; Fri, 19 Apr 2013 07:31:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=23EheveDFcP9Ic6Hef+t2901rQpAxuy5G3iYeXqcVWI=; b=kbKucaO4MqiLFIhyxuBLx/7FjEwXXcSj6WIftfAJ31timi1h72VRbZ9q/wWAKwyS+J 0xE5HV8aV0QX2Sx6c53/E8pf6YLT2YDGTfmAHJEfjH+xv5z7BAVB2m2ncY2rsKeqSvO0 i0RpvSPojlwnSlVkSfSNWIH/3Jg4CgmrHDQdyLYWcwt7n/S8idsbCtNkLFld90ikDD7F 2n+t/jedwYx9Yrzg97UmugTdUyXoLK2nPVTOhgOMwYdlqzAmrYn1pNrx8uLZx/L8qKQR 3NqNxsjSdmM5kVMsUp2AMhKDzcXeVksBSk+pCz3yTJLUBttY28s4xpzwWFJGDpMTzG+U Y8uA== X-Received: by 10.194.121.129 with SMTP id lk1mr26225736wjb.45.1366381899428; Fri, 19 Apr 2013 07:31:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.211.199 with HTTP; Fri, 19 Apr 2013 07:30:59 -0700 (PDT) In-Reply-To: References: From: Martin Grigorov Date: Fri, 19 Apr 2013 17:30:59 +0300 Message-ID: Subject: Re: Link generation from outside of Wicket - was Re: [ANNOUNCE] Apache Wicket 6.7.0 Released! To: "users@wicket.apache.org" Content-Type: multipart/alternative; boundary=089e011779f5be38aa04dab79310 --089e011779f5be38aa04dab79310 Content-Type: text/plain; charset=UTF-8 On Fri, Apr 19, 2013 at 5:12 PM, Guillaume Smet wrote: > Hi, > > On Thu, Apr 18, 2013 at 11:36 AM, Martijn Dashorst > wrote: > > Render a page or component to a String > > > > ComponentRenderer exposes two methods: `renderComponent` and > > `renderPage` and they do exactly what their names suggest. Happy > > emailing! > > This is really nice. We did it in a quite complicated way before that. > > Any chance the same could be done to generate links from outside of > Wicket, which is also quite difficult to get right at the moment? > > I'm especially thinking about this recent thread on this subject: > http://markmail.org/thread/a34vmcm6ulxgr3ed What exactly you mean by "outside of Wicket" ? What Wicket objects you have access to ? The application name will be needed and a base url. Usually the current request's baseUrl is used to construct a full url. Without the base url Wicket can generate only context-absolute url. > > > -- > Guillaume > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org > For additional commands, e-mail: users-help@wicket.apache.org > > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --089e011779f5be38aa04dab79310--