Cookies and RestartResponseException

2012-12-26 Thread Alexandros Karypidis
Hi, I am using CookieUtils to store a cookie. Here's the catch though: after setting the cookie, I want to redirect the user to a new page, so that is followed immediately by a RestartResponseException: new CookieUtils().save(some-key, some-value) throw new

Re: Cookies and RestartResponseException

2012-12-26 Thread Alexandros Karypidis
! On 26/12/12 18:19, Sven Meier wrote: Use NonResettingRestartException Sven On 12/26/2012 07:11 PM, Alexandros Karypidis wrote: Hi, I am using CookieUtils to store a cookie. Here's the catch though: after setting the cookie, I want to redirect the user to a new page, so that is followed

Re: Basic l10n / i18n question: must page be re-rendered?

2011-08-26 Thread Alexandros Karypidis
page's class getRequestCycle().setResponsePage(getPage().getClass(), getPage.getParameters()); } On 23/8/2011 10:41 μμ, Alexandros Karypidis wrote: Hi Gregor, I've found a way to do this by manipulating the request cycle. However, it will only work if you don't mind losing any page

Basic l10n / i18n question: must page be re-rendered?

2011-08-23 Thread Alexandros Karypidis
Hello, I have written a locale selector by extending DropDownChoice (you can see the essential stuff of the implementation below). The problem is that when the user changes the locale, the page needs to be re-rendered using the newly selected locale. This does NOT happen. Instead, only the

Re: Basic l10n / i18n question: must page be re-rendered?

2011-08-23 Thread Alexandros Karypidis
could suggest a better alternative? On 23/8/2011 9:13 μμ, Gregor Kaczor wrote: I have exactly the same problem, though i use an xml file for the translations. Any help out there? On 08/23/2011 02:09 PM, Alexandros Karypidis wrote: Hello, I have written a locale selector by extending

[Migration 1.5]: exception handling in request cycle

2011-07-19 Thread Alexandros Karypidis
Hi, I'm trying to plug into the new request cycle processor of 1.5-RC5.1. I am following the instructions in the wiki page, but I seem to have run into some out-of-date info. So, according to: https://cwiki.apache.org/WICKET/migration-to-wicket-15.html#MigrationtoWicket1.5-RequestCycle: 1) I

Re: [Migration 1.5]: exception handling in request cycle

2011-07-19 Thread Alexandros Karypidis
to improve that is welcome! On Tue, Jul 19, 2011 at 12:35 PM, Alexandros Karypidis akary...@yahoo.gr wrote: Hi, I'm trying to plug into the new request cycle processor of 1.5-RC5.1. I am following the instructions in the wiki page, but I seem to have run into some out-of-date info. So

Re: Xforms Controls within Wicket Application

2011-07-11 Thread Alexandros Karypidis
Hello, First of all, there is ambiguity in your question. I'm not sure how the above would tie into a wicket-specific question, unless you want to create an XForm--XHTML renderer/processor using Wicket as the underlying technology (which is not a good idea IMHO). In any case: 1) Are you

INullAcceptingValidator behavior

2011-06-03 Thread Alexandros Karypidis
Hello, 1) I have a custom validator that implements INullAcceptingValidator. 2) A TextField component in my form has validator (1) attached to it and is setRequired(false). 3) When I submit my form with the text input empty, the validator does NOT get called. It only gets called if there is

Re: INullAcceptingValidator behavior

2011-06-03 Thread Alexandros Karypidis
by org.apache.wicket.markup.html.form.AbstractTextComponent.isInputNullable() On Fri, Jun 3, 2011 at 12:00 PM, Alexandros Karypidis akary...@yahoo.gr wrote: Hello, 1) I have a custom validator that implements INullAcceptingValidator. 2) A TextField component in my form has validator (1) attached to it and is setRequired(false

Re: INullAcceptingValidator behavior

2011-06-03 Thread Alexandros Karypidis
)); I really can't see how my INullAcceptingValidator could ever get a chance to process a null value, unless the check of validateValidators() is changed... On Fri, 03 Jun 2011 12:47:57 +0300, Alexandros Karypidis akary...@yahoo.gr wrote: Hello again, I'm in a weird place. I've stepped

Re: INullAcceptingValidator behavior

2011-06-03 Thread Alexandros Karypidis
Ok, I'll open a JIRA and refer to this thread. Fix seems easy enough. On Fri, 03 Jun 2011 12:50:40 +0300, Martin Grigorov mgrigo...@apache.org wrote: Yes. It looks like a bug On Fri, Jun 3, 2011 at 12:47 PM, Alexandros Karypidis akary...@yahoo.gr wrote: Hello again, I'm in a weird

Re: INullAcceptingValidator behavior

2011-06-03 Thread Alexandros Karypidis
https://issues.apache.org/jira/browse/WICKET-3767 On Fri, 03 Jun 2011 12:56:06 +0300, Alexandros Karypidis akary...@yahoo.gr wrote: Ok, I'll open a JIRA and refer to this thread. Fix seems easy enough. On Fri, 03 Jun 2011 12:50:40 +0300, Martin Grigorov mgrigo...@apache.org wrote: Yes

Table repeater: repeat across row AND column

2011-05-01 Thread Alexandros Karypidis
Hello, I am trying to create a web page that lists contact addresses in a table. My repeater can easily lay out one address per row, but I need to be able to list 2 addresses per row (actually, ideally I'd like to list N addresses per row). The problem is that ListView's operation

Repeating two tags at the same level (i.e. without a container)

2011-04-28 Thread Alexandros Karypidis
Hello, Can anybody recommend how to achieve the following: I need to repeat two tags at the same level, without placing them in a container. For example, the below markup shows a static div containing two dynamic div tags(one for the repeater and one for the two tags I need alongside each

Re: Repeating two tags at the same level (i.e. without a container)

2011-04-28 Thread Alexandros Karypidis
Žilvinas Vilutis E-mail: cika...@gmail.com On Thu, Apr 28, 2011 at 4:47 PM, Zilvinas Vilutis cika...@gmail.com wrote: use wicket:container tag instead Regards Žilvinas Vilutis E-mail: cika...@gmail.com On Thu, Apr 28, 2011 at 4:38 PM, Alexandros Karypidis akary...@yahoo.gr

Re: [MIIGRATE 1.5] Where is getSharedResources().putClassAlias(...)

2011-04-26 Thread Alexandros Karypidis
On Mon, 25 Apr 2011 13:13:22 +0300, Alexandros Karypidis akary...@yahoo.gr wrote: Posted: https://issues.apache.org/jira/browse/WICKET-3640 for investigation. Is there really no alternative to this with Wicket 1.5? On Mon, 25 Apr 2011 09:19:02 +0300, Martin Grigorov mgrigo

Re: [MIIGRATE 1.5] Where is getSharedResources().putClassAlias(...)

2011-04-25 Thread Alexandros Karypidis
, Alexandros Karypidis akary...@yahoo.gr wrote: Hello, Here's my next question regarding migration to 1.5. I used to publish dynamic image resources (retrieved from DB) as follows: protected void init() { super.init(); getSharedResources().putClassAlias

Re: Nesting RepeatingView components: Possible attempt to embed component(s) error

2011-04-25 Thread Alexandros Karypidis
converted into a separate MenuBar component. On Mon, 25 Apr 2011 00:13:46 +0300, James Carman ja...@carmanconsulting.com wrote: Check out the YUI menu support in wicketstuff. It works great for us. On Sun, Apr 24, 2011 at 4:41 PM, Alexandros Karypidis akary...@yahoo.gr wrote: Hello, I want

Re: Could not resolve class: my.domain.favicon.ico

2011-04-25 Thread Alexandros Karypidis
Hello Rene, I understand that you probably currently DON'T have a favicon for your site and you are disturbed by the browser's attempt to fetch it. First of all, you should read http://en.wikipedia.org/wiki/Favicon to see what this is about. It's the icon that browser use to decorate the

Re: [osgi] package org.apache.wicket.request exported either from core and request packages

2011-04-25 Thread Alexandros Karypidis
I would reverse the question and ask: why was wicket broken into multiple packages in the first place? I assume there are use cases where: - someone would need only the content of wicket-core and none of the extras - someone would need only wicket-core + wicket-request - someone would need

[MIIGRATE 1.5] Where is getSharedResources().putClassAlias(...)

2011-04-24 Thread Alexandros Karypidis
Hello, Here's my next question regarding migration to 1.5. I used to publish dynamic image resources (retrieved from DB) as follows: protected void init() { super.init(); getSharedResources().putClassAlias(org.apache.wicket.Application.class,

Nesting RepeatingView components: Possible attempt to embed component(s) error

2011-04-24 Thread Alexandros Karypidis
Hello, I want to add menus (as in a menu bar with drop-down menus) on my pages. In order to achieve that, I must use a nested RepeatingView (see further down for the explanation). What I need (and don't know how to do) is to be able to have markup like this: ul class=web-menu

Re: Understanding Wicket 1.5 page mapping

2011-04-23 Thread Alexandros Karypidis
Hello, Could you post some pseudo-code on what your request mapper looks like? I have a similar use-case but I wasn't able to follow. I created a MyRequestMapper class that wraps the default root mapper: setRootRequestMapper(new MyRequestMapper(getRootRequestMapper())); public

Re: Understanding Wicket 1.5 page mapping

2011-04-23 Thread Alexandros Karypidis
Thx! On Sat, 23 Apr 2011 14:11:56 +0300, Alexandros Karypidis akary...@yahoo.gr wrote: Hello, Could you post some pseudo-code on what your request mapper looks like? I have a similar use-case but I wasn't able to follow. I created a MyRequestMapper class that wraps the default root

[MIGRATE 1.5] NPE trying to use JavaScriptTemplate

2011-04-22 Thread Alexandros Karypidis
Hi, I've just started preparing for 1.5 and have been modifying my code in order to conform with the new API. I've managed to get my application to compile and launch, but in my first attempt to render a page I get an NPE as follows: java.lang.NullPointerException at

Mixing static with dynamic items in the same list

2011-04-17 Thread Alexandros Karypidis
Hello, I have a page with a simple HTML unordered list (ul), where part of the list items are static, whereas the rest of them are dynamic. To that end, I've injected a span tag at the end of the static items, adding a ListView in order to fill in the dynamic part, as follows: HTML

Modify element attribute, preserve content

2011-01-26 Thread Alexandros Karypidis
Hello, I have the following case which I do not know how to handle with Wicket: I have an element (specifically it is an a href=.../a link) for which I need to generate an attribute's value dynamically (specifically, I need to set the href attribute at runtime), but I need to preserve the

Tracing attach/detach and serialization activity

2011-01-15 Thread Alexandros Karypidis
Hi, I'd like to be able to observe Wicket's (de)serialization activity and model attachment/detachment at runtime. Is there some setting (e.g. specifying a DEBUG or TRACE log level) that would cause Wicket to log the relevant actions? I am using Wicket 1.4.15. Thank you.

Should Logger classes be transient?

2011-01-15 Thread Alexandros Karypidis
Hello, I'm using SLF4J and was wondering whether pages should declare: private transient final Logger log = LoggerFactory .getLogger(SomePage.class); as members. I guess that accessing a page that was saved and then re-loaded would result in breaking logging, as the variable

Reacting to AutoCompleteTextField choice selection event

2010-08-20 Thread Alexandros Karypidis
Hi, I have an AutoCompleteTextField, for which I need to react to user selections from the choices list. For example, if a user enters Au and the choices Austria and Australia are shown, I need to be able to execute some code via a callback if the user scrolls down to one of the two choices

Re: Reacting to AutoCompleteTextField choice selection event

2010-08-20 Thread Alexandros Karypidis
Hi, I have an AutoCompleteTextField, for which I need to react to user selections from the choices list. For example, if a user enters Au and the choices Austria and Australia are shown, I need to be able to execute some code via a callback if the user scrolls down to one of the two

AutoCompleteTextField: converter seems to be ignored

2010-08-19 Thread Alexandros Karypidis
Hi, I'm using AutoCompleteTextFiled with Wicket 1.4.9. My model is a POJO that is specified as a generic: searchTextField = new AutoCompleteTextFieldSomePOJO(... Therefore I return an Iterator of such POJOs with: protected IteratorSomePOJO getChoices(String input) {

GMap2 from wicketstuff: how to dynamically resize?

2010-05-16 Thread Alexandros Karypidis
Hi, I am unsing GMap2 from WicketStuff (http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-gmap2) and need to display a map in a pop-up dialog. I use JQuery for the dialog. When the Dialog comes up, the map's viewport is offset in relation to the window and only the

Re: GMap2 from wicketstuff: how to dynamically resize?

2010-05-16 Thread Alexandros Karypidis
if there's only one map in the page... On 16/5/2010 15:55, Alexandros Karypidis wrote: Hi, I am unsing GMap2 from WicketStuff (http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-gmap2) and need to display a map in a pop-up dialog. I use JQuery for the dialog. When the Dialog

Re: GMap2 from wicketstuff: how to dynamically resize?

2010-05-16 Thread Alexandros Karypidis
is simpler than my previous one, but hey, it IS Sunday afternoon... On 16/5/2010 16:16, Martin Funk wrote: sorry my mind is in Sunday afternoon mode, and not able to wrap itself around this... could you come up with a Quickstart example? mf Am 16.05.2010 um 14:55 schrieb Alexandros Karypidis

Beginner: Pre-select value on RadioChoice component using compound model

2010-04-24 Thread Alexandros Karypidis
Hi, I'm using the RadioChoice component on a form with a CompoundPropertyModel. I'd like the form to come up witn a specific radio option selected. So I try: RadioChoiceSex sexRadio = new RadioChoiceSex(profile.sex, Arrays .asList(Sex.values()));

AjaxFormComponentUpdatingBehavior and id attribute

2010-04-22 Thread Alexandros Karypidis
Hi, When I add an AjaxFormComponentUpdatingBehavior to a component (a TextFieldString in particular though I don't think that matters), Wicket assigns an HTML id attribute to the component by taking the wicket:id value I specified and appending a character. So, if my original HTML had:

Re: AjaxFormComponentUpdatingBehavior and id attribute

2010-04-22 Thread Alexandros Karypidis
Ok, I get it, thank you. On 22/4/2010 21:55, Martin Makundi wrote: Hi! You can call component.setMarkupId(component.getId()); ** Martin 2010/4/22 Alexandros Karypidisakary...@yahoo.gr: Hi, When I add an AjaxFormComponentUpdatingBehavior to a component (a TextFieldString in particular

Another beginner localization question

2010-04-19 Thread Alexandros Karypidis
Hi, I'm using a wicket:message tags, property files and a ChoiceRenderer to allow users to switch the Locale. My ChoiceRenderer overrides wantOnSelectionChangedNotifications() to have the browser send a Locale change event to the server and when this call returns, all wicket:message content

Re: Another beginner localization question

2010-04-19 Thread Alexandros Karypidis
Aha! ...the joys of learning Wicket! :-) On 19/4/2010 10:58 μμ, Pedro Santos wrote: Your ChoiceRenderer can implement IHeaderContributor and add your javascript to IHeaderResponse object, since when the user change the value on the selection component, the page will to be re-rendered On Mon,

Beginner localization question

2010-04-13 Thread Alexandros Karypidis
Hi, How can I have Wicket resolve a key to some localized messages with my own code at runtime? The reason I ask is because I have this use case: 1) I use Java enumerations to strongly-type a RadioChoice control: public enum RadioOptions { ONE, TWO, THREE } 2) I strongly-type a RadioChoice

How do I provide digit-only IDs to make childs safe?

2010-04-11 Thread Alexandros Karypidis
Hi, I'm a new Wicket user who is also getting familiar with the GMap2 module from wicket-stuff. I'm using the geocode example as a basis for creating a form which allows you to search for a location and set the map viewport to display it:

Re: (Un-)deployment woes on Tomcat (and JBoss)

2010-03-21 Thread Alexandros Karypidis
. I'm not sure how to properly fix this... Any ideas? On 21/3/2010 11:38 πμ, Alexandros Karypidis wrote: Well, if I force the class to be loaded early this way, destroy() simply fails a little bit further down, when trying to load a nested class. java.lang.NoClassDefFoundError: org/apache/wicket

(Un-)deployment woes on Tomcat (and JBoss)

2010-03-20 Thread Alexandros Karypidis
Hi, I'm having problems with deployment/undeployment of Wicket apps on Tomcat (and also JBoss, though I think it's related to the fact that it embeds Tomcat). Basically, in both cases undeployment comes back with an Exception, leaving the server in a dirty state and I have to restart the