[Wicket-user] Is this a bug? Please help.

2005-11-03 Thread blackboy zabaha
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

Re: [Wicket-user] Model Serialization Question

2005-11-03 Thread Johan Compagner
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();

Re: [Wicket-user] Fwd: [Wicket-announce] Vote for Wicket

2005-11-03 Thread Janne Hietamäki
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/

Re: [Wicket-user] Wicket 1.1 line endings bug?

2005-11-03 Thread Martijn Dashorst
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

Re: [Wicket-user] Is this a bug? Please help.

2005-11-03 Thread Johan Compagner
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?

Re: [Wicket-user] Re: TreeView and BookMarkablePage

2005-11-03 Thread Johan Compagner
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).

2005-11-03 Thread blackboy zabaha
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

Re: [Wicket-user] Abstract validator always throws MissingResourceException

2005-11-03 Thread Juergen Donnerstag
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

Re: [Wicket-user] Is this a bug? Please help.

2005-11-03 Thread blackboy zabaha
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

Re: [Wicket-user] Is this a bug? Please help.

2005-11-03 Thread Johan Compagner
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

[Wicket-user] Previewing html only, including nested components html

2005-11-03 Thread Laurent PETIT
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

[Wicket-user] Mutable form component ?

2005-11-03 Thread Laurent PETIT
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 /

Re: [Wicket-user] Mutable form component ?

2005-11-03 Thread Juergen Donnerstag
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

Re: [Wicket-user] Abstract validator always throws MissingResourceException

2005-11-03 Thread Matej Knopp
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

Re: [Wicket-user] Mutable form component ?

2005-11-03 Thread Laurent PETIT
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

Re: [Wicket-user] Abstract validator always throws MissingResourceException

2005-11-03 Thread Juergen Donnerstag
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

Re: [Wicket-user] Is this a bug? Please help.

2005-11-03 Thread blackboy zabaha
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

Re: [Wicket-user] Is this a bug? Please help.

2005-11-03 Thread Johan Compagner
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

[Wicket-user] PageExpiredErrorPage

2005-11-03 Thread Francis Amanfo
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

Re: [Wicket-user] Abstract validator always throws MissingResourceException

2005-11-03 Thread Matej Knopp
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

[Wicket-user] Adding Support for optgroup

2005-11-03 Thread Andrew Berman
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

[Wicket-user] Re: Wicket 1.1 line endings bug?

2005-11-03 Thread jan_bar
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

Re: [Wicket-user] Re: Wicket 1.1 line endings bug?

2005-11-03 Thread Martijn Dashorst
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.

[Wicket-user] Re: PageExpiredErrorPage

2005-11-03 Thread Francis Amanfo
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

Re: [Wicket-user] Re: Wicket 1.1 line endings bug?

2005-11-03 Thread Johan Compagner
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

Re: [Wicket-user] Mutable form component ?

2005-11-03 Thread Johan Compagner
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

Re: [Wicket-user] How to do validation on a component that relate to other(s).

2005-11-03 Thread Johan Compagner
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

Re: [Wicket-user] Adding Support for optgroup

2005-11-03 Thread Igor Vaynberg
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

Re: [Wicket-user] Re: Wicket 1.1 line endings bug?

2005-11-03 Thread Igor Vaynberg
+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

Re: [Wicket-user] Mutable form component ?

2005-11-03 Thread Laurent PETIT
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

Re: [Wicket-user] Adding Support for optgroup

2005-11-03 Thread Andrew Berman
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

Re: [Wicket-user] Adding Support for optgroup

2005-11-03 Thread Igor Vaynberg
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

Re: [Wicket-user] Is this a bug? Please help.

2005-11-03 Thread Eelco Hillenius
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

Re: Re: [Wicket-user] Re: Wicket 1.1 line endings bug?

2005-11-03 Thread Adam Chesney
+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] Re: Previewing html only, including nested components html

2005-11-03 Thread Laurent PETIT
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

[Wicket-user] currentNodeLinkClicked?

2005-11-03 Thread yongbl
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

Re: Re: [Wicket-user] Re: Wicket 1.1 line endings bug?

2005-11-03 Thread Igor Vaynberg
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.

[Wicket-user] Re: Re: Re: Wicket 1.1 line endings bug?

2005-11-03 Thread jan_bar
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

[Wicket-user] Re: Re: Wicket 1.1 line endings bug?

2005-11-03 Thread jan_bar
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

Re: [Wicket-user] Re: Previewing html only, including nested components html

2005-11-03 Thread Laurent PETIT
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

Re: Re: [Wicket-user] Re: Wicket 1.1 line endings bug?

2005-11-03 Thread David Leangen
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

[Wicket-user] Help understanding component creation

2005-11-03 Thread David Leangen
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

Re: [Wicket-user] Adding Support for optgroup

2005-11-03 Thread Igor Vaynberg
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.