Re: Inmethod datagrid and Twitter bootstrap

2012-03-18 Thread Martin Grigorov
Hi, Few years ago my company needed to customize InMethod Grid to look like our application and our web designer provided a custom theme for that. It was quite easy. Twitter bootstrap requires from you to add some CSS classes in the produced HTML so you may need to add AttributeModifier here and

Re: I don't want url page count parameter: localhost:8080/context/?0

2012-03-18 Thread Martin Grigorov
On Sun, Mar 18, 2012 at 4:47 AM, Dan Retzlaff dretzl...@gmail.com wrote: Paolo, If you add stateful components or behaviors to your page, Wicket introduces the page version into the URL so that subsequent requests can be routed to the correct component and behavior instances. To get rid of

Re: I don't want url page count parameter: localhost:8080/context/?0

2012-03-18 Thread Pointbreak
Create a class NoVersionMount: /** * Provides a mount strategy that drops the version number from * stateful page urls. */ public class NoVersionMount extends MountedMapper { public NoVersionMount(String path, Class? extends IRequestablePage pageClass) { super(path,

Wicket + JPA lazy-loading

2012-03-18 Thread Bálint Kriván
Hey! It seems that when wicket is trying to serialize the persistent objects (probably to session) the lazy loading kicks in and it retrieves the whole graph. Not sure if wicket is using the default java serialization or a special one, but is there anybody else who is/were experiencing the same?

Re: Wicket 1.5 error : cannot find component id

2012-03-18 Thread kshitiz
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* -- View this message in context:

Re: Wicket + JPA lazy-loading

2012-03-18 Thread James Carman
Use a LoadableDetachableModel. You shouldn't be serializing persistent objects (unless of course you're in the middle of editing them or something). On Sun, Mar 18, 2012 at 8:36 AM, Bálint Kriván bal...@krivan.hu wrote: Hey! It seems that when wicket is trying to serialize the persistent

Re: Wicket + JPA lazy-loading

2012-03-18 Thread Bálint Kriván
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 that ID. If I would switch to this probably it would

Re: Wicket + JPA lazy-loading

2012-03-18 Thread James Carman
Try with an ldm I'd say. On Mar 18, 2012 9:04 AM, Bálint Kriván bal...@krivan.hu wrote: 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

LocaleFirstMapper in 1.5 and statefull home page

2012-03-18 Thread Girts Ziemelis
I am doing the conversion from 1.4 to 1.5.5 and at the same time trying to start using LocaleFirstMapper and CustomHomeMapper from wicket examples. Everything works nicely except, I have a statefull home page and seems CustomHomeMapper does not handle this case. Page renders fine, but Ajax

Wicket 1.5: sessions

2012-03-18 Thread Pierre Goupil
Good evening, I'm currently in the process of migrating my app from Wicket 1.4 to Wicket 1.5. I've read the migration guide and everything seems to go fine, except for session management. Here's my code: public class MySession extends WebSession { public static MySession get() {

Re: Wicket 1.5: sessions

2012-03-18 Thread Jeremy Thomerson
On Sun, Mar 18, 2012 at 5:08 PM, Pierre Goupil goupilpie...@gmail.comwrote: Good evening, I'm currently in the process of migrating my app from Wicket 1.4 to Wicket 1.5. I've read the migration guide and everything seems to go fine, except for session management. Here's my code: public

Re: Wicket 1.5: sessions

2012-03-18 Thread Pierre Goupil
Yes, absolutely: public Session newSession(final Request request, final Response response) { return new MySession(request); } On Sun, Mar 18, 2012 at 10:32 PM, Jeremy Thomerson jer...@wickettraining.com wrote: On Sun, Mar 18, 2012 at 5:08 PM, Pierre Goupil

Re: Wicket 1.5: sessions

2012-03-18 Thread Jeremy Thomerson
Put a breakpoint in the WebSession constructor and see where it's getting called. Or, perhaps you won't see anything there if this is happening because you are in a serialized WebSession. You can test that by clearing all cookies, etc, and starting a new session. -- Jeremy Thomerson

Re: Wicket 1.5: sessions

2012-03-18 Thread Pierre Goupil
Actually, this error occurs in my unit tests. I can't launch the app at this very moment, because some more things need to be managed during the migration. But this simple test should work as it all compiles. As expected, the constructor from WebSession is called by

converter

2012-03-18 Thread neo
Hello I am new in wicket , i have number in textfield in format -x(five digits) but if i input number like 22 , 222 it can by convert with padding zero like 00022,00222 how can do it?thank you very much -- View this message in context:

Re: Wicket 1.5: sessions

2012-03-18 Thread Sven Meier
Perhaps a classloader issue? Check whether you have two Wicket versions in your project. Sven On 03/18/2012 10:56 PM, Pierre Goupil wrote: Actually, this error occurs in my unit tests. I can't launch the app at this very moment, because some more things need to be managed during the

Re: support for L10N in templates

2012-03-18 Thread infiniter
Oh no. What I need is to be able to support something like the following, but for TEMPLATES, 'cause I want to localize them: public void renderHead(IHeaderResponse response) { response.renderJavascriptReference(new ResourceReference( MyPage.class, my.js, getLocale(),

What real life scenario calls for page ID?

2012-03-18 Thread Chris Colman
I've been thinking about the new 1.5 page ID/versioning feature (which we disabled as soon as we discovered it) and wondering if there is actually a real world scenario for stateful pages that actually requires this functionality. I understand the purpose is so that the browser's 'Back' function

RE: Inmethod datagrid and Twitter bootstrap

2012-03-18 Thread Chris Colman
I'm thinking of making the inmethod datagrid look something like this: http://datatables.net/media/blog/bootstrap/ Ooooh! Yea please, can I have one of them ;) That Twitter Bootstrap table looks very Web 2012: nice clear, uncluttered, easy to read.

Re: What real life scenario calls for page ID?

2012-03-18 Thread Paolo
Alle lunedì 19 marzo 2012, Chris Colman ha scritto: I've been thinking about the new 1.5 page ID/versioning feature (which we disabled as soon as we discovered it) and wondering if there is actually a real world scenario for stateful pages that actually requires this functionality. I

Why I cannot receive default value in Textfield?

2012-03-18 Thread xiaowang
Hi, Now I am using: html - input type=text wicket:id=ContactPerson1 input type=submit wicket:id=submit value=Save Java - public class MerchantEditPanel extends Panel { private String ContactPerson1 = some text; public MerchantEditPanel{ TextFieldString ContactPerson1 = new

Re: support for L10N in templates

2012-03-18 Thread Bertrand Guay-Paquet
Yeah I threw that out there in case it also applied to templates. I don't know anything about them in Wicket... On 18/03/2012 8:19 PM, infiniter wrote: Oh no. What I need is to be able to support something like the following, but for TEMPLATES, 'cause I want to localize them: public void

RE: What real life scenario calls for page ID?

2012-03-18 Thread Chris Colman
-Original Message- From: Paolo [mailto:irresistible...@gmail.com] Thoughts? 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

Re: What real life scenario calls for page ID?

2012-03-18 Thread Igor Vaynberg
On Sun, Mar 18, 2012 at 5:27 PM, Chris Colman chr...@stepaheadsoftware.com wrote: I've been thinking about the new 1.5 page ID/versioning feature (which we disabled as soon as we discovered it) and wondering if there is actually a real world scenario for stateful pages that actually requires

Images, ajax requests and caching

2012-03-18 Thread Bertrand Guay-Paquet
Hi, I have image resources which fetch the proper thumbnail picture stored in a DB based on the image's file name. I used the file name instead of parameters to make sure client-side caching would work. By chance, I just discovered that the images are always reloaded on ajax requests. This

Re: Why I cannot receive default value in Textfield?

2012-03-18 Thread James Carman
Check the value of the ContactPerson1 field in your onSubmit() method. It should contain what gets submitted. The merchant object is unrelated to your text field. On Mar 18, 2012 9:38 PM, xiaowang jy00807...@gmail.com wrote: Hi, Now I am using: html - input type=text

RE: AjaxFormComponentUpdatingBehavior after validation problem

2012-03-18 Thread Evan Sable
Hello, I think the problem is just that you're calling setValues on your genericModelObject, which is set as the compoundpropertymodel for your form, but you're not adding the form back to the ajax response - with the AjaxRequestTarget, you're only adding the component dropDownId to get

Re: Images, ajax requests and caching

2012-03-18 Thread Igor Vaynberg
we have a noncachingimage subclass... :) -igor On Sun, Mar 18, 2012 at 9:33 PM, Bertrand Guay-Paquet ber...@step.polymtl.ca wrote: Hi, I have image resources which fetch the proper thumbnail picture stored in a DB based on the image's file name. I used the file name instead of parameters to