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 0D8B9176FB for ; Thu, 6 Nov 2014 12:43:36 +0000 (UTC) Received: (qmail 92747 invoked by uid 500); 6 Nov 2014 12:43:35 -0000 Delivered-To: apmail-wicket-users-archive@wicket.apache.org Received: (qmail 92715 invoked by uid 500); 6 Nov 2014 12:43:35 -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 92702 invoked by uid 99); 6 Nov 2014 12:43:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Nov 2014 12:43:34 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of guillaume.smet@gmail.com designates 209.85.218.52 as permitted sender) Received: from [209.85.218.52] (HELO mail-oi0-f52.google.com) (209.85.218.52) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Nov 2014 12:43:30 +0000 Received: by mail-oi0-f52.google.com with SMTP id u20so658958oif.25 for ; Thu, 06 Nov 2014 04:42:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=Hz2qFJzYhoQWXH1fhb51Qf/mzUkwfj2aGre+E+YU8Q4=; b=FfE5tRnm7eGX0KzhEuX5ptoigmIeKctgZNYQ/cPvW8Xgj2DEgAJuIkANOg753vFOn6 Fe2tJMqzvEnFTNj0n8AUkWEP+ABABpWvaPb8LLgCTGN/mR+pFiJ7/TJBw3XW5jNlgr78 eXcy78WZhuheAzoPYOfRO50ZLW1l4jte54kQ5Xm2WyE9lpSjeOL9pyDgb6CO6tsA0xKa 8jhrh3WXXuSnjkPgzCrWb5IIlHE+Z3jAZCdDMa9C4aUTVh8QBMjbKmPcyxNUj0RUHy3F DVATwkejJ4WK1Dv2LMnDvhGGZT/LjCFkjCAUb3W5dni74xww40YJPZMFgnk9Pob9s+dI PCRg== MIME-Version: 1.0 X-Received: by 10.182.81.10 with SMTP id v10mr1405382obx.72.1415277745058; Thu, 06 Nov 2014 04:42:25 -0800 (PST) Received: by 10.202.115.132 with HTTP; Thu, 6 Nov 2014 04:42:25 -0800 (PST) In-Reply-To: <54600682-B8CB-454E-AD42-461709E63840@decoded.de> References: <54600682-B8CB-454E-AD42-461709E63840@decoded.de> Date: Thu, 6 Nov 2014 13:42:25 +0100 Message-ID: Subject: Re: ResourceModel with default *key* From: Guillaume Smet To: users@wicket.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi Tom, Thanks for your suggestion! That's the kind of thing I had in mind if we haven't missed anything in the API but I was hoping we have missed something as it seems generally useful! On Thu, Nov 6, 2014 at 12:49 PM, Tom G=C3=B6tz wrote: > You could try something like this: https://gist.github.com/tgoetz/0735b05= d47b16acf2fd7 > > Cheers, > -Tom > > >> On 06.11.2014, at 11:53, Guillaume Smet wrote= : >> >> Hi all, >> >> Maybe we are missing something but we haven't found an elegant way to >> have a ResourceModel with a default *key* if the current key doesn't >> exist. >> >> There is a mechanism for a default *string* but it's not sufficient >> for us (we want to be able to specialize the key if needed but have an >> internationalized default if not). >> >> Suggestions welcome! >> >> Thanks. >> >> -- >> Guillaume > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org For additional commands, e-mail: users-help@wicket.apache.org