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

2009-03-04 Thread Johan Compagner
they are not the same (and yes talking about java) And yes removeAll() and remove() are just working and implemented More stranger thing is Set set1 = aSetWithSize10; Set set1 = aSetWithSize10; // different instance, same kind of set same values Collection col1 = aCollectionWithSize5;

Re: Wicket - Session Management

2009-03-04 Thread subbu_tce
Jeremy, I meant to ask about both the points that you have mentioned in your reply message: (i.e) Two wicket apps in two JVMs. How do we accomplish the following? - transfer state from first app to second app when clicking a link in the first app - access state in the first app from second app

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

2009-03-04 Thread Dave Schoorl
If col1 and col2 both have the (equally) same 5 objects in common with set 1 and 2, I would expect set1.equals(set2) to return true, otherwise, I would expect them only to be of the same size. I think it is not so much about interfaces, but more about contracts. Not everything about a

Re: Wicket Bench error under Eclipse

2009-03-04 Thread Piller Sébastien
Yes, it did the trick ;) I desinstalled the SoapUI plugin, and the error has gone. It seems that wicket bench and soapui are not compatible (but I can live without the soapui plugin) Thank you ;) - To unsubscribe, e-mail:

What does Page Expired mean?

2009-03-04 Thread Edwin Ansicodd
I've extended org.apache.wicket.markup.html.WebPage and created a page that has a submit button to do a search. After clicking the button, I get directed to a page with following message: Page Expired The page you requested has expired. Return to home page No error messages appear. What

London Wicket Event - 1st of April @ Google

2009-03-04 Thread jWeekend
Our next London Wicket Event will be on the evening of Wednesday, April 1st, at Google. Martijn Dashorst will be flyiing over from Holland for the evening; as well as giving us a couple of interesting presentations, he will be signing your copies of Wicket In Action. Manning are kindly sending

Re: VOTE: Remove ? extends from constructor of DropDownChoice

2009-03-04 Thread Johannes Schneider
On Tue, 2009-03-03 at 16:02 -0500, Brill Pappin wrote: I'd hate to be prevented from doing so simply because someone wanted to lock down an API that didn't really need locking down. You are wrong. *Widening* a collection is the exact opposite of locking down. If you want to have some fancy

Re: VOTE: Remove ? extends from constructor of DropDownChoice

2009-03-04 Thread Johannes Schneider
On Mon, 2009-03-02 at 15:11 -0500, Brill Pappin wrote: Ok, as suggested, here is the thread, and the first vote. +1 for making the generic definition the same for all list type components. Yes, you are right. All those list type components should have the same generic definition. But: Don't

Re: What does Page Expired mean?

2009-03-04 Thread Edwin Ansicodd
I see in the Page maps documentation: http://cwiki.apache.org/WICKET/page-maps.html that Page Exoured will be shown if the id and version for a page doesn't exist. But I can't see how the id and version of the page would not exist anymore. -- View this message in context:

How (not) to: IModel and Collections (and generics)

2009-03-04 Thread Johannes Schneider
Hi, the concept of IModel seems to be very obvious. It is simply some kind of reference and offers a getter and a setter. When used with ordinary object, everything works fine. An IModel that contains a String can easily be mapped to a TextField. The text field calls getObject to show the

openstreetmap in openlayers

2009-03-04 Thread morbo
This is my first message to this mailinglist, so first of all: Hello everyone! I want to use wicket together with openlayers in my webapp. Therefore I looked at the openlayers contrib project on wicketstuff, which seems pretty cool. I managed to embed a wms and gmap, but I need to use

Re: What does Page Expired mean?

2009-03-04 Thread Dave Schoorl
This normally happens when your HttpSession expires. I'm not sure what could be the reason in your case. Edwin Ansicodd wrote: I see in the Page maps documentation: http://cwiki.apache.org/WICKET/page-maps.html that Page Exoured will be shown if the id and version for a page doesn't exist.

Re: MixedParamUrlCodingStrategy and too many path parts

2009-03-04 Thread Erik van Oosten
You'll get this warning when something/someone made the url longer then was expected by the strategy. If you don't want the standard behavior just copy/paste the code and adjust it to your needs. Still, logging the URL would be a nice addition to the default implementation. Regards,

Re: Question re: style and variation

2009-03-04 Thread Brill Pappin
I like the brackets for clarity, but wouldn't that cause some filesystems to have trouble with the files? - Brill On 3-Mar-09, at 5:57 PM, Ned Collyer wrote: IMO, the brackets approach works because it clearly separates each of the sections. It is a bit ugly, but its still simple.

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

2009-03-04 Thread Brill Pappin
if xxx is a mutable Set then it should work. However you have to be careful about how you remove elements from the collection you working with, depending on your you do it, you'll get an exception about concurrent modification. - Brill On 3-Mar-09, at 5:44 PM, Johan Compagner wrote: Is

Re: Please Please Portlet

2009-03-04 Thread Francisco Diaz Trepat - gmail
Thanks for the tip. I will look it up. I didn't include all the parameter but applicationClassName is there. Thanks again, f(t) On Tue, Mar 3, 2009 at 7:36 PM, Niels van Kampenhout n.vankampenh...@onehippo.com wrote: On Tue, Mar 3, 2009 at 7:43 AM, Francisco Diaz Trepat - gmail

Re: Please Please Portlet

2009-03-04 Thread Wilhelmsen Tor Iver
(using Netbeans, wicket 1.4rc2, glassfish v3, portlet-container from open-portal project) I thought the portlet-container in effect was dead since the Sun Portal is dead? They have ditched that in favor of a solution based on Liferay 5.2 called Web Space (codename WebSynergy during

Re: Question re: style and variation

2009-03-04 Thread Brill Pappin
I agree that it should stick to convention for the locale and it would be nice if the rest of the format was consistent. I wave to wonder though, if we really need a new format for the Wicket variation. Its all about search order, and there is no need to alternative separator chars our

Re: Question re: style and variation

2009-03-04 Thread Brill Pappin
I think we have to be very careful about using special chars in the file name. Depending on the operating system you could have a real problem even doing this at all. I have not done any research into what you can use in a file name, but this file has to be usable on just about anything.

Re: VOTE: Remove ? extends from constructor of DropDownChoice

2009-03-04 Thread Brill Pappin
I actually wasn't saying they were the same. What I said (meant) was that: a) don't lock down b) I prefer the explicit form rather than the Any of type form. i.e. ListT rather than List? extends T. - Brill On 4-Mar-09, at 6:26 AM, Johannes Schneider wrote: On Tue, 2009-03-03 at 16:02

Re: What does Page Expired mean?

2009-03-04 Thread Edwin Ansicodd
Can you suggest a way to debug this? I am not showing anything in the logs or in the debugger. Dave Schoorl wrote: This normally happens when your HttpSession expires. I'm not sure what could be the reason in your case. Edwin Ansicodd wrote: I see in the Page maps documentation:

Re: What does Page Expired mean?

2009-03-04 Thread Brill Pappin
They will not exist if the session has expired or if the page cache has become inconsistent somehow. Usually you'll get this is you wait on a page for a while, or are in dev mode and change the code a lot. - Brill On 4-Mar-09, at 7:14 AM, Edwin Ansicodd wrote: I see in the Page maps

Re: What does Page Expired mean?

2009-03-04 Thread Martin Grigorov
In my experience the most often case is when I have a non-serializable field in a page with Ajax components. On the first Ajax interaction the serialization fails (SerializableChecker logs its detailed exception) and on the next Ajax request Wicket cannot find a page with the latest version and

Re: What does Page Expired mean?

2009-03-04 Thread Brill Pappin
It's not an error or something to debug, which is why you are not seeing anything in the log. Session is a basic webapp (not just java webapp) concept, I recommend reading up on it in the docs for your application server. - Brill On 4-Mar-09, at 10:05 AM, Edwin Ansicodd wrote: Can you

Uppercasing inputs

2009-03-04 Thread Leszek Gawron
Hello, one of my customers has this weird requirement that all data should be input/shown uppercase. I can easily add input { text-transform: uppercase; } to my css rules, but this does not change the fact that data written into database will still be case sensitive. How can I create a

Re: Uppercasing inputs

2009-03-04 Thread Adriano dos Santos Fernandes
public class UpperCaseBehavior extends AttributeAppender { private static final long serialVersionUID = 1L; public UpperCaseBehavior() { super(style, new ModelString(text-transform: uppercase), ;); } @Override public void bind(Component component) {

Re: Uppercasing inputs

2009-03-04 Thread Ernesto Reinaldo Barreiro
Maybe: class MyUpperCaseModel extends WhatEverModelString { public void setObject(String value) { if(value != null) { super.setValue(value.toUpperCase()); } else { super.setValue(value); } } } and use MyUpperCaseModel instead of

Re: bad practice in sharing models between wicket form and hibernate?

2009-03-04 Thread Dave Schoorl
In my current project I do just that and it works fine. I must add that it is a highly interactive application, so I work with long conversations (managed hibernate sessions), where the transaction is committed only after a number of request/response cycles after the user clicks on 'save'.

Re: VOTE: Remove ? extends from constructor of DropDownChoice

2009-03-04 Thread Johannes Schneider
On Wed, 2009-03-04 at 10:04 -0500, Brill Pappin wrote: I actually wasn't saying they were the same. What I said (meant) was that: a) don't lock down Locking down means *removing* the wildcard. Adding the wildcard *widens* the collection. To be clear: Wildcard -- it fits for everybody No

Re: How (not) to: IModel and Collections (and generics)

2009-03-04 Thread Scott Swank
Does AbstractReadOnlyModel accomplish what you're talking about? Scott On Wed, Mar 4, 2009 at 4:50 AM, Johannes Schneider maili...@cedarsoft.com wrote: Hi, the concept of IModel seems to be very obvious. It is simply some kind of reference and offers a getter and a setter. When used with

RE: Wicket Quickstart Installation Guide for Beginners

2009-03-04 Thread Dane Laverty
Alright, I just created a JIRA account. I've browsed to the Wicket project, but I don't see any way to create a new issue. At the top of the screen I have HOME, BROWSE PROJECT and FIND ISSUES, and under that I see Open Issues, Road Map, Change Log, Popular Issues, Subversion Commits, Releases,

Re: VOTE: Remove ? extends from constructor of DropDownChoice

2009-03-04 Thread Olivier Michallat
Hi everyone (I'm new to the list), Johannes, you are right about lists: If the constructor accepts the widened type, you can add all those lists... List? extends Number n = new ListNumber; List? extends Number n = new ListInteger; List? extends Number n = new ListDouble; But in our case

Re: VOTE: Remove ? extends from constructor of DropDownChoice

2009-03-04 Thread Scott Swank
I agree. It is very sensible to be able to provide a ModelListInteger as the choices for a dropdown that has ModelNumber. Restricting the choices to ModelListT only eliminates (sensible) options for the client code. Scott On Wed, Mar 4, 2009 at 8:08 AM, Johannes Schneider

Re: Question re: style and variation

2009-03-04 Thread Igor Vaynberg
the problem is when you have MyFile_foo_en_CA.html is foo the style or the variation? you can have one without the other, or both. -igor On Wed, Mar 4, 2009 at 6:58 AM, Brill Pappin br...@pappin.ca wrote: I agree that it should stick to convention for the locale and it would be nice if the

Re: Markup inheritance and composition mix

2009-03-04 Thread Igor Vaynberg
in markup for B you dont have a tag with wicket:id=C so where should the markup for panel C be rendered? -igor On Tue, Mar 3, 2009 at 4:33 PM, Dragut Razvan razvan.softw...@gmail.com wrote: Hi Igor, First, thanks answering. I have posted the demo code that throws this exception in a

Re: Please Please Portlet

2009-03-04 Thread Igor Vaynberg
afaik 1.4 snapshots should have native portlet 2.0 support. -igor On Wed, Mar 4, 2009 at 6:58 AM, Wilhelmsen Tor Iver toriv...@arrive.no wrote: (using Netbeans, wicket 1.4rc2, glassfish v3, portlet-container from open-portal project) I thought the portlet-container in effect was dead since

Re: How (not) to: IModel and Collections (and generics)

2009-03-04 Thread Igor Vaynberg
components that deal with collections in wicket always reuse the same instance of collection is one was provided where it makes sense. setobject is still called on the model, but is called with the same instance of collection. this is necessary so that if you have a model that translates a

Re: What does Page Expired mean?

2009-03-04 Thread Edwin Ansicodd
Thank you for all the comments! The Page Expired seemed to result because I had in my WebApplication: mountBookmarkablePage(homepage, InitialPage.class); But InitialPage extended a different base page as the search page I was using. I changed InitialPage to use the same base page

Re: Markup inheritance and composition mix

2009-03-04 Thread Dragut Razvan
Hi Igor, I was hoping I can create the hierarchy in the Index.html page not in the panel itself, which I might want to reuse in other pages. The reason I wanted to do it like that is that I want to reuse the B panel as a panel which always contains a feedback panel along with _random_

Expected close tag for wicket:link ??

2009-03-04 Thread Edwin Ansicodd
I find this error in my log file when a wicket page loads. Would anyone know what causes this error? ERROR org.apache.wicket.RequestCycle - unexpected exception when handling another exception: Expected close tag for wicket:link -- View this message in context:

Static generation of pages from Wicket

2009-03-04 Thread Vinayak Borkar
Hello, What is the recommended technique for generation of pages (usually served by wicket in a web server), statically so that they can be served by say, a CDN. I want to use Wicket since its great for iterative development. However, all my pages are stateless and hence do not need to

Re: Static generation of pages from Wicket

2009-03-04 Thread Igor Vaynberg
you can try wickettester -igor On Wed, Mar 4, 2009 at 9:54 AM, Vinayak Borkar vbo...@yahoo.com wrote: Hello, What is the recommended technique for generation of pages (usually served by wicket in a web server), statically so that they can be served by say, a CDN. I want to use Wicket

Re: Uppercasing inputs

2009-03-04 Thread jWeekend
Leszek, ... or, probably the most Wicket-way of doing this is to make a TextField subclass that overrides getConverter to return your special IConverter implementation which performs the capitalisation in its convertToObject. Regards - Cemal http://jWeekend.com jWeekend Leszek Gawron-2

Re: Wicket Quickstart Installation Guide for Beginners

2009-03-04 Thread Maarten Bosteels
I think you need to login first. Here is wher you can create a JIRA account (can be used for all Apache projects that use JIRA) : https://issues.apache.org/jira/secure/Signup!default.jspa Maarten On Wed, Mar 4, 2009 at 5:27 PM, Dane Laverty danelave...@chemeketa.eduwrote: Alright, I just

Re: openstreetmap in openlayers

2009-03-04 Thread morbo
I tried a few things and I think I managed the integration of openstreetmaps. The browser is contacting the osm tile server BUT everything I get are pink tiles? Here is the output of the final html page: html head titleWicket Quickstart Archetype Homepage/title script

RE: Wicket Quickstart Installation Guide for Beginners

2009-03-04 Thread Dane Laverty
Alright Igor, that's all of them. Thanks for everyone's help with this.

Re: openstreetmap in openlayers

2009-03-04 Thread Michael O'Cleirigh
Hello, Pink tiles means there is a mismatch somewhere between your layers. Does your openlayers javascript work correctly? (i.e. when not emitted from wicket openlayers?) This page embeds an openstreet map in openlayers: http://wiki.openstreetmap.org/wiki/OpenLayers But it doesn't use the

Re: Wicket Quickstart Installation Guide for Beginners

2009-03-04 Thread Igor Vaynberg
they are attached -igor On Wed, Mar 4, 2009 at 10:48 AM, Dane Laverty danelave...@chemeketa.edu wrote: Alright Igor, that's all of them. Thanks for everyone's help with this. - To unsubscribe, e-mail:

Re: Static generation of pages from Wicket

2009-03-04 Thread James Carman
You could just introduce a caching filter in front of the pages, right? On Wed, Mar 4, 2009 at 12:54 PM, Vinayak Borkar vbo...@yahoo.com wrote: Hello, What is the recommended technique for generation of pages (usually served by wicket in a web server), statically so that they can be served by

Re: Expected close tag for wicket:link ??

2009-03-04 Thread Thomas Mäder
Seeing the whole stack trace might help! Thomas On Wed, Mar 4, 2009 at 6:34 PM, Edwin Ansicodd erik.g.hau...@gmail.comwrote: I find this error in my log file when a wicket page loads. Would anyone know what causes this error? ERROR org.apache.wicket.RequestCycle - unexpected exception

Re: Static generation of pages from Wicket

2009-03-04 Thread Vinayak Borkar
James, We are planning to use Amazon S3 to host all static pages -- The idea is to create a CNAME to the vhost on S3. This way all pages get served from S3. How would I use the caching filter to do this? I have no way to intercept the request once it is made to S3. Thanks, Vinayak James

Re: Static generation of pages from Wicket

2009-03-04 Thread James Carman
Yeah, scratch that idea. I thought you meant from your own server. You could try something like HTTrack (http://www.httrack.com/) and point it at your local installation of Wicket. Once you download the entire site, you just zip it up and upload it. On Wed, Mar 4, 2009 at 2:18 PM, Vinayak

Simple Ajax Form

2009-03-04 Thread newbieabc
Hi, I would really appreciate it if someone could post code for a simple ajax form. I just want to submit some data in the form without the whole page reloading, just the form should reload after the submit. Say I have 3 textfields. Firstname, lastname and fullname. I enter the first two fields

RE: Simple Ajax Form

2009-03-04 Thread Stefan Lindner
Hava a look at http://www.wicketstuff.org/wicket13/ajax/form.1 , then download the wicket sample application and examine the source code. -Ursprüngliche Nachricht- Von: newbieabc [mailto:newbie...@yahoo.com] Gesendet: Mittwoch, 4. März 2009 20:55 An: users@wicket.apache.org Betreff:

RE: Uppercasing inputs

2009-03-04 Thread Jeremy Thomerson
Ernesto's got you on the right track. I'd recommend taking it a step further like described here: http://www.jeremythomerson.com/blog/2008/11/06/wicket-the-power-of-nested-models/ Jeremy Thomerson http://www.wickettraining.com -- sent from a wireless device -Original Message- From:

RE: Simple Ajax Form

2009-03-04 Thread newbieabc
I had some errors with the example, that's why I was hoping to get code to submit data from two fields using the ajax form. Basically I just want the form part of the page to update without reloading the whole page. Thanks -- View this message in context:

Re: Simple Ajax Form

2009-03-04 Thread Stephen Swinsburg
Show us YOUR code and we'll point out the issue. I use Ajax forms everywhere. cheers, Steve On 04/03/2009, at 8:35 PM, newbieabc wrote: I had some errors with the example, that's why I was hoping to get code to submit data from two fields using the ajax form. Basically I just want the

Re: VOTE: Remove ? extends from constructor of DropDownChoice

2009-03-04 Thread Brill Pappin
See the sample test in ticket: WICKET-2137 https://issues.apache.org/jira/browse/WICKET-2137 - brill On 4-Mar-09, at 11:08 AM, Johannes Schneider wrote: On Wed, 2009-03-04 at 10:04 -0500, Brill Pappin wrote: I actually wasn't saying they were the same. What I said (meant) was that: a)

RE: Wicket Quickstart Installation Guide for Beginners

2009-03-04 Thread Dane Laverty
Great. I've finished putting the pictures into the document. Is there a place on the wiki where I should locate the page? Dane -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Wednesday, March 04, 2009 10:55 AM To: users@wicket.apache.org Subject: Re: Wicket

Re: Question re: style and variation

2009-03-04 Thread Brill Pappin
For my own edification, I missed the thread on style. what exactly is the style that is different from the variation? I guess for Locale, it *does* use the double underscores when you have a placeholder as in the case of a country only. I think its a familiar model and using it for another

Re: VOTE: Remove ? extends from constructor of DropDownChoice

2009-03-04 Thread James Carman
So, do we need to make it IModel? extends List? extends T? That would allow what Oliver was talking about. On Wed, Mar 4, 2009 at 4:14 PM, Brill Pappin br...@pappin.ca wrote: See the sample test in  ticket: WICKET-2137 https://issues.apache.org/jira/browse/WICKET-2137 - brill On 4-Mar-09,

wicket generating its code for href

2009-03-04 Thread miro
I am trying to use jqery tabs but because wicket inserts its own code for href and jqery tabs are not working http://www.nabble.com/file/p22340018/wicket-problem.gif Attached is the Image -- View this message in context:

Re: wicket generating its code for href

2009-03-04 Thread Igor Vaynberg
that markup must be inside wicket:link, move it outside -igor On Wed, Mar 4, 2009 at 1:41 PM, miro miroconn...@yahoo.com wrote: I am trying to use jqery tabs   but because wicket inserts its own code for href and  jqery tabs are not working

How can I injecting a Springbean into a custom session.

2009-03-04 Thread CrocodileShoes
Apologies if this is more of a Spring question than a Wicket question, I'm just not sure. Anyway, the problem. I have a custom session class which inherits form WebSession. I've overridden the WebApplication's newSession() method in order to return a new instance of my custom session.

Re: wicket generating its code for href

2009-03-04 Thread miro
no i did not use wicket:link . igor.vaynberg wrote: that markup must be inside wicket:link, move it outside -igor On Wed, Mar 4, 2009 at 1:41 PM, miro miroconn...@yahoo.com wrote: I am trying to use jqery tabs   but because wicket inserts its own code for href and  jqery

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

2009-03-04 Thread Igor Vaynberg
class mysession { @SpringBean private dao; public mysession(...) { super(...); InjectorHolder.getInjector().inject(this); } } -igor On Wed, Mar 4, 2009 at 1:59 PM, CrocodileShoes markjohndo...@googlemail.com wrote: Apologies if this is more of a Spring question than a Wicket

Re: wicket generating its code for href

2009-03-04 Thread Igor Vaynberg
strange, create a quickstart and attach it to a jira issue -igor On Wed, Mar 4, 2009 at 2:00 PM, miro miroconn...@yahoo.com wrote: no i did not use  wicket:link  . igor.vaynberg wrote: that markup must be inside wicket:link, move it outside -igor On Wed, Mar 4, 2009 at 1:41 PM, miro

Re: wicket generating its code for href

2009-03-04 Thread miro
i am using wicket 1.3.5. Is it fixed in newer versions ? igor.vaynberg wrote: strange, create a quickstart and attach it to a jira issue -igor On Wed, Mar 4, 2009 at 2:00 PM, miro miroconn...@yahoo.com wrote: no i did not use  wicket:link  . igor.vaynberg wrote: that markup

Re: Uppercasing inputs

2009-03-04 Thread Jeremy Thomerson
Cemal, I think I have to respectfully disagree with you here. I describe what I feel is a better solution, and a little bit of why in this blog post from a few months ago: http://www.jeremythomerson.com/blog/2008/11/06/wicket-the-power-of-nested-models/ Basically, doing it the way you

Re: wicket generating its code for href

2009-03-04 Thread Jeremy Thomerson
Since we don't know what the issue is, it is likely not fixed in newer versions. However, if you create a quickstart that demonstrates this behavior - as Igor mentioned - then you can open a JIRA issue. Of course, you could also test that quickstart easily with newer versions. -- Jeremy

Re: wicket generating its code for href

2009-03-04 Thread miro
attached is the image http://www.nabble.com/file/p22340865/wicket-problem.jpeg Jeremy Thomerson-5 wrote: Since we don't know what the issue is, it is likely not fixed in newer versions. However, if you create a quickstart that demonstrates this behavior - as Igor mentioned - then you

Re: wicket generating its code for href

2009-03-04 Thread Jeremy Thomerson
http://www.jeremythomerson.com/blog/2008/11/17/wicket-quickstart-tutorial/ On Wed, Mar 4, 2009 at 4:23 PM, miro miroconn...@yahoo.com wrote: attached is the image http://www.nabble.com/file/p22340865/wicket-problem.jpeg Jeremy Thomerson-5 wrote: Since we don't know what the issue is,

Re: wicket generating its code for href

2009-03-04 Thread Stephen Swinsburg
You'll need to generate, test if its still broken, then attach the quickstart as Jeremy says. But what perplexes me more is how come you can't type your messages into an email? These messages are archived online so someone else with the same issue could find the issues easier if it was in

Re: Wicket Quickstart Installation Guide for Beginners

2009-03-04 Thread Igor Vaynberg
i think somewhere off the main page should be fine. it is a nice addition to the wiki, we might even have to make this a faq and link to it off our website :) -igor On Wed, Mar 4, 2009 at 1:15 PM, Dane Laverty danelave...@chemeketa.edu wrote: Great. I've finished putting the pictures into the

Re: Uppercasing inputs

2009-03-04 Thread jWeekend
Jeremy, I sensed you were uncomfortable with my most Wicket-way suggestion when I read http://www.nabble.com/RE%3A-Uppercasing-inputs-p22338461.html your previous post on this thread stating that the model doing the transformation work was on the right track; it is not unusual that more than

Re: Question re: style and variation

2009-03-04 Thread Ned Collyer
What I'm trying to do at the moment (and the purpose of starting this thread) is creating custom form fields, that have different types of HTML depending on the variant. So I could do new LabelledTextField(banana) { public String getVariation() { return complex; } } new

Re: Uppercasing inputs

2009-03-04 Thread Igor Vaynberg
pft, you guys! i would go with the simplest! class uppercasetextfield extends textfieldstring { public void updatemodel() { final String str=getconvertedinput(); setdefaultmodelobject((str==null)?null:str.touppercase()); } } done! -igor On

Re: wicket generating its code for href

2009-03-04 Thread miro
I found the problem its happening because of getMarkupSettings().setAutomaticLinking(true); i commented that and its working , but still a question what will i loose by commenting that ? Stephen Swinsburg-2 wrote: You'll need to generate, test if its still broken, then attach the

Re: wicket generating its code for href

2009-03-04 Thread Igor Vaynberg
considering this is a setting that is disabled by default, the question is: what did you gain by enabling it? -igor On Wed, Mar 4, 2009 at 3:13 PM, miro miroconn...@yahoo.com wrote: I found the problem  its happening because of getMarkupSettings().setAutomaticLinking(true); i commented that

Re: Uppercasing inputs

2009-03-04 Thread jWeekend
Igor, Nope, not for me (this time). Here's the Javadoc for updateModel: * Updates this components model from the request, it expects that the object is already * converted through the convertInput() call that is called by the validate() method when a form * is being

Re: wicket generating its code for href

2009-03-04 Thread miro
I did that for auto linking using wicket:link http://cwiki.apache.org/WICKET/autolink.html igor.vaynberg wrote: considering this is a setting that is disabled by default, the question is: what did you gain by enabling it? -igor On Wed, Mar 4, 2009 at 3:13 PM, miro

Re: Uppercasing inputs

2009-03-04 Thread Jeremy Thomerson
LOL! Nah - I would just change all the setters on every domain object to be: public void setFoo(String foo) { this.foo = foo == null ? null : foo.toUpperCase(); } Or, maybe I'd use AOP and build an aspect that could automatically intercept calls to com.mydomain setters that take a single

Re: wicket generating its code for href

2009-03-04 Thread Jeremy Thomerson
Well, since that page says to convert **all** and you just figured out that you don't actually want **all**, you should use wicket:link or link components. On Wed, Mar 4, 2009 at 5:28 PM, miro miroconn...@yahoo.com wrote: I did that for auto linking using wicket:link

Re: Uppercasing inputs

2009-03-04 Thread Igor Vaynberg
you can create a convertermodel that takes an instance of iconverter and uses that to convert the values, then you can subclass textfield, override initmodel() and wrap any model the textfield had with this one. that way everyone is happy! -igor On Wed, Mar 4, 2009 at 3:29 PM, Jeremy Thomerson

Re: Uppercasing inputs

2009-03-04 Thread jWeekend
Igor, Still no ;-) A key point is that conversion should happen before validation so you can check if the transformed data (not just the plain text) is valid. Otherwise, what is your validation good for? Regards - Cemal http://jWeekend.com jWeekend PS You are still going to help when I get

Re: Uppercasing inputs

2009-03-04 Thread Igor Vaynberg
sigh, i was being sarcastic. i frankensteined both yours and jeremy's ideas together into a solution that used both and was needlessly complex. -igor On Wed, Mar 4, 2009 at 3:59 PM, jWeekend jweekend_for...@cabouge.com wrote: Igor, Still no ;-) A key point is that conversion should happen

Re: Uppercasing inputs

2009-03-04 Thread jWeekend
Igor, ... hence the ;-) The point is worth making for others who come across this thread, and, just as much, in response to some of the other solutions suggested. I don't think there's any more to be milked out of this thread. Regards - Cemal http://jWeekend.com jWeekend igor.vaynberg

using tabindex attribute in a radio input

2009-03-04 Thread novotny
Hi, It's a bit complex but im using the wicket ajax RadioGroup to display/hide another form. That part works and when the radio is selected the form is displayed. However the input textfields all have tabindex attributes set (thsi allows a user to tab to the next input field). However if the

Re: using tabindex attribute in a radio input

2009-03-04 Thread novotny
I just happened to google https://issues.apache.org/jira/browse/WICKET-2031 as someone else filed the same issue. However I am using RadioGroup and it's still not working... if someone has a simple example of this, let me know! Thanks, Jason novotny wrote: Hi, It's a bit complex but im

Forward to a different page, but same URL

2009-03-04 Thread Prag
Is it possible to render a different pageClassB when pageClassA is called, while maintaining the same URL? Using redirectToInterceptPage will send and redirect to a non-bookmarkable session url, and thus isn't an option. So is it possible to render/switch from different .html files fom the same

Re: Forward to a different page, but same URL

2009-03-04 Thread Jeremy Thomerson
redirect to intercept page doesn't have to go to a non-bookmarkable page... just redirect to Page.class rather than new Page(). On Wed, Mar 4, 2009 at 7:32 PM, Prag pragprog...@gmail.com wrote: Is it possible to render a different pageClassB when pageClassA is called, while maintaining the

Re: Uppercasing inputs

2009-03-04 Thread James Carman
On Wed, Mar 4, 2009 at 6:29 PM, Jeremy Thomerson jer...@wickettraining.com wrote: LOL!  Nah - I would just change all the setters on every domain object to be: public void setFoo(String foo) {  this.foo = foo == null ? null : foo.toUpperCase(); } Or, maybe I'd use AOP and build an aspect

Re: Forward to a different page, but same URL

2009-03-04 Thread Prag
I fixed it using setResponsePage(). I though that that would do a redirect (what I didn't wanted), but it didn't, so it's solved :) Jeremy Thomerson-5 wrote: redirect to intercept page doesn't have to go to a non-bookmarkable page... just redirect to Page.class rather than new Page().

how to save validated fields in a form even if entire form still needs work

2009-03-04 Thread novotny
Hi, I have a form with 8 required fields. I'd like it if even if they just fill out 4 of the fields, I can go ahead and persist those field answers to the database and still remind them to fill out the remaining fields. What is the hook method that I override to persist the valid fields?

Re: how to save validated fields in a form even if entire form still needs work

2009-03-04 Thread Jeremy Thomerson
I haven't tried it and don't have the code in front of me, but you might be able to call setDefaultFormProcessing(false) on your submit button, and then in your submit code, call the validate method manually. If it succeeds, persist and move on, if not, persist and stay on page, allowing errors

Re: Trying to stay stateless but having some issues

2009-03-04 Thread Matt Welch
Jeremy Thomerson-5 wrote: The continuation URL looks to only be stored if you arrived at the page by a call to PageMap#redirectToInterceptPage, which is called by RestartResponseAtInterceptPage exception. It's also stored in the session (or rather, the PageMap, which is stored in the

Re: using tabindex attribute in a radio input

2009-03-04 Thread Igor Vaynberg
the group itself wont show tabindex, you have to add it to the radio components you add to the group. -igor On Wed, Mar 4, 2009 at 5:17 PM, novotny novo...@gridsphere.org wrote: I just happened to google https://issues.apache.org/jira/browse/WICKET-2031  as someone else filed the same issue.

Re: how to save validated fields in a form even if entire form still needs work

2009-03-04 Thread Igor Vaynberg
override form.onerror() and retrieve user-entered values by visiting your formcomponents and calling getinput(). -igor On Wed, Mar 4, 2009 at 6:01 PM, novotny novo...@gridsphere.org wrote: Hi, I have a form with 8 required fields. I'd like it if even if they just fill out 4 of the fields, I

Re: Tabbed Panel problem

2009-03-04 Thread Timo Rantalaiho
On Tue, 03 Mar 2009, Ashis wrote: I am using Ajax Tabbed Panel.I have 4 tabs.First tab contains login form and javascript to display images. When i run the project all works fine, javascript displaying images also gets load but if i click the first tab again the javascript displaying images

Re: how to save validated fields in a form even if entire form still needs work

2009-03-04 Thread taha siddiqi
Take a look at IFormValidator. taha On Thu, Mar 5, 2009 at 7:31 AM, novotny novo...@gridsphere.org wrote: Hi, I have a form with 8 required fields. I'd like it if even if they just fill out 4 of the fields, I can go ahead and persist those field answers to the database and still remind

  1   2   >