Graceful Session Expiry

2011-06-08 Thread Arjun Dhar
Hi, I want to be able to show a Warning message appear when the session is about to expire (say 5 minutes before) and if the session has expired then on the UI it should come. This is to ensure a User does not enter any data and lose it when they click Submit. Use Case I wanna prevent: Lazy User

Re: Drop down Multilevel Navigation in Wicket

2011-06-08 Thread Dan Retzlaff
Hi Dimiter, I have not implemented a multi-level, mouseover-based menu system, but I can offer the following general advice. Wicket makes it easy for client-side events to trigger callbacks in your server-side Java application, from which you can, for example, render new content into existing DOM

Re: Session MetaData Synchronization and Flushing

2011-06-08 Thread Dan Retzlaff
For what it's worth, encapsulating Session#setMetaData() and Session#getMetaData() to work around this issue led me to the following pattern which I'm really enjoying. Synchronization and dirtying are omitted here for brevity. SessionMetaDataModel implements IModel { private final MetaDataKey ke

Re: ContextImage and external URL

2011-06-08 Thread Martijn Dashorst
I would create your own 'ContextImage' that does exactly what you want. Extend component, override oncomponenttag and put the model value into the src attribute. Martijn On Tue, Jun 7, 2011 at 11:46 PM, Daniele Dellafiore wrote: > Hi. > > I take some user uploaded images from an external service

Re: wicket-dnd not working on IE9 and only partially on IE8

2011-06-08 Thread Iain Reddick
Without looking at the implementation, to see if the styling is causing an issue: 1) Delete all style declarations from the css file (i.e. blank it) 2) See if the issue persists - in which case it's probably something else 3) Add your style declarations back one at a time to the css file to see

Re: navigation menu

2011-06-08 Thread Peter Karich
Hi, why not use the 'tutsplus' code which you like and bind the links to bookmarkable pages? You could also inject some variables (e.g. the urls) into javascript from wicket: private HeaderContributor contrib = new HeaderContributor( new IHeaderContributor() { @Override public void rend

Re: Session MetaData Synchronization and Flushing

2011-06-08 Thread Dan Retzlaff
https://issues.apache.org/jira/browse/WICKET-3779 On Wed, Jun 8, 2011 at 11:32 AM, Igor Vaynberg wrote: > most likely it is an oversight. open an issue. at some point session > access was synchronized, but later it was made more granular. the > metadata code may have never been updated. > > -igor

Drop down Multilevel Navigation in Wicket

2011-06-08 Thread Dimiter Dimitrov
Hi guys! I'm relatively new to the Wicket and am still learning so in advance, excuse me if I've missed anything. What I'm looking for and I can not find a solution for is how can I create a multi level dropdown navigation in Wicket? I mean, the popular multi level dropdown navigation (CSS/JS-base

Re: Session MetaData Synchronization and Flushing

2011-06-08 Thread Igor Vaynberg
most likely it is an oversight. open an issue. at some point session access was synchronized, but later it was made more granular. the metadata code may have never been updated. -igor On Wed, Jun 8, 2011 at 11:29 AM, Dan Retzlaff wrote: > Hey all, > > Can someone help me understand the synchron

Got some code for you (ObjectSizeOfAgent)

2011-06-08 Thread Jochen Mader
Hey, a while ago I wrote about the difficulties to get the ObjectSizeOfAgent to run. As I needed it pretty badly for a project I built something new and added some more accurate size measurement for objects. I put all my code on Github and I am going to add some more performance related things in

Session MetaData Synchronization and Flushing

2011-06-08 Thread Dan Retzlaff
Hey all, Can someone help me understand the synchronization and dirty-marking requirements surrounding Session#setMetaData()? I thought the rules for Session use were (1) synchronize data access, (2) call Session#dirty() after data changes to replicate the changes across the cluster. However, I do

Re: I18n for buttons

2011-06-08 Thread Martin Grigorov
Doesn't sound like https://issues.apache.org/jira/browse/WICKET-3727 but who knows. On Wed, Jun 8, 2011 at 6:23 PM, Craig Pardey wrote: > Hi, > > I am using i18n in Wicket to set the value on a button. > > The markup for the button is > > > The value does not get translated if "save" is in the a

Re: Blog on my experiences learning Wicket

2011-06-08 Thread Brian Topping
On Jun 8, 2011, at 12:54 PM, Brian Lavender wrote: > And yes, my blog uses Wordpress, not Wicket quite yet. If you are going to make your blog out of Wicket, you might want to consider using Brix (http://www.brixcms.org). It welds a NoSQL document database to Wicket, along with some basic pa

Re: wicket-dnd not working on IE9 and only partially on IE8

2011-06-08 Thread lucast
Hi Sven, I found what causes the drop functionality not to work on IE8. I have a panel which has wicket-dnd draggable and droppable functionality. I allocate that panel to each table cell. On the html file for the panel, I have the following header which already exists on the homePage.html file:

Blog on my experiences learning Wicket

2011-06-08 Thread Brian Lavender
Hello everyone, I have been blogging regarding my experience using Wicket based upon my experience learning Wicket using the "Wicket in Action" book by Dashorst et al. using different takes or perhaps just my experience breaking down the examples from the book. In others, I do a simple additions.

I18n for buttons

2011-06-08 Thread Craig Pardey
Hi, I am using i18n in Wicket to set the value on a button. The markup for the button is The value does not get translated if "save" is in the application-level resource bundle. It only gets translated if "save" is in the page-level resource bundle. Is my markup incorrect, or is this a bug?

Re: navigation menu

2011-06-08 Thread Fatih Mehmet Ucar
http://code.google.com/p/wicket-menu/ Not complete but if you see the source code, it will give you an idea. cheers, -fatih On 8 June 2011 16:28, hubert_hupe wrote: > hi guys, > > i have no clue how to create a simple navigation bar like this: > http://net.tutsplus.com/tutorials/javascript-aja

navigation menu

2011-06-08 Thread hubert_hupe
hi guys, i have no clue how to create a simple navigation bar like this: http://net.tutsplus.com/tutorials/javascript-ajax/a-different-top-navigation/ if possible i need images for the headlines. when you move the mouse over the menu it drops down - there are millions of website with this funct

Re: adding items dynamically to ListView

2011-06-08 Thread wmike1...@gmail.com
Just resolved the issue. The problem was that I wasnt setting "container.setOutputMarkupId(true);" before I initially added the container to the page. I was setting it when the user clicked a button, which always occurred after the container was initially added. My original flow was something lik

Re: adding items dynamically to ListView

2011-06-08 Thread wmike1...@gmail.com
Here is my bean class, followed by a panel class where I set up the PropertyModel and the ListView, followed lastly by the panel's markup BEAN: public class IncidentListBean implements Serializable { List incList; public IncidentListBean() { incList = new ArrayList(

RE: WicketRuntimeException

2011-06-08 Thread Jeffrey Schneller
I don't see anything in the logs but I will look. I will try kill -3 pid when it happens again. -Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: Wednesday, June 08, 2011 9:38 AM To: users@wicket.apache.org Subject: Re: WicketRuntimeException This is the wr

Re: ContextImage and external URL

2011-06-08 Thread Daniele Dellafiore
Do you think that can be good also if I want to let the browser cache some images? I serve thumbnails that I do not want to be server every time. On Tue, Jun 7, 2011 at 11:52 PM, Martin Grigorov wrote: > use Image with DynamicImageResource which loads the image with > urlConnection > > On Tue, J

Re: WicketRuntimeException

2011-06-08 Thread Martin Grigorov
This is the wrong thread. I bet there is another one with longer stack. On Wed, Jun 8, 2011 at 3:27 PM, Jeffrey Schneller wrote: > Thanks for the idea of using kill -3 pid > > I don't see the page in the stack trace which is below, unless it is the line > I have started with ===>. > > > > org.ap

RE: WicketRuntimeException

2011-06-08 Thread Jeffrey Schneller
Thanks for the idea of using kill -3 pid I don't see the page in the stack trace which is below, unless it is the line I have started with ===>. org.apache.wicket.WicketRuntimeException: After 1 minute the Pagemap null is still locked by: Thread[TP-Processor24,5,main], giving up trying to get

Re: A couple of questions about converter

2011-06-08 Thread Martin Grigorov
Hi Andrea, On Wed, Jun 8, 2011 at 1:11 PM, Andrea Del Bene wrote: > Hi, > > I've started to explore the converting mechanism of wicket. I've red javadoc > and both Wicket in Action and Wicket Cookbook but there still be something > not completely clear to me. > Converter are created by converter

A couple of questions about converter

2011-06-08 Thread Andrea Del Bene
Hi, I've started to explore the converting mechanism of wicket. I've red javadoc and both Wicket in Action and Wicket Cookbook but there still be something not completely clear to me. Converter are created by converter locator, which creates one instance of converter for each java type, right?

Re: wicket-dnd not working on IE9 and only partially on IE8

2011-06-08 Thread lucast
Hi Sven, I'm trying to build a standalone example of the error I am experiencing on IE8, but in the meantime, I thought about posting the html produced on both IE8 (where I'm experiencing the problem) and on Firefox (where there is no problem). I'll attach as text file so it doesn't clutter up this

Re: [WICKET-3552] Is adding another parameter to the constructor required?

2011-06-08 Thread Martijn Dashorst
On Wed, Jun 8, 2011 at 11:26 AM, Martin Grigorov wrote: > If you have the karma you can miss the attaching part and commit > directly in SVN > dashorst ^^ Moved it to dev@ instead... Martijn - To unsubscribe, e-mail: users-unsu

Re: [WICKET-3552] Is adding another parameter to the constructor required?

2011-06-08 Thread Martin Grigorov
Jira and up and running and the last time I checked it still supports attaching files (patches) :-) If you have the karma you can miss the attaching part and commit directly in SVN dashorst ^^ 2011/6/8 Robert Dahlström : > +1 on skipping a boolean flag in the constructor. Igors suggestion to > pr

Re: [WICKET-3552] Is adding another parameter to the constructor required?

2011-06-08 Thread Robert Dahlström
+1 on skipping a boolean flag in the constructor. Igors suggestion to provide a mode parameter feels like a good one. /Robert On 06/08/2011 10:18 AM, Martin Grigorov wrote: Hi Per, I see your point. It is just my opinion (and ticket's reporter) that this additional boolean parameter to the co

Re: [WICKET-3552] Is adding another parameter to the constructor required?

2011-06-08 Thread Martijn Dashorst
Boolean parameters are the bane of software development. I'd urge anyone to reconsider their train of thought when they declare foo(boolean x). It is really bad to have AttributeAppender(boolean appendOrPrepend, ...) if you can have both AttributeAppender() and AttributePrepender() Classes are che

Re: [WICKET-3552] Is adding another parameter to the constructor required?

2011-06-08 Thread Martin Grigorov
Hi Per, I see your point. It is just my opinion (and ticket's reporter) that this additional boolean parameter to the constructor is adds much less noise than adding additional 2 classes. If the name of AttributeAppender is changed to AtrributeAdder (because we are used that add(obj) appends and a

Re: wicket-dnd not working on IE9 and only partially on IE8

2011-06-08 Thread lucast
Hi Sven, Thanks for your reply. I've tested wicket-dnd on windows Vista, using IE9 and that's when the problem occurs. The problem of the on drop functionality not displaying the object dropped, described in my previous post occurs on IE8 under both windows vista and windows xp. Wicket-dnd works f

Re: [WICKET-3552] Is adding another parameter to the constructor required?

2011-06-08 Thread Igor Vaynberg
why not roll this into attributemodifier and have mode { replace, append, prepand } where replace is how the modifier works now... -igor On Wed, Jun 8, 2011 at 12:07 AM, Martin Grigorov wrote: > Hi, > > I also had the same thoughts when I added the flag (as the patch > suggested) but AttributeAp

Re: [WICKET-3552] Is adding another parameter to the constructor required?

2011-06-08 Thread Per Newgro
Hi Martin Grigorov, But i made naming proposals: AbstractAttributeRegister | | AttributeAppender AttributePrepender My pain in the ... is only that we have now 2 more constructors. This (in my opinion) really important class should be clear in design and respon

Re: WicketRuntimeException

2011-06-08 Thread Martijn Dashorst
The stack trace shows the page that is holding the lock as well Martijn On Wed, Jun 8, 2011 at 7:20 AM, Martin Grigorov wrote: > On Wed, Jun 8, 2011 at 7:00 AM, Jeffrey Schneller > wrote: >> I have started to see more and more of the following exception when >> users are using the wicket app. >

Re: Gamboa Project

2011-06-08 Thread Martin Grigorov
Very nice, Bruno! Just one thing: > Thanks to Wicket 1.5 and the auto resource path URL feature, it is even > better to have separated HTML+css+js from the Java/Scala code. Which feature exactly do you mean ? On Wed, Jun 8, 2011 at 3:22 AM, Bruno Borges wrote: > Hi everyone, > >    I've been wo

Re: [WICKET-3552] Is adding another parameter to the constructor required?

2011-06-08 Thread Martin Grigorov
Hi, I also had the same thoughts when I added the flag (as the patch suggested) but AttributeAppender is a class with just constructor overrides and one method override (#newValue()). If we introduce yet another class for prepend then there is no sense in "the one common parent" because they have