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 >

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 vers

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 love

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 wrote: > Hello, > > Iam using a FileResourceStream t

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 fil

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)" wrote: > My code h

Re: Wicket serialization concerns

2013-08-20 Thread Carl-Eric Menzel
On Tue, 20 Aug 2013 23:01:29 + Michael Chandler 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 a Wicket model. Am I correct

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 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 other components no

Re: Making FormComponents read only on and off

2013-05-30 Thread Carl-Eric Menzel
This is exactly where I'd use a custom component. Basically like you said something with both a Label (that you can make pretty with CSS) and a TextField (for when it's enabled) - yes, it adds a little verbosity, but if you put that in custom reusable component (subclass FormComponentPanel to do th

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

Re: shared models - rules

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

Re: shared models - rules

2013-02-22 Thread Carl-Eric Menzel
On Fri, 22 Feb 2013 12:42:14 -0800 (PST) grazia 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 these components that one model

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 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 with the approp

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 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 mysel

Re: Fundamental forms/models issue

2013-02-18 Thread Carl-Eric Menzel
On Mon, 18 Feb 2013 17:47:16 + Michael Chandler 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 constructor invoked only one

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: 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 > org.apache.wicket.m

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 unsubscr

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: users-unsubscr...@wicket.apac

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 hierarchical

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 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: > > java.lang.Nul

Re: HybridUrlCodingStrategy in Wicket 1.5

2012-09-29 Thread Carl-Eric Menzel
On Sat, 29 Sep 2012 09:54:27 -0600 Alec Swan 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 string tha

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" wrote: > > > 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 what the browser will render as a text field. Of cour

[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: https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=123105

Re: accessing components within a ListView

2012-07-05 Thread Carl-Eric Menzel
On Thu, 5 Jul 2012 11:36:06 -0400 "Carter, Isaac" 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. I need to be able

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 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 -- > http://stackoverflow.com/questions/1139611/loading-javassist-ed-hibernate

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 wrote: > So, this is a bug, right? > > On Wed, Jun 20, 2012 at 2:36 AM, Martin Grigorov > wrote: > > On Wed, Jun 20, 2012 at 11:34 AM, Carl-Eric Menzel > > wrote: > >> O

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 wrote: > I had to make sure that my element had a closing > > The problem is that > org.apache.wicket.util.tester.TagTester#createTagByAttribute requires > the element to be closed, i.e. or . Otherwise > closeTag variable is never set and the loop

Re: Models and Session Size

2012-06-19 Thread Carl-Eric Menzel
On Tue, 19 Jun 2012 14:01:13 -0500 Douglas Ferguson 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 the fact tha

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, 2

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 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 you're concerned

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 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() can be called pre

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 wrote: > if the map is called something like > > Map itemMap = new HashMap(); > > Hmm, so I would instantiate the ListView like so? > [...] > Is this what you are implying somewhat? Thanks for the answer by the > way, I had not considered jus

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 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. Essentially I wou

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 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 that drop down on

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 wrote: > SessionModel model = new SessionModel(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 better, yes. > > Alter

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 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. However, instead of

Re: Injection in a Resource

2012-02-07 Thread Carl-Eric Menzel
On Tue, 7 Feb 2012 16:08:37 +0100 Gaetan Zoritchak 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 that? What would be the

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 wrote: > Got a little question. > > I'm wrapping Apache Shiro as security framework for my application. > > And I use wicket-

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 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 unchecking all r

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 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 "disabled im

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 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. In this use case (r

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 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 will > increase f

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 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 efficient to store

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 wrote: > 2. How to fetch data from Guice in Session? I have a Repository > 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 is not the best idea,

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 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 queries, but sessio

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 в

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 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 years and brings ma

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" wrote: > On Jul 28, 2011, at 3:12 AM, Carl-Eric Menzel wrote: > > > IModel userModel = model(fromService(userEJB.loadUser(42))); > > Not sure if this is a typo in your example, but wouldn't this m

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 wrote: > > ...into this, gaining refactor-safety: > > > > IModel childNameModel = > > model(from(myBean).getChild().getName()); > > > > > > Does it require a default constructor? In the above example, myBean is any sort of regular Java bean. Th

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: IModel childNameModel = new PropertyModel( myBean, "child.name"); ...into this, gaining refactor-safety: IModel childNameModel = model(from(myBean).getChi

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 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 domain objects rarely change,

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 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 > what you think shoul

Re: Problem in ListView populateItem()

2011-07-26 Thread Carl-Eric Menzel
On Tue, 26 Jul 2011 06:10:29 -0700 (PDT) eugenebalt 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 id and

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 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 this... :-) Carl

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: https://github.com/duesenklipper

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 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 whatever you want. Use Hiber

Re: error - serialization

2011-07-07 Thread Carl-Eric Menzel
On Thu, 7 Jul 2011 12:36:45 +0200 "Miroslav F." 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 if you are g

Re: error - serialization

2011-07-06 Thread Carl-Eric Menzel
gt; } > > public static void closeStatement() > { > try > { > statement.close(); > } > catch(SQLException e) > { > e.printStackTrace(); >

Re: error - serialization

2011-07-05 Thread Carl-Eric Menzel
tp://apache-wicket.1842946.n4.nabble.com/error-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 > >

Re: error - serialization

2011-07-04 Thread Carl-Eric Menzel
l.SQLException: 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.apach

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." wrote: > Still problem with "no suitable driver found" > > Does s

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

2011-05-15 Thread Carl-Eric Menzel
lease have 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 wrote: > > I ran into the same issue some time ago and did some work on (I think) > the CheckGroupSelector, as well as Javascript

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. C

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 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 exception in

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 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 for not f

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 wrote: > On Fri, 11 Feb 2011 11:06:09 +0100 > Martijn Dashorst 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 underst

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 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 09:53:21 +0100 Wilhelmsen Tor Iver 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. pageRef = pag

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 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 > instance of one page to

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 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, you are right: it's bet

Re: Dynamic CSS Resources and clustered wicket app

2010-12-09 Thread Carl-Eric Menzel
n so that > Application.get().getResourceSettings().getResourceFinder() returns > my 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

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 Initial

Re: Non-caching RenderedDynamicImageResource

2010-11-18 Thread Carl-Eric Menzel
On Thu, 18 Nov 2010 14:58:54 +0100 Martin Grigorov wrote: > About Image+Ajax re-paint: > https://issues.apache.org/jira/browse/WICKET-1382 > Does this help in > this case ? I don't have time right now to look at the code and I > have no experience

Re: Non-caching RenderedDynamicImageResource

2010-11-18 Thread Carl-Eric Menzel
On Thu, 18 Nov 2010 08:33:34 -0500 mzem...@osc.state.ny.us wrote: > Right, good to know, was just providing the objects, assumed > implementation of render to be irrelevant, but I guess not entirely. > Anyway, I'm also interested in the second part of your question, what > does resource.setCache

Re: Non-caching RenderedDynamicImageResource

2010-11-18 Thread Carl-Eric Menzel
On Thu, 18 Nov 2010 08:13:57 -0500 mzem...@osc.state.ny.us wrote: > Haven't tested this, but it could be a start... > > final RenderedDynamicImageResource rd = new > RenderedDynamicImageResource(100, 100) { > > @Override > protect

Non-caching RenderedDynamicImageResource

2010-11-18 Thread Carl-Eric Menzel
Hi, we're rendering some charts using JFreeChart and RenderedDynamicImageResource (that combination is pretty neat, by the way). However, RenderedDynamicImageResource caches its image data, even when I call setCacheable(false). When I refresh the page using AJAX, for example, I get the same image,

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 wrote: > On Wed, Nov 10, 2010 at 3:49 AM, Carl-Eric Menzel > wrote: > > > > So either there is a difference between the forms (different submit > > method maybe?), then this move would make a semantic/behavioral > > d

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 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 to be renested, and

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 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. autocomponents and autoadd

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 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 > edit different v

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 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 > approach. With the "queued" a

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 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" > > https://github.com/ivaynberg/wicket/tree/component-

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 wrote: > On Tue, Nov 9, 2010 at 10:48 AM, Frank Silbermann > wrote: > > If the component hierarchy can be changed without changing behavior > > or semantics, then why are the components in a hierarchy to begin > > with? Why aren't all the components

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 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 Igor's proposal. It will be

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 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 is made... So far you a

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 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 > this is that big of a pro

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 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? If you have bad warriors g

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 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 with this case. I agree with him

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 th

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 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 to > > Martin). Not once ha

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 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 > > said about the Python way o

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 point

Re: New german Wicket book

2009-12-15 Thread Carl-Eric Menzel
: The book is about Wicket 1.4, and features detailed explanations of the most important repeater components. Carl-Eric -- Carl-Eric Menzel Das neue deutschsprachige Wicketbuch: Wicket: Komponentenbasierte Webanwendungen in Java http://www.wicketbuch.de/ On Tue, 15 Dec 2009 11:36:04 -0

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 o

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 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 wrote: > No. It crashes. Restart your browser and you will see. Works for me. Carl-Eric - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e

Re: Conversation scope in wicket

2009-06-18 Thread Carl-Eric Menzel
On Thu, 18 Jun 2009 08:10:33 -0400 James Carman wrote: > On Thu, Jun 18, 2009 at 7:46 AM, Carl-Eric Menzel > wrote: > > Then you already have an object that your components can work on. > > Put that in a Wicket model and enjoy. My point is this: You either > > have exi

Re: Conversation scope in wicket

2009-06-18 Thread Carl-Eric Menzel
On Thu, 18 Jun 2009 07:21:36 -0400 James Carman 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 sense, but the model of ap

  1   2   >