Re: highlight invalid fields with custom Validation Framework?

2012-10-16 Thread delta458
Hi Martin, thanks so much for the replies... almost done, some little questions still there.. I got it working, could you verify that its right what I made? :) 1) *//Had Error: Wrong number of type arguments, required 2 - It works when I do IVisitor ;-) public class ShinyFormVisitor implements I

Re: Thread safety of various Wicket classes?

2012-10-16 Thread Ondrej Zizka
Ok, thanks. So I guess I should assume all classes unsafe, even if I check the code - since that can change. Maybe it would be worth considering committing to keeping certain class groups thread-safe, like validators. Just an idea. Ondra On Tue, 2012-10-16 at 09:17 +0200, Martin Grigorov wrote:

Solved // Re: Page expiration error on AJAX call

2012-10-16 Thread Ondrej Zizka
You were right, like usually :) What's the preffered way for CDI fields - making them transient, or the class serializable? Thanks, Ondra On Tue, 2012-10-09 at 15:52 +0200, Ondrej Zizka wrote: > I was thinking about that, but saw no errors in the log. Maybe hidden? > What would be the loggin

RE: Twitter Bootstrap in Wicket

2012-10-16 Thread Chris Colman
Thanks for that. I'm suddenly very motivated to migrate our code from Wicket 1.5 -> 1.6 just so that we can start using this stuff: https://github.com/l0rdn1kk0n/wicket-bootstrap Regards, Chris >-Original Message- >From: Martin Grigorov [mailto:mgrigo...@apache.org] >Sent: Wednesday, 1

Re: WicketRuntimeException: "Submit Button ... is not enabled"

2012-10-16 Thread eugenebalt
Thanks Sven, that was it! They were clicking again while the form was still processing. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/WicketRuntimeException-Submit-Button-is-not-enabled-tp4651180p4653019.html Sent from the Users forum mailing list archive at Nabble

Re: Wicket and file upload with blueimp jquery file upload

2012-10-16 Thread Bas Gooren
Behavior (wicket 1.5): http://pastebin.com/WUHsiRL2 instance.js (to initialize uploadify): http://pastebin.com/jGSwzHMN Mount it in Application.init() with: // Allow uploads through uploadify mount( new UploadifyBehavior.Uploader( "/uploadify" ) ); Use it like this: component.add( new Uploadif

Re: Wicket and file upload with blueimp jquery file upload

2012-10-16 Thread heapifyman
Thanks. Would you mind sharing the mounted resource's code? I'm not completely sure how to implement that. 2012/10/16 Bas Gooren > Hi! > > We use a different uploader (uploadify), but the basics are the same. > > What we've built for this is a behavior which renders the UI for the > uploader, a

Re: WicketRuntimeException: "Submit Button ... is not enabled"

2012-10-16 Thread Sven Meier
You're probably experiencing double clicks on your ajax buttons. When the second request reaches the button, is is already disabled again. Check this: http://wicketinaction.com/2008/12/preventing-double-ajax-requests-in-3-lines-of-code/ Sven On 10/16/2012 06:24 PM, eugenebalt wrote: Hi, Sorry

Re: Wicket and file upload with blueimp jquery file upload

2012-10-16 Thread Bas Gooren
Hi! We use a different uploader (uploadify), but the basics are the same. What we've built for this is a behavior which renders the UI for the uploader, and handles ajax callbacks. The uploader uploads to a mounted resource (e.g. at /uploadify), which has an internal cache (UUID => FileInfo)

Re: Twitter Bootstrap in Wicket

2012-10-16 Thread Martin Grigorov
On Tue, Oct 16, 2012 at 6:40 PM, Gonzalo Aguilar Delgado wrote: > Hello Chris, > > I can answer yes! But it's not working well for IE<9. It gave me big > headaches. For the rest of the navigators it ran well... > > Here is a demo. You cannot login, sorry. > > http://www1.seglan.com/remesas-movista

Re: Twitter Bootstrap in Wicket

2012-10-16 Thread Gonzalo Aguilar Delgado
Hello Chris, I can answer yes! But it's not working well for IE<9. It gave me big headaches. For the rest of the navigators it ran well... Here is a demo. You cannot login, sorry. http://www1.seglan.com/remesas-movistar/remesas/login?0 I used several projects: Bootstrap: http

Re: WicketRuntimeException: "Submit Button ... is not enabled"

2012-10-16 Thread eugenebalt
Hi, Sorry, I have to bump thread back up again. We still have no clear idea how to address this issue, which only happens sporadically on our production server (and we can't reproduce it locally). We have screens with Ajax Buttons which submit forms, but also disable/hide these Ajax buttons. I am

Re: Validation with component not required

2012-10-16 Thread Gonzalo Aguilar Delgado
Hello Sven, I wanted to know when someone fills the field. It's really not necessary. I suppose this is the problem. Will check again. Thank you! El mié, 10-10-2012 a las 14:44 +0300, Martin Grigorov escribió: > Hi, > > On Wed, Oct 10, 2012 at 1:59 PM, Gonzalo Aguilar Delgado > wrote: > > He

Re: Wicket + Guice + unittests

2012-10-16 Thread Daniel Watrous
Martin, In this case it would be just as easy to inject a specific bean. I did it this way because it matched some other examples that I saw. Daniel On Oct 16, 2012 1:08 AM, "Martin Grigorov" wrote: > Hi Daniel, > > public class HomePage extends WebPage { > private static final long serial

Re: Wicket and file upload with blueimp jquery file upload

2012-10-16 Thread heapifyman
Not sure if I understand. As far as I got it, the upload plugin requires some "web service" that accepts POST and DELETE requests to add/remove uploaded files. Doing that is no problem, I guess. But how to I link this with the current user's wicket session so that I know which files the users uploa

Re: Wicket and file upload with blueimp jquery file upload

2012-10-16 Thread Martin Grigorov
Hi, Is it an option to upload to a IResource and store the uploaded data the same way as if you'd do in the page ? On Tue, Oct 16, 2012 at 12:49 PM, heapifyman wrote: > Hello, > > has anyone tried yet to integrate blueimp's jQuery File Upload > http://blueimp.github.com/jQuery-File-Upload/ with

Re: Semicolons in URL-Parameters

2012-10-16 Thread Arne
Martin Grigorov apache.org> writes: > > Hi, > > Do you debugged where they are cut ? > I don't remember code in Wicket that will do that. > > Or just create a quickstart and attach it in Jira and we will debug it. No, I could not find it in the source and cannot rule out that the underlying j

Re: Semicolons in URL-Parameters

2012-10-16 Thread Martin Grigorov
Hi, Do you debugged where they are cut ? I don't remember code in Wicket that will do that. Or just create a quickstart and attach it in Jira and we will debug it. On Tue, Oct 16, 2012 at 12:09 PM, Arne wrote: > Hi Martin, > > what I expect to happen when there is no semicolon support in Wicket

Re: Semicolons in URL-Parameters

2012-10-16 Thread Arne
Hi Martin, what I expect to happen when there is no semicolon support in Wicket is that a URL in a form like below stays intact and will not be cut off at the position of the first semicolon: http://localhost:8080/dor/abc_1234:56;023:456_def_78;90.html"; method="post"> In my application the part

Re: Load table rows lazy when click browser scrollbar

2012-10-16 Thread vineet semwal
hi ! i have made some improvements in quickview in last 2 days,i am writing tests for them,after that i will add AjaxPageScrollEventBehavior for 1.5 branch,i will send you a notification here.. On Tue, Oct 16, 2012 at 11:35 AM, steven.li wrote: > yes. I followed that try to wrap a AjaxPageScro

Re: Toggle AjaxEditableLabel from other component?

2012-10-16 Thread Martin Grigorov
Hi, You can use something like: jQuery('editableLabel').triggerHandler('click') to switch it to edit mode, and 'keyup' + keyCode == 27 (simulate pressing of ESCAPE) to switch to view mode. On Mon, Oct 15, 2012 at 4:44 AM, Ondrej Zizka wrote: > Hi all, > > I'd like to toggle AjaxEditableLabel int

Re: performance on nested dataviews

2012-10-16 Thread Martin Grigorov
Hi, Can you show your code ? On Mon, Oct 15, 2012 at 1:04 AM, lukuperman wrote: > Martin, I've implemented my own webmarkupcontainer object and I write the > html in the onComponentTagBody() method. It works super fast. Now my > question is, how can I reuse other components I created (labels, et

Re: Thread safety of various Wicket classes?

2012-10-16 Thread Martin Grigorov
Hi, Access to pages in Wicket is synchronized, i.e. only one thread can manipulate the page. So, if you use non-static member fields then there is no problem. If you use static ones then you need to verify that they are thread safe and can be used in such a way. On Mon, Oct 15, 2012 at 5:07 AM, O

Re: Semicolons in URL-Parameters

2012-10-16 Thread Martin Grigorov
Hi Arne, Can you give more details what do you expect to happen ? I barely remember that it is allowed by specs to use ';' instead of '&' to separate the parameters in the query string, but your examples do something different - you use ';' in the URL path part. There is no support in Wicket about

Re: highlight invalid fields with custom Validation Framework?

2012-10-16 Thread Martin Grigorov
On Mon, Oct 15, 2012 at 11:17 PM, delta458 wrote: > Alright, I have something like this now: Problems/Errors are *bold* > * > //Here is a problem with the class: it says: ShinyFormVisitor is not > abstract and does not override abstract method component(Object,IVisit) in > IVisitor* > public class

Re: AbstractTransformerBehavior in ajax target

2012-10-16 Thread Martin Grigorov
Hi Frederico, I didn't understand what was the problem and how you solved it. It seems you tried to paste some code but it didn't make it. On Mon, Oct 15, 2012 at 6:11 PM, Frederico Rodrigues wrote: > i have changed AbstractTransformerBehavior to behavior and works. > now i use #beforeRender()

Re: Wicket + Guice + unittests

2012-10-16 Thread Martin Grigorov
Hi Daniel, public class HomePage extends WebPage { private static final long serialVersionUID = 1L; @Inject private Injector injector; public HomePage(final PageParameters parameters) { super(parameters); add(new Label("version", getApplication().getFrameworkSettings(