Re: [announce] Wicket in Action e-book has been published!

2008-08-19 Thread Martijn Dashorst
On Tue, Aug 19, 2008 at 12:05 AM, James Carman [EMAIL PROTECTED] wrote: I never did receive my email telling me the final copy was available for download. Should I email the publisher and ask for a new download link? If you bought at the manning site, then yes. If you shopped at Amazon, then

Re: [announce] Wicket in Action e-book has been published!

2008-08-19 Thread Nino Saturnino Martinez Vazquez Wael
Hhhehe, know the situation my wifes pregnant with our second child, and we(I) need to do some fixing too and split a room into two pieces before it's born, so I sacrificed my Suzuki sv 650 (which I never used anyway btw).. Eelco Hillenius wrote: On Thu, Aug 14, 2008 at 3:47 AM, Johan

Re: FeedbackPanel default outputMarkupId = true

2008-08-19 Thread Nino Saturnino Martinez Vazquez Wael
I still for one try to get ajax away for public(unauthorized) parts, for seo and caching purposes but it depends on the situation.. Timo Rantalaiho wrote: On Mon, 18 Aug 2008, Patrick Angeles wrote: Does it make sense to have outputMarkupId default to true for FeedbackPanel? Use case:

Re: 2 questions on Include

2008-08-19 Thread landry soules
Thanks a lot for your answer, Cemal, my first problem is solved ! For the second one, i can get the content, thanks to your explanation, but can't figure out how to modify it before it's displayed. Here is what i do : add(new Include(stat, http://myurl;) {

[announce] IWUG øredev getting closer

2008-08-19 Thread Nino Saturnino Martinez Vazquez Wael
Hi I just wanted to remind you that IWUG (International wicket user group) are getting closer it would be really great to have other speakers that me, me and Martjin Dashorst. So please go to the meetup page and ad yourself along with an topic:) Otherwise just add yourself so we can see the

Re: 2 questions on Include

2008-08-19 Thread jWeekend
Landry, Component has a replaceComponentTagBody(markupStream, openTag, content) method. Regards - Cemal http://www.jWeekend.co.uk http://jWeekend.co.uk landry soules wrote: Thanks a lot for your answer, Cemal, my first problem is solved ! For the second one, i can get the content,

Re: ResourceModel vs. getLocalizer

2008-08-19 Thread Erik van Oosten
There is a big difference, the model variant will evaluate during the render phase. You can not use localization in the constructor of your component, you can however safely construct a ResourceModel (but not call getObject on it). In general, I would use localizer when you need direct access to

Re: Dynamic PrependKeywordEncodingStrategy? (making a simple rule for caching with apache)

2008-08-19 Thread Nino Saturnino Martinez Vazquez Wael
I talked a bit on IRC on this. And got suggested to use headers instead. So this might be a viable option and much much simpler! I'll look into it and see how it works out. Nino Saturnino Martinez Vazquez Wael wrote: Hi I've been fighting a bit with making a EncodingStrategy that can

Re: 2 questions on Include

2008-08-19 Thread landry soules
Thanks a lot Cemal, you rock ! And please don't blame me for the dumbness of my questions ;-) Thanks again Best regards Landry 2008/8/19 jWeekend [EMAIL PROTECTED] Landry, Component has a replaceComponentTagBody(markupStream, openTag, content) method. Regards - Cemal

(WebRequest)getRequestCycle() is always null on first request

2008-08-19 Thread Wayne Pope
Hi, I've got a problem that I have no idea how to fix. I'm using IAuthorizationStrategy to authenticate the users of my application. However on the first request to the server (WebRequest)getRequestCycle() returns null all the time, so I therefore cannot get an cookies (which I want). This is a

Re: [announce] Wicket in Action e-book has been published!

2008-08-19 Thread Thomas Singer
Just curious: why don't you make the full e-book available for free and charge only for the paper version? This works fine with the German Java book Java ist auch eine Insel and many others from the same publisher: http://www.galileocomputing.de/openbook/javainsel7/ -- Cheers, Tom Martijn

Re: (WebRequest)getRequestCycle() is always null on first request

2008-08-19 Thread Wayne Pope
Please ignore this, I am being stupid. getRequestCycle() is not available from the session, I had (auto)created that method in my class by mistake... On Tue, Aug 19, 2008 at 10:28 AM, Wayne Pope [EMAIL PROTECTED] wrote: Hi, I've got a problem that I have no idea how to fix. I'm using

Re: [announce] Wicket in Action e-book has been published!

2008-08-19 Thread Edward Yakop
On Tue, Aug 19, 2008 at 4:33 PM, Thomas Singer [EMAIL PROTECTED] wrote: Just curious: why don't you make the full e-book available for free and charge only for the paper version? This works fine with the German Java book Java ist auch eine Insel and many others from the same publisher: Bad

Re: [announce] Wicket in Action e-book has been published!

2008-08-19 Thread Martijn Dashorst
Though we don't expect to become rich from this book, you *really* don't have any idea what personal sacrifices Eelco and I have given to make this book happen. If we get enough money to go on a weeks vacation with our wives that would be exceeding my expectations, and barely do justice to what we

Re: FeedbackPanel default outputMarkupId = true

2008-08-19 Thread Matej Knopp
Just making feedback panel write markup id doesn't mean your application has to be all ajaxy... -Matej On Tue, Aug 19, 2008 at 8:25 AM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: I still for one try to get ajax away for public(unauthorized) parts, for seo and caching

Re: IndicatingAjaxLink with BaseTree appends after /td

2008-08-19 Thread Matej Knopp
Hi, This is caused by the fact that component border is rendered after/before behaviors. We can't really change this for 1.3 because it could break existing applications. I have changed the rendering order in trunk (1.4) though. -Matej On Mon, Aug 18, 2008 at 3:36 PM, Kaspar Fischer [EMAIL

Re: FeedbackPanel default outputMarkupId = true

2008-08-19 Thread Nino Saturnino Martinez Vazquez Wael
Hehe no completely true.. But it does generate more output.. However dosent matter much for me what the default are.. as long as I can set a property to control it:) Matej Knopp wrote: Just making feedback panel write markup id doesn't mean your application has to be all ajaxy... -Matej On

Re: Markup Inheritance - not working for head element

2008-08-19 Thread Martijn Dashorst
There is the slight possibility that the wiki is inaccurate. Martijn On Tue, Aug 19, 2008 at 11:52 AM, Wayne Pope [EMAIL PROTECTED] wrote: Hi, I just wanted to check I'm not alone on this, before going to the dev group. I've created a simple base page and markup and using market inheritance

Re: IndicatingAjaxLink with BaseTree appends after /td

2008-08-19 Thread Kaspar Fischer
On 19.08.2008, at 12:03, Matej Knopp wrote: Hi, This is caused by the fact that component border is rendered after/before behaviors. We can't really change this for 1.3 because it could break existing applications. I have changed the rendering order in trunk (1.4) though. -Matej Great!

Re: Markup Inheritance - not working for head element

2008-08-19 Thread Wayne Pope
:-) that might be it! Its a none issue really, just would be 'nice to have' On Tue, Aug 19, 2008 at 12:19 PM, Martijn Dashorst [EMAIL PROTECTED] wrote: There is the slight possibility that the wiki is inaccurate. Martijn On Tue, Aug 19, 2008 at 11:52 AM, Wayne Pope [EMAIL PROTECTED]

Re: Markup Inheritance - not working for head element

2008-08-19 Thread Martijn Dashorst
I think it is a nice *not* to have. If head sections were included automatically, there is no way to distinguish between stuff that is there for design purposes and runtime purposes. Martijn On Tue, Aug 19, 2008 at 12:28 PM, Wayne Pope [EMAIL PROTECTED] wrote: :-) that might be it! Its a none

Wicketstuff snapshots

2008-08-19 Thread Kaspar Fischer
When/how often are the Wicketstuff snapshots generated? I am using dependency groupIdorg.wicketstuff/groupId artifactIdwicketstuff-scriptaculous/artifactId version1.4-SNAPSHOT/version /dependency in my pom.xml but get java.lang.NoSuchMethodError: org

Re: Markup Inheritance - not working for head element

2008-08-19 Thread Wayne Pope
yes good point. On Tue, Aug 19, 2008 at 12:31 PM, Martijn Dashorst [EMAIL PROTECTED] wrote: I think it is a nice *not* to have. If head sections were included automatically, there is no way to distinguish between stuff that is there for design purposes and runtime purposes. Martijn On

Re: [announce] Wicket in Action e-book has been published!

2008-08-19 Thread Bert Radke
I have been following the progress of the book via MEAP and it helped me a lot in my progress. Unfortunately, the place i work is leaning towards ADF (JSF), but i use Wicket for my spare time projects and love it so far. Thanks for the book and the project. about the a free pdf version: i must

Tree component looses page

2008-08-19 Thread ckuehne
I'm doing drag and drop operations with an implementation of org.apache.wicket.markup.html.tree.BaseTree. For the drop event I call ... dropNode.add(dragNode); tree.repaint(target); ... However I get an IllegalStateException when processing the ajax request (in detach(RequestCycle)) because

Re: [announce] Wicket in Action e-book has been published!

2008-08-19 Thread James Carman
I bought it via the MEAP program through Manning. So, I guess I'll shoot them a quick email. Thanks! On Tue, Aug 19, 2008 at 2:09 AM, Martijn Dashorst [EMAIL PROTECTED] wrote: On Tue, Aug 19, 2008 at 12:05 AM, James Carman [EMAIL PROTECTED] wrote: I never did receive my email telling me the

Re: Wicketstuff snapshots

2008-08-19 Thread Kaspar Fischer
On 19.08.2008, at 12:45, Martijn Dashorst wrote: On Tue, Aug 19, 2008 at 12:32 PM, Kaspar Fischer [EMAIL PROTECTED] wrote: When/how often are the Wicketstuff snapshots generated? I am using Everytime the source code changes for the project, or when Wicket is updated (depending on the

Re: Dynamic PrependKeywordEncodingStrategy? (making a simple rule for caching with apache)

2008-08-19 Thread Nino Saturnino Martinez Vazquez Wael
Well, i've looked a bit into it and it turns out that this will not work. Im trying to cache pages that *could* be statefull the only way to make a rule for this are that the current page that links cachable pages do it by giving a special url like /cachable/mypage. If I try the header

Re: [announce] Wicket in Action e-book has been published!

2008-08-19 Thread Thomas Singer
Maybe my message caused misunderstandings. I was not complaining *that* the book costs money. I just was curious why doing it the old-style distribution way. Finally, Galileo-Computing also needs to make money to pay their book authors. Personally, I prefer reading a paper book over reading

Re: Nested forms

2008-08-19 Thread John Krasnay
On Mon, Aug 18, 2008 at 11:10:29PM +0200, Matej Knopp wrote: Can't you just override isEnabled() on the inner form and return true/false depending on whether the inner form should be processed? Hrm, something like this I suppose? public boolean isEnabled() { return

Re: Wicketstuff snapshots

2008-08-19 Thread Kaspar Fischer
I guess the first error (see below) is not relevant as other projects have it, too. Regarding the second error: Does anybody have an idea why wicketstuff- prototype makes the build fail? I can see wicketstuff-prototype in the SVN repo but it is not listed on

Re: FeedbackPanel default outputMarkupId = true

2008-08-19 Thread Ryan Sonnek
It's kind of an established standard that by default, outputMarkupId is false, so in 1.3 or 1.4 I don't see it could be changed. Later on, if the change is made, maybe it would be better to change the default for all Components and not just FeedbackPanel. +1 from me. I don't see any

Re: Nested forms

2008-08-19 Thread John Krasnay
On Tue, Aug 19, 2008 at 09:15:55AM -0400, John Krasnay wrote: On Mon, Aug 18, 2008 at 11:10:29PM +0200, Matej Knopp wrote: Can't you just override isEnabled() on the inner form and return true/false depending on whether the inner form should be processed? Hrm, something like this I

Re: ResourceModel vs. getLocalizer

2008-08-19 Thread lesterburlap
you can however safely construct a ResourceModel (but not call getObject on it). So, doing ResourceModel(key).getObject().getString() is really kind of silly and defeats the whole purpose of the ResourceModel? LBB -- View this message in context:

Re: url when requestTarget is of type IListenerInterfaceRequestTarget

2008-08-19 Thread miro
I tried the redirect ie setRedirect(true), it still does not show the mountpath. Michael Sparer wrote: Subclass form, override onSubmit, make it final, perform the redirect in there, offer another method to be overriden instead of onsubmit and use that form throughout your app miro

Re: 2 questions on Include

2008-08-19 Thread jWeekend
Landry, My pleasure. Let's pass that credit on to where it's really due - the people who provide the brains and hard work behind this framework, not to mention all the support we all get here. I have yet to introduce a serious Java/OO developer to Wicket who (after spending an appropriate

Question on resource caching

2008-08-19 Thread Boris Goldowsky
Hi, I have some pages that reference images that are in files external to the web application and I am serving the images via SharedResources like so: public class ExternalImageResource extends WebResource { ... public IResourceStream getResourceStream() { return new

Re: ResourceModel vs. getLocalizer

2008-08-19 Thread Timo Rantalaiho
On Tue, 19 Aug 2008, Erik van Oosten wrote: There is a big difference, the model variant will evaluate during the render phase. You can not use localization in the constructor of your Well, this new ResourceModel(my.resource.key).getObject().toString(); will of course evaluate right away

Severe log: no Header Container was found but components..

2008-08-19 Thread Serkan Camurcuoglu
Hi all, I need to change the direction of the html file to rtl if the logged in user's locale is arabic. I followed the method in this previous message http://www.nabble.com/How-can-I-switch-page-direction-(LTR-RTL)--td13747743.html#a14025235 . It works fine, but I'm constantly getting the

Help needed - ListView.onPopulate IndexOutOfBoundsException

2008-08-19 Thread tfu
I'm using Wicket 1.3.2 and I got this weird exception. -- source code WebMarkupContainer result = new WebMarkupContainer(result); result.add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(5))); ListView view = new ListView(connections, new PropertyModel(this,

Adding ClassStringResourceLoader(s)

2008-08-19 Thread lesterburlap
Hi! I've been having a blast sorting out my String resources the last couple of days. Thanks for everyone's help. I am using Wicket in an OSGI environment with modular Blades (these are not Wicket Components). In addition to the root MyApplication.properties, I need to have a independent and

Re: Help needed - ListView.onPopulate IndexOutOfBoundsException

2008-08-19 Thread jWeekend
tfu, What does your populateItem implementation (conveniently dotted out ;-) look like? Are you looking for an element (with index = 23) in the ListView's backing ArrayList that does not (no longer) exist(s). Regards - Cemal http://www.jWeekend.co.uk http://jWeekend.co.uk tfu wrote: I'm

Re: Help needed - ListView.onPopulate IndexOutOfBoundsException

2008-08-19 Thread tfu
Hi Cemal, The populateItem method is just doing what it is supposed to do for a ListView and nothing fancy. Moreover, my other ListViews are working just fine. I suspect it is the AjaxSelfUpdatingTimerBehavior which is causing the problem, but I don't know exactly the root of it and how to work

Hibernate automatic dirty checking not working

2008-08-19 Thread shetc
Hi All, I have a Wicket-based project that is using Spring Hibernate to persist data. I have followed the examples set out in the Wicket in Action book. That is: 1) Use the Open Session in View pattern to get a Hibernate session per request -- I am using the Spring OpenSessionInViewFilter

Re: Help needed - ListView.onPopulate IndexOutOfBoundsException

2008-08-19 Thread tfu
Cemal, I'm not sure where/how to force a ListView removeAll() in my case. Overriding the Ajax timer behavior? I agree the problem could be that the underlying model for the ListView is changed before it is rendered completely. So, the real solution is to prevent this from happening.

Re: Question on resource caching

2008-08-19 Thread Johan Compagner
Shared resources do set some cache headers. But a forced reload should do a new get. Is the getResourceStream() method hit in such a case? On 8/19/08, Boris Goldowsky [EMAIL PROTECTED] wrote: Hi, I have some pages that reference images that are in files external to the web application and I

Re: Hibernate automatic dirty checking not working

2008-08-19 Thread shetc
Ignore all this -- I made a very basic error in one of my Hibernate mappings.:blush: -- View this message in context: http://www.nabble.com/Hibernate-automatic-dirty-checking-not-working-tp19060207p19061053.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Help needed - ListView.onPopulate IndexOutOfBoundsException

2008-08-19 Thread Timo Rantalaiho
On Tue, 19 Aug 2008, tfu wrote: I agree the problem could be that the underlying model for the ListView is changed before it is rendered completely. So, the real solution is to prevent this from happening. Synchronization? Where? How? It sounds like you could be better off using a more dynamic

Reorder links in DataTable

2008-08-19 Thread Artem D.
Hi, is there a way to implement reordering of rows in DatTable? I'd like to add a column with moveUp,moveDown,remove having the same behaviour as corresponging links of the ListView component. I suppose DataTable should be set to model reusing with