Re: Images, ajax requests and caching

2012-03-20 Thread Martin Grigorov
Hi, On Mon, Mar 19, 2012 at 6:18 PM, Bertrand Guay-Paquet ber...@step.polymtl.ca wrote: 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

Re: support for L10N in templates

2012-03-20 Thread Martin Grigorov
Hi, See org.apache.wicket.resource.TextTemplateResourceReference. On Mon, Mar 19, 2012 at 7:09 PM, infiniter infini...@gmail.com wrote: 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

Re: Same Variable Shared Before/After Form Submit

2012-03-20 Thread Martin Grigorov
Hi, class Param extends WebComponent { public Param(String id, String name, IModel value) { super(id); add(new AttributeModifier(name, name)); add(new AttributeModifier(value, value)); } } WebMarkupContainer objectElement = new WebMarkupContainer(obj); objectElement.add(new

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

2012-03-20 Thread Martin Grigorov
Hi, Create a quickstart (Wicket 1.5+) On Mon, Mar 19, 2012 at 7:54 PM, Fabio Sakiyama fabiosakiy...@gmail.com wrote: 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

Re: How to disable TinyMCE confirm dialog in Wicket?

2012-03-20 Thread Martin Grigorov
Hi, There is no default way how to do that in Wicket. See how I did it for ModalWindow component (Wicket 6.0 only) at http://git-wip-us.apache.org/repos/asf/wicket/repo?p=wicket.git;a=commitdiff;h=5a6cec68f3a84b5cdef530e6d69811dd0c77e65e On Tue, Mar 20, 2012 at 12:37 AM, Ilkemdk

Re: What real life scenario calls for page ID?

2012-03-20 Thread Martin Grigorov
On Tue, Mar 20, 2012 at 12:55 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: 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. This is already the case, no need of a ticket for this. If

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

2012-03-20 Thread Martin Grigorov
Hi, Check the source code of these two examples: http://www.wicket-library.com/wicket-examples/ajax/clock http://www.wicket-library.com/wicket-examples/ajax/world-clock For your task you can use MultilineLabel component to show the current content. Just refresh its model with the latest content

Re: What real life scenario calls for page ID?

2012-03-20 Thread Pointbreak
Yes (sort of) except you don't need two users. Just bookmark a page with a version/id e.g. ?5, close the sessions, open a new session, do some interaction so that another version of the page with version/id ?5 exists, and use that bookmark. Stuff like that confuses users even if they don't care

Re: What real life scenario calls for page ID?

2012-03-20 Thread Martin Grigorov
On Tue, Mar 20, 2012 at 10:38 AM, Pointbreak pointbreak+wicketst...@ml1.net wrote: Yes (sort of) except you don't need two users. Just bookmark a page with a version/id e.g. ?5, close the sessions, open a new session, do some interaction so that another version of the page with version/id ?5

Re: What real life scenario calls for page ID?

2012-03-20 Thread Pointbreak
On Tue, Mar 20, 2012, at 10:40, Martin Grigorov wrote: On Tue, Mar 20, 2012 at 10:38 AM, Pointbreak pointbreak+wicketst...@ml1.net wrote: Yes (sort of) except you don't need two users. Just bookmark a page with a version/id e.g. ?5, close the sessions, open a new session, do some

Re: What real life scenario calls for page ID?

2012-03-20 Thread Martin Grigorov
On Tue, Mar 20, 2012 at 10:45 AM, Pointbreak pointbreak+wicketst...@ml1.net wrote: On Tue, Mar 20, 2012, at 10:40, Martin Grigorov wrote: On Tue, Mar 20, 2012 at 10:38 AM, Pointbreak pointbreak+wicketst...@ml1.net wrote: Yes (sort of) except you don't need two users. Just bookmark a page with

Re: What real life scenario calls for page ID?

2012-03-20 Thread Pointbreak
On Tue, Mar 20, 2012, at 10:50, Martin Grigorov wrote: On Tue, Mar 20, 2012 at 10:45 AM, Pointbreak pointbreak+wicketst...@ml1.net wrote: On Tue, Mar 20, 2012, at 10:40, Martin Grigorov wrote: On Tue, Mar 20, 2012 at 10:38 AM, Pointbreak pointbreak+wicketst...@ml1.net wrote: Yes (sort

Re: Images, ajax requests and caching

2012-03-20 Thread Bertrand Guay-Paquet
Ok you're right, it all makes perfect sense now. Thanks again. On 20/03/2012 3:27 AM, Martin Grigorov wrote: Hi, On Mon, Mar 19, 2012 at 6:18 PM, Bertrand Guay-Paquet ber...@step.polymtl.ca wrote: Thanks for the explanation Martin. I don't fully understand your second paragraph though. The

Re: How to disable TinyMCE confirm dialog in Wicket?

2012-03-20 Thread Ilkemdk
Thank you for help. I will test it later~ -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-disable-TinyMCE-confirm-dialog-in-Wicket-tp4486793p4489099.html Sent from the Users forum mailing list archive at Nabble.com.

Re: New guy's question about component refresh.

2012-03-20 Thread Bertrand Guay-Paquet
Hi, You haven't showed the MerchantEditPanel, so first make sure it uses an ajax component to submit the form. Then, in its submit method, you should use the following code : // Closes modal window edit.close(ajaxRequestTarget); // Refreshes the form wicket:id=UpdateForm element and all its

Re: What real life scenario calls for page ID?

2012-03-20 Thread Igor Vaynberg
On Tue, Mar 20, 2012 at 1:07 AM, Martin Grigorov mgrigo...@apache.org wrote: On Tue, Mar 20, 2012 at 12:55 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: 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

Re: What real life scenario calls for page ID?

2012-03-20 Thread Martin Grigorov
On Tue, Mar 20, 2012 at 5:20 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: On Tue, Mar 20, 2012 at 1:07 AM, Martin Grigorov mgrigo...@apache.org wrote: On Tue, Mar 20, 2012 at 12:55 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: indeed. we should check that the page pointed to by the id

Re: What real life scenario calls for page ID?

2012-03-20 Thread Igor Vaynberg
On Tue, Mar 20, 2012 at 8:28 AM, Martin Grigorov mgrigo...@apache.org wrote: On Tue, Mar 20, 2012 at 5:20 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: On Tue, Mar 20, 2012 at 1:07 AM, Martin Grigorov mgrigo...@apache.org wrote: On Tue, Mar 20, 2012 at 12:55 AM, Igor Vaynberg

Re: What real life scenario calls for page ID?

2012-03-20 Thread Martin Grigorov
On Tue, Mar 20, 2012 at 5:42 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: On Tue, Mar 20, 2012 at 8:28 AM, Martin Grigorov mgrigo...@apache.org wrote: On Tue, Mar 20, 2012 at 5:20 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: On Tue, Mar 20, 2012 at 1:07 AM, Martin Grigorov

Re: New guy's question about component refresh.

2012-03-20 Thread Ilkemdk
First, thank you very much for your help. I do submit form with Ajax component. My question is, edit.close(ajaxRequestTarget) in Panel.Java, right? What about ajaxRequestTarget.add(editModalContainer);? I have added two codes in Panel.Java or Page.Java, all not work... In my Panel.Java, the

Re: New guy's question about component refresh.

2012-03-20 Thread Andrea Del Bene
Hi, maybe you are missing the code to update the table with the data which should be the component with wicket:id=UpdateForm. First, thank you very much for your help. I do submit form with Ajax component. My question is, edit.close(ajaxRequestTarget) in Panel.Java, right? What about

Re: New guy's question about component refresh.

2012-03-20 Thread Ilkemdk
Thank you very much for your help. Currently I achieve the refresh effect by WebMarkupContainer. I will test your code later. Thank you very much! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/New-guy-s-question-about-component-refresh-tp4489029p4489407.html Sent

Re: What real life scenario calls for page ID?

2012-03-20 Thread Igor Vaynberg
On Tue, Mar 20, 2012 at 8:52 AM, Martin Grigorov mgrigo...@apache.org wrote: On Tue, Mar 20, 2012 at 5:42 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: On Tue, Mar 20, 2012 at 8:28 AM, Martin Grigorov mgrigo...@apache.org wrote: On Tue, Mar 20, 2012 at 5:20 PM, Igor Vaynberg

Re: Same Variable Shared Before/After Form Submit

2012-03-20 Thread eugenebalt
Thanks, I got it to work. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Same-Variable-Shared-Before-After-Form-Submit-tp4484934p4489817.html Sent from the Users forum mailing list archive at Nabble.com.

How to set HTTP Header Content-Length in IResourceListener?

2012-03-20 Thread eugenebalt
As I wrote in other messages, I have a custom widget that implements IResourceListener. I override onResourceRequested(). When rendering the resource I need to set the ContentLength of the response that sends the binary data to the client. Where is the best place to do it? I have access to

Ajax status message for long requests

2012-03-20 Thread pkc
I would like to set a label and make a spinner visible before submitting a form that takes a long time. There are some posts on various techniques but all I really want is to chain a couple ajax events. 1) User clicks button or changes dropdown value 2) ajax update to a label saying Task XYZ

Re: Wicket 1.5: sessions

2012-03-20 Thread Pierre Goupil
You were absolutely right, Sven! Now, my unit tests pass and I can launch my app. But amongst some minor problems, I have this exception in my start-up logs: java.lang.NoClassDefFoundError: org/apache/wicket/request/Request at java.lang.Class.getDeclaredMethods0(Native Method) at

Re: Wicket 1.5: sessions

2012-03-20 Thread Sven Meier
You're missing the wicket-request jar. Sven On 03/20/2012 08:38 PM, Pierre Goupil wrote: You were absolutely right, Sven! Now, my unit tests pass and I can launch my app. But amongst some minor problems, I have this exception in my start-up logs: java.lang.NoClassDefFoundError:

Re: Wicket 1.5: sessions

2012-03-20 Thread Pierre Goupil
No, I have it as a transitive dependency in my POM, so it is in my classpath. Thanks for the quick assistance! Regards, Pierre On Tue, Mar 20, 2012 at 9:57 PM, Sven Meier s...@meiers.net wrote: You're missing the wicket-request jar. Sven On 03/20/2012 08:38 PM, Pierre Goupil wrote:

Re: support for L10N in templates

2012-03-20 Thread infiniter
I can't use that TextTemplateResourceReference 'cause the style and locale are set to null by default in the constructors and the filename passed to PackagedTextTemplate is exactly the one passed in the constructor. See: public TextTemplateResourceReference(final Class? scope, final String