Re: FilenameWithVersionResourceCachingStrategy accepts (almost) any string as a version

2020-05-25 Thread Carl-Eric Menzel
Sorry, didn't mean to sound dismissive. It's a valid point, just I'm not seeing that anybody could get to anything otherwise unavailable. On Mon, 25 May 2020 21:02:08 +0200 Carl-Eric Menzel wrote: > I think the point of this version decoration is not to ensure a > particular v

Re: FilenameWithVersionResourceCachingStrategy accepts (almost) any string as a version

2020-05-25 Thread Carl-Eric Menzel
I think the point of this version decoration is not to ensure a particular version is requested, because typically only one version of a file is available in the application. The point is instead to defeat any caching, both in the browser and by proxies, which might serve the user an outdated

Re: ListView Add/Remove via AJAX...

2018-03-28 Thread Carl-Eric Menzel
Hi James, Some time ago I wrote this: https://github.com/duesenklipper/wicket-appendablerepeater It should work with forms. If not, let me know. Best regards Carl-Eric On 27.03.2018 14:42, James Carman wrote: It has been a while since I've used Wicket and man, I really forgot how much I

Re: Download byte array

2014-04-14 Thread Carl-Eric Menzel
You can use a org.apache.wicket.request.resource.ByteArrayResource instead - It's an IResource implementation that takes a byte array. You can then use the resource in a DownloadLink, for example. Carl-Eric On Mon, 14 Apr 2014 12:11:06 +0200 christoph.ma...@t-systems.com wrote: Hello, Iam

Re: Show Excelsheet in Browser

2014-03-24 Thread Carl-Eric Menzel
If the browser doesn't know how to display an excel file inline, it will still open a download window. This has nothing to do really with Wicket - if you want the browser to display an actual Excel .xls file, you need a browser plugin that can do it. What you can do, for example, is parse the

Re: Focus navigation on form components by pressing ENTER

2013-09-07 Thread Carl-Eric Menzel
You don't need an ajax behavior to do this. This is all client-side javascript only, as described in the stackoverflow post. You can of course use a regular behavior to emit the necessary javascript. Carl-Eric On Sat, 7 Sep 2013 15:50:06 +0500 Farrukhjon SATTOROV (farrukh) fireda...@gmail.com

Re: Wicket serialization concerns

2013-08-20 Thread Carl-Eric Menzel
On Tue, 20 Aug 2013 23:01:29 + Michael Chandler michael.chand...@onassignment.com wrote: I'm led to believe that creating a reference to any of my domain classes within a Wicket component (as a field or in a method implementation) will expose me to a serialization error unless I put it in

Re: No page id appended to some stateful pages

2013-08-07 Thread Carl-Eric Menzel
On Wed, 07 Aug 2013 13:48:38 -0400 Bertrand Guay-Paquet ber...@step.polymtl.ca wrote: The problem I see is that AbstractRepeater's onPopulate() is called during onBeforeRender() and this is not done when the stateless status of the page is first checked. Therefore, no pageId is added unless

Re: shared models - rules

2013-02-22 Thread Carl-Eric Menzel
On Fri, 22 Feb 2013 12:42:14 -0800 (PST) grazia grazia.russolass...@gmail.com wrote: Say I have a page with several components all sharing the same model; what are the rules of thumb to make sure the same model gets updated byt the different components on the page ? If you only ever pass

Re: shared models - rules

2013-02-22 Thread Carl-Eric Menzel
On Fri, 22 Feb 2013 13:23:20 -0800 (PST) grazia grazia.russolass...@gmail.com wrote: If the form contains a panel, and that panels contains a textfield, and all share the same IModelMyClass, this is what I see: the textField model gets updated, but not the panel's model and not the form's

Re: shared models - rules

2013-02-22 Thread Carl-Eric Menzel
form.add(new Button(appointButton) { public void onSubmit() { System.out.println(HERE = + getModelObject() ); -- whatever it is the choice in the autocomplete which is within the MyPersonnelPanel this is always null } I didn't look

Re: Migration issue: page that writes binary data to the response

2013-02-19 Thread Carl-Eric Menzel
On Tue, 19 Feb 2013 09:23:28 +0100 Martin Dietze d...@fh-wedel.de wrote: IMO the problem is not that much how the response is generated, but how the component is already uses within the system. At this point creating a download link is simple as it simply is a BookmarkableLink to that page

Re: Migration issue: page that writes binary data to the response

2013-02-18 Thread Carl-Eric Menzel
I would simply do this in a Resource (e.g. subclass AbstractResource) rather than in a page. Resources are for binary data, Pages are for markup. That way you don't have to mess around in any way with the response or anything like that. Is there a particular reason you're using a page? Carl-Eric

Re: Fundamental forms/models issue

2013-02-18 Thread Carl-Eric Menzel
On Mon, 18 Feb 2013 17:47:16 + Michael Chandler michael.chand...@onassignment.com wrote: Good morning/afternoon everyone. I'm having a basic problem fully deciphering how to best manage my forms, specifically related to Models that are attached to forms. Since a Wicket WebPage has it's

Re: Migration issue: page that writes binary data to the response

2013-02-18 Thread Carl-Eric Menzel
On Mon, 18 Feb 2013 19:03:41 +0100 Martin Dietze d...@fh-wedel.de wrote: On Mon, February 18, 2013, Carl-Eric Menzel wrote: Is there a particular reason you're using a page? One - unfortunately - big reason: it's legacy code (most of which I did not even write myself). The Wicket upgrade

Re: Unable to Traverse with IVisitor: Some Class Names Have $1 at the end

2012-11-01 Thread Carl-Eric Menzel
Most of the time, the class names are right, but sometimes, I don't get Wicket org names, I get these: com.mycompany.MyForm.MyPanel$1 ( -- on a Button!) com.mycompany.SomeForm$1 ( -- on a Button!) What's going on here, why can't I get the actual

Re: merge all properties file into one file

2012-10-24 Thread Carl-Eric Menzel
Is there any way that i can merge all my properties file into one big properties file ? If you application class is MyApplication then you can put everything into MyApplication.properties if you want. Carl-Eric - To

Re: Which github branch

2012-10-20 Thread Carl-Eric Menzel
Wicket github has both a 'master' 'trunk'. Which one should I choose? (or is there something else for 'latest 1.6.x code'?) It's currently still in master. Carl-Eric - To unsubscribe, e-mail:

Re: [DISCUSS] Security Frameworks

2012-10-18 Thread Carl-Eric Menzel
[X] I use Shiro We use Shiro on our project (using wicketstuff's shiro integration and our own custom Shiro realm implementation). We use it because it gives us a permission-based approach (not just roles-based) and is more easily configured than e.g. SWARM/WASP. I also quite like the

Re: Bug WICKET-4789 still in 6.1.1 ?

2012-10-11 Thread Carl-Eric Menzel
Do you have a complete stacktrace? On Thu, 11 Oct 2012 06:02:33 -0700 (PDT) nemanjko nemanja.kos...@gmail.com wrote: I'm not sure that the error I'm getting is related to the WICKET-4789 that was in 6.0, but it looks like it. After upgrading from 6.0.0 to 6.1.1, I am getting this error:

Re: HybridUrlCodingStrategy in Wicket 1.5

2012-09-29 Thread Carl-Eric Menzel
On Sat, 29 Sep 2012 09:54:27 -0600 Alec Swan alecs...@gmail.com wrote: mountPage(ms, MyPage.class) generates URLs like /lrm/ms?oid=123 What I would like is URLs like /lrm/ms/oid/123 What's the easiest way to accomplish this? mountPage(ms/oid/${oid}, MyPage.class); The ms/oid/ is just the

Re: Using a div/span tags for wicket components

2012-09-21 Thread Carl-Eric Menzel
On Fri, 21 Sep 2012 14:48:05 + Corbin, James jcor...@iqnavigator.com wrote: input type=text wicket:id=someId …/ I would like to, instead, specify a span or a div in the markup and bind the TextField to that markup instead. Why? A TextField needs to bind to an input tag, because that is

[CVE-2012-3373] Apache Wicket XSS vulnerability via manipulated URL parameter

2012-09-06 Thread Carl-Eric Menzel
Severity: Important Vendor: The Apache Software Foundation Versions Affected: Apache Wicket 1.4.x and 1.5.x Description: https://wicket.apache.org/2012/09/06/cve-2012-3373.html It is possible to inject JavaScript statements into an ajax link by adding an encoded null byte to a URL pointing to a

Apache Wicket 1.4.21 is released

2012-09-05 Thread Carl-Eric Menzel
This is 21st release of the Wicket 1.4.x series. This is also the last release of the 1.4.x series, rounding up the remaining bugfixes. No further releases will happen in this branch. Git tag: release/wicket-1.4.21 Changelog:

Re: accessing components within a ListView

2012-07-05 Thread Carl-Eric Menzel
On Thu, 5 Jul 2012 11:36:06 -0400 Carter, Isaac isaac.car...@mantech.com wrote: I'm wondering if anyone knows how to properly access components that exist within a repeating listview? I have two buttons (we'll say an edit and remove button) that I'm repeat over and add them to the listview.

Re: interesting issues with Wicket and Javassist

2012-06-22 Thread Carl-Eric Menzel
On Fri, 22 Jun 2012 11:36:51 -0400 Andrew Geery andrew.ge...@gmail.com wrote: My question is: should Wicket have realized that the proxy'ed Person object was actually a Person class and called the appropriate converter? Looking at this --

Re: Verifying image HREF with Wicket tester

2012-06-20 Thread Carl-Eric Menzel
On Tue, 19 Jun 2012 15:21:17 -0600 Alec Swan alecs...@gmail.com wrote: I had to make sure that my img element had a closing /img The problem is that org.apache.wicket.util.tester.TagTester#createTagByAttribute requires the img element to be closed, i.e. img/ or img/img. Otherwise closeTag

Re: Verifying image HREF with Wicket tester

2012-06-20 Thread Carl-Eric Menzel
In this case, yes, I think. Carl-Eric On Wed, 20 Jun 2012 09:27:27 -0600 Alec Swan alecs...@gmail.com wrote: So, this is a bug, right? On Wed, Jun 20, 2012 at 2:36 AM, Martin Grigorov mgrigo...@apache.org wrote: On Wed, Jun 20, 2012 at 11:34 AM, Carl-Eric Menzel cmen...@wicketbuch.de

Re: Models and Session Size

2012-06-19 Thread Carl-Eric Menzel
On Tue, 19 Jun 2012 14:01:13 -0500 Douglas Ferguson the...@gmail.com wrote: I was intrigued by the comment that more extensive use of Model would reduce session size. Why would this be? Won't models still wind up in the data graph for the Page and thus be in the pagemap? Well, apart from

Re: wicket not able to find component after adding container componenent

2012-05-20 Thread Carl-Eric Menzel
You need to add the container to the panel: add(postDomainContainer); And you need to add the form to the container instead of the panel itself: postDomainContainer.add(commentForm); Your component hierarchy must match the tag hierarchy. Hope this helps Carl-Eric www.wicketbuch.de On Sun,

Re: Passing parameter to a portion of a page

2012-04-30 Thread Carl-Eric Menzel
On Mon, 30 Apr 2012 10:05:46 -0700 (PDT) kshitiz k.agarw...@gmail.com wrote: Thanks for the reply Dan...now consider a situation: You have 5 drop downs, each with onselectionchange enabled. When you change the choice of any one drop down, the chosen value should be passed as parameter to

Re: ListView (or other Repeater) with backing map

2012-04-30 Thread Carl-Eric Menzel
On Mon, 30 Apr 2012 10:25:21 -0700 (PDT) cmagnollay cmagnol...@gmail.com wrote: So essentially I want to use Wicket 1.5 to display an item and its associated quantity. The data structure I am using to back this is a Map (new HashMap()) where Item is a POJ whose details are of no consequence.

Re: ListView (or other Repeater) with backing map

2012-04-30 Thread Carl-Eric Menzel
On Mon, 30 Apr 2012 10:43:30 -0700 (PDT) cmagnollay cmagnol...@gmail.com wrote: if the map is called something like MapItem, Integer itemMap = new HashMapItem, Integer(); Hmm, so I would instantiate the ListView like so? [...] Is this what you are implying somewhat? Thanks for the

Re: ListView (or other Repeater) with backing map

2012-04-30 Thread Carl-Eric Menzel
On Mon, 30 Apr 2012 11:38:36 -0700 Dan Retzlaff dretzl...@gmail.com wrote: You can call LDM#detach() after the modification, but since this particular implementation is so light, I'd just use AbstractReadyOnlyModel instead. It doesn't cache, so detach is not required. Actually, getObject()

Re: ListView (or other Repeater) with backing map

2012-04-30 Thread Carl-Eric Menzel
On Mon, 30 Apr 2012 12:15:20 -0700 Dan Retzlaff dretzl...@gmail.com wrote: I assumed the action phase would dereference the ListItemModel (e.g. to remove it from the map), hence dereference the LDM, and then require the explicit detach() before rendering. Agreed that LDM is the way to go if

Re: a model for passing data between pages

2012-04-09 Thread Carl-Eric Menzel
On Mon, 9 Apr 2012 07:24:34 -0700 (PDT) armhold armh...@gmail.com wrote: I'm thinking of storing the DTO in the user's session as a detached entity, and using a model like the following on the various pages: That is perfectly valid approach, and one that we've been using for some usecases.

Re: a model for passing data between pages

2012-04-09 Thread Carl-Eric Menzel
On Mon, 9 Apr 2012 16:23:38 -0700 (PDT) armhold armh...@gmail.com wrote: SessionModelMyDTO model = new SessionModelMyDTO(MyDTO.KEY, new MyDTO()); Not typesafe, as you pointed out, but fairly concise. If you have a lot of different types where you use that, this map-like approach is probably

Re: Injection in a Resource

2012-02-07 Thread Carl-Eric Menzel
On Tue, 7 Feb 2012 16:08:37 +0100 Gaetan Zoritchak g.zoritc...@moncoachfinance.com wrote: Hi all, I use guice in my applications. I need to inject some code (service) in a DynamicImageResource. It is not straightforward because a Resource is not a component. Does anybody has already done

Re: Wicket 1.5 with Shiro for security ...

2011-12-15 Thread Carl-Eric Menzel
There's a shiro integration project in wicketstuff-core. We use it and it works well. Carl-Eric www.wicketbuch.de On Thu, 15 Dec 2011 08:56:25 -0800 (PST) armandoxxx armando@dropchop.com wrote: Got a little question. I'm wrapping Apache Shiro as security framework for my application.

Re: Problem with check / uncheck all using CheckGroupSelector

2011-11-18 Thread Carl-Eric Menzel
On Fri, 18 Nov 2011 07:31:48 -0800 (PST) massizigao fha...@online.de wrote: Hello, i am implementing a dataview table with a checkbox column. At the top of the column i place a checkbox to select/unselect all rows. But It is not working as i want. Using the class Check: checking and

Re: Wicket 1.5.1 image resource not available if parent component is disabled

2011-10-04 Thread Carl-Eric Menzel
On Tue, 4 Oct 2011 10:41:27 +0200 Martin Grigorov mgrigo...@apache.org wrote: RequestListenerInterface stops the execution of callbacks for disabled and/or invisible components/behaviors but its seems it also forbids requesting a resource ... I think this is a not-so-easy problem, actually.

Re: Wicket 1.5.1 image resource not available if parent component is disabled

2011-10-04 Thread Carl-Eric Menzel
On Tue, 4 Oct 2011 10:59:53 +0200 Martin Grigorov mgrigo...@apache.org wrote: I think this is a not-so-easy problem, actually. In this use case (render an image) it seems obvious that even though the whole panel is disabled, it is being rendered, so the image resource should work. Define

Re: Authentication and sessions - the right way?

2011-10-03 Thread Carl-Eric Menzel
On Mon, 3 Oct 2011 00:54:31 -0700 (PDT) Zeldor pgronkiew...@gmail.com wrote: It all works fine on my computer, but when I deploy it, it stops working. Session gets detached on the way and I cannot fetche the data to my models. Yes, I keep user data in my session, I could do it with datastore

Re: Authentication and sessions - the right way?

2011-10-03 Thread Carl-Eric Menzel
On Mon, 3 Oct 2011 00:54:31 -0700 (PDT) Zeldor pgronkiew...@gmail.com wrote: 2. How to fetch data from Guice in Session? I have a RepositoryUser Inject, but when it is used in Session it throws nullpointer exception. Should I have it in session at all? I guess repopulating user data like that

Re: Authentication and sessions - the right way?

2011-10-03 Thread Carl-Eric Menzel
On Mon, 3 Oct 2011 01:10:58 -0700 (PDT) Zeldor pgronkiew...@gmail.com wrote: But would it be possible to store User data in the session without having to fetch it from datastore on every request? My users don't interact with each other and they operate only on their own data. So it'd be most

Re: Authentication and sessions - the right way?

2011-10-03 Thread Carl-Eric Menzel
On Mon, 3 Oct 2011 10:31:38 +0200 Martin Grigorov mgrigo...@apache.org wrote: Yes, just put a field in your Session and add getter/setter. This is not good. This is error prone. This way you'll have to keep the instance in the Session in sync with the data DB. Additionally the memory size

Re: getImageData() of Image not called on component instantiation in IE

2011-09-09 Thread Carl-Eric Menzel
Do you have a quickstart to try this? Carl-Eric www.wicketbuch.de On Thu, 8 Sep 2011 13:37:03 - martin.ase...@mail.bg wrote: Would anyone help me with this? I'm desparate on fixing it Thank you, Martin - Цитат от martin.ase...@mail.bg, на 06.09.2011 в 15:51

Re: Apache Wicket releases Wicket 1.5

2011-09-07 Thread Carl-Eric Menzel
On Thu, 8 Sep 2011 00:17:25 +0200 Martijn Dashorst dasho...@apache.org wrote: The Apache Wicket team is proud to announce the immediate availability of the newest release of their component oriented open source Java web framework. Apache Wicket 1.5 has been in development for the last two

Re: RFC: Ten things every Wicket programmer must know?

2011-07-28 Thread Carl-Eric Menzel
On Wed, 27 Jul 2011 18:29:22 -0400 Jeremy Thomerson jer...@wickettraining.com wrote: Hello all, I'm writing an article for a Java magazine and would like to include in it a list of ten things every Wicket programmer must know. Of course, I have my list, but I'd be very curious to see

Re: Ten things every Wicket programmer must know?

2011-07-28 Thread Carl-Eric Menzel
On Thu, 28 Jul 2011 11:10:30 +0300 Martin Makundi martin.maku...@koodaripalvelut.com wrote: * compressing code by use of ids matching property names combined with CompoundPropertyModel and/or PropertyListView Oh.. that will lead to fragility. It can, but in my experience it hasn't. Our

A safer way to build PropertyModels, version 1.2

2011-07-28 Thread Carl-Eric Menzel
https://github.com/duesenklipper/wicket-safemodel As I wrote earlier on this list, SafeModel lets you turn the fragile strings of this: IModelString childNameModel = new PropertyModelString( myBean, child.name); ...into this, gaining refactor-safety: IModelString childNameModel =

Re: A safer way to build PropertyModels, version 1.2

2011-07-28 Thread Carl-Eric Menzel
On Thu, 28 Jul 2011 12:44:14 +0200 Thomas Matthijs li...@selckin.be wrote: ...into this, gaining refactor-safety: IModelString childNameModel = model(from(myBean).getChild().getName()); Does it require a default constructor? In the above example, myBean is any sort of regular Java

Re: A safer way to build PropertyModels, version 1.2

2011-07-28 Thread Carl-Eric Menzel
On Thu, 28 Jul 2011 09:04:31 -0700 Matt Brictson m...@55minutes.com wrote: On Jul 28, 2011, at 3:12 AM, Carl-Eric Menzel wrote: IModelUser userModel = model(fromService(userEJB.loadUser(42))); Not sure if this is a typo in your example, but wouldn't this mean that (the real, non-proxied

Re: Problem in ListView populateItem()

2011-07-26 Thread Carl-Eric Menzel
On Tue, 26 Jul 2011 06:10:29 -0700 (PDT) eugenebalt eugeneb...@yahoo.com wrote: li.add(new Label(bookId), new Model(a)); You're adding: new Label(bookId), new Model(a) That is a new Label and a new Model. You want: new Label(bookId, new Model(a)) which is a new Label with an

A safer way to build PropertyModels

2011-07-21 Thread Carl-Eric Menzel
After seeing the LambdaJ-based model idea at https://cwiki.apache.org/WICKET/working-with-wicket-models.html#WorkingwithWicketmodels-LambdaJ I thought I'd try and implement something like that in a ready-to-use fashion, and simplify it a little. The result is here:

Re: A safer way to build PropertyModels

2011-07-21 Thread Carl-Eric Menzel
On Thu, 21 Jul 2011 22:33:47 +0300 Martin Grigorov mgrigo...@apache.org wrote: Matt, You need first class functions. All cool JVM langs support them. Just peek your favorite. That is indeed true. However, just for the fun of it, I'm going to try and implement at least a limited version of

Re: best search engine framework to use with wicket

2011-07-16 Thread Carl-Eric Menzel
On Sat, 16 Jul 2011 03:41:19 -0700 (PDT) hariharansrc hariharan...@gmail.com wrote: can anyone suggest the best search engine framework for wicket Wicket doesn't really care what other frameworks you use beside it. Wicket does nothing but the UI layer, and for everything else you can use

Re: error - serialization

2011-07-07 Thread Carl-Eric Menzel
On Thu, 7 Jul 2011 12:36:45 +0200 Miroslav F. mir...@seznam.cz wrote: After investigation I will answer myself - it is bug in tomcat, if you are using tomcat 6.0.29 upgrade to 6.0.31. Sounds like an interesting bug. Do you have any more information on this? Carl, static variables are good

Re: error - serialization

2011-07-06 Thread Carl-Eric Menzel
(); } catch(SQLException e) { e.printStackTrace(); } } } -Original Message- From: Carl-Eric Menzel [mailto:cmen...@wicketbuch.de] Sent: Tuesday, 05. July 2011 10:37 To: users@wicket.apache.org

Re: error - serialization

2011-07-05 Thread Carl-Eric Menzel
-serialization-td3641636.htm l Miro -Original Message- From: Carl-Eric Menzel [mailto:cmen...@wicketbuch.de] Sent: Monday, 04. July 2011 20:47 To: users@wicket.apache.org Subject: Re: error - serialization Can you show some code? Carl-Eric On Mon, 4 Jul 2011 08

Re: error - serialization

2011-07-04 Thread Carl-Eric Menzel
: No suitable driver found I have to restart tomcat and than it works again. -Original Message- From: Carl-Eric Menzel [mailto:cmen...@wicketbuch.de] Sent: Sunday, 03. July 2011 23:22 To: users@wicket.apache.org Subject: Re: error - serialization That means you don't

Re: error - serialization

2011-07-03 Thread Carl-Eric Menzel
That means you don't have the appropriate driver jar in your classpath. You need the PostgreSQL driver jar, put it on your classpath, and initialize it. Carl-Eric www.wicketbuch.de On Sun, 3 Jul 2011 23:08:40 +0200 Miroslav F. mir...@seznam.cz wrote: Still problem with no suitable driver found

Re: CheckGroupSelector - set checked if all Checkboxes are already selected

2011-05-15 Thread Carl-Eric Menzel
a look at it and let me know whether it's any good :) Carl-Eric www.wicketbuch.de On Thu, 12 May 2011 15:31:16 +0200 Carl-Eric Menzel cmen...@wicketbuch.de wrote: I ran into the same issue some time ago and did some work on (I think) the CheckGroupSelector, as well as Javascript selectors

Re: CheckGroupSelector - set checked if all Checkboxes are already selected

2011-05-12 Thread Carl-Eric Menzel
I ran into the same issue some time ago and did some work on (I think) the CheckGroupSelector, as well as Javascript selectors for the other types of checkboxes. I'll see over the weekend whether I can extract all that into a useful patch. Once heapifyman opens the ticket, I'll attach it there.

Re: [VOTE] WICKET-3218 - Component#onInitialize is broken for Pages

2011-03-08 Thread Carl-Eric Menzel
On Tue, 8 Mar 2011 17:43:29 +0100 Maarten Billemont lhun...@gmail.com wrote: On 08 Mar 2011, at 16:39, Pedro Santos wrote: I vote for solution 3: postpone the onInitialize call, possible to the first Component#configure execution. Then the problem of initialization code being executed

Re: [VOTE] WICKET-3218 - Component#onInitialize is broken for Pages

2011-03-08 Thread Carl-Eric Menzel
On Tue, 8 Mar 2011 17:46:26 +0100 Maarten Billemont lhun...@gmail.com wrote: This is a valid vote if we can come up with a way of not having random failure side-effects from mixing the two (which is the whole reason the the issue exists in the first place), without a final onInitialize and an

Re: [1.5 MIGRATION] State handling / inter-page events / versioning

2011-02-11 Thread Carl-Eric Menzel
On Thu, 10 Feb 2011 23:10:42 -0800 Igor Vaynberg igor.vaynb...@gmail.com wrote: the problem is indeed that you are sharing state between pages which is not allowed. you are doing it via one page passing in an anonymous SelectionCallback to another page, which is the same as passing in an

Re: [1.5 MIGRATION] State handling / inter-page events / versioning

2011-02-11 Thread Carl-Eric Menzel
On Fri, 11 Feb 2011 09:53:21 +0100 Wilhelmsen Tor Iver toriv...@arrive.no wrote: So the best is to create a proper class that is nested but not a member class: private static class BackSomePage { private PageReference pageRef; public BackSomePage(PageReference pageRef) { this.

Re: [1.5 MIGRATION] State handling / inter-page events / versioning

2011-02-11 Thread Carl-Eric Menzel
On Fri, 11 Feb 2011 11:06:09 +0100 Martijn Dashorst martijn.dasho...@gmail.com wrote: The anon-inner class still keeps a reference to the previous page. Yes, I know, that's how anonymous classes work. I don't understand why that is now a problem though. It has worked well so far. Carl-Eric

Re: [1.5 MIGRATION] State handling / inter-page events / versioning

2011-02-11 Thread Carl-Eric Menzel
On Fri, 11 Feb 2011 11:51:12 +0100 Carl-Eric Menzel cmen...@wicketbuch.de wrote: On Fri, 11 Feb 2011 11:06:09 +0100 Martijn Dashorst martijn.dasho...@gmail.com wrote: The anon-inner class still keeps a reference to the previous page. Yes, I know, that's how anonymous classes work. I

Re: Dynamic CSS Resources and clustered wicket app

2010-12-09 Thread Carl-Eric Menzel
Hi, seems to me you should probably use sticky sessions in your loadbalancer ;-) I think if your resource depends on instance variables in your Page you really need to do that. If you just depend on stuff happening in the initialization of the Page class (not an instance) you could use an

Re: Dynamic CSS Resources and clustered wicket app

2010-12-09 Thread Carl-Eric Menzel
interpolating implementation. Is there a simpler way for this? Best regards Chris On 12/09/2010 11:48 AM, Carl-Eric Menzel wrote: Hi, seems to me you should probably use sticky sessions in your loadbalancer ;-) I think if your resource depends on instance variables in your Page you

Re: Dynamic CSS Resources and clustered wicket app

2010-12-09 Thread Carl-Eric Menzel
On Thu, 9 Dec 2010 13:21:47 -0600 Jeremy Thomerson jer...@wickettraining.com wrote: Not really. You could have dynamic resources referenced in your constructor that depend on instance variables, or the model that was passed into the constructor, etc For anything that doesn't need that,

Re: Free wicket from component hierarchy hell

2010-11-10 Thread Carl-Eric Menzel
On Tue, 9 Nov 2010 11:49:32 -0500 James Carman ja...@carmanconsulting.com wrote: Are you moving a field from one form to another? But that does change the semantics, doesn't it? If it doesn't, why are there two forms? Both forms edit one particular object (say a Person). They just

Re: Free wicket from component hierarchy hell

2010-11-10 Thread Carl-Eric Menzel
On Tue, 9 Nov 2010 12:17:38 -0800 Igor Vaynberg igor.vaynb...@gmail.com wrote: i wonder if queuing can actually replace icomponentresolver and auto-adding. i wonder if after onbeforerender we can do what unqueing does now, parse the markup, find any missing components, and insert them.

Re: Free wicket from component hierarchy hell

2010-11-10 Thread Carl-Eric Menzel
On Tue, 9 Nov 2010 12:16:00 -0800 Igor Vaynberg igor.vaynb...@gmail.com wrote: the difficult part is that doing this to complex pages is...difficult. in the example above it is easy to see the two components that need to be renested. but, in complex pages there can be 20 components that need

Re: Free wicket from component hierarchy hell

2010-11-10 Thread Carl-Eric Menzel
On Wed, 10 Nov 2010 07:31:28 -0500 James Carman ja...@carmanconsulting.com wrote: On Wed, Nov 10, 2010 at 3:49 AM, Carl-Eric Menzel cmen...@wicketbuch.de wrote: So either there is a difference between the forms (different submit method maybe?), then this move would make a semantic

Re: Free wicket from component hierarchy hell

2010-11-09 Thread Carl-Eric Menzel
Hi, no offense meant, but the rhetoric in this thread is getting more and more ridiculous. Chicken? Component hierarchy hell? Seriously? At most maybe component hierarchy slight annoyance. I am not at all convinced that this is a good idea. In my opinion, one of the strongest and best points

Re: Free wicket from component hierarchy hell

2010-11-09 Thread Carl-Eric Menzel
On Tue, 9 Nov 2010 10:20:12 +0200 Martin Makundi martin.maku...@koodaripalvelut.com wrote: I frankly don't see any way to have this auto-hierarchy stuff without getting lots of unnecessary ambiguity and sources of bugs. I totally agree with what Eelco wrote below, and what someone else

Re: Free wicket from component hierarchy hell

2010-11-09 Thread Carl-Eric Menzel
On Tue, 9 Nov 2010 10:23:27 +0200 Martin Makundi martin.maku...@koodaripalvelut.com wrote: Hi! So far, I have often heard about people not liking the requirement to match the code hierarchy in the markup. Most (not all!) of them have never actually used Wicket (I know this doesn't apply

Re: Free wicket from component hierarchy hell

2010-11-09 Thread Carl-Eric Menzel
This is pretty much exactly what I'd do given such a requirement. If something is so different as to require a different internal hierarchy, it's no longer the same component. Make a new component and use standard OO techniques for code reuse, like Frank wrote here. This certainly is not worth

Re: Free wicket from component hierarchy hell

2010-11-09 Thread Carl-Eric Menzel
On Tue, 9 Nov 2010 14:21:46 +0200 Martin Makundi martin.maku...@koodaripalvelut.com wrote: Here we finally come to an actual argument about this: Panel is not reusable enough because it has its own markup. If I override its markup, it stops working. Frank wrote in another message how to deal

Re: Free wicket from component hierarchy hell

2010-11-09 Thread Carl-Eric Menzel
On Tue, 9 Nov 2010 11:01:28 +0200 Martin Makundi martin.maku...@koodaripalvelut.com wrote: Hi! Coding friction? Yes. Every time I need to look at somebody else's code and try to figure out what exactly they did. Ah.. so you are trying to solve your problem probably from the wrong end?

Re: Free wicket from component hierarchy hell

2010-11-09 Thread Carl-Eric Menzel
On Tue, 9 Nov 2010 10:05:39 -0500 James Carman ja...@carmanconsulting.com wrote: I think we need to try to put our heads together on this one. I don't necessarily think this approach is the best, but I haven't really had a chance to wrap my head around it yet, frankly. Do we really think

Re: Free wicket from component hierarchy hell

2010-11-09 Thread Carl-Eric Menzel
On Tue, 9 Nov 2010 17:23:18 +0200 Martin Makundi martin.maku...@koodaripalvelut.com wrote: So instead of asking, How can we make Wicket different so that my problem will go away? the proper question to try first is, What is the Wicket way of solving my problem? That's not how proggress

Re: Free wicket from component hierarchy hell

2010-11-09 Thread Carl-Eric Menzel
On Tue, 9 Nov 2010 17:46:13 +0200 Martin Makundi martin.maku...@koodaripalvelut.com wrote: @Carl-Erik Reason why I haven't commented your enabledInHierarchy comment is because it would not afect it in any way. I hope the proposition will be clear when we have it ready. We are working on

Re: Free wicket from component hierarchy hell

2010-11-09 Thread Carl-Eric Menzel
On Tue, 9 Nov 2010 10:51:49 -0500 James Carman ja...@carmanconsulting.com wrote: On Tue, Nov 9, 2010 at 10:48 AM, Frank Silbermann frank.silberm...@fedex.com wrote: If the component hierarchy can be changed without changing behavior or semantics, then why are the components in a hierarchy

Re: Free wicket from component hierarchy hell

2010-11-09 Thread Carl-Eric Menzel
On Tue, 9 Nov 2010 18:04:44 +0200 Martin Makundi martin.maku...@koodaripalvelut.com wrote: Igor explained that # Components can be queued to any container, and can only be added to the hierarchy that stems from that container, thereby solving the security requirement

Re: Free wicket from component hierarchy hell

2010-11-09 Thread Carl-Eric Menzel
On Tue, 9 Nov 2010 11:33:31 -0500 James Carman ja...@carmanconsulting.com wrote: Say you have two forms on one panel (don't know if this is the best example or not, but here goes). You want to move a field from one panel to another. You'd have to do that in code with the traditional

New german Wicket book

2009-12-15 Thread Carl-Eric Menzel
Hi Wicket devs and users, I'm proud to announce the release of our new german-language Wicket book: Wicket: Komponentenbasierte Webanwendungen in Java by Roland Förther, Carl-Eric Menzel and Olaf Siefart. Published by dpunkt Verlag (many thanks to René Schönfeldt and the others at dpunkt). More

Re: Apache Wicket 1.4 takes type safety to the next level

2009-07-30 Thread Carl-Eric Menzel
On Thu, 30 Jul 2009 12:54:29 +0200 Martijn Dashorst dasho...@apache.org wrote: The Apache Wicket project is proud to announce the release of Apache Wicket 1.4. Congratulations to the team and all contributors, and a big thank you! Carl-Eric

Re: 1.4 is ready for production?

2009-07-20 Thread Carl-Eric Menzel
On Tue, 21 Jul 2009 00:00:04 +0300 Martin Makundi martin.maku...@koodaripalvelut.com wrote: No. It crashes. Restart your browser and you will see. Works for me. Carl-Eric - To unsubscribe, e-mail:

Re: Conversation scope in wicket

2009-06-18 Thread Carl-Eric Menzel
+1 I fully agree. Conversation scope is a kludge for a broken model, and in the end nothing more than a specialized form of global variables. Just put your state into the appropriate page or component instances and/or models, and you get *any* scope you need, for free. Carl-Eric On Thu, 18

Re: Conversation scope in wicket

2009-06-18 Thread Carl-Eric Menzel
On Thu, 18 Jun 2009 07:21:36 -0400 James Carman jcar...@carmanconsulting.com wrote: I fully agree. Conversation scope is a kludge for a broken model, and in the end nothing more than a specialized form of global variables. To which model are you referring? Not a model in the Wicket

Re: Conversation scope in wicket

2009-06-18 Thread Carl-Eric Menzel
On Thu, 18 Jun 2009 08:10:33 -0400 James Carman jcar...@carmanconsulting.com wrote: On Thu, Jun 18, 2009 at 7:46 AM, Carl-Eric Menzel cm.wic...@users.bitforce.com wrote: Then you already have an object that your components can work on. Put that in a Wicket model and enjoy. My point

Problem with Maven archetype, Eclipse Classpath and jetty:run

2009-05-26 Thread Carl-Eric Menzel
Hi, when creating a fresh Wicket project with the following line as generated by the quickstart page on wicket.apache.org: mvn archetype:create -DarchetypeGroupId=org.apache.wicket -DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=1.4-rc4 -DgroupId=com.mycompany

Re: AjaxEditableLabel ... but how to get the changed value?

2009-05-26 Thread Carl-Eric Menzel
On Tue, 26 May 2009 16:27:18 +0200 Dorothée Giernoth dorothee.giern...@kds-kg.de wrote: Now I want to write the changed information from these labels back into the database after the content has changed. Wouldn't be too much of a problem if I knew how to retrieve the changed value from the

Re: Problem with Maven archetype, Eclipse Classpath and jetty:run

2009-05-26 Thread Carl-Eric Menzel
On Tue, 26 May 2009 08:31:04 -0700 Igor Vaynberg igor.vaynb...@gmail.com wrote: go to preferences/compiler/building/output folder and remove *.html from Filtered Resources list. I know that :-) I was proposing making this the default in the archetype. test is for tests :) the proper way

Fw: Problem with Maven archetype, Eclipse Classpath and jetty:run

2009-05-26 Thread Carl-Eric Menzel
On Tue, 26 May 2009 08:39:36 -0700 (PDT) Juan Carlos Garcia M. jcgarc...@gmail.com wrote: [MECLIPSE ticket and workaround] Hope this help. Yes it does, thank you. Carl-Eric - To unsubscribe, e-mail:

Re: clarification on page versioning

2008-04-19 Thread Carl-Eric Menzel
Both Login and CurrentProfile are subclasses of Panel. When the login form is submitted or the logout link is submitted, in order to get the page to re-render, I had to use this code: setResponsePage(getPage().getClass()); In this case the page isn't re-rendered, it is re-created, i.e. a

  1   2   >