Visural Wicket - Maven

2011-03-18 Thread Shelli Orton
Hi, Has anybody used Visural Wicket with Maven? I set up my repositories as per the information on this page: http://code.google.com/p/visural-wicket/wiki/MavenSupport The visural-common pom and jar files downloaded are empty even though they're not on the server. However, there isn't a direct

Re: FileUpload size limit

2011-03-18 Thread Pedro Santos
> > >> I've also tried setting the form's maxSize like so, but the file still >> seems >> to get uploaded: >> setMaxSize(Bytes.kilobytes(150)); >> > weird, LimitedInputStream should be enough, are u using UploadWebRequest? > >> Anyone run into this same problem? Thanks. >> > > > > -- > Pedro Henr

Re: FileUpload size limit

2011-03-18 Thread Pedro Santos
Set Form#setMaxSize and Wicket will use an LimitedInputStream which limits its data size On Thu, Mar 17, 2011 at 11:59 PM, Henrique Boregio wrote: > Hi, how can I restrict the size of a file being uploaded, before it gets > uploaded? > > The following code does not work, since wicket first upload

Re: Wicket in Action: problem with redirection

2011-03-18 Thread Martin Grigorov
Better check the behavior with the quickstart with Wicket 1.4.16 1.5-M3 may had a bug. On Fri, Mar 18, 2011 at 8:50 PM, Jim Pinkham wrote: > Martin, > > Thanks, no I hadn't seen that... but now I think this is just because I > over-simplified the quickstart - it still doesn't explain why it was

Re: Wicket in Action: problem with redirection

2011-03-18 Thread Jim Pinkham
Martin, Thanks, no I hadn't seen that... but now I think this is just because I over-simplified the quickstart - it still doesn't explain why it was working properly up thru 1.5-M3 (using examples from wicket-auth-roles to have login link hander throw this restart exception, so if that's not a b

Re: Wicket in Action: problem with redirection

2011-03-18 Thread Martin Grigorov
On Fri, Mar 18, 2011 at 8:39 PM, Jim Pinkham wrote: > .. and I also attached a fairly ugly patched version of > > RestartResponseAtInterceptPageException > > that seem to work for me, but use at your own risk. > > Did you see Igor's response ? > Hope this helps, > -- Jim. > > > On Thu, Mar 17,

Re: FileUpload size limit

2011-03-18 Thread Attila Király
You are right, these special cases should not be in wicket core if they can be implemented separately. In this case the FileReader API could be used to do client side javascript based size checking. It is interesting to me so I will probably make a new class for it in wicketstuff/html5. I think it

Re: FileUpload size limit

2011-03-18 Thread Martin Grigorov
On Fri, Mar 18, 2011 at 3:53 PM, Attila Király wrote: > That will be the HTML5 FileReader Api. Too bad it is not supported in IE9 > and Opera. But it would awesome to see wicket support for that because it > would give a better user experience in Chrome and FF. > Attila, you know that I don't use

Re: [1.5RC2] image..

2011-03-18 Thread Igor Vaynberg
oh the irony! -igor On Fri, Mar 18, 2011 at 11:41 AM, Martin Grigorov wrote: > https://issues.apache.org/jira/browse/WICKET-1382 > Funny, it was you who asked for this feature :-) > > On Fri, Mar 18, 2011 at 6:00 PM, nino martinez wael < > nino.martinez.w...@gmail.com> wrote: > >> because it cha

Re: [1.5RC2] image..

2011-03-18 Thread Martin Grigorov
https://issues.apache.org/jira/browse/WICKET-1382 Funny, it was you who asked for this feature :-) On Fri, Mar 18, 2011 at 6:00 PM, nino martinez wael < nino.martinez.w...@gmail.com> wrote: > because it changes references. So it does need to be repainted. Problem are > with the anticache paramete

RE: Drop Down Choice

2011-03-18 Thread Shelli Orton
Hi, The wicket.visural.net first example looks like exactly what I need. Thanks! Shelli -Original Message- From: nino martinez wael [mailto:nino.martinez.w...@gmail.com] Sent: 18 March 2011 11:05 AM To: users@wicket.apache.org Subject: Re: Drop Down Choice theres this one (though not

Re: [1.5] Two formcomponents editing the same model?

2011-03-18 Thread Igor Vaynberg
exactly the same in 1.4 -igor On Fri, Mar 18, 2011 at 10:12 AM, xFlasH wrote: > Thanks for this one. > > This is a great preview oft 1.5, I haven't yet tried. > > What about the same issue in 1.4 ? > > > Thanks again for this one. > > -R- > > -- > View this message in context: > http://apache-w

Re: [1.5] Two formcomponents editing the same model?

2011-03-18 Thread xFlasH
Thanks for this one. This is a great preview oft 1.5, I haven't yet tried. What about the same issue in 1.4 ? Thanks again for this one. -R- -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/1-5-Two-formcomponents-editing-the-same-model-tp3385350p3387832.html Sent f

Re: Favicon best practice

2011-03-18 Thread Ian Marshall
Alas I am getting MidasTouchCodingExceptions. I tried protected void init() { super.init(); ... // New code ResourceReference rrefFavicon = new ResourceReference( ResourcesLocator.class, "favicon.ico"); IMountableRequestTargetUrlCodingStrategy mrtURLCodingStrategy =

Re: Wicket, GAE and Sessions

2011-03-18 Thread Chris Merrill
On 3/18/2011 12:52 PM, Martin Grigorov wrote: > http://svn.apache.org/viewvc?view=revision&revision=1082822 > > freshly fixed Ahhh...good timing...I was thinking if I should ask if this could be a bug in Auth-Roles... On 3/18/2011

Re: Drop Down Choice

2011-03-18 Thread Martin Makundi
Hi! 1. Invisible mode is always possible. 2. Maybe autocompletetextfield will be ok? 3. You can integrate pretty easily a jquery skin. ** Martin 2011/3/18 Shelli Orton : > Hi, > > I've been looking for a Wicket drop down widget where one can choose an > item from the list by typing more than t

Re: Drop Down Choice

2011-03-18 Thread nino martinez wael
theres this one (though not dropdown) http://www.wicket-library.com/wicket-examples/ajax/autocomplete Or this one if you want a drop down: http://wicket.visural.net/examples/app/dropdown

Drop Down Choice

2011-03-18 Thread Shelli Orton
Hi, I've been looking for a Wicket drop down widget where one can choose an item from the list by typing more than the first character. For example, if my list contains the following values: One Two Three Four Five typing "T" would select "Two", but typing "Th" would select "Three". Is this po

Re: [1.5RC2] image..

2011-03-18 Thread nino martinez wael
because it changes references. So it does need to be repainted. Problem are with the anticache parameter we are forcing the browser to download the image again instead of pulling it from browser cache. That makes it flicker... 2011/3/15 Martin Grigorov > Why do you put the image in the AjaxReque

Re: Wicket, GAE and Sessions

2011-03-18 Thread Igor Vaynberg
yes, a stateful page would automatically call session.dirty() to mark it for replication. if your pages are stateless you have to do this bookkeeping on the session yourself. -igor On Fri, Mar 18, 2011 at 9:48 AM, Chris Merrill wrote: > On 3/18/2011 11:44 AM, Igor Vaynberg wrote: >> make sure y

Re: Wicket, GAE and Sessions

2011-03-18 Thread Martin Grigorov
http://svn.apache.org/viewvc?view=revision&revision=1082822 freshly fixed On Fri, Mar 18, 2011 at 5:48 PM, Chris Merrill wrote: > On 3/18/2011 11:44 AM, Igor Vaynberg wrote: > > make sure your authenticate message calls session.dirty(

Re: Wicket, GAE and Sessions

2011-03-18 Thread Chris Merrill
On 3/18/2011 11:44 AM, Igor Vaynberg wrote: > make sure your authenticate message calls session.dirty() or > session.bind() so that the session itself is persisted. Thanks, Igor! That did it. I'm more than a little disappointed I didn't figure that out myself :( I'm a bit surprised I haven't r

Re: Favicon best practice

2011-03-18 Thread Martin Grigorov
mountSharedResource() will make it reachable at /resources/org.apache.wicket.Application/favicon.ico In Wicket 1.5 you can use mountResource("favicon.ico", resourceReference) and it will do what you need. You can write your custom IMountableRequestTargetUrlCodingStrategy to do that in 1.4 On Fri,

Re: Favicon best practice

2011-03-18 Thread Ian Marshall
MOUNTING In my WebApplication-descended class I tried protected void init() { super.init(); ... // New code ResourceReference rrefFavicon = new ResourceReference( ResourcesLocator.class, "favicon.ico"); mountSharedResource([path], rrefFavicon.getSharedResourc

Re: Wicket, GAE and Sessions

2011-03-18 Thread Igor Vaynberg
make sure your authenticate message calls session.dirty() or session.bind() so that the session itself is persisted. -igor On Fri, Mar 18, 2011 at 8:27 AM, Chris Merrill wrote: > I might have answered my question. I did some refactoring and took out some > code from my > base page class that wa

Re: ComponentInitializationListener and the new 1.5 initialization

2011-03-18 Thread Igor Vaynberg
its called right after component.oninitialize() so it has access to the same things. -igor On Fri, Mar 18, 2011 at 3:47 AM, Joe Fawzy wrote: > Hi > does ComponentInitializationListener now have access to the markup as the > component.onInitialize() > Thanks > Joe >

HybridUrlCodingStrategy gives 302 in access log

2011-03-18 Thread Mihai Toma
Hi, I have a strange issue with wicket regarding redirection. In Application class I setup all pages with HybridUrlCodingStrategy (mount(new HybridUrlCodingStrategy("/assets", AssetSearchPage.class))); Everything works fine on my server, but on client server there is a problem because,

Re: Wicket, GAE and Sessions

2011-03-18 Thread Chris Merrill
I might have answered my question. I did some refactoring and took out some code from my base page class that was calling getApplication(). I didn't need it anyway, and now I am not seeing the serialization exception that references my application class. It is not clear to me how this caused the

Re: FileUpload size limit

2011-03-18 Thread Attila Király
That will be the HTML5 FileReader Api. Too bad it is not supported in IE9 and Opera. But it would awesome to see wicket support for that because it would give a better user experience in Chrome and FF. Attila 2011/3/18 John Owen > There are some javascript-based solutions that can check the fil

Wicket, GAE and Sessions

2011-03-18 Thread Chris Merrill
I'm trying to get a Wicket app working in GAE. I had the basics working. I've read and followed: http://www.danwalmsley.com/2009/04/08/apache-wicket-on-google-app-engine-for-java/ so I have enabled sessions, turned off resource polling and overridden newSessionStore() to return a new HttpSess

RE: FileUpload size limit

2011-03-18 Thread John Owen
There are some javascript-based solutions that can check the file info (size, extensions, etc.) before transmitting the file(s). The downside is that they don't work in IE (up to IE 8). The example I found most useful is here: http://valums.com/ajax-upload/ Regards -Original Message- F

Adding a IRenderer interface ?

2011-03-18 Thread zedros schwartz
hi I was refactoring some code (to go from DropDownChoice to AutoCompleteEdit) when I stumbled upon there's no interface just about "how to render some given class instances". Well, it's for sure no big deal, but I was wondering if, for unification purpose, a IRenderer interface wouldn't make sen

Re: Absolute URL string

2011-03-18 Thread nimmy
Hi Martin, The requestCycle.urlFor(...) was still returning a '.' in the URL as I described in my first post. The requestCycle.mapUrlFor(...) method did the trick. Thank you for your help. Cheers, Nim -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Absolute-URL-str

Re: Absolute URL string

2011-03-18 Thread Martin Grigorov
RequestCycle.get().getUrlRenderer().renderFullUrl(requestCycle.urlFor(MyBookmarkablePage.class, null)) On Fri, Mar 18, 2011 at 1:14 PM, nimmy wrote: > Hi All, > > I'm trying to display a label with the absolute URL for a bookmarkable page > on the page itself. I am doing this so that users can r

Re: Set FormComponent Type and EmailValidator

2011-03-18 Thread vov
Does anyone know how to solve this problem? Or is it a bug in wicket? Note: I use wicket 1.4.14 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Set-FormComponent-Type-and-EmailValidator-tp3356588p3387040.html Sent from the Users forum mailing list archive at Nabble.co

Absolute URL string

2011-03-18 Thread nimmy
Hi All, I'm trying to display a label with the absolute URL for a bookmarkable page on the page itself. I am doing this so that users can readily identify what URL to email or IM to friends. Unfortunately, I'm having some trouble with this. I have tried: RequestCycle.get().getUrlRenderer().rende

Re: Favicon best practice

2011-03-18 Thread Martin Grigorov
Why not just put it next to WEB-INF/ ? Or if you need to manipulate it with Wicket (e.g. generate it on the fly) then use a Wicket Resource which is mounted at /favicon.ico. On Fri, Mar 18, 2011 at 11:20 AM, Ian Marshall wrote: > I would appreciate some advice on best practice for favicons in Wic

ComponentInitializationListener and the new 1.5 initialization

2011-03-18 Thread Joe Fawzy
Hi does ComponentInitializationListener now have access to the markup as the component.onInitialize() Thanks Joe

Re: dynamic navigation/side content depending on login status

2011-03-18 Thread hrbaer
Thanks Michael for the hint. I already adapt that example and this is working - at least in parts. Those are my two pain points at the moment: 1.) share one session 2.) seperate Login page Regarding 1.): I've implemented two Links. Both do need a authentication so both xxxApplication.java extend

Favicon best practice

2011-03-18 Thread Ian Marshall
I would appreciate some advice on best practice for favicons in Wicket I subclass most of my web pages from a subclass of WebPage. I implement my favicon in the way set out at the foot of this posting. I have two types of problem. 1. When testing the URL "http://localhost:8080/favicon.ico";

Favicon best practice

2011-03-18 Thread Ian Marshall
I would appreciate some advice on best practice for favicons in Wicket I subclass most of my web pages from a subclass of WebPage. I implement my favicon in the way set out at the foot of this posting. I have two types of problem. 1. When testing the URL "http://localhost:8080/favicon.ico";

Favicon best practice

2011-03-18 Thread Ian Marshall
I would appreciate some advice on best practice for favicons in Wicket I subclass most of my web pages from a subclass of WebPage. I implement my favicon in the way set out at the foot of this posting. I have two types of problem. 1. When testing the URL "http://localhost:8080/favicon.ico";

Re: Need a CodingStrategy to parse parameter from prefix

2011-03-18 Thread Bas Gooren
Yes it is, e.g. have a look at https://cwiki.apache.org/WICKET/wicket-and-localized-urls.html In your case, you would need to strip the first path parameter from the url and store it in the request for later retrieval. Bas Op 17-3-2011 23:58, Steve Mactaggart schreef: I guess I'll have a lo

Re: [1.5] Two formcomponents editing the same model?

2011-03-18 Thread nino martinez wael
Thanks, exactly on the spot, as always :) 2011/3/17 Igor Vaynberg > filter your models to preserve their respective parts, for example > below is a model you would assign to the textfield that edits the date > part. you would need to build the opposite for your textfield that > edits the time pa