Re: support for L10N in templates

2012-03-19 Thread Martin Grigorov
Hi, A template is a resource with placeholders. You need to interpolate its content before serving it to the client. In the example: response.renderJavascriptReference(new ResourceReference(MyPage.class, my.js, getLocale(), getStyle())); locale and style are used to load the most specific

Re: converter

2012-03-19 Thread Martin Grigorov
Hi, Take a look at the sources of https://github.com/wicketstuff/core/tree/master/jdk-1.6-parent/mootools-meiomask-parent/mootools-meiomask This project integrates input mask implementation (MeioMask) with Wicket. Use it as inspiration. On Mon, Mar 19, 2012 at 12:04 AM, neo skorpio...@centrum.cz

Re: Wicket 1.5 error : cannot find component id

2012-03-19 Thread Martin Grigorov
Hi, On Sun, Mar 18, 2012 at 2:41 PM, kshitiz k.agarw...@gmail.com wrote: Hi, Thank you for ur reply. I have added the form by writing *add(registerForm);* in the* constructor*. But I have just resolved by problem by replacing *wicket:id* in html page with *wickeT:id* Do you say that

Problem with gif Indicator after call of wicketAjaxGet

2012-03-19 Thread Reiche, Andreas
Hi, I have a problem with the rendering of animated gifs after a call to wicketAjaxGet. I have the following situation. In a webPage i have an AjaxLink which basicly returns an on-the-fly created pdf Document for download. As the generation needs some time i show an animated gif to the user to

Re: LocaleFirstMapper in 1.5 and statefull home page

2012-03-19 Thread Martin Grigorov
Hi, I just touched CustomHomeMapper in Wicket 6.0 to support what you need. I think this way it is more usable in real life. See http://git-wip-us.apache.org/repos/asf/wicket/repo?p=wicket.git;a=commitdiff;h=cabc1bee6a5e3e43e58c9f4c7f8b5cda401c558a The new code of this class at:

Re: Problem with gif Indicator after call of wicketAjaxGet

2012-03-19 Thread Martin Grigorov
Hi, On Mon, Mar 19, 2012 at 10:17 AM, Reiche, Andreas andreas.rei...@lgln.niedersachsen.de wrote: Hi, I have a problem with the rendering of animated gifs after a call to wicketAjaxGet. I have the following situation. In a webPage i have an AjaxLink which basicly returns an on-the-fly

Re: Wicket + JPA lazy-loading

2012-03-19 Thread Martin Grigorov
Hi, 2012/3/18 Bálint Kriván bal...@krivan.hu: I don't want to serialize them but wicket does (I have a list of objects which I pass to a ListView). IIRC, If I use LDM I can make wicket to serialize only an ID and when it is readed back I can reach the backend to get the correct object for

RE: AjaxFormComponentUpdatingBehavior after validation problem

2012-03-19 Thread Michal Wegrzyn
Hi Gytis, If you add AjaxFormSubmitBehaviour to your checkbox it should work exactly as Submit button. Best regards, Michal Wegrzyn -Original Message- From: Gytis [mailto:lietuvis...@mail.ru] Sent: Sunday, March 18, 2012 8:02 To: users@wicket.apache.org Subject: RE:

Re: What real life scenario calls for page ID?

2012-03-19 Thread Martin Grigorov
Hi, So far I didn't hear a good explanation why the page id causes you troubles. Most of you are saying it is ugly. In my previous company we asked some of our users about wicket:interface=0:1:Something:else:9 and most of them said I don't care, I haven't noticed it, etc... And we did this just

Re: What real life scenario calls for page ID?

2012-03-19 Thread Girts Ziemelis
On 2012-03-19 02:46, Paolo wrote: I support you! I implemented class NoVersionMount thanks to pointbreak in my MainApplication. And It will be my template for future app. But to do it, I needed to understood the problem, check on google, read a lot of pages, without found a solution, so post

AW: Problem with gif Indicator after call of wicketAjaxGet

2012-03-19 Thread Reiche, Andreas
Yep, The gif is shown, but not animated. For clarification (think i have to explain a little bit more): My gif is added as a normal Image. I have an AjaxDownloadBehaviour which is subclassed from AbstractAjaxBehaviour. Basicly it's the one shown here

Re: CustomRequestCycle and post parameters

2012-03-19 Thread Sven Hohage
Hi Martin, I've removed the getRequestCycleListeners().add(new AbstractRequestCycleListener() - method in the application class and tried to print some post-parameters in my Homepage.class: System.out.println(RequestCycle.get().getRequest().getPostParameters().getParameterValue: +

Re: AW: Problem with gif Indicator after call of wicketAjaxGet

2012-03-19 Thread Dmitriy V. Ivanov
Hello, Andreas. I've got sometime such behaviour with gif no animated, but it seems to be IE bug - never I see that bug in Opera or FF, only IE (IE8 to be exact). On 19.03.2012 16:01, Reiche, Andreas wrote: Yep, The gif is shown, but not animated. For clarification (think i have to explain

Re: CustomRequestCycle and post parameters

2012-03-19 Thread Martin Grigorov
Hi Sven, This is strange. Can you attach a mini app (a quickstart) that demonstrates the problem ? On Mon, Mar 19, 2012 at 12:16 PM, Sven Hohage sven.hoh...@googlemail.com wrote: Hi Martin, I've removed the getRequestCycleListeners().add(new AbstractRequestCycleListener() - method in the

AW: AW: Problem with gif Indicator after call of wicketAjaxGet

2012-03-19 Thread Reiche, Andreas
Puh, already tested in different Browsers. Strange behaviour. FF 11 - Both animations are not working after click IE 8 - My indicatingImage works. The mentioned gif in the OpenLayersMap didn't work. Chrome 10.0.. (Portable Version) - both animations work. Seems like it's a browser issue.

ModalWindow and Serialization

2012-03-19 Thread vov
Hi All, I have a lot of work with ModalWindows in my project and want to use objects which created on the base page and are changed in the modal windows. I found that ModalWindow was changed in wicket 1.5 and want to ask about solution. Please see short example: // Base Page public class MyPage

Re: LocaleFirstMapper in 1.5 and statefull home page

2012-03-19 Thread Girts Ziemelis
Works great! Thank you very much ! :) On 2012-03-19 10:33, Martin Grigorov wrote: Hi, I just touched CustomHomeMapper in Wicket 6.0 to support what you need. I think this way it is more usable in real life. See

Re: ModalWindow and Serialization

2012-03-19 Thread Martin Grigorov
Hi, On Mon, Mar 19, 2012 at 2:16 PM, vov vov...@mail.ru wrote: Hi All, I have a lot of work with ModalWindows in my project and want to use objects which created on the base page and are changed in the modal windows. I found that ModalWindow was changed in wicket 1.5 and want to ask about

Re: URL in css problem

2012-03-19 Thread Martin Grigorov
Hi, See http://mail-archives.apache.org/mod_mbox/wicket-users/201104.mbox/%3cop.vujch70qn8m...@vfgrl10a-cxyrg.vf-gr.internal.vodafone.com%3E On Thu, Mar 15, 2012 at 9:20 PM, grazia grazia.russolass...@gmail.com wrote: I have a mouseovermenu.css file that includes references to images as

Re: ModalWindow and Serialization

2012-03-19 Thread vov
Thanks for your answer, of course session is not so simple as local variable - but it one of the solution Maybe in next releases of wicket someone will come up with a simpler solution -- View this message in context:

Re: ModalWindow and Serialization

2012-03-19 Thread Martin Grigorov
On Mon, Mar 19, 2012 at 3:03 PM, vov vov...@mail.ru wrote: Thanks for your answer, of course session is not so simple as local variable - but it one of the solution as simple as getSession().setAttribute(key, value) - getSession().getAttribute(key) Maybe in next releases of wicket someone

java.util.Date cannot be cast to java.sql.Date

2012-03-19 Thread Alok Pathak
I have an application in Wicket 1.4, where i am using JPA. I declared an entity (Customer) with property *dob* of type *java.sql.Date*. Now i want to migrate that application in Wicket 1.5, When I submit the registration form of the customer I get the exception: *java.util.Date cannot be cast to

Re: ModalWindow and Serialization

2012-03-19 Thread vov
1) to as simple asgetSession().getAttribute(key) - getSession().getAttribute(key) It is not in the topic but: What it different between your proposal and getApplication().getSessionStore().setAttribute(requst, key, value); Maybe it's stupid question - how to remove object from session if you

Re: ModalWindow and Serialization

2012-03-19 Thread Martin Grigorov
On Mon, Mar 19, 2012 at 3:31 PM, vov vov...@mail.ru wrote: 1) to as simple asgetSession().getAttribute(key)  - getSession().getAttribute(key) It is not in the topic but: What it different between your proposal and getApplication().getSessionStore().setAttribute(requst, key, value); mine

Re: AW: AW: Problem with gif Indicator after call of wicketAjaxGet

2012-03-19 Thread Dmitriy V. Ivanov
Andreas, I have found this link about the same problem: http://stackoverflow.com/questions/780560/animated-gif-in-ie-stopping Maybe you will find this useful for you. On 19.03.2012 18:07, Reiche, Andreas wrote: Puh, already tested in different Browsers. Strange behaviour. FF 11 - Both

Re: ModalWindow and Serialization

2012-03-19 Thread vov
As I understand - the correct way is change usage PageCreator to setContent:) Thank you very much for all your answers!!! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ModalWindow-and-Serialization-tp4484547p4484858.html Sent from the Users forum mailing list

Re: Images, ajax requests and caching

2012-03-19 Thread Bertrand Guay-Paquet
Indeed, but I don't understand how that helps in my case. NonCachingImage takes the behavior of Image one step further by always adding an anticache parameter to images (i.e. for ajax and normal requests). Wicket currently has : Image - Cached for normal requests, never cached for ajax

Same Variable Shared Before/After Form Submit

2012-03-19 Thread eugenebalt
I have a class variable which I need to read after the Form Submit. The problem is that a new class instance is created on each Form Submit, with all new variables. I can't make the var. static because I need it to re-create itself on opening the page from the GUI again. The only sharing should

Re: Images, ajax requests and caching

2012-03-19 Thread Martin Grigorov
Hi, The idea is if you add an image to an AjaxRequestTarget then Wicket assumes this image needs to be re-painted. This is the safer approach because otherwise the user will add it to the target and the image will not change. Then we have to explain the user that he has to do something more

Re: java.util.Date cannot be cast to java.sql.Date

2012-03-19 Thread Martin Grigorov
Hi, Do you say that in 1.4 you didn't do any conversion between the two types and it just worked ? See Component#getConverter(Class) method. On Mon, Mar 19, 2012 at 3:02 PM, Alok Pathak alokpatha...@gmail.com wrote: I have an application in Wicket 1.4, where i am using JPA. I declared an

Re: Same Variable Shared Before/After Form Submit

2012-03-19 Thread eugenebalt
(To clarify why I'm doing this, I have a custom widget which I'm doing model-binding for. I need to replicate the field binding for the model manually, which happens for normal Wicket widgets automatically.) -- View this message in context:

Re: java.util.Date cannot be cast to java.sql.Date

2012-03-19 Thread Bas Gooren
Declare the dob field as: @Temporal(TemporalType.Date) private (java.util.)Date dob; Op 19-3-2012 14:02, schreef Alok Pathak: I have an application in Wicket 1.4, where i am using JPA. I declared an entity (Customer) with property *dob* of type *java.sql.Date*. Now i want to migrate that

Re: java.util.Date cannot be cast to java.sql.Date

2012-03-19 Thread Alok Pathak
That is ok* Declare the dob field as: @Temporal(TemporalType.Date) private (java.util.)Date dob; * But why not this in wicket 1.4. I am pasting my code *Book.java ## import java.sql.Date; ... private Date publishDate; META-INF/persistence.xml

Re: Same Variable Shared Before/After Form Submit

2012-03-19 Thread Andrea Del Bene
Hi, are you really sure you have to replicate field binding by hand? Have you considered to nest your widget model inside form model? Can you give further details about your problem? (To clarify why I'm doing this, I have a custom widget which I'm doing model-binding for. I need to

Re: Same Variable Shared Before/After Form Submit

2012-03-19 Thread eugenebalt
I have a custom HTML object which is an Adobe PDF-Form (FDF). This widget is displayed in the object tag. Adobe Forms have their own fields and buttons. I've succeeded in displaying this widget by subclassing the WebMarkupContainer and setting its properties, as I would for a Flash object, for

Re: Can't get FormTester.submitLink to work (required testfield always missing)

2012-03-19 Thread Fabiosakiyam
Hi, Old post but, any solutions for this, using wicket tester? Thx -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Can-t-get-FormTester-submitLink-to-work-required-testfield-always-missing-tp1888944p4485338.html Sent from the Users forum mailing list archive at

Re: Can't get FormTester.submitLink to work (required testfield always missing)

2012-03-19 Thread Martin Grigorov
Hi, Create a quickstart app with Wicket 1.5 and attach it to Jira. On Mon, Mar 19, 2012 at 6:06 PM, Fabiosakiyam fabiosakiy...@gmail.com wrote: Hi, Old post but, any solutions for this, using wicket tester? Thx -- View this message in context:

Re: Images, ajax requests and caching

2012-03-19 Thread Bertrand Guay-Paquet
Thanks for the explanation Martin. I don't fully understand your second paragraph though. The style/locale/variation can indeed change between ajax requests and I don't dispute that. However, that is also the case between non-ajax requests but these don't get the anticache parameter added to

Re: support for L10N in templates

2012-03-19 Thread infiniter
Hi Martin, for more context what I need is full localization support for js templates, similar to the support provided for components: 1- by allowing to have localized js template files per page. E.g.: my.js, my_es.js, my_fr.js 2- by automatically solving messages in the template (without passing

Re: Same Variable Shared Before/After Form Submit

2012-03-19 Thread Andrea Del Bene
I see. Unfortunately I've never worked with Adobe PDF-Form but I think you need to build some kind of object or converter to bridge the gap between FDF format and java world. Sorry, but I haven't any better idea :( I have a custom HTML object which is an Adobe PDF-Form (FDF). This widget is

Re: Can't get FormTester.submitLink to work (required testfield always missing)

2012-03-19 Thread Fabio Sakiyama
Hi Martin, Thx for answering, Hmm, i dont know the jira's conxtext on wicket, but where i use it, i create a jira when there's actually a problem. I don't think it is a wicket problem (idk, just guessing), probably it's just me not using it correctly. I didn't create a new post cause this post

Re: Why I cannot receive default value in Textfield?

2012-03-19 Thread xiaowang
Hi, thanks for the replay. I checked onsubmit() and the value has not been transferred if I don't delete the default value. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Why-I-cannot-receive-default-value-in-Textfield-tp4483603p4486021.html Sent from the Users

How to disable TinyMCE confirm dialog in Wicket?

2012-03-19 Thread Ilkemdk
The question is like this: http://stackoverflow.com/questions/5705671/how-to-disable-tinymce-confirm-dialog The confirmation is different for different browsers. For FF, it is This page is asking you to confirm that you want to leave - data you have entered may not be saved Leave Page - Stay on

Re: What real life scenario calls for page ID?

2012-03-19 Thread Pointbreak
It's a problem when users bookmark it. Because ...?5 this session is an entirely other page as ...?5 in another session tomorrow. On Mon, Mar 19, 2012, at 11:53, Girts Ziemelis wrote: On 2012-03-19 02:46, Paolo wrote: I support you! I implemented class NoVersionMount thanks to pointbreak

Re: What real life scenario calls for page ID?

2012-03-19 Thread Igor Vaynberg
indeed. we should check that the page pointed to by the id maps back to the mount, and create a new instance based on the mount if it doesnt. jira please. -igor On Mon, Mar 19, 2012 at 3:52 PM, Pointbreak pointbreak+wicketst...@ml1.net wrote: It's a problem when users bookmark it. Because ...?5

Re: How to build a hudson/jenkins like live log viewer?

2012-03-19 Thread kiwi.ryu
Hi, as i mentioned i am new to wicket, can you pls tell me how to call this final code mentioned in this thread? i can't have this in constructor, I need to have this code executed after a file selection. Now how do I add these 2 div's during initialization. I have no idea. please respond ASAP.