Re: Changing/Accessing name of ListItem in ListView

2011-01-15 Thread Igor Vaynberg
why do you need to access the listitem? listitem.getmodelobject() will give you the item in the list the item is pointed to. -igor On Fri, Jan 14, 2011 at 11:07 PM, Arjun Dhar dhar...@yahoo.com wrote: Hi,  when using a ListView, the name uses the following format to Render. loop

Question about stateless forms

2011-01-15 Thread Major Péter
Hi, I'm experiencing, that if you have a stateless form on a page, and the user session expires, then Wicket reinstantiates the given page with the forms POST parameters as PageParameters. Is this the correct behaviour? Am I the only one suffering from this? If the user is at

Re: Changing/Accessing name of ListItem in ListView

2011-01-15 Thread Arjun Dhar
I was hoping on the lines, where you do get(component id); Wicket returns the Component. So if there was a way to customize the nomenclature of what the names of the fields are in a loop then it would be easy to refer to components via name directly. ... I can't do [IN CONCEPT]

TextField Double type introduces commas

2011-01-15 Thread Arjun Dhar
Hi, maybe this is really basic but I cant find it documented. I force a TextFieldDouble. When it renders, it introducrs commas (,) like 45000 = 45,000 I wanna get rid of the commas! P.S Sorry if this really a RTFM question! thanks -- View this message in context:

Help with ClientSideImageMap needed

2011-01-15 Thread Christoph Glass
Hello, could please any of you provide a working example with ClientSideImageMap? I dont get it to work, there are no error messages, the page leaves blank. My code example: Java: add(getPlzMap(plzmap); private ClientSideImageMap getPlzMap(String id) { ClientSideImageMap csim=new

Re: TextField Double type introduces commas

2011-01-15 Thread Bas Gooren
Wicket uses converters to convert form fields from object - string and back from string - object. This is done in a locale-aware fashion (so local users can use their preferred decimal separator etc). Have a look at class DoubleConverter in the wicket sources (which is used in your case,

Re: Help with ClientSideImageMap needed

2011-01-15 Thread Martin Grigorov
Check in wicket-examples.jar : org.apache.wicket.examples.linkomatic.Home.Home() On Sat, Jan 15, 2011 at 2:03 PM, Christoph Glass mail.kaffeeser...@googlemail.com wrote: Hello, could please any of you provide a working example with ClientSideImageMap? I dont get it to work, there are no

Tracing attach/detach and serialization activity

2011-01-15 Thread Alexandros Karypidis
Hi, I'd like to be able to observe Wicket's (de)serialization activity and model attachment/detachment at runtime. Is there some setting (e.g. specifying a DEBUG or TRACE log level) that would cause Wicket to log the relevant actions? I am using Wicket 1.4.15. Thank you.

Re: Wicket web site down with a few hits

2011-01-15 Thread nino martinez wael
Did you make sure that when using c3p0 it actually was enabled and that you used the validation query? and set this property: http://stackoverflow.com/questions/1652676/hibernate-c3p0-broken-pipe property

Re: Can't get a SortableDataProvider class to accept DI of service class

2011-01-15 Thread lchalupa
Thanks. I got it working. I used the InjectorHolder. Lee -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Can-t-get-a-SortableDataProvider-class-to-accept-DI-of-service-class-tp3218602p3219293.html Sent from the Users forum mailing list archive at Nabble.com.

Skip session creation when AjaxLink is disabled

2011-01-15 Thread J
I have a page that has two states: -user logged in (session creation allowed) -no user logged in (no session creation allowed, otherwise bots will crash the server by exploding session creation) When a logged-in user requests the page, the page should be render with AjaxLinks visible (which

Re: TextField Double type introduces commas

2011-01-15 Thread Arjun Dhar
So the getConverter() is deprecated and there is no setter. WHich confused me a bit. Overriding the converter seemed like an overkill than setting a custom one on the Field, so was not sure. Thanks to your post, I'm clear on what to do.

Browser loading absolute image paths

2011-01-15 Thread Henrique Boregio
Hi, I am trying to load a picture from a user folder, so I am storing the picture's path and pasting it into the src attribute of the image tag. As an example, I have the picture named profile.jpg located at F:\workspace\project\pictures\2, so the corresponding HTML is: img wicket:id=image

Re: Browser loading absolute image paths

2011-01-15 Thread Emmanouil Batsis
Quoting Henrique Boregio hbore...@gmail.com: img wicket:id=image src=F:\workspace\project\pictures\2\profile.jpg/ That will never work. You *might* have a chance using the file: URI scheme like img wicket:id=image src=file:///F:/workspace/project/pictures/2/profile.jpg/ but,

Should Logger classes be transient?

2011-01-15 Thread Alexandros Karypidis
Hello, I'm using SLF4J and was wondering whether pages should declare: private transient final Logger log = LoggerFactory .getLogger(SomePage.class); as members. I guess that accessing a page that was saved and then re-loaded would result in breaking logging, as the variable

Re: Should Logger classes be transient?

2011-01-15 Thread James Carman
try static On Sat, Jan 15, 2011 at 3:59 PM, Alexandros Karypidis akary...@yahoo.grwrote: Hello, I'm using SLF4J and was wondering whether pages should declare: private transient final Logger log = LoggerFactory .getLogger(SomePage.class); as members. I guess that accessing

Re: Question about stateless forms

2011-01-15 Thread Igor Vaynberg
my first gut feeling is that if the form is stateless it should use the page's url as its action. this way page parameters are preserved and we can properly parse them out of the query string without mixing them with form parameters -igor 2011/1/15 Major Péter majorpe...@sch.bme.hu: Hi, I'm

Re: Should Logger classes be transient?

2011-01-15 Thread Emmanouil Batsis
Quoting Alexandros Karypidis akary...@yahoo.gr: I'm using SLF4J and was wondering whether pages should declare: private transient final Logger log = LoggerFactory .getLogger(SomePage.class); as members. I guess that accessing a page that was saved and then re-loaded would

Re: Tracing attach/detach and serialization activity

2011-01-15 Thread Jeremy Thomerson
On Sat, Jan 15, 2011 at 8:59 AM, Alexandros Karypidis akary...@yahoo.grwrote: Hi, I'd like to be able to observe Wicket's (de)serialization activity and model attachment/detachment at runtime. Is there some setting (e.g. specifying a DEBUG or TRACE log level) that would cause Wicket to log

Re: Changing/Accessing name of ListItem in ListView

2011-01-15 Thread Jeremy Thomerson
On Sat, Jan 15, 2011 at 6:36 AM, Arjun Dhar dhar...@yahoo.com wrote: I was hoping on the lines, where you do get(component id); Wicket returns the Component. So if there was a way to customize the nomenclature of what the names of the fields are in a loop then it would be easy to refer to

Re: Changing/Accessing name of ListItem in ListView

2011-01-15 Thread Jeremy Thomerson
On Sat, Jan 15, 2011 at 9:34 PM, Jeremy Thomerson jer...@wickettraining.com wrote: On Sat, Jan 15, 2011 at 6:36 AM, Arjun Dhar dhar...@yahoo.com wrote: I was hoping on the lines, where you do get(component id); Wicket returns the Component. So if there was a way to customize the

Re: Changing/Accessing name of ListItem in ListView

2011-01-15 Thread Arjun Dhar
Your bet was right, it was onSubmit()! I understand better now. On a funny note; I can imagine Igor exasperated ...This guys on a different tangent... :) Don't worry - it's probably the most common mistake Wicket newbs make! It's definitely the thing I stress understanding the most in my