[Wicket-user] Is this a bug? Please help.
To all, I have some problem with wicket, I'm newbie. Condition - A form with a CompoundPropertyModel - 2 RequiredTextField - 1 FileUploadField - 1 TextArea with a CustomValidator when I input string value with comma (,) in either or bothrequiredTextField with an invalid value of textArea field, the value of requiredTextField will always replace all comma with ; (Note : other thing work fine, CustomValidator work right, just this replaceAll-likebehavior!) but if form pass my CustomValidator, nothing wrong. Below are some important part of codes. ### My Form ### public SubscriberGroupForm(String id, SubscriberGroup model) { super(id, new CompoundPropertyModel(model)); setMultiPart(true); setMaxSize(Bytes.megabytes(10)); add(new RequiredTextField("name")); add(new RequiredTextField("description")); countLabel = new Label("count", new PropertyModel(model, "count")); countLabel.setVisible(false); add(countLabel); fileUploadField = new FileUploadField("file"); add(fileUploadField); add(new TextArea("numbers").add(NumberValidator.getInstance())); // --- My CustomValidator. add(new Button("submitButton")); final FeedbackPanel simpleFeedback = new FeedbackPanel("simpleFeedback"); add(simpleFeedback); } ### My CustomValidator ### public void onValidate(wicket.markup.html.form.FormComponent formComponent, String value) { if(value == null) { return; } else { for(StringTokenizer tokenizer = new StringTokenizer(value, ","); tokenizer.hasMoreTokens(); ) { String number = tokenizer.nextToken(); if(!ValidatorUtil.isValidNumber(number)) { error(formComponent); break; } } } } ### My Model ### public class SubscriberGroup implements Serializable { private String name; private String description; private String file; private String numbers; private int count; private Date expireDate; // just many setter getter methods here .. // ...} and some otherquestion, can'tfile (or file's name)be populate into my model when submitted? like other textField (now I just write it to somewhere and custom set it's location to my modelwith model.setFile(myFilePath)). BR, black Yahoo! FareChase - Search multiple travel sites in one click.
Re: [Wicket-user] Model Serialization Question
yes that is a problem. If we knew that a IModel always had one real data object then we should only serialize that one so instead of doing this: f (cloneModel) { model.detach(); originalModel = (IModel)Objects.clone(model); } this: if (cloneModel) { model.detach(); originalObject = Objects.clone(model.getRealSerializeableObject()); } Then those horrible anonymous or non static innerclasses are not a problem. But i don't think we can do that because models could ofcourse have more fields then only one object. johan On 11/3/05, Igor Vaynberg [EMAIL PROTECTED] wrote: when you serialize from top to the bottom of the hierarchy only one instance is used. ie. if you serialize the page both your models will point ot the same page instance, but if you serialize the models indivudally, they will each have a separate page instance. so if you call setModelObject and your component is versioned, the model - since its anonymous - will serialize the page and take up a lot of space. better use an inner static class. -Igor On 11/2/05, Phil Kulak [EMAIL PROTECTED] wrote: Let's say I have this code on a page:add(new Label(label1, new Model() { public Object getObject(Component c) {// Return some interesting string... }});add(new Label(label2, new Model() { public Object getObject(Component c) {// Return some other interesting string... }});will the page be serialized into two sperate bytestreams? And ifthat's the case, when the page is recreated, will each model be looking at a different page instance?---SF.Net email is sponsored by:Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very ownSony(tm)PSP.Click here to play: http://sourceforge.net/geronimo.php___ Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Fwd: [Wicket-announce] Vote for Wicket
Eelco Hillenius wrote: Thanks for the hint. I didn't sign up, but I always liked magnolia. Maybe it's time to check it out :) Eelco Hi, Check again, http://jira.magnolia.info/browse/MAGNOLIA-588 Some progress :) -- Janne Hietamäki Cemron Ltd http://www.cemron.com/ --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket 1.1 line endings bug?
I don't know... It could be that because the 1.1 build was done on my Mac, and the RC builds were done on my MS laptop. Can you file a bug report, with a more precise description on what you think is wrong? MartijnOn 11/3/05, jan_bar [EMAIL PROTECTED] wrote: Hi,I compared results of rendered page from Wicket 1.1-rc2 and final 1.1. Inone page the 1.1 version mixes unix and microsoft line endings (it workedwell with 1.1-rc). Is this know bug? Jan---SF.Net email is sponsored by:Tame your development challenges with Apache's Geronimo App Server. Downloadit for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP.Click here to play: http://sourceforge.net/geronimo.php___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user-- Living a wicket life...Martijn Dashorst - http://www.jroller.com/page/dashorstWicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1
Re: [Wicket-user] Is this a bug? Please help.
What are you saying exactly? Are you saying that you input a value with a , in a textfield in youre browser and that , will be replaced with ; when you read it in at the serverside? Or are you saying that the model value does have a , in the string and it is displayed as a ; in the browser? johan On 11/3/05, blackboy zabaha [EMAIL PROTECTED] wrote: To all, I have some problem with wicket, I'm newbie. Condition - A form with a CompoundPropertyModel - 2 RequiredTextField - 1 FileUploadField - 1 TextArea with a CustomValidator when I input string value with comma (,) in either or bothrequiredTextField with an invalid value of textArea field, the value of requiredTextField will always replace all comma with ; (Note : other thing work fine, CustomValidator work right, just this replaceAll-likebehavior!) but if form pass my CustomValidator, nothing wrong. Below are some important part of codes. ### My Form ### public SubscriberGroupForm(String id, SubscriberGroup model) { super(id, new CompoundPropertyModel(model)); setMultiPart(true); setMaxSize(Bytes.megabytes(10)); add(new RequiredTextField(name)); add(new RequiredTextField(description)); countLabel = new Label(count, new PropertyModel(model, count)); countLabel.setVisible(false); add(countLabel); fileUploadField = new FileUploadField(file); add(fileUploadField); add(new TextArea(numbers).add(NumberValidator.getInstance())); // --- My CustomValidator. add(new Button(submitButton)); final FeedbackPanel simpleFeedback = new FeedbackPanel(simpleFeedback); add(simpleFeedback); } ### My CustomValidator ### public void onValidate(wicket.markup.html.form.FormComponent formComponent, String value) { if(value == null) { return; } else { for(StringTokenizer tokenizer = new StringTokenizer(value, ,); tokenizer.hasMoreTokens(); ) { String number = tokenizer.nextToken(); if(!ValidatorUtil.isValidNumber(number)) { error(formComponent); break; } } } } ### My Model ### public class SubscriberGroup implements Serializable { private String name; private String description; private String file; private String numbers; private int count; private Date expireDate; // just many setter getter methods here .. // ...} and some otherquestion, can'tfile (or file's name)be populate into my model when submitted? like other textField (now I just write it to somewhere and custom set it's location to my modelwith model.setFile(myFilePath)). BR, black Yahoo! FareChase - Search multiple travel sites in one click.
Re: [Wicket-user] Re: TreeView and BookMarkablePage
What are you exactly trying to do?On 11/3/05, Alex Chew [EMAIL PROTECTED] wrote: I found this message http://sourceforge.net/mailarchive/message.php?msg_id=12880137 formerly, i tested this kind of solution, but couldn't work. It seems strange,Does wicket and iframe coexist?
[Wicket-user] How to do validation on a component that relate to other(s).
I have a form that do loading list of customers. User can upload afile or just fill in datawith a textarea (separate each customer with comma). List of customers is required. Souser have to fill in either (or both) data of these 2 fields (FileUploadField or TextArea). How to do required validation such this condition since validation just done onone component own? BR, black Yahoo! FareChase - Search multiple travel sites in one click.
Re: [Wicket-user] Abstract validator always throws MissingResourceException
Which version are you using? There is a test in cvs head which tests it and it seems to work. Defaults can be defined if the key is just RequiredValidator (the validators class name without any prefix). In case no other key is found, it'll be used as default. Juergen On 11/3/05, Matej Knopp [EMAIL PROTECTED] wrote: Hi. I just want to ask, why AbstractValidator always throws missing resource exception when Validator message is not found. It virtually ignores application settings. Is this deliberate? During development it's quite inconvenient do deal with these exceptions. Is there any way to disable this behavior? Or am I completely missing something? -Matej --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Is this a bug? Please help.
This occure on browser, the value of textfield changed when form is invalid and return. I just found that this is not problem with customValidator, but with RequiedTextField with multipart form (I'm not sure this will ocurred with only requiedValidator or other validator else, and also withany other charactors). My newtesting to find out thereal problem'scauseis just modifying the UploadPage.java, UploadPage.html, UploadPage.properties in package wicket.examples.upload, which porvided with wicket-example. ### UploadPage.java ### // just add 2 required textfield in private inner class UploadPage.FileUploadForm add(new RequiredTextField("t1"));add(new RequiredTextField("t2")); ### UploadPage.html ### !-- add these lines into "simpleUpload" form -- input type="text" wicket:id="t1"/ input type="text" wicket:id="t2"/ ### UploadPage.properties ### # add these lines simpleUpload.t1.RequiredValidator=t1 required.simpleUpload.t2.RequiredValidator=t2 required. run example goto upload example then input "a,b,c,d," (or indeed any String with comma) into t1 textfield, let t2 be blank so form is invalid, do not have to load any file. submit and then see value in t1 textfield. I think u will see "a;b;c;d" (just notice that last comma(s) also lost). Is this show that it's really a bug or I do it a wrong way, (indeed I just don't want to be a bug-reporter, I just want the way to solve my problem),plz suggest me how to solve this problem, too. I need help as soon as posible. BR, black Johan Compagner [EMAIL PROTECTED] wrote: What are you saying exactly?Are you saying that you input a value with a , in a textfield in youre browserand that , will be replaced with ; when you read it in at the serverside?Or are you saying that the model value does have a , in the string and it is displayed as a ; in the browser?johan On 11/3/05, blackboy zabaha [EMAIL PROTECTED] wrote: To all, I have some problem with wicket, I'm newbie. Condition - A form with a CompoundPropertyModel - 2 RequiredTextField - 1 FileUploadField - 1 TextArea with a CustomValidator when I input string value with comma (,) in either or bothrequiredTextField with an invalid value of textArea field, the value of requiredTextField will always replace all comma with ; (Note : other thing work fine, CustomValidator work right, just this replaceAll-likebehavior!) but if form pass my CustomValidator, nothing wrong. Below are some important part of codes. ### My Form ### public SubscriberGroupForm(String id, SubscriberGroup model) { super(id, new CompoundPropertyModel(model)); setMultiPart(true); setMaxSize(Bytes.megabytes(10)); add(new RequiredTextField("name")); add(new RequiredTextField("description")); countLabel = new Label("count", new PropertyModel(model, "count")); countLabel.setVisible(false); add(countLabel); fileUploadField = new FileUploadField("file"); add(fileUploadField); add(new TextArea("numbers").add(NumberValidator.getInstance())); // --- My CustomValidator. add(new Button("submitButton")); final FeedbackPanel simpleFeedback = new FeedbackPanel("simpleFeedback"); add(simpleFeedback); } ### My CustomValidator ### public void onValidate(wicket.markup.html.form.FormComponent formComponent, String value) { if(value == null) { return; } else { for(StringTokenizer tokenizer = new StringTokenizer(value, ","); tokenizer.hasMoreTokens(); ) { String number = tokenizer.nextToken(); if(!ValidatorUtil.isValidNumber(number)) { error(formComponent); break; } } } } ### My Model ### public class SubscriberGroup implements Serializable { private String name; private String description; private String file; private String numbers; private int count; private Date expireDate; // just many setter getter methods here .. // ...} and some otherquestion, can'tfile (or file's name)be populate into my model when submitted? like other textField (now I just write it to somewhere and custom set it's location to my modelwith model.setFile(myFilePath)). BR, black Yahoo! FareChase - Search multiple travel sites in one click. Yahoo! FareChase - Search multiple travel sites in one click.
Re: [Wicket-user] Is this a bug? Please help.
can you make a bug report for this with a copy of the mail below? On 11/3/05, blackboy zabaha [EMAIL PROTECTED] wrote: This occure on browser, the value of textfield changed when form is invalid and return. I just found that this is not problem with customValidator, but with RequiedTextField with multipart form (I'm not sure this will ocurred with only requiedValidator or other validator else, and also withany other charactors). My newtesting to find out thereal problem'scauseis just modifying the UploadPage.java, UploadPage.html, UploadPage.properties in package wicket.examples.upload, which porvided with wicket-example. ### UploadPage.java ### // just add 2 required textfield in private inner class UploadPage.FileUploadForm add(new RequiredTextField(t1));add(new RequiredTextField(t2)); ### UploadPage.html ### !-- add these lines into simpleUpload form -- input type=text wicket:id=t1/ input type=text wicket:id=t2/ ### UploadPage.properties ### # add these lines simpleUpload.t1.RequiredValidator=t1 required.simpleUpload.t2.RequiredValidator=t2 required. run example goto upload example then input a,b,c,d, (or indeed any String with comma) into t1 textfield, let t2 be blank so form is invalid, do not have to load any file. submit and then see value in t1 textfield. I think u will see a;b;c;d (just notice that last comma(s) also lost). Is this show that it's really a bug or I do it a wrong way, (indeed I just don't want to be a bug-reporter, I just want the way to solve my problem),plz suggest me how to solve this problem, too. I need help as soon as posible. BR, black Johan Compagner [EMAIL PROTECTED] wrote: What are you saying exactly?Are you saying that you input a value with a , in a textfield in youre browserand that , will be replaced with ; when you read it in at the serverside? Or are you saying that the model value does have a , in the string and it is displayed as a ; in the browser?johan On 11/3/05, blackboy zabaha [EMAIL PROTECTED] wrote: To all, I have some problem with wicket, I'm newbie. Condition - A form with a CompoundPropertyModel - 2 RequiredTextField - 1 FileUploadField - 1 TextArea with a CustomValidator when I input string value with comma (,) in either or bothrequiredTextField with an invalid value of textArea field, the value of requiredTextField will always replace all comma with ; (Note : other thing work fine, CustomValidator work right, just this replaceAll-likebehavior!) but if form pass my CustomValidator, nothing wrong. Below are some important part of codes. ### My Form ### public SubscriberGroupForm(String id, SubscriberGroup model) { super(id, new CompoundPropertyModel(model)); setMultiPart(true); setMaxSize(Bytes.megabytes(10)); add(new RequiredTextField(name)); add(new RequiredTextField(description)); countLabel = new Label(count, new PropertyModel(model, count)); countLabel.setVisible(false); add(countLabel); fileUploadField = new FileUploadField(file); add(fileUploadField); add(new TextArea(numbers).add(NumberValidator.getInstance())); // --- My CustomValidator. add(new Button(submitButton)); final FeedbackPanel simpleFeedback = new FeedbackPanel(simpleFeedback); add(simpleFeedback); } ### My CustomValidator ### public void onValidate(wicket.markup.html.form.FormComponent formComponent, String value) { if(value == null) { return; } else { for(StringTokenizer tokenizer = new StringTokenizer(value, ,); tokenizer.hasMoreTokens(); ) { String number = tokenizer.nextToken(); if(!ValidatorUtil.isValidNumber(number)) { error(formComponent); break; } } } } ### My Model ### public class SubscriberGroup implements Serializable { private String name; private String description; private String file; private String numbers; private int count; private Date expireDate; // just many setter getter methods here .. // ...} and some otherquestion, can'tfile (or file's name)be populate into my model when submitted? like other textField (now I just write it to somewhere and custom set it's location to my modelwithmodel.setFile(myFilePath)). BR, black Yahoo! FareChase - Search multiple travel sites in one click. Yahoo! FareChase - Search multiple travel sites in one click.
[Wicket-user] Previewing html only, including nested components html
Hello, I don't know how to correctly preview a markup html only when it refers to css, javascript files, that are meant to be relative to the webapp context. I think this should be done by viewing the html markup from a running instance of the webapp only ? And also, I'd like to have this preview include the markup of nested panels, ... Is it possible in development mode ? This should be great, because it is hard to decompose a page into logical parts without the hassle of maintaining in synch two tag bodies or two wicket:remove elements. Any suggestion here ? --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Mutable form component ?
Hello, I wonder if it is possible to create mutable form components, e.g. for my application the same administration page is shown but depending on the rights of the user, an element : - may be editable ( e.g. rendered as a textarea / TextArea ) - may be read-only ( e.g. rendered as a div / MultiLineLabel) - may be not visible at all ( this one is easy with the setVisible() method) I guess this can be possible if I make something like this in my application : extend Panel, include the 2 kinds of elements in my panel class panel markup. And then in the Panel class, bind the same model to the 2 components, and switch the visibility given an access right property. This seems feasible, but as this need appears very common generic to me, I wonder if something already exists for this, in core, extension or stuff ? (I haven't found anything by myself). So my questions are : - is this already standardized in wicket (core/extension/stuff) ? If so, where ? - do you see better alternatives (as the one mentioned above) to do this by myself ? Thanks in advance, -- Laurent --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Mutable form component ?
That is part of 1.2 and currently under development Juergen On 11/3/05, Laurent PETIT [EMAIL PROTECTED] wrote: Hello, I wonder if it is possible to create mutable form components, e.g. for my application the same administration page is shown but depending on the rights of the user, an element : - may be editable ( e.g. rendered as a textarea / TextArea ) - may be read-only ( e.g. rendered as a div / MultiLineLabel) - may be not visible at all ( this one is easy with the setVisible() method) I guess this can be possible if I make something like this in my application : extend Panel, include the 2 kinds of elements in my panel class panel markup. And then in the Panel class, bind the same model to the 2 components, and switch the visibility given an access right property. This seems feasible, but as this need appears very common generic to me, I wonder if something already exists for this, in core, extension or stuff ? (I haven't found anything by myself). So my questions are : - is this already standardized in wicket (core/extension/stuff) ? If so, where ? - do you see better alternatives (as the one mentioned above) to do this by myself ? Thanks in advance, -- Laurent --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Abstract validator always throws MissingResourceException
If I put there something like RequiredValidator=XYZ it works. But that's not what I mean. The problem is, that I want to see in feedback something like * entry1.RequiredValidator value is missing * entry2.RequiredValidator value is missing So that I know which values should I add. Not the situation is that if I don't specify anything, I get java.util.MissingResourceException: Unable to find resource: RequiredValidator But I don't know, for which validator the message is missing. -Matej Juergen Donnerstag wrote: Which version are you using? There is a test in cvs head which tests it and it seems to work. Defaults can be defined if the key is just RequiredValidator (the validators class name without any prefix). In case no other key is found, it'll be used as default. Juergen On 11/3/05, Matej Knopp [EMAIL PROTECTED] wrote: Hi. I just want to ask, why AbstractValidator always throws missing resource exception when Validator message is not found. It virtually ignores application settings. Is this deliberate? During development it's quite inconvenient do deal with these exceptions. Is there any way to disable this behavior? Or am I completely missing something? -Matej --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Mutable form component ?
Great news! What would you suggest as a temporary solution, as long as 1.2 isn't out ? On 11/3/05, Juergen Donnerstag [EMAIL PROTECTED] wrote: That is part of 1.2 and currently under development Juergen On 11/3/05, Laurent PETIT [EMAIL PROTECTED] wrote: Hello, I wonder if it is possible to create mutable form components, e.g. for my application the same administration page is shown but depending on the rights of the user, an element : - may be editable ( e.g. rendered as a textarea / TextArea ) - may be read-only ( e.g. rendered as a div / MultiLineLabel) - may be not visible at all ( this one is easy with the setVisible() method) I guess this can be possible if I make something like this in my application : extend Panel, include the 2 kinds of elements in my panel class panel markup. And then in the Panel class, bind the same model to the 2 components, and switch the visibility given an access right property. This seems feasible, but as this need appears very common generic to me, I wonder if something already exists for this, in core, extension or stuff ? (I haven't found anything by myself). So my questions are : - is this already standardized in wicket (core/extension/stuff) ? If so, where ? - do you see better alternatives (as the one mentioned above) to do this by myself ? Thanks in advance, -- Laurent --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Abstract validator always throws MissingResourceException
Try RequiredValidator = ${label} is missing ${label} will either be replace with the component id or in case it is defined, the formComponent's label, which is defined like myPage.myInput = Price Juergen On 11/3/05, Matej Knopp [EMAIL PROTECTED] wrote: If I put there something like RequiredValidator=XYZ it works. But that's not what I mean. The problem is, that I want to see in feedback something like * entry1.RequiredValidator value is missing * entry2.RequiredValidator value is missing So that I know which values should I add. Not the situation is that if I don't specify anything, I get java.util.MissingResourceException: Unable to find resource: RequiredValidator But I don't know, for which validator the message is missing. -Matej Juergen Donnerstag wrote: Which version are you using? There is a test in cvs head which tests it and it seems to work. Defaults can be defined if the key is just RequiredValidator (the validators class name without any prefix). In case no other key is found, it'll be used as default. Juergen On 11/3/05, Matej Knopp [EMAIL PROTECTED] wrote: Hi. I just want to ask, why AbstractValidator always throws missing resource exception when Validator message is not found. It virtually ignores application settings. Is this deliberate? During development it's quite inconvenient do deal with these exceptions. Is there any way to disable this behavior? Or am I completely missing something? -Matej --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Is this a bug? Please help.
Sorry, How to make a bug report? I'm so new and never subscribe to any mail-list before. BR, blackJohan Compagner [EMAIL PROTECTED] wrote: can you make a bug report for this with a copy of the mail below? On 11/3/05, blackboy zabaha [EMAIL PROTECTED] wrote: This occure on browser, the value of textfield changed when form is invalid and return. I just found that this is not problem with customValidator, but with RequiedTextField with multipart form (I'm not sure this will ocurred with only requiedValidator or other validator else, and also withany other charactors). My newtesting to find out thereal problem'scauseis just modifying the UploadPage.java, UploadPage.html, UploadPage.properties in package wicket.examples.upload, which porvided with wicket-example. ### UploadPage.java ### // just add 2 required textfield in private inner class UploadPage.FileUploadForm add(new RequiredTextField("t1"));add(new RequiredTextField("t2")); ### UploadPage.html ### !-- add these lines into "simpleUpload" form -- input type="text" wicket:id="t1"/ input type="text" wicket:id="t2"/ ### UploadPage.properties ### # add these lines simpleUpload.t1.RequiredValidator=t1 required.simpleUpload.t2.RequiredValidator=t2 required. run example goto upload example then input "a,b,c,d," (or indeed any String with comma) into t1 textfield, let t2 be blank so form is invalid, do not have to load any file. submit and then see value in t1 textfield. I think u will see "a;b;c;d" (just notice that last comma(s) also lost). Is this show that it's really a bug or I do it a wrong way, (indeed I just don't want to be a bug-reporter, I just want the way to solve my problem),plz suggest me how to solve this problem, too. I need help as soon as posible. BR, black Johan Compagner [EMAIL PROTECTED] wrote: What are you saying exactly?Are you saying that you input a value with a , in a textfield in youre browserand that , will be replaced with ; when you read it in at the serverside? Or are you saying that the model value does have a , in the string and it is displayed as a ; in the browser?johan On 11/3/05, blackboy zabaha [EMAIL PROTECTED] wrote: To all, I have some problem with wicket, I'm newbie. Condition - A form with a CompoundPropertyModel - 2 RequiredTextField - 1 FileUploadField - 1 TextArea with a CustomValidator when I input string value with comma (,) in either or bothrequiredTextField with an invalid value of textArea field, the value of requiredTextField will always replace all comma with ; (Note : other thing work fine, CustomValidator work right, just this replaceAll-likebehavior!) but if form pass my CustomValidator, nothing wrong. Below are some important part of codes. ### My Form ### public SubscriberGroupForm(String id, SubscriberGroup model) { super(id, new CompoundPropertyModel(model)); setMultiPart(true); setMaxSize(Bytes.megabytes(10)); add(new RequiredTextField("name")); add(new RequiredTextField("description")); countLabel = new Label("count", new PropertyModel(model, "count")); countLabel.setVisible(false); add(countLabel); fileUploadField = new FileUploadField("file"); add(fileUploadField); add(new TextArea("numbers").add(NumberValidator.getInstance())); // --- My CustomValidator. add(new Button("submitButton")); final FeedbackPanel simpleFeedback = new FeedbackPanel("simpleFeedback"); add(simpleFeedback); } ### My CustomValidator ### public void onValidate(wicket.markup.html.form.FormComponent formComponent, String value) { if(value == null) { return; } else { for(StringTokenizer tokenizer = new StringTokenizer(value, ","); tokenizer.hasMoreTokens(); ) { String number = tokenizer.nextToken(); if(!ValidatorUtil.isValidNumber(number)) { error(formComponent); break; } } } } ### My Model ### public class SubscriberGroup implements Serializable { private String name; private String description; private String file; private String numbers; private int count; private Date expireDate; // just many setter getter methods here .. // ...} and some otherquestion, can'tfile (or file's name)be populate into my model when submitted? like other textField (now I just write it to somewhere and custom set it's location to my modelwithmodel.setFile(myFilePath)). BR, black Yahoo! FareChase - Search multiple travel sites in one click. Yahoo! FareChase - Search multiple travel sites in one click. Yahoo! FareChase - Search multiple travel sites in one click.
Re: [Wicket-user] Is this a bug? Please help.
you can report bugs here: http://sourceforge.net/tracker/?group_id=119783atid=684975On 11/3/05, blackboy zabaha [EMAIL PROTECTED] wrote: Sorry, How to make a bug report? I'm so new and never subscribe to any mail-list before. BR, blackJohan Compagner [EMAIL PROTECTED] wrote: can you make a bug report for this with a copy of the mail below? On 11/3/05, blackboy zabaha [EMAIL PROTECTED] wrote: This occure on browser, the value of textfield changed when form is invalid and return. I just found that this is not problem with customValidator, but with RequiedTextField with multipart form (I'm not sure this will ocurred with only requiedValidator or other validator else, and also withany other charactors). My newtesting to find out thereal problem'scauseis just modifying the UploadPage.java, UploadPage.html, UploadPage.properties in package wicket.examples.upload, which porvided with wicket-example. ### UploadPage.java ### // just add 2 required textfield in private inner class UploadPage.FileUploadForm add(new RequiredTextField(t1));add(new RequiredTextField(t2)); ### UploadPage.html ### !-- add these lines into simpleUpload form -- input type=text wicket:id=t1/ input type=text wicket:id=t2/ ### UploadPage.properties ### # add these lines simpleUpload.t1.RequiredValidator=t1 required.simpleUpload.t2.RequiredValidator=t2 required. run example goto upload example then input a,b,c,d, (or indeed any String with comma) into t1 textfield, let t2 be blank so form is invalid, do not have to load any file. submit and then see value in t1 textfield. I think u will see a;b;c;d (just notice that last comma(s) also lost). Is this show that it's really a bug or I do it a wrong way, (indeed I just don't want to be a bug-reporter, I just want the way to solve my problem),plz suggest me how to solve this problem, too. I need help as soon as posible. BR, black Johan Compagner [EMAIL PROTECTED] wrote: What are you saying exactly?Are you saying that you input a value with a , in a textfield in youre browserand that , will be replaced with ; when you read it in at the serverside? Or are you saying that the model value does have a , in the string and it is displayed as a ; in the browser?johan On 11/3/05, blackboy zabaha [EMAIL PROTECTED] wrote: To all, I have some problem with wicket, I'm newbie. Condition - A form with a CompoundPropertyModel - 2 RequiredTextField - 1 FileUploadField - 1 TextArea with a CustomValidator when I input string value with comma (,) in either or bothrequiredTextField with an invalid value of textArea field, the value of requiredTextField will always replace all comma with ; (Note : other thing work fine, CustomValidator work right, just this replaceAll-likebehavior!) but if form pass my CustomValidator, nothing wrong. Below are some important part of codes. ### My Form ### public SubscriberGroupForm(String id, SubscriberGroup model) { super(id, new CompoundPropertyModel(model)); setMultiPart(true); setMaxSize(Bytes.megabytes(10)); add(new RequiredTextField(name)); add(new RequiredTextField(description)); countLabel = new Label(count, new PropertyModel(model, count)); countLabel.setVisible(false); add(countLabel); fileUploadField = new FileUploadField(file); add(fileUploadField); add(new TextArea(numbers).add(NumberValidator.getInstance())); // --- My CustomValidator. add(new Button(submitButton)); final FeedbackPanel simpleFeedback = new FeedbackPanel(simpleFeedback); add(simpleFeedback); } ### My CustomValidator ### public void onValidate(wicket.markup.html.form.FormComponent formComponent, String value) { if(value == null) { return; } else { for(StringTokenizer tokenizer = new StringTokenizer(value, ,); tokenizer.hasMoreTokens(); ) { String number = tokenizer.nextToken(); if(!ValidatorUtil.isValidNumber(number)) { error(formComponent); break; } } } } ### My Model ### public class SubscriberGroup implements Serializable { private String name; private String description; private String file; private String numbers; private int count; private Date expireDate; // just many setter getter methods here .. // ...} and some otherquestion, can'tfile (or file's name)be populate into my model when submitted? like other textField (now I just write it to somewhere and custom set it's location to my modelwithmodel.setFile(myFilePath)). BR, black Yahoo! FareChase - Search multiple travel sites in one click. Yahoo! FareChase - Search multiple travel sites in one click. Yahoo! FareChase - Search multiple travel sites in one click.
[Wicket-user] PageExpiredErrorPage
Hi, I know with getPages().setPageExpiredErrorPage(Class) I can redirect users to a customized page when a page is expired. But I want to do more when this event occurs. Like logging and some bit of business logic before sending the user to the page expired page. I have looked at ApplicationPages class but see no possibility of overiding a method to achieve this functionality. Any ideas? Francis
Re: [Wicket-user] Abstract validator always throws MissingResourceException
Thank you very much, I must have overlooked this functionality. -Matej Juergen Donnerstag wrote: Try RequiredValidator = ${label} is missing ${label} will either be replace with the component id or in case it is defined, the formComponent's label, which is defined like myPage.myInput = Price Juergen On 11/3/05, Matej Knopp [EMAIL PROTECTED] wrote: If I put there something like RequiredValidator=XYZ it works. But that's not what I mean. The problem is, that I want to see in feedback something like * entry1.RequiredValidator value is missing * entry2.RequiredValidator value is missing So that I know which values should I add. Not the situation is that if I don't specify anything, I get java.util.MissingResourceException: Unable to find resource: RequiredValidator But I don't know, for which validator the message is missing. -Matej Juergen Donnerstag wrote: Which version are you using? There is a test in cvs head which tests it and it seems to work. Defaults can be defined if the key is just RequiredValidator (the validators class name without any prefix). In case no other key is found, it'll be used as default. Juergen On 11/3/05, Matej Knopp [EMAIL PROTECTED] wrote: Hi. I just want to ask, why AbstractValidator always throws missing resource exception when Validator message is not found. It virtually ignores application settings. Is this deliberate? During development it's quite inconvenient do deal with these exceptions. Is there any way to disable this behavior? Or am I completely missing something? -Matej --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Adding Support for optgroup
I'm sure this is Igor's territory, but I was wondering if, like how Check/CheckGroup and Radio/RadioGroup was done, if we could also add something to permit optgroups. My thought was to have something like a Select object which takes a list of OptGroup components. The OptGroup component then takes a list of SelectOption components. The other way I was thinking about it was to add a constructor to DropDownChoice and ListMultipleChoice which takes a Map. Then each Map key could be the optgroup value and the value could be a list of what should appear within that optgroup. Thoughts?--Andrew
[Wicket-user] Re: Wicket 1.1 line endings bug?
Filled as #1347101. Thanks for your work on Wicket. It would be nice if you don't change line endings in Wicket sources (this is not related to the reported bug) between releases of Wicket. When I use source comparing just to see differences between versions, all files differ. Thanks, Jan Martijn Dashorst [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I don't know... It could be that because the 1.1 build was done on my Mac, and the RC builds were done on my MS laptop. Can you file a bug report, with a more precise description on what you think is wrong? Martijn On 11/3/05, jan_bar [EMAIL PROTECTED] wrote: Hi, I compared results of rendered page from Wicket 1.1-rc2 and final 1.1. In one page the 1.1 version mixes unix and microsoft line endings (it worked well with 1.1-rc). Is this know bug? Jan --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Re: Wicket 1.1 line endings bug?
I don't change the line endings, CVS does that for me. So basically you are suggesting I should stop using my mac ;-). Long live the differences between Mac, Linux and Dos... CR/LF/CRLF. Just curious, why don't you use CVS diff's? Check out Wicket 1.1 from CVS, and compare it to another version. I know most IDE's support that. MartijnOn 11/3/05, jan_bar [EMAIL PROTECTED] wrote: Filled as #1347101. Thanks for your work on Wicket. It would be nice if youdon't change line endings in Wicket sources (this is not related to thereported bug) between releases of Wicket. When I use source comparing just to see differences between versions, all files differ.Thanks, JanMartijn Dashorst [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]I don't know... It could be that because the 1.1 build was done on my Mac,and the RC builds were done on my MS laptop.Can you file a bug report, with a more precise description on what you think is wrong?MartijnOn 11/3/05, jan_bar [EMAIL PROTECTED] wrote:Hi,I compared results of rendered page from Wicket 1.1-rc2 and final 1.1. In one page the 1.1 version mixes unix and microsoft line endings (it workedwell with 1.1-rc). Is this know bug?Jan--- SF.Net email is sponsored by:Tame your development challenges with Apache's Geronimo App Server. Downloadit for free - -and be entered to win a 42 plasma tv or your very ownSony(tm)PSP.Click here to play: http://sourceforge.net/geronimo.php___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user--Living a wicket life...Martijn Dashorst - http://www.jroller.com/page/dashorstWicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1--- SF.Net email is sponsored by:Tame your development challenges with Apache's Geronimo App Server. Downloadit for free - -and be entered to win a 42 plasma tv or your very ownSony(tm)PSP.Click here to play: http://sourceforge.net/geronimo.php___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user-- Living a wicket life...Martijn Dashorst - http://www.jroller.com/page/dashorstWicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1
[Wicket-user] Re: PageExpiredErrorPage
I've solved the problem! FrancisOn 11/3/05, Francis Amanfo [EMAIL PROTECTED] wrote: Hi, I know with getPages().setPageExpiredErrorPage(Class) I can redirect users to a customized page when a page is expired. But I want to do more when this event occurs. Like logging and some bit of business logic before sending the user to the page expired page. I have looked at ApplicationPages class but see no possibility of overiding a method to achieve this functionality. Any ideas? Francis
Re: [Wicket-user] Re: Wicket 1.1 line endings bug?
You should just stop using youre mac yes. That would be make everything much better :) On 11/3/05, Martijn Dashorst [EMAIL PROTECTED] wrote: I don't change the line endings, CVS does that for me. So basically you are suggesting I should stop using my mac ;-). Long live the differences between Mac, Linux and Dos... CR/LF/CRLF. Just curious, why don't you use CVS diff's? Check out Wicket 1.1 from CVS, and compare it to another version. I know most IDE's support that. MartijnOn 11/3/05, jan_bar [EMAIL PROTECTED] wrote: Filled as #1347101. Thanks for your work on Wicket. It would be nice if youdon't change line endings in Wicket sources (this is not related to thereported bug) between releases of Wicket. When I use source comparing just to see differences between versions, all files differ.Thanks, JanMartijn Dashorst [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]I don't know... It could be that because the 1.1 build was done on my Mac,and the RC builds were done on my MS laptop.Can you file a bug report, with a more precise description on what you think is wrong?MartijnOn 11/3/05, jan_bar [EMAIL PROTECTED] wrote:Hi, I compared results of rendered page from Wicket 1.1-rc2 and final 1.1. In one page the 1.1 version mixes unix and microsoft line endings (it workedwell with 1.1-rc). Is this know bug?Jan--- SF.Net email is sponsored by:Tame your development challenges with Apache's Geronimo App Server. Downloadit for free - -and be entered to win a 42 plasma tv or your very ownSony(tm)PSP.Click here to play: http://sourceforge.net/geronimo.php___Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --Living a wicket life...Martijn Dashorst - http://www.jroller.com/page/dashorstWicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- SF.Net email is sponsored by:Tame your development challenges with Apache's Geronimo App Server. Downloadit for free - -and be entered to win a 42 plasma tv or your very ownSony(tm)PSP.Click here to play: http://sourceforge.net/geronimo.php___Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Living a wicket life...Martijn Dashorst - http://www.jroller.com/page/dashorstWicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1
Re: [Wicket-user] Mutable form component ?
readonly can also be done with an attribute modifier (readonly=readonly attribute) But different html output can only be done by panels. So just have 2 panels one with an text area and one with just a label And switch between those panels. On 11/3/05, Laurent PETIT [EMAIL PROTECTED] wrote: Great news!What would you suggest as a temporary solution, as long as 1.2 isn't out ?On 11/3/05, Juergen Donnerstag [EMAIL PROTECTED] wrote: That is part of 1.2 and currently under development Juergen On 11/3/05, Laurent PETIT [EMAIL PROTECTED] wrote: Hello, I wonder if it is possible to create mutable form components, e.g. for my application the same administration page is shown but depending on the rights of the user, an element : - may be editable( e.g. rendered as a textarea / TextArea ) - may be read-only ( e.g. rendered as a div / MultiLineLabel) - may be not visible at all ( this one is easy with the setVisible() method) I guess this can be possible if I make something like this in my application : extend Panel, include the 2 kinds of elements in my panel class panel markup. And then in the Panel class, bind the same model to the 2 components, and switch the visibility given an access right property. This seems feasible, but as this need appears very common generic to me, I wonder if something already exists for this, in core, extension or stuff ? (I haven't found anything by myself). So my questions are : - is this already standardized in wicket (core/extension/stuff) ? If so, where ? - do you see better alternatives (as the one mentioned above) to do this by myself ? Thanks in advance, -- Laurent--- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP.Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP.Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user ---SF.Net email is sponsored by:Tame your development challenges with Apache's Geronimo App Server. Downloadit for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP.Click here to play: http://sourceforge.net/geronimo.php___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to do validation on a component that relate to other(s).
Write youre own special validator that has references the FileUploadField and add it to the TextArea. Then you can check both when the validation of the area happens. On 11/3/05, blackboy zabaha [EMAIL PROTECTED] wrote: I have a form that do loading list of customers. User can upload afile or just fill in datawith a textarea (separate each customer with comma). List of customers is required. Souser have to fill in either (or both) data of these 2 fields (FileUploadField or TextArea). How to do required validation such this condition since validation just done onone component own? BR, black Yahoo! FareChase - Search multiple travel sites in one click.
Re: [Wicket-user] Adding Support for optgroup
I dont really understant what you mean. If you want to do it like the Check/CheckGroup is done you would have a SelectGroup and Select components that you would put into your html and then you can manually insert optgroup ie select wicket:id=selectGroup optgroupwicket doesnt care/optgroup select wicked:id=choice1 select wicket:id=choice2 /optgroup /select But then you are talking about making it a single component, so that is not like the Check/CheckGroup work. If i was going to build it as a single component I would use the embedded objects like you mentioned, not a map. Ie class OptGroup { List choices; IModel title; } and my component would take a list of optgroups. OR maybe something smoother would be to do extend the current DropDownChoice to do an instanceof check on the item its rendering and if its an OptGroup object write out the OptGroup. Thoughts? -Igor On 11/3/05, Andrew Berman [EMAIL PROTECTED] wrote: I'm sure this is Igor's territory, but I was wondering if, like how Check/CheckGroup and Radio/RadioGroup was done, if we could also add something to permit optgroups. My thought was to have something like a Select object which takes a list of OptGroup components. The OptGroup component then takes a list of SelectOption components. The other way I was thinking about it was to add a constructor to DropDownChoice and ListMultipleChoice which takes a Map. Then each Map key could be the optgroup value and the value could be a list of what should appear within that optgroup. Thoughts?--Andrew
Re: [Wicket-user] Re: Wicket 1.1 line endings bug?
+1 on stopping the use of the mac :) -Igor On 11/3/05, Johan Compagner [EMAIL PROTECTED] wrote: You should just stop using youre mac yes. That would be make everything much better :) On 11/3/05, Martijn Dashorst [EMAIL PROTECTED] wrote: I don't change the line endings, CVS does that for me. So basically you are suggesting I should stop using my mac ;-). Long live the differences between Mac, Linux and Dos... CR/LF/CRLF. Just curious, why don't you use CVS diff's? Check out Wicket 1.1 from CVS, and compare it to another version. I know most IDE's support that. MartijnOn 11/3/05, jan_bar [EMAIL PROTECTED] wrote: Filled as #1347101. Thanks for your work on Wicket. It would be nice if youdon't change line endings in Wicket sources (this is not related to thereported bug) between releases of Wicket. When I use source comparing just to see differences between versions, all files differ.Thanks, JanMartijn Dashorst [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]I don't know... It could be that because the 1.1 build was done on my Mac,and the RC builds were done on my MS laptop.Can you file a bug report, with a more precise description on what you think is wrong?MartijnOn 11/3/05, jan_bar [EMAIL PROTECTED] wrote:Hi, I compared results of rendered page from Wicket 1.1-rc2 and final 1.1. In one page the 1.1 version mixes unix and microsoft line endings (it workedwell with 1.1-rc). Is this know bug?Jan--- SF.Net email is sponsored by:Tame your development challenges with Apache's Geronimo App Server. Downloadit for free - -and be entered to win a 42 plasma tv or your very ownSony(tm)PSP.Click here to play: http://sourceforge.net/geronimo.php___Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --Living a wicket life...Martijn Dashorst - http://www.jroller.com/page/dashorstWicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- SF.Net email is sponsored by:Tame your development challenges with Apache's Geronimo App Server. Downloadit for free - -and be entered to win a 42 plasma tv or your very ownSony(tm)PSP.Click here to play: http://sourceforge.net/geronimo.php___Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Living a wicket life...Martijn Dashorst - http://www.jroller.com/page/dashorstWicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1
Re: [Wicket-user] Mutable form component ?
OK, I'll do that with 2 panels for the moment. Thanks Johan, -- Laurent On 11/3/05, Johan Compagner [EMAIL PROTECTED] wrote: readonly can also be done with an attribute modifier (readonly=readonly attribute) But different html output can only be done by panels. So just have 2 panels one with an text area and one with just a label And switch between those panels. On 11/3/05, Laurent PETIT [EMAIL PROTECTED] wrote: Great news! What would you suggest as a temporary solution, as long as 1.2 isn't out ? On 11/3/05, Juergen Donnerstag [EMAIL PROTECTED] wrote: That is part of 1.2 and currently under development Juergen On 11/3/05, Laurent PETIT [EMAIL PROTECTED] wrote: Hello, I wonder if it is possible to create mutable form components, e.g. for my application the same administration page is shown but depending on the rights of the user, an element : - may be editable ( e.g. rendered as a textarea / TextArea ) - may be read-only ( e.g. rendered as a div / MultiLineLabel) - may be not visible at all ( this one is easy with the setVisible() method) I guess this can be possible if I make something like this in my application : extend Panel, include the 2 kinds of elements in my panel class panel markup. And then in the Panel class, bind the same model to the 2 components, and switch the visibility given an access right property. This seems feasible, but as this need appears very common generic to me, I wonder if something already exists for this, in core, extension or stuff ? (I haven't found anything by myself). So my questions are : - is this already standardized in wicket (core/extension/stuff) ? If so, where ? - do you see better alternatives (as the one mentioned above) to do this by myself ? Thanks in advance, -- Laurent --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Adding Support for optgroup
It would be similar to Check/CheckGroup because you could create a Select object, which is like the CheckGroup object, and an Option object, which is similar to the Check object. By doing that, then I can manually insert the optgroup tag either directly in the HTML or using a WebMarkupContainer in the JavaCode if the label needs to be dynamic. However, your thought about having an OptGroup object and extending the current DropDownChoice (and it makes sense to do the ListMultipleChoice too as you can use OptGroup with a select box that allows multiple choices) intrigues me. Maybe that is the smoothest way to go because it will reuse what's already available and would only add the one OptGroup component. I like it. By the way, your html should look like below, your HTML above is not correct:select wicket:id=selectGroup optgroup label=Label 1 option/option option/option /optgroup optgroup label=Label 2 option/option option/option /optgroup/select--AndrewOn 11/3/05, Igor Vaynberg [EMAIL PROTECTED] wrote:I dont really understant what you mean. If you want to do it like the Check/CheckGroup is done you would have a SelectGroup and Select components that you would put into your html and then you can manually insert optgroup ie select wicket:id=selectGroup optgroupwicket doesnt care/optgroup select wicked:id=choice1 select wicket:id=choice2 /optgroup /select But then you are talking about making it a single component, so that is not like the Check/CheckGroup work. If i was going to build it as a single component I would use the embedded objects like you mentioned, not a map. Ie class OptGroup { List choices; IModel title; } and my component would take a list of optgroups. OR maybe something smoother would be to do extend the current DropDownChoice to do an instanceof check on the item its rendering and if its an OptGroup object write out the OptGroup. Thoughts? -Igor On 11/3/05, Andrew Berman [EMAIL PROTECTED] wrote: I'm sure this is Igor's territory, but I was wondering if, like how Check/CheckGroup and Radio/RadioGroup was done, if we could also add something to permit optgroups. My thought was to have something like a Select object which takes a list of OptGroup components. The OptGroup component then takes a list of SelectOption components. The other way I was thinking about it was to add a constructor to DropDownChoice and ListMultipleChoice which takes a Map. Then each Map key could be the optgroup value and the value could be a list of what should appear within that optgroup. Thoughts?--Andrew
Re: [Wicket-user] Adding Support for optgroup
yeah sorry, think of it as pseudo html :) -Igor On 11/3/05, Andrew Berman [EMAIL PROTECTED] wrote: It would be similar to Check/CheckGroup because you could create a Select object, which is like the CheckGroup object, and an Option object, which is similar to the Check object. By doing that, then I can manually insert the optgroup tag either directly in the HTML or using a WebMarkupContainer in the JavaCode if the label needs to be dynamic. However, your thought about having an OptGroup object and extending the current DropDownChoice (and it makes sense to do the ListMultipleChoice too as you can use OptGroup with a select box that allows multiple choices) intrigues me. Maybe that is the smoothest way to go because it will reuse what's already available and would only add the one OptGroup component. I like it. By the way, your html should look like below, your HTML above is not correct:select wicket:id=selectGroup optgroup label=Label 1 option/option option/option /optgroup optgroup label=Label 2 option/option option/option /optgroup/select--AndrewOn 11/3/05, Igor Vaynberg [EMAIL PROTECTED] wrote:I dont really understant what you mean. If you want to do it like the Check/CheckGroup is done you would have a SelectGroup and Select components that you would put into your html and then you can manually insert optgroup ie select wicket:id=selectGroup optgroupwicket doesnt care/optgroup select wicked:id=choice1 select wicket:id=choice2 /optgroup /select But then you are talking about making it a single component, so that is not like the Check/CheckGroup work. If i was going to build it as a single component I would use the embedded objects like you mentioned, not a map. Ie class OptGroup { List choices; IModel title; } and my component would take a list of optgroups. OR maybe something smoother would be to do extend the current DropDownChoice to do an instanceof check on the item its rendering and if its an OptGroup object write out the OptGroup. Thoughts? -Igor On 11/3/05, Andrew Berman [EMAIL PROTECTED] wrote: I'm sure this is Igor's territory, but I was wondering if, like how Check/CheckGroup and Radio/RadioGroup was done, if we could also add something to permit optgroups. My thought was to have something like a Select object which takes a list of OptGroup components. The OptGroup component then takes a list of SelectOption components. The other way I was thinking about it was to add a constructor to DropDownChoice and ListMultipleChoice which takes a Map. Then each Map key could be the optgroup value and the value could be a list of what should appear within that optgroup. Thoughts?--Andrew
Re: [Wicket-user] Is this a bug? Please help.
I just created it for you: https://sourceforge.net/tracker/index.php?func=detailaid=1347328group_id=119783atid=684975 Eelco On 11/3/05, Johan Compagner [EMAIL PROTECTED] wrote: you can report bugs here: http://sourceforge.net/tracker/?group_id=119783atid=684975 On 11/3/05, blackboy zabaha [EMAIL PROTECTED] wrote: Sorry, How to make a bug report? I'm so new and never subscribe to any mail-list before. BR, black Johan Compagner [EMAIL PROTECTED] wrote: can you make a bug report for this with a copy of the mail below? On 11/3/05, blackboy zabaha [EMAIL PROTECTED] wrote: This occure on browser, the value of textfield changed when form is invalid and return. I just found that this is not problem with customValidator, but with RequiedTextField with multipart form (I'm not sure this will ocurred with only requiedValidator or other validator else, and also with any other charactors). My new testing to find out the real problem's cause is just modifying the UploadPage.java, UploadPage.html, UploadPage.properties in package wicket.examples.upload, which porvided with wicket-example. ### UploadPage.java ### // just add 2 required textfield in private inner class UploadPage.FileUploadForm add(new RequiredTextField(t1)); add(new RequiredTextField(t2)); ### UploadPage.html ### !-- add these lines into simpleUpload form -- input type=text wicket:id=t1/ input type=text wicket:id=t2/ ### UploadPage.properties ### # add these lines simpleUpload.t1.RequiredValidator=t1 required. simpleUpload.t2.RequiredValidator=t2 required. run example goto upload example then input a,b,c,d, (or indeed any String with comma) into t1 textfield, let t2 be blank so form is invalid, do not have to load any file. submit and then see value in t1 textfield. I think u will see a;b;c;d (just notice that last comma(s) also lost). Is this show that it's really a bug or I do it a wrong way, (indeed I just don't want to be a bug-reporter, I just want the way to solve my problem), plz suggest me how to solve this problem, too. I need help as soon as posible. BR, black Johan Compagner [EMAIL PROTECTED] wrote: What are you saying exactly? Are you saying that you input a value with a , in a textfield in youre browser and that , will be replaced with ; when you read it in at the serverside? Or are you saying that the model value does have a , in the string and it is displayed as a ; in the browser? johan On 11/3/05, blackboy zabaha [EMAIL PROTECTED] wrote: To all, I have some problem with wicket, I'm newbie. Condition - A form with a CompoundPropertyModel - 2 RequiredTextField - 1 FileUploadField - 1 TextArea with a CustomValidator when I input string value with comma (,) in either or both requiredTextField with an invalid value of textArea field, the value of requiredTextField will always replace all comma with ; (Note : other thing work fine, CustomValidator work right, just this replaceAll-like behavior!) but if form pass my CustomValidator, nothing wrong. Below are some important part of codes. ### My Form ### public SubscriberGroupForm(String id, SubscriberGroup model) { super(id, new CompoundPropertyModel(model)); setMultiPart(true); setMaxSize(Bytes.megabytes(10)); add(new RequiredTextField(name)); add(new RequiredTextField(description)); countLabel = new Label(count, new PropertyModel(model, count)); countLabel.setVisible(false); add(countLabel); fileUploadField = new FileUploadField(file); add(fileUploadField); add(new TextArea(numbers).add(NumberValidator.getInstance())); // --- My CustomValidator. add(new Button(submitButton)); final FeedbackPanel simpleFeedback = new FeedbackPanel(simpleFeedback); add(simpleFeedback); } ### My CustomValidator ### public void onValidate(wicket.markup.html.form.FormComponent formComponent, String value) { if(value == null) { return; } else { for(StringTokenizer tokenizer = new StringTokenizer(value, ,); tokenizer.hasMoreTokens(); ) { String number = tokenizer.nextToken(); if(!ValidatorUtil.isValidNumber(number)) { error(formComponent); break; } } } } ### My Model ### public class SubscriberGroup implements Serializable { private String name; private String description; private String file; private String numbers; private int count;
Re: Re: [Wicket-user] Re: Wicket 1.1 line endings bug?
+1 also. I think that settles it... Martijn... if you would be so kind as to destroy your Mac immediatly and post some photos to the list to prove that you have done so. A sledgehammer ought to suffice. Thanks, Adam. - Original Message - From: Igor Vaynberg To: wicket-user@lists.sourceforge.net Sent: Thursday, November 03, 2005 4:15 PM Subject: [Norton AntiSpam] Re: [Wicket-user] Re: Wicket 1.1 line endings bug? +1 on stopping the use of the mac :)-Igor On 11/3/05, Johan Compagner [EMAIL PROTECTED] wrote: You should just stop using youre mac yes. That would be make everything much better :) On 11/3/05, Martijn Dashorst [EMAIL PROTECTED] wrote: I don't change the line endings, CVS does that for me. So basically you are suggesting I should stop using my mac ;-).Long live the differences between Mac, Linux and Dos... CR/LF/CRLF.Just curious, why don't you use CVS diff's? Check out Wicket 1.1 from CVS, and compare it to another version. I know most IDE's support that. Martijn On 11/3/05, jan_bar [EMAIL PROTECTED] wrote: Filled as #1347101. Thanks for your work on Wicket. It would be nice if youdon't change line endings in Wicket sources (this is not related to thereported bug) between releases of Wicket. When I use source comparing just to see differences between versions, all files differ.Thanks, Jan"Martijn Dashorst" [EMAIL PROTECTED] wrote in messagenews:[EMAIL PROTECTED]I don't know... It could be that because the 1.1 build was done on my Mac,and the RC builds were done on my MS laptop.Can you file a bug report, with a more precise description on what you think is wrong?MartijnOn 11/3/05, jan_bar [EMAIL PROTECTED] wrote:Hi,I compared results of rendered page from Wicket 1.1-rc2 and final 1.1. In one page the 1.1 version mixes unix and "microsoft" line endings (it workedwell with 1.1-rc). Is this know bug?Jan---SF.Net email is sponsored by:Tame your development challenges with Apache's Geronimo App Server. Downloadit for free - -and be entered to win a 42" plasma tv or your very ownSony(tm)PSP.Click here to play: http://sourceforge.net/geronimo.php___Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user--Living a wicket life...Martijn Dashorst - http://www.jroller.com/page/dashorstWicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- SF.Net email is sponsored by:Tame your development challenges with Apache's Geronimo App Server. Downloadit for free - -and be entered to win a 42" plasma tv or your very ownSony(tm)PSP.Click here to play: http://sourceforge.net/geronimo.php___Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user-- Living a wicket life...Martijn Dashorst - http://www.jroller.com/page/dashorstWicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1
[Wicket-user] Re: Previewing html only, including nested components html
nobody for this one ? ;-) On 11/3/05, Laurent PETIT [EMAIL PROTECTED] wrote: Hello, I don't know how to correctly preview a markup html only when it refers to css, javascript files, that are meant to be relative to the webapp context. I think this should be done by viewing the html markup from a running instance of the webapp only ? And also, I'd like to have this preview include the markup of nested panels, ... Is it possible in development mode ? This should be great, because it is hard to decompose a page into logical parts without the hassle of maintaining in synch two tag bodies or two wicket:remove elements. Any suggestion here ? --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] currentNodeLinkClicked?
Hi, I am trying to use wicket.markup.html.tree.Tree. In my case, I allowed the user to select the node on the tree andchangethedescription of the node in a text box. When saving the changes, I wanted to getthe currentnode selected. Does wicket already providea method to get the last selected node or do I need to store the information when the nodeLinkClicked function is fired? Regards, James Yong Meet your soulmate! Yahoo! Asia presents Meetic - where millions of singles gather
Re: Re: [Wicket-user] Re: Wicket 1.1 line endings bug?
TORCH IT...FIRE FIRE! -Igor On 11/3/05, Adam Chesney [EMAIL PROTECTED] wrote: +1 also. I think that settles it... Martijn... if you would be so kind as to destroy your Mac immediatly and post some photos to the list to prove that you have done so. A sledgehammer ought to suffice. Thanks, Adam. - Original Message - From: Igor Vaynberg To: wicket-user@lists.sourceforge.net Sent: Thursday, November 03, 2005 4:15 PM Subject: [Norton AntiSpam] Re: [Wicket-user] Re: Wicket 1.1 line endings bug? +1 on stopping the use of the mac :)-Igor On 11/3/05, Johan Compagner [EMAIL PROTECTED] wrote: You should just stop using youre mac yes. That would be make everything much better :) On 11/3/05, Martijn Dashorst [EMAIL PROTECTED] wrote: I don't change the line endings, CVS does that for me. So basically you are suggesting I should stop using my mac ;-).Long live the differences between Mac, Linux and Dos... CR/LF/CRLF.Just curious, why don't you use CVS diff's? Check out Wicket 1.1 from CVS, and compare it to another version. I know most IDE's support that. Martijn On 11/3/05, jan_bar [EMAIL PROTECTED] wrote: Filled as #1347101. Thanks for your work on Wicket. It would be nice if youdon't change line endings in Wicket sources (this is not related to thereported bug) between releases of Wicket. When I use source comparing just to see differences between versions, all files differ.Thanks, JanMartijn Dashorst [EMAIL PROTECTED] wrote in messagenews:[EMAIL PROTECTED]I don't know... It could be that because the 1.1 build was done on my Mac,and the RC builds were done on my MS laptop.Can you file a bug report, with a more precise description on what you think is wrong?MartijnOn 11/3/05, jan_bar [EMAIL PROTECTED] wrote:Hi, I compared results of rendered page from Wicket 1.1-rc2 and final 1.1. In one page the 1.1 version mixes unix and microsoft line endings (it workedwell with 1.1-rc). Is this know bug?Jan---SF.Net email is sponsored by:Tame your development challenges with Apache's Geronimo App Server. Downloadit for free - -and be entered to win a 42 plasma tv or your very ownSony(tm)PSP.Click here to play: http://sourceforge.net/geronimo.php___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user--Living a wicket life...Martijn Dashorst - http://www.jroller.com/page/dashorstWicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- SF.Net email is sponsored by:Tame your development challenges with Apache's Geronimo App Server. Downloadit for free - -and be entered to win a 42 plasma tv or your very ownSony(tm)PSP.Click here to play: http://sourceforge.net/geronimo.php___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user-- Living a wicket life...Martijn Dashorst - http://www.jroller.com/page/dashorstWicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1
[Wicket-user] Re: Re: Re: Wicket 1.1 line endings bug?
Who is Mac? A cute cat? Then I will survive with any line endings he likes. Jan "Igor Vaynberg" [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]...TORCH IT...FIRE FIRE!-Igor On 11/3/05, Adam Chesney [EMAIL PROTECTED] wrote: +1 also. I think that settles it... Martijn... if you would be so kind as to destroy your Mac immediatly and post some photos to the list to prove that you have done so. A sledgehammer ought to suffice. Thanks, Adam. - Original Message - From: Igor Vaynberg To: wicket-user@lists.sourceforge.net Sent: Thursday, November 03, 2005 4:15 PM Subject: [Norton AntiSpam] Re: [Wicket-user] Re: Wicket 1.1 line endings bug? +1 on stopping the use of the mac :)-Igor On 11/3/05, Johan Compagner [EMAIL PROTECTED] wrote: You should just stop using youre mac yes. That would be make everything much better :) On 11/3/05, Martijn Dashorst [EMAIL PROTECTED] wrote: I don't change the line endings, CVS does that for me. So basically you are suggesting I should stop using my mac ;-).Long live the differences between Mac, Linux and Dos... CR/LF/CRLF.Just curious, why don't you use CVS diff's? Check out Wicket 1.1 from CVS, and compare it to another version. I know most IDE's support that. Martijn On 11/3/05, jan_bar [EMAIL PROTECTED] wrote: Filled as #1347101. Thanks for your work on Wicket. It would be nice if youdon't change line endings in Wicket sources (this is not related to thereported bug) between releases of Wicket. When I use source comparing just to see differences between versions, all files differ.Thanks, Jan"Martijn Dashorst" [EMAIL PROTECTED] wrote in messagenews:[EMAIL PROTECTED]I don't know... It could be that because the 1.1 build was done on my Mac,and the RC builds were done on my MS laptop.Can you file a bug report, with a more precise description on what you think is wrong?MartijnOn 11/3/05, jan_bar [EMAIL PROTECTED] wrote:Hi,I compared results of rendered page from Wicket 1.1-rc2 and final 1.1. In one page the 1.1 version mixes unix and "microsoft" line endings (it workedwell with 1.1-rc). Is this know bug?Jan---SF.Net email is sponsored by:Tame your development challenges with Apache's Geronimo App Server. Downloadit for free - -and be entered to win a 42" plasma tv or your very ownSony(tm)PSP.Click here to play: http://sourceforge.net/geronimo.php___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user--Living a wicket life...Martijn Dashorst - http://www.jroller.com/page/dashorstWicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- SF.Net email is sponsored by:Tame your development challenges with Apache's Geronimo App Server. Downloadit for free - -and be entered to win a 42" plasma tv or your very ownSony(tm)PSP.Click here to play: http://sourceforge.net/geronimo.php___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user-- Living a wicket life...Martijn Dashorst - http://www.jroller.com/page/dashorstWicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1
[Wicket-user] Re: Re: Wicket 1.1 line endings bug?
Just for your information, I have a JUnite test that compares rendering result to stored file (as you do in Wicket test). That test ceased to work in with 1.1. I spent some time finding where the difference is. I stored the new file and compared to the old one with CVS. It showed that the files differ, but showed no different lines. Some of the diffing SW can show you whitespaces (tabs vers. spaces) but only few of them will show you different line endings. I don't think it is good to join the already confused world of line-endings, it's better to stick with just one. Just my opinion. Jan Martijn Dashorst [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I don't change the line endings, CVS does that for me. So basically you are suggesting I should stop using my mac ;-). Long live the differences between Mac, Linux and Dos... CR/LF/CRLF. Just curious, why don't you use CVS diff's? Check out Wicket 1.1 from CVS, and compare it to another version. I know most IDE's support that. Martijn On 11/3/05, jan_bar [EMAIL PROTECTED] wrote: Filled as #1347101. Thanks for your work on Wicket. It would be nice if you don't change line endings in Wicket sources (this is not related to the reported bug) between releases of Wicket. When I use source comparing just to see differences between versions, all files differ. Thanks, Jan Martijn Dashorst [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I don't know... It could be that because the 1.1 build was done on my Mac, and the RC builds were done on my MS laptop. Can you file a bug report, with a more precise description on what you think is wrong? Martijn On 11/3/05, jan_bar [EMAIL PROTECTED] wrote: Hi, I compared results of rendered page from Wicket 1.1-rc2 and final 1.1. In one page the 1.1 version mixes unix and microsoft line endings (it worked well with 1.1-rc). Is this know bug? Jan --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Re: Previewing html only, including nested components html
On 11/3/05, Juergen Donnerstag [EMAIL PROTECTED] wrote: in order to be pre-viewable the html editor must be able to find the css file without the help of wicket. The easiest way to accomplish it is to put the css into your source path and by means of wicket:link (autolinks) wicket is able to find them at runtime. Ok, I understand that. But this does not solve the second issue, as you stated: And also, I'd like to have this preview include the markup of nested panels, Is it possible in development mode ? A html editor can not do it. The html editor does not know anything about wicket and panel. Oh sorry, I just re-thought about it, and I clearly understand it cannot work. This should be great, because it is hard to decompose a page into logical parts without the hassle of maintaining in synch two tag bodies or two wicket:remove elements. ?!?! What is the question? No more questions, since I had the evidence that what I was thinking of isn't at all possible (since, of course, the associated panel markup is bound to the class of the panel, and in the parent markup, there is nothing special but a wicket:id attribute, which isn't sufficient to deduce the right nested markup file ...) Sorry for this one, -- Laurent --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: Re: [Wicket-user] Re: Wicket 1.1 line endings bug?
Sounds to me like envy. Admit it, you all wish you had a Mac and are jealous of those of us who do! (My one and only useful(??) contribution to this list...) On Thu, 2005-11-03 at 09:04 -0800, Igor Vaynberg wrote: TORCH IT...FIRE FIRE! -Igor On 11/3/05, Adam Chesney [EMAIL PROTECTED] wrote: +1 also. I think that settles it... Martijn... if you would be so kind as to destroy your Mac immediatly and post some photos to the list to prove that you have done so. A sledgehammer ought to suffice. Thanks, Adam. - Original Message - From: Igor Vaynberg To: wicket-user@lists.sourceforge.net Sent: Thursday, November 03, 2005 4:15 PM Subject: [Norton AntiSpam] Re: [Wicket-user] Re: Wicket 1.1 line endings bug? +1 on stopping the use of the mac :) -Igor On 11/3/05, Johan Compagner [EMAIL PROTECTED] wrote: You should just stop using youre mac yes. That would be make everything much better :) On 11/3/05, Martijn Dashorst [EMAIL PROTECTED] wrote: I don't change the line endings, CVS does that for me. So basically you are suggesting I should stop using my mac ;-). Long live the differences between Mac, Linux and Dos... CR/LF/CRLF. Just curious, why don't you use CVS diff's? Check out Wicket 1.1 from CVS, and compare it to another version. I know most IDE's support that. Martijn On 11/3/05, jan_bar [EMAIL PROTECTED] wrote: Filled as #1347101. Thanks for your work on Wicket. It would be nice if you don't change line endings in Wicket sources (this is not related to the reported bug) between releases of Wicket. When I use source comparing just to see differences between versions, all files differ. Thanks, Jan Martijn Dashorst [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I don't know... It could be that because the 1.1 build was done on my Mac, and the RC builds were done on my MS laptop. Can you file a bug report, with a more precise description on what you think is wrong? Martijn On 11/3/05, jan_bar [EMAIL PROTECTED] wrote: Hi, I compared results of rendered page from Wicket 1.1-rc2 and final 1.1. In one page the 1.1 version mixes unix and microsoft line
[Wicket-user] Help understanding component creation
Hello! I have read the doc and looked at the examples, but there are still a few things that I don't get. Probably, I have the Tapestry approach stuck too much in my head... How do I write a component that takes parameters? This is an example of what I'd like to do: span wicket:id=myComponent param1=someValue param2=ognl:com.package.SomeClass/ public class MyPanel extends Panel { private String m_param1; private SomeClass m_someClass; public MyPanel( final String id ) { super( id ); } public void setParam1( final String param1 ) { m_param1 = param1; } public String getParam1() { return m_param1; } public void setSomeClass( final SomeClass someClass ) { m_someClass = someClass; } public SomeClass getSomeClass() { return m_someClass; } } Thanks for any advice you can give! --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Adding Support for optgroup
havent decided what the best way to do this is. one problem i see with passing a list of optgroups is that the optgroup will have to have an IModel for its label in case someone wants to i18n it, but then how do we handle attaching and detaching that model since its not attached to any component. maybe separate components like check and checkbox are the best way, and have an optgroup that works exactly like dropdown choice to simplify things. still thinking, thoughts? -Igor On 11/3/05, Igor Vaynberg [EMAIL PROTECTED] wrote: yeah sorry, think of it as pseudo html :) -Igor On 11/3/05, Andrew Berman [EMAIL PROTECTED] wrote: It would be similar to Check/CheckGroup because you could create a Select object, which is like the CheckGroup object, and an Option object, which is similar to the Check object. By doing that, then I can manually insert the optgroup tag either directly in the HTML or using a WebMarkupContainer in the JavaCode if the label needs to be dynamic. However, your thought about having an OptGroup object and extending the current DropDownChoice (and it makes sense to do the ListMultipleChoice too as you can use OptGroup with a select box that allows multiple choices) intrigues me. Maybe that is the smoothest way to go because it will reuse what's already available and would only add the one OptGroup component. I like it. By the way, your html should look like below, your HTML above is not correct:select wicket:id=selectGroup optgroup label=Label 1 option/option option/option /optgroup optgroup label=Label 2 option/option option/option /optgroup/select--AndrewOn 11/3/05, Igor Vaynberg [EMAIL PROTECTED] wrote:I dont really understant what you mean. If you want to do it like the Check/CheckGroup is done you would have a SelectGroup and Select components that you would put into your html and then you can manually insert optgroup ie select wicket:id=selectGroup optgroupwicket doesnt care/optgroup select wicked:id=choice1 select wicket:id=choice2 /optgroup /select But then you are talking about making it a single component, so that is not like the Check/CheckGroup work. If i was going to build it as a single component I would use the embedded objects like you mentioned, not a map. Ie class OptGroup { List choices; IModel title; } and my component would take a list of optgroups. OR maybe something smoother would be to do extend the current DropDownChoice to do an instanceof check on the item its rendering and if its an OptGroup object write out the OptGroup. Thoughts? -Igor On 11/3/05, Andrew Berman [EMAIL PROTECTED] wrote: I'm sure this is Igor's territory, but I was wondering if, like how Check/CheckGroup and Radio/RadioGroup was done, if we could also add something to permit optgroups. My thought was to have something like a Select object which takes a list of OptGroup components. The OptGroup component then takes a list of SelectOption components. The other way I was thinking about it was to add a constructor to DropDownChoice and ListMultipleChoice which takes a Map. Then each Map key could be the optgroup value and the value could be a list of what should appear within that optgroup. Thoughts?--Andrew