Re: Uppercasing inputs

2009-03-05 Thread Ernesto Reinaldo Barreiro
Hi Jeremy, Nice post! I'll think I'll start using that approach myself more frequently. Best, Ernesto On Wed, Mar 4, 2009 at 9:19 PM, Jeremy Thomerson jer...@wickettraining.comwrote: Ernesto's got you on the right track. I'd recommend taking it a step further like described here:

Re: Uppercasing inputs

2009-03-05 Thread Martijn Dashorst
I suggest setting up an ESB with a UppercaseService that is available through EJB/SOAP/JAX-RS and JSON. UppercaseModel could then access that UppercaseService to make the value uppercase. Martijn On Thu, Mar 5, 2009 at 12:50 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: you can create a

Help: AjaxEditableLabel error

2009-03-05 Thread wch2001
Dear all, I am using AjaxEditableLabel, with the following codes, it is ok to show the description, but when i clicked it, error happened. onEdit ... is on the console , so it already call onEdit() method, how to implement the method? how to solve the question? thanks a lot.

Re: Uppercasing inputs

2009-03-05 Thread Dave Schoorl
LOL! That sounds scalable! Martijn Dashorst wrote: I suggest setting up an ESB with a UppercaseService that is available through EJB/SOAP/JAX-RS and JSON. UppercaseModel could then access that UppercaseService to make the value uppercase. Martijn On Thu, Mar 5, 2009 at 12:50 AM, Igor

Dutch government picks Hippo CMS for all public websites

2009-03-05 Thread Martijn Dashorst
This is of huge interest for the Wicket community: HippoCMS is a large supporter and user of Apache open source software in general, and Wicket in particular. HippoCMS uses Wicket in large parts of their infrastructure and I am excited to hear that Wicket will be at the basis for the Dutch

Re: Uppercasing inputs

2009-03-05 Thread jWeekend
Martijn, Is there not already an EasyUpperCaseRUs.com web service you can subscribe to for unlimited conversions at an annual fee of under 30,000USD (or 100USD/conversion) who also have a 5 free conversions trial subscription? Ether way, I would suggest this be done at conversion time so

setRequired() final?

2009-03-05 Thread Kaspar Fischer
I have a form component to select items and would like to add lower and upper constraints on the number of items that need to be set by the user. I added setMin() and setMax() methods and would like to override setRequired() to call setMin(1). However, FormComponent.setRequired is final.

Re: Help: AjaxEditableLabel error

2009-03-05 Thread wch2001
sorry the reason for the error is AjaxEditableLabel descriptionEditableLabel = new AjaxEditableChoiceLabel(description, new PropertyModel(fileObj, description)) it should be AjaxEditableLabel descriptionEditableLabel = new AjaxEditableLabel(description, new PropertyModel(fileObj, description))

Re: a bit of topic but i couldnt resist ....

2009-03-05 Thread Johan Compagner
it has nothing to do with threading or concurent modification Its really a simple test just run this: import java.util.ArrayList; import java.util.Collection; import java.util.Comparator; import java.util.HashSet; import java.util.Iterator; import java.util.TreeSet; public class Test {

Re: Dutch government picks Hippo CMS for all public websites

2009-03-05 Thread francisco treacy
goed nieuws! this is a great step forward for wicket, a fact that reveals its quality and maturity (without having to pass through a JSR, btw). congratulations to the hippo team! francisco On Thu, Mar 5, 2009 at 11:08 AM, jWeekend jweekend_for...@cabouge.com wrote: Martijn, This really is

Re: a bit of topic but i couldnt resist ....

2009-03-05 Thread jWeekend
Johan, I can't have a thorough look at this until later, but the first thing I noticed is that MyObject does not have equals and hashCode defined, yet you are putting instances of it into hashed collections. Even if that isn't causing the main issue you are demonstrating, you may witness

Re: a bit of topic but i couldnt resist ....

2009-03-05 Thread Johan Compagner
Yes i know that that COULD help but not really for all the situations. The thing is that i give the TreeSet a Comparator that defines the order and equal of the objects And i expect that that will be used when i do: treeset.removeAll(Collection) So then it is the same thing as i do: Iterator

Re: [vote] In Wicket 1.4 and onwards, remove widening from the list of choices model in DropDownChoice, changing it from IModelList? extends Foo to IModelListFoo

2009-03-05 Thread James Carman
-1 from me. I prefer the wildcards. It let's the client code be more flexible On Mar 5, 2009 1:20 AM, Martijn Reuvers martijn.reuv...@gmail.com wrote: +1 for me too. On Tue, Mar 3, 2009 at 9:39 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: Though I hav...

Callbacks with abstract method in ModalWindow

2009-03-05 Thread jensiator
Hi. Im having a problem with the modalwindow again. It's probably my code so I'll try to explain what I doing. I have a Panel that I want to reuse. It's a panel with a form where you can update som data. Because it will be used by different pages with Ajax Behavior I want a to add a callback

Re: Expected close tag for wicket:link ??

2009-03-05 Thread Edwin Ansicodd
Hello Thomas, org.apache.wicket.markup.MarkupException: Expected close tag for wicket:link [markup = file:/C:/Programme/Apache Software Foundation/geronimo-2.1.2/repository/default/test/app.war/WEB-INF/classes/com/path/app/web/pages/base/HomePage.html then the html for the page HomePage.html is

Re: Expected close tag for wicket:link ??

2009-03-05 Thread Edwin Ansicodd
I've checked through the html and couldn't find anything unusual. I'm making calls to wicket links in the html: html # Customer /html {how do we add html to a post?} in the java: add(new BookmarkablePageLink(PageLink, CustomerPage.class)); The html for HomePage.html exists between

XML localization

2009-03-05 Thread Mathias P.W Nilsson
I've tried search the forum and googled but no answer so I'll give it a try. A while ago we needed to implement a new language to our wicket site. We changed from .properties to .xml to get this to work. The problem is that some things has stopped working. Consider the following We have a

Re: How can I injecting a Springbean into a custom session.

2009-03-05 Thread CrocodileShoes
Thanks, Igor; this worked perfectly. -- View this message in context: http://www.nabble.com/How-can-I-injecting-a-Springbean-into-a-custom-session.-tp22340379p22350445.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: a bit of topic but i couldnt resist ....

2009-03-05 Thread Dave Schoorl
If I change every MyObject in a String, everything is fine. Perhaps the MyObject is not obeying the necessary contracts? See adjusted code below: import java.util.ArrayList; import java.util.Collection; import java.util.Comparator; import java.util.HashSet; import java.util.Iterator; import

Re: a bit of topic but i couldnt resist ....

2009-03-05 Thread Pointbreak
You are missing the point. With a string it will work, because the elements will actually be the same string objects, so the String.equals and the overridden compare method will give the same results in the example. Johan's point is that while set1.removeAll() is called, it is not the compare

Re: a bit of topic but i couldnt resist ....

2009-03-05 Thread Pointbreak
Sorry, I have to correct myself. According to the API-docs, the compare method in a TreeSet must be consistent with equals. In Johan's example it is not. On Thu, 05 Mar 2009 13:36 +0100, Pointbreak pointbreak+wicketst...@ml1.net wrote: You are missing the point. With a string it will work,

Re: a bit of topic but i couldnt resist ....

2009-03-05 Thread Johan Compagner
yes thats my point The TreeSet doesnt use hash or equals you define that with the comparator what it should do If you look at my last reply where i do define hash and equals then it also doesnt work. Problem is that i did encounter this in an eclipse plugin we use Sometimes it worked

Button onSubmit not called, instead page reloads

2009-03-05 Thread Edwin Ansicodd
Have a page that extends another page that in turn extends org.apache.wicket.markup.html.WebPage. Have added a form that extends org.apache.wicket.markup.html.form.Form to this page. In this form, I have a org.apache.wicket.markup.html.form.Button Button searchButton = new Button(searchButton){

Re: a bit of topic but i couldnt resist ....

2009-03-05 Thread Johan Compagner
that is then the wrong spec that i talk about That is completely stupid With a comparator you just OVERRIDE the equals, thats the whole point! johan On Thu, Mar 5, 2009 at 13:44, Pointbreak pointbreak+wicketst...@ml1.netpointbreak%2bwicketst...@ml1.net wrote: Sorry, I have to correct

Re: a bit of topic but i couldnt resist ....

2009-03-05 Thread Johan Compagner
For example. You want a tree set with a case insensitive comparator.. Because you want to order case insensitive.. That breaks the equals contract. So that note in the doc just makes the TreeSet completely worthless johan On Thu, Mar 5, 2009 at 13:46, Johan Compagner jcompag...@gmail.com

Re: Callbacks with abstract method in ModalWindow

2009-03-05 Thread jensiator
It might have something to do with which Page the AjaxRequestTarget belongs to. The AjaxRequestTarget from the Ajaxbutton in the CallBackPanel belong to ModalContentPage. Not the Page that Uses the ModalWindow. AnyOne have a explanation? Jens -- View this message in context:

Re: a bit of topic but i couldnt resist ....

2009-03-05 Thread Pointbreak
Yes it's stupid. If it was the only stupid thing sun did in the java specs, i might have understood why it is one of the most populair languages around... On Thu, 05 Mar 2009 13:46 +0100, Johan Compagner jcompag...@gmail.com wrote: that is then the wrong spec that i talk about That is

Re: a bit of topic but i couldnt resist ....

2009-03-05 Thread Maarten Bosteels
It is in the javadoc for Comparator Caution should be exercised when using a comparator capable of imposing an ordering inconsistent with equals to order a sorted set (or sorted map). Suppose a sorted set (or sorted map) with an explicit comparator c is used with elements (or keys) drawn from a

Re: Button onSubmit not called, instead page reloads

2009-03-05 Thread Michael Sparer
the page reloading itself is expected behaviour as the form gets submitted, the onSubmit() method should however be called. if you provided us some more code (and the wicket version you're using)? regards, Michael Edwin Ansicodd wrote: Have a page that extends another page that in turn

Re: a bit of topic but i couldnt resist ....

2009-03-05 Thread Johan Compagner
yes i know but the TreeSet does also say that in the javadoc that it is an exception because of the Comparator And they could really just make it a black box. The only things they just need to fix then is the removeAll and retainAll methods Why the removeAll iterates by default over itself and

Re: Button onSubmit not called, instead page reloads

2009-03-05 Thread Edwin Ansicodd
I'm using Wicket 1.3.0 Michael Sparer wrote: the page reloading itself is expected behaviour as the form gets submitted, the onSubmit() method should however be called. if you provided us some more code (and the wicket version you're using)? regards, Michael -- View this message

DropDownChoice with disabled items

2009-03-05 Thread Adriano dos Santos Fernandes
Is there an easy way to do it? Output would be: select optionEnabled item/option option disabled=disabledDisabled item/option ... /select Adriano - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For

Re: a bit of topic but i couldnt resist ....

2009-03-05 Thread Maarten Bosteels
hmm, that is weird indeed On Thu, Mar 5, 2009 at 2:05 PM, Johan Compagner jcompag...@gmail.comwrote: yes i know but the TreeSet does also say that in the javadoc that it is an exception because of the Comparator And they could really just make it a black box. The only things they just need

Re: Button onSubmit not called, instead page reloads

2009-03-05 Thread Michael Sparer
alright, then show us more code :-) ... and I'd recommend upgrading to 1.3.5 anyway ... Edwin Ansicodd wrote: I'm using Wicket 1.3.0 Michael Sparer wrote: the page reloading itself is expected behaviour as the form gets submitted, the onSubmit() method should however be called. if

Re: DropDownChoice with disabled items

2009-03-05 Thread Martin Makundi
Would you have time to implement this? https://issues.apache.org/jira/browse/WICKET-1785 http://mail-archives.apache.org/mod_mbox/wicket-commits/200808.mbox/%3c784112037.1218385184286.javamail.j...@brutus%3e I was planning to do it but it hasn't been an issue for me lately. ** Martin 2009/3/5

Re: Button onSubmit not called, instead page reloads

2009-03-05 Thread Edwin Ansicodd
Some more code: public class SearchPage extends BasePage { private String name = ; public SearchPage(PageParameters parameters) { super(parameters); // TODO Auto-generated constructor stub init(); }

Re: a bit of topic but i couldnt resist ....

2009-03-05 Thread Pointbreak
I actually think the specs in the api doc are just worded very badly. They just mean to say that if the comparator is not consistent with equals, the Set-contract is broken, just because that contract is based on (and worded in terms of) equals. This may lead to odd behavior for other code that

Re: Button onSubmit not called, instead page reloads

2009-03-05 Thread jWeekend
Edwin, Put a feedback panel on your page - you may have validation errors. Regards - Cemal http://jWeekend.com jWeekend Edwin Ansicodd wrote: Have a page that extends another page that in turn extends org.apache.wicket.markup.html.WebPage. Have added a form that extends

Re: a bit of topic but i couldnt resist ....

2009-03-05 Thread Johan Compagner
http://bugs.sun.com/bugdatabase/search.do?process=1category=bugStatus=1%2C2%2C3%2C4%2C5%2C6%2C7%2C8%2C9%2C10%2C11subcategory=type=keyword=TreeSet+removeAll first 1 is from 2001; not a bug thats the spec (i think that is still wrong and if i read the javadoc a bit different for removeAll then i

Re: Button onSubmit not called, instead page reloads

2009-03-05 Thread Edwin Ansicodd
Added a feedback panel to the page, but no additional information appears. jWeekend wrote: Edwin, Put a feedback panel on your page - you may have validation errors. Regards - Cemal http://jWeekend.com jWeekend -- View this message in context:

Re: DropDownChoice with disabled items

2009-03-05 Thread jWeekend
Adriano, Take a look at a mini-presentation I gave at one of our London Wicket Events sometime in last couple of years on Select and SelectOption at http://jweekend.com/dev/ArticlesPage/ . Regards - Cemal http://jWeekend.com jWeekend Adriano dos Santos Fernandes-3 wrote: Is there an

Re: setRequired() final?

2009-03-05 Thread Kaspar Fischer
On 05.03.2009, at 10:49, Kaspar Fischer wrote: I have a form component to select items and would like to add lower and upper constraints on the number of items that need to be set by the user. I added setMin() and setMax() methods and would like to override setRequired() to call setMin(1).

Re: setRequired() final?

2009-03-05 Thread jWeekend
Kaspar, +1 Regards - Cemal http://jWeekend.com jWeekend hbf wrote: On 05.03.2009, at 10:49, Kaspar Fischer wrote: I have a form component to select items and would like to add lower and upper constraints on the number of items that need to be set by the user. I added setMin() and

Re: Button onSubmit not called, instead page reloads

2009-03-05 Thread Edwin Ansicodd
more code continued. . . import org.apache.wicket.markup.html.WebPage; public abstract class BasePage extends WebPage { private CustomFeedbackPanel feedback; public BasePage() { super(); init(); } private void init() {

Re: Button onSubmit not called, instead page reloads

2009-03-05 Thread Edwin Ansicodd
more code continued. . . import org.apache.wicket.markup.html.WebPage; public abstract class BasePage extends WebPage { private CustomFeedbackPanel feedback; public BasePage() { super(); init(); } private void init() {

Re: Uppercasing inputs

2009-03-05 Thread Peter Ertl
Yes, I love that mailing list :-) Am 05.03.2009 um 10:26 schrieb jWeekend: Martijn, Is there not already an EasyUpperCaseRUs.com web service you can subscribe to for unlimited conversions at an annual fee of under 30,000USD (or 100USD/conversion) who also have a 5 free conversions trial

ResourceLink, IE and https

2009-03-05 Thread Luca Provenzani
Hi all This is my situation: i've a ResourceLink based on a JasperReport Resource(DynamicWebResource ) and all is ok until i use http. But if the web server uses https IE can't download the file. i searched in the web but i 've found only an e-mail with similar problem (

Re: ResourceLink, IE and https

2009-03-05 Thread Jonas
Does it work if you set your Resource setCacheable(true)? On Thu, Mar 5, 2009 at 3:21 PM, Luca Provenzani eufor...@gmail.com wrote: Hi all This is my situation:  i've a ResourceLink based on a JasperReport Resource(DynamicWebResource ) and all is ok until i use http. But if the web server

Re: a bit of topic but i couldnt resist ....

2009-03-05 Thread James Carman
When you ask the hashset if it contains that object (checking whether or not to remove) it will say that it doesn't contain it because it's not the same object (you didn't override equals and hashCode). That's the whole issue here. On Mar 5, 2009 8:06 AM, Johan Compagner jcompag...@gmail.com

Re: setRequired() final?

2009-03-05 Thread Kaspar Fischer
On 05.03.2009, at 15:11, jWeekend wrote: Kaspar, +1 :-) Thanks for the feedback. Good to know I'm on the right track. Kaspar - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

Re: a bit of topic but i couldnt resist ....

2009-03-05 Thread Johan Compagner
No that isnt the issue here Because i dont ask in my point of view anything of the hashset! Why would this result in something asking the hashset (asking like that it has to use the hash or equals things on things that are in the TreeSet)? TreeSet.removeAll(HashSet) why? It should just iterate

Re: ResourceLink, IE and https

2009-03-05 Thread Luca Provenzani
in this way it works, but how can i refresh the report when parameter is changed? Until now i change parameter into the onclick of the ResourceLink, but now the resource is cached...and then the result report is ever the same.. thanks Luca 2009/3/5 Jonas barney...@gmail.com Does it work if

Re: ResourceLink, IE and https

2009-03-05 Thread Jonas
If it is the browser that caches the report, you can work around this by adding something random to the url generated by ResourceLink#getUrl, similar to what's done in NonCachingImage. urlFor(IResourceListener.INTERFACE) + wicket:antiCache= + System.currentTimeMillis() Unfortunatly,

Re: XML localization

2009-03-05 Thread Igor Vaynberg
create a quickstart and attach it to a jira issue -igor On Thu, Mar 5, 2009 at 3:52 AM, Mathias P.W Nilsson math...@snyltarna.se wrote: I've tried search the forum and googled but no answer so I'll give it a try. A while ago we needed to implement a new language to our wicket site. We

Re: Button onSubmit not called, instead page reloads

2009-03-05 Thread Michael Sparer
i just tested your code and it worked for me. maybe there's something wrong in the basepage? or in the markup? Edwin Ansicodd wrote: Some more code: public class SearchPage extends BasePage { private String name = ; public SearchPage(PageParameters parameters) {

Re: ResourceLink, IE and https

2009-03-05 Thread Luca Provenzani
sorry i wrote a wrong thing... the result is NOT ever the same, but is the report with the previous parameters. I try to explain better: i've a form that determines the report's prameters. On ResourceLink, i added a onmousedown AjaxFormSubmitBehavior to submit the parameter and calculate other.

Re: a bit of topic but i couldnt resist ....

2009-03-05 Thread Dave Schoorl
I think it is a bug in the Eclipse plugin. Thankfully, it's Eclipse and not Sun, so this bug can be solved very fast ;) Dave Schoorl wrote: I do understand your point. However you are dealing with multiple contracts and not all of them are satisfied. And sometimes contracts are conflicting

Re: ResourceLink, IE and https

2009-03-05 Thread Luca Provenzani
OK it's all ok i just move the code from the onclick to onmousedown AjaxFormSubmitBehavior. and now all work fine! a big thank Jonas! Luca 2009/3/5 Luca Provenzani eufor...@gmail.com sorry i wrote a wrong thing... the result is NOT ever the same, but is the report with the previous

Re: ResourceLink, IE and https

2009-03-05 Thread Jonas
Looking at ResourceLink#onResourceRequested, I see the resource is delivered before #onClick is called, so whatever you're doing in onClick is too late to have any influence on the report generation. On Thu, Mar 5, 2009 at 4:52 PM, Luca Provenzani eufor...@gmail.com wrote: sorry i wrote a wrong

Re: Uppercasing inputs

2009-03-05 Thread Igor Vaynberg
using conversion and validation for this is wrong. converters in wicket are meant to convert from type-string because the web is type-agnostic. a string-string conversion is not a conversion from wicket's point of view. yes, the code is somewhat unclear, we are going to address this in 1.5 where

Re: a bit of topic but i couldnt resist ....

2009-03-05 Thread Pointbreak
Dave, you are missing the point completely. The issue raised by Johan is that if you call TreeSet.removeAll(otherSet), then in some cases the comperator/equals contract of otherSet is used, in other cases the comperator/equals contract of the treeset. Which is a bit strange, and even by Sun

Re: Uppercasing inputs

2009-03-05 Thread jWeekend
Igor, If there was a Java type called UpperCaseString that's what the developer would use as the underlying object and you would not have this objection. What's the difference between a converter translating 2009-04-04 to a java.util.Date or even to a LunchDate which always sets the time part to

Re: a bit of topic but i couldnt resist ....

2009-03-05 Thread James Carman
I agree that it's weird that the behavior of the removeAll depends on the size of the other collection. On Thu, Mar 5, 2009 at 11:11 AM, Pointbreak pointbreak+wicketst...@ml1.net wrote: Dave, you are missing the point completely. The issue raised by Johan is that if you call

Re: Uppercasing inputs

2009-03-05 Thread Marcelo Morales
I've solved this same requirement on the backend (architecture was two-layered). Wicket on the front layer had no relation to the uppercasing. On java.util.String there are two methods: toUpperCase() and toUpperCase(Locale locale). I've used the parametrized one with the user's locale. I am not

Re: Uppercasing inputs

2009-03-05 Thread jWeekend
Igor, anyways, just letting you know the intention behind the converters in wicket. OK - that's exactly the thing that needs to be crystal clear. So the bottom line is that the if in your scenario the user entering lower case strings is acceptable then, in Wicket, the conversion to upper-case

Re: Uppercasing inputs

2009-03-05 Thread Igor Vaynberg
On Thu, Mar 5, 2009 at 8:12 AM, jWeekend jweekend_for...@cabouge.com wrote: Igor, If there was a Java type called UpperCaseString that's what the developer would use as the underlying object and you would not have this objection. What's the difference between a converter translating

Is this a bug in Wicket?

2009-03-05 Thread rjilani
Hi: Gurus, I am trying to render a form and looks like wicket is not rendering the form elements in right sequence, here is my markup that is having the issues tr tdSearch feed by name:/td tdinput type=text

Place Button or Link in w_content_3 of ModalWindow

2009-03-05 Thread HITECH79
Hallo, how can i place components (buttons, links etc) in a ModalWindow which is displayed by div class w_content_3??? Is there an possibility to structure the modalwindow analog the css-classes. Thanks for help... -- View this message in context:

Re: Is this a bug in Wicket?

2009-03-05 Thread rmattler
Don't put the input type=radio / in a td. Should be: tr tdSearch feed by name:/td tdinput type=text wicket:id=feedName//td /tr tr td

Re: a bit of topic but i couldnt resist ....

2009-03-05 Thread Dave Schoorl
Sorry Pointbreak, I did not change the Comparators. They are identical to Johan's example. All I did was to add the equals() and hascode() methods, aligning the equals with the Comparator, as described by the specs. Indeed, maybe I am missing Johan's point. But early in this thread Johan

Re: Uppercasing inputs

2009-03-05 Thread Peter Ertl
So what's the result o this? My dear customer, actually it is not possible to upper-case your input because type conversion doesn't fit, validation is the wrong place,too, and javascript uppercasing is not reliable if javascript is disabled. However we can compute the 100.000.000 digit of

Re: Is this a bug in Wicket?

2009-03-05 Thread rjilani
Mattler thanks for the tip, It did work like a charm, but I am bit confuse about this behavior. Regards, RJ. rmattler wrote: Don't put the input type=radio / in a td. Should be: tr tdSearch feed by name:/td

Re: Button onSubmit not called, instead page reloads

2009-03-05 Thread Edwin Ansicodd
Thank you for checking it out!! I'm going through the html now. Michael Sparer wrote: i just tested your code and it worked for me. maybe there's something wrong in the basepage? or in the markup? -- View this message in context:

Re: Uppercasing inputs

2009-03-05 Thread jWeekend
Dear Software House, We realise that our requirement is very demanding and challenging but we are not used to such honestly; we usually have to pay for several man years of a team of top software experts before they discover that they cannot deliver a solution to our problem. As a sign of our

Re: Button onSubmit not called, instead page reloads

2009-03-05 Thread Edwin Ansicodd
Here's the culprit: wicket:link # Home {above is an html link} Don't know why I used wicket:link -- View this message in context: http://www.nabble.com/Button-onSubmit-not-called%2C-instead-page-reloads-tp22350921p22357126.html Sent from the Wicket - User mailing list

Re: Uppercasing inputs

2009-03-05 Thread Igor Vaynberg
if you want the users to have to enter the uppercase then use a validator, if you want to uppercase for them then override getinput() on the textfield and perform the uppercasing there. -igor On Thu, Mar 5, 2009 at 9:46 AM, Peter Ertl pe...@gmx.org wrote: So what's the result o this? My dear

Re: Uppercasing inputs

2009-03-05 Thread Peter Ertl
Due to the mind-boggling complexity of this issue I wrote an open source library 'upstring.jar' which provides plenty of useful stuff... example classes and methods... - class UpperCaseString - class LowerCaseString - class InitialUpperCaseWithRemainingLowerCaseString - class CamelCaseString

Re: a bit of topic but i couldnt resist ....

2009-03-05 Thread Johan Compagner
But now you are completely breaking My contact My object is an database object MyObject { id name } MyObject is only equals if the id is the same But now i want a TreeSet that orders by name (sometimes case is important,sometimes not) Those things are not the same! I cant make my object

Re: Uppercasing inputs

2009-03-05 Thread Peter Ertl
Could there be any unexpected consequences when just up-casing the string in the model's setter (setObject(...)) ? like this... void setObject(String input) { this.value = (input != null) ? input.toUpperCase() : null; } Am 05.03.2009 um 19:39 schrieb jWeekend: Leszek, Thank

Re: a bit of topic but i couldnt resist ....

2009-03-05 Thread Dave Schoorl
Yes, I understand your point. It is also eloquently formulated in http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4730113. Maybe try to submit a patch via http://openjdk.java.net/ ? Regards, Dave Johan Compagner wrote: But now you are completely breaking My contact My object is an

Re: null lastPage at restoreAfterSerialization

2009-03-05 Thread Meetesh Karia
I know this has been a while, but was this ever resolved? We're seeing the same problem. And, because of this problem, Wicket is never cleaning up old session pagemap files which leads to oodles of files in our tomcat work directory. Thanks, Meetesh On Sat, Nov 22, 2008 at 5:55 AM, Carlos Pita

Re: null lastPage at restoreAfterSerialization

2009-03-05 Thread Matej Knopp
Unfortunately I wasn't able to reproduce this so I don't think this got resolved. -Matej On Thu, Mar 5, 2009 at 8:47 PM, Meetesh Karia meetesh.ka...@gmail.com wrote: I know this has been a while, but was this ever resolved?  We're seeing the same problem.  And, because of this problem, Wicket

Re: null lastPage at restoreAfterSerialization

2009-03-05 Thread Meetesh Karia
I'm not sure I can provide any additional information as we just started looking into it (though we've been seeing it for a while). For the time being, I'm just going to set up a cron job to remove old pagemap files. Perhaps we could make the restore block allow a null lastPage? Btw - what

Re: Is this a bug in Wicket?

2009-03-05 Thread Eduardo Nunes
I understand what Mr. Mattler said but is it correct from the HTML point of view? Anybody knows what the HTML specification says about it? On Thu, Mar 5, 2009 at 2:49 PM, rjilani jil...@lifebiosystems.com wrote: Mattler thanks for the tip, It did work like a charm, but I am bit confuse about

Re: Is this a bug in Wicket?

2009-03-05 Thread Igor Vaynberg
you have two tds in your first tr, but 3 in your next one. also wicket just generates the html, how the browser renders it is not dependent on wicket. -igor On Thu, Mar 5, 2009 at 9:15 AM, rjilani jil...@lifebiosystems.com wrote: Hi: Gurus, I am trying to render a form and looks like wicket

Re: Expected close tag for wicket:link ??

2009-03-05 Thread Erik van Oosten
You will also get this error when you accidentally use a WebComponent instead of a WebMarkupContainer. The first does not allow embedded content and will therefor issue this error. Regards, Erik. Edwin Ansicodd wrote: I find this error in my log file when a wicket page loads. Would

Re: Uppercasing inputs

2009-03-05 Thread Maarten Bosteels
Igor, You made it very clear why a converter isn't appropriate. And also why you shouldn't use a Validator when you don't want to force the user to enter uppercase. But what's your opinion about using an UpperCasingModel ? Downside of overriding getInput is that you'd have to do it on

Appropriate tool for time series

2009-03-05 Thread Jurek Piasek
Hi, I would like to create a table/grid in wicket for presenting multiple time series in one table. I have three time series to present in one table. Each time series is stored as a map with date as key and value as double (MapDate, Double). The table/grid would consist of four columns; the

Re: Appropriate tool for time series

2009-03-05 Thread jWeekend
Jurek, http://wicketstuff.org/grid-examples/data-grid/editable.1 This is quite nice. Regads - Cemal http://jWeekend.com jWeekend Jurek Piasek wrote: Hi, I would like to create a table/grid in wicket for presenting multiple time series in one table. I have three time series to

Re: Is this a bug in Wicket?

2009-03-05 Thread Cristiano Kliemann
Where is the 'conditionChoice' in the markup? On Thu, Mar 5, 2009 at 2:15 PM, rjilani jil...@lifebiosystems.com wrote: Hi: Gurus, I am trying to render a form and looks like wicket is not rendering the form elements in right sequence, here is my markup that is having the issues

Re: AjaxEditableLabel in 1.3.0

2009-03-05 Thread wch2001
Dear all, How can you solve the problem? I used wicket1.3.5, also have the problem: can not save with the error: java.lang.IllegalAccessError: tried to access method org.apache.wicket.Component.onModelChanging()V from class org.apache.wicket.extensions.ajax.markup.html.AjaxEditableLabel$1 any

localization and session expiration

2009-03-05 Thread ElSe
Hello! I have a question: in my application there are several locales and the user can choose locale on the fly. Locale is stored in the session and all is ok while the session exists. But! When the session is expired the application must say user about this and it does - using default locale.

Equal InputValidator

2009-03-05 Thread SrinivasaRaju Ch
Hi, How to use Equal InputValidator in wicket can any one give small example on it. Regards, Srinviasa Raju CH. Get your world in your inbox! Mail, widgets, documents, spreadsheets, organizer and much more with your Sifymail WIYI id! Log on to http://www.sify.com ** DISCLAIMER

Re: Storing user entity in session?

2009-03-05 Thread Tauren Mills
Martijn, I see your point about users clicking fast and causing an exception if I keep a User in the session (transient or otherwise). I too would be curious to see some example code of how you handle the situation. Thanks, Tauren On Mon, Feb 23, 2009 at 11:47 PM, Alexander Lohse

page expiration of main application when using iframe

2009-03-05 Thread freak182
Hello, I have a main application and in a page i put an iframe. the source of that iframe is another wicket application. now when navigate to the application in the iframe and then click other menus in main application the page expired. what could go wrong? there is no stacktrace displayed.

Re: localization and session expiration

2009-03-05 Thread Anton Veretennikov
May be cookie? On Fri, Mar 6, 2009 at 12:20 PM, ElSe els...@mail.ru wrote: Hello! I have a question: in my application there are several locales and the user can choose locale on the fly. Locale is stored in the session and all is ok while the session exists. But! When the session is

Re: Storing user entity in session?

2009-03-05 Thread Martijn Dashorst
I already told that in this thread: move your entity storage to your custom request cycle, and just keep the entity identifier in your custom session. then always access the entity either directly from the request cycle, or through delegates from your session. There's no rocket science here.