pages with different verbosity

2013-02-19 Thread Dr. Britta Landgraf
Hi, i have to output scientific data in different ways depended from a query parameter verbose. For a high value of verbose the data will be shown with html decoration, e.g. formattet with lists etc. For a low value of verbose the data will be shown in a raw form, so other programms can read the d

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

2013-02-19 Thread Martin Dietze
On Mon, February 18, 2013, Carl-Eric Menzel wrote: > For generating binaries, I would *really* recommend doing this change. > Pages simply are not a good fit for that. Also, it shouldn't be that > big of a change, since you're writing to the Response anyway. Within > AbstractResource's WriteCallba

Re: AutoComponentResolver gone?

2013-02-19 Thread Martin Grigorov
Hi, This was experimental feature which didn't gain much popularity. The discussion to remove it is : http://markmail.org/thread/emzrqxmp4hahzipx The ticket is: https://issues.apache.org/jira/browse/WICKET-3687 The Git revision is: 41a7915606e0332711ee3b7fc85cb55aad246fae There is no replacement

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

2013-02-19 Thread Martin Grigorov
Hi, You can use requestCycle.replaceAllRequestHandlers(new ResourceRequestHandler(new ByteArrayResource(byteArray))) in your page code. This will stop the page rendering and will return the byte[] from this response. You can still configure the ByteArrayResource - filename, disposition, etc. On

Re: pages with different verbosity

2013-02-19 Thread Martin Grigorov
Hi, On Tue, Feb 19, 2013 at 10:14 AM, Dr. Britta Landgraf < b.landg...@fz-juelich.de> wrote: > Hi, > > i have to output scientific data in different ways depended from a query > parameter verbose. For a high value of verbose the data will be shown > with html decoration, e.g. formattet with list

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

2013-02-19 Thread Martin Dietze
On Tue, February 19, 2013, Martin Grigorov wrote: > You can use requestCycle.replaceAllRequestHandlers(new > ResourceRequestHandler(new ByteArrayResource(byteArray))) in your page code. > This will stop the page rendering and will return the byte[] from this > response. You can still configure the

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

2013-02-19 Thread Martin Grigorov
On Tue, Feb 19, 2013 at 11:14 AM, Martin Dietze wrote: > On Tue, February 19, 2013, Martin Grigorov wrote: > > > You can use requestCycle.replaceAllRequestHandlers(new > > ResourceRequestHandler(new ByteArrayResource(byteArray))) in your page > code. > > This will stop the page rendering and will

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-19 Thread Martin Dietze
On Tue, February 19, 2013, Martin Grigorov wrote: > This is how it works. > #replaceAllRequestHandlers() throws an exception to stop doing whatever it > does at the moment. > #scheduleRequestHandlerAfterCurrent() just appends a new RH to the list and > executes it when all previous are executed.

Errors using wicket-cdi with WAS 8

2013-02-19 Thread Edwin Bosveld
Hi Guys, I'm attempting to use Wicket 6.5 with Websphere AS 8. This works fine, but the problems occur when I add CDI into the mix. To do this I'm using the wicket-cdi library. Even with a basic class injection I get the following errors: [19-2-13 16:29:54:405 CET] 002e AnnotatedType W Annot

The best way for designers and Wicket developers to collaborate

2013-02-19 Thread eugenebalt
We have a Web design team and a Java development team on our project. We're using Wicket for our pages. I know Wicket was designed to make it easy for designers and developers to work together, but we're actually finding the opposite -- it's difficult to communicate changes back and forth. We're f

Re: Forms do not reset after submit

2013-02-19 Thread Bas Gooren
Hi! What you describe should only happen in certain cases: - when you link to the page using a stored reference e.g. in ctor: myTargetPage = new MyTargetPage() in click handler: setResponsePage(myTargetPage); This results in a single, shared page instance. The page will keep track of state,

RE: Forms do not reset after submit

2013-02-19 Thread Michael Chandler
> This means that your freshly created page instance loads data from a source > which "caches" its data. E.g. your EntityFactory does not always return a > fresh instance. > > So the first question is: how do you link to your "Add a record" page? Bas, You are definitely describing the stateful n

Re: Forms do not reset after submit

2013-02-19 Thread Bas Gooren
Mike, That looks normal; you are creating a new JobAddPage for every click, so that's not the problem. Can you share some code from the JobAddPage? And is the EntityFactory class something you've built yourself? Met vriendelijke groet, Kind regards, Bas Gooren Op 19-2-2013 18:37, schreef

RE: Forms do not reset after submit

2013-02-19 Thread Michael Chandler
> This means that your freshly created page instance loads data from a > source which "caches" its data. E.g. your EntityFactory does not > always return a fresh instance. > > So the first question is: how do you link to your "Add a record" page? Bas, following up on your second consideration,

RE: Forms do not reset after submit

2013-02-19 Thread Michael Chandler
> And is the EntityFactory class something you've built yourself? It is and a quick test revealed that was the culprit! I've got some work to do there. Thanks so much, Bas! Regards, Mike - To unsubscribe, e-mail: users-unsu

Re: unselected choices of Palette contain duplicates ...

2013-02-19 Thread grazia
I sort of got it to work, but now when I move items from one side of the palette to the other and try to save it, the changes are not picked up by the model and are not saved ... public class MyPalette extends Palette { private List unselectedChoices; public MyPalette(String id, IModel> model,

Re: The best way for designers and Wicket developers to collaborate

2013-02-19 Thread Martin Grigorov
Hi, I'm a happy user of https://github.com/42Lines/wicket-source with a small improvement from https://github.com/cleiter/wicketsource-contextmenu (provides an item in the context menu instead of an entry in the Dev Tools -> Markup -> Style -> ...) Maybe this can be extended to look for the html

Eclipse or IntelliJ

2013-02-19 Thread Stephen Walsh
Who uses what and why? I've only ever used Eclipse, but I discovered IntelliJ earlier this week and it's so different. Just wondering pros and cons on each. Thanks! ___ Stephen Walsh | http://connectwithawalsh.com

Re: unselected choices of Palette contain duplicates ...

2013-02-19 Thread Francois Meillet
if you push the submit button before sending any event, you will see that changes made to the model are saved correclty. But in case you fire any event, you redisplay 'this' (the palette) before the model is updated. The state of this, in that case, is like a new original palette. So far, only t

Re: Eclipse or IntelliJ

2013-02-19 Thread Cedric Gatay
At SRMvision we use exclusively IntelliJ for developping. Its excellent Maven support, smart completion and robustness made us forget eclipse very quickly. Le 19 févr. 2013 22:18, "Stephen Walsh" a écrit : > Who uses what and why? > > I've only ever used Eclipse, but I discovered IntelliJ earlier

Re: Eclipse or IntelliJ

2013-02-19 Thread Josh Kamau
Hi; You use one of them and you feel like you are missing something? No you are not. The one you are most familiar with is the best. I use intellij ... This discussion might also give you what you are looking for. http://www.linkedin.com/groups/Which-IDE-you-use-develop-80181.S.125932453?qid=98

Re: Eclipse or IntelliJ

2013-02-19 Thread Stephen Walsh
That's what I'm hoping for. IntelliJ looks a lot more polished especially for the Mac. Eclipse is crippling at times because it is so slow. Just sort of getting a feel for the Wicket community and what people like best. ___ Stephen Walsh | http://connectwith

Re: Eclipse or IntelliJ

2013-02-19 Thread Francois Meillet
You have a mac ? Choose the best tool ! Choose Intellij ! François Meillet Formation Wicket - Développement Wicket Le 19 févr. 2013 à 23:06, Stephen Walsh a écrit : > That's what I'm hoping for. IntelliJ looks a lot more polished especially > for the Mac. > > Eclipse is crippling at ti

Re: unselected choices of Palette contain duplicates ...

2013-02-19 Thread grazia
So, what do I do to update the palette's model with the changes before target.add(this) ? On Tue, Feb 19, 2013 at 3:23 PM, Francois Meillet [via Apache Wicket] < ml-node+s1842946n4656572...@n4.nabble.com> wrote: > if you push the submit button before sending any event, you will see that > changes

RE: Eclipse or IntelliJ

2013-02-19 Thread Michael Chandler
I also develop on a Mac, but I use Eclipse. I've become so familiar with the Eclipse tools and shortcut keys along with the Maven plugins and Tomcat Server panel/console that I've never bothered to try anything else, though I should probably put my fears aside and give IntelliJ a spin! Mike -

Re: Eclipse or IntelliJ

2013-02-19 Thread Tim Urberg
Here's the thing, Intellij is great, but it costs like five zillion dollars! (slight exaggeration). So I use Eclipse since its FREE! and it works great for me (even on a Mac). The nice thing about Wicket is that you don't need any special IDE plugins to use it. As long as your IDE knows how

Re: Eclipse or IntelliJ

2013-02-19 Thread Thomas Götz
IntelliJ currently costs €179 (personal license). It allows me to work *way* more effectively (on a Mac) than with Eclipse, which I find cluttered, slow, non-intuitive and simply not supporting my work style/flow. Say you gain 10 minutes per day when using IntelliJ and say you charge 60€/h: 10mi

Re: Eclipse or IntelliJ

2013-02-19 Thread Josh Kamau
There is a free version too... though it wont help you much on Html, js and css Josh On Wed, Feb 20, 2013 at 1:40 AM, Thomas Götz wrote: > IntelliJ currently costs €179 (personal license). It allows me to work > *way* more effectively (on a Mac) than with Eclipse, which I find > cluttered, slow

Re: unselected choices of Palette contain duplicates ...

2013-02-19 Thread Francois Meillet
The model is updated after a submit or an ajax event. You need to choose and to implement it. François Meillet Formation Wicket - Développement Wicket Le 19 févr. 2013 à 23:18, grazia a écrit : > So, what do I do to update the palette's model with the changes before > target.add(this) ? >

Re: Eclipse or IntelliJ

2013-02-19 Thread Timo Schmidt
On Tue 19.02.2013 15:17, Stephen Walsh wrote: > Who uses what and why? > > I've only ever used Eclipse, but I discovered IntelliJ earlier this week > and it's so different. Just wondering pros and cons on each. I'm using NetBeans for serveral years now and havn't missed a feature yet. IMHO NetBe

Re: Eclipse or IntelliJ

2013-02-19 Thread Igor Vaynberg
all the popular IDEs have more or less converged in regard to their java feature set. now its just a matter of muscle memory :) -igor On Tue, Feb 19, 2013 at 4:39 PM, Timo Schmidt wrote: > On Tue 19.02.2013 15:17, Stephen Walsh wrote: >> Who uses what and why? >> >> I've only ever used Eclipse,

Re: Eclipse or IntelliJ

2013-02-19 Thread Francois Meillet
http://java.dzone.com/articles/why-idea-better-eclipse François Meillet Formation Wicket - Développement Wicket Le 20 févr. 2013 à 01:57, Igor Vaynberg a écrit : > all the popular IDEs have more or less converged in regard to their > java feature set. now its just a matter of muscle memor