[Wicket-user] Question about multiple AjaxSubmitLinks in one form

2007-07-19 Thread rc.china
Suppose that I have one form which has two parts: each part has an AjaxSubmitLink and some other input components(such as TextField, CheckBox,...): [code] public class MyPage extends WebPage { public MyPage() { Form form = new Form(...); add(form); //Part1

Re: [Wicket-user] closing ServletResponse stream/writer

2007-07-19 Thread Johan Compagner
i can remove the close() on it. But i am curious what you want to write afterwards because how do you know what to get the writer or the outputstream? because for the redirect strategy we just use the outpustream (bytes) instead of the writer (strings) and you can't use the output and the writer

Re: [Wicket-user] Overriding ID attributes

2007-07-19 Thread Johan Compagner
i just always overwrite getMarkupId() but a setter is also fine to have. We store it anyway. johan On 7/18/07, Igor Vaynberg [EMAIL PROTECTED] wrote: On 7/18/07, mperham [EMAIL PROTECTED] wrote: We are migrating our existing application from UI framework XXX to Wicket and we have a

[Wicket-user] PasswordTextField encryption

2007-07-19 Thread David Rosenstrauch
Just wondering: anyone know what's the reason behind 1) making PasswordTextField's automatically encrypting their contents by default, and 2) making this not configurable? I lost several hours debugging tonight till I finally pinpointed this as the cause of my bug. TIA, DR

Re: [Wicket-user] Submit method problem

2007-07-19 Thread Timo Rantalaiho
On Mon, 16 Jul 2007, Eelco Hillenius wrote: Note that with Wicket 1.3 you configure a filter instead of a servlet and map that to /* without problems. BTW, on Websphere 6.0, we couldn't get the resource paths working with the filter on 1.3. After a while of debugging, we resorted to using the

Re: [Wicket-user] PasswordTextField encryption

2007-07-19 Thread Martijn Dashorst
It is configurable: don't use PasswordTextField but TextField instead. The reason behind PTF's encryption is that we want to provide a secure solution out-of-the-box. You can circumvent it, but then *you* need to open up Pandorra's box, not us. Same with escaping markup while outputting model

Re: [Wicket-user] PasswordTextField encryption

2007-07-19 Thread Eelco Hillenius
On 7/19/07, Martijn Dashorst [EMAIL PROTECTED] wrote: It is configurable: don't use PasswordTextField but TextField instead. The reason behind PTF's encryption is that we want to provide a secure solution out-of-the-box. You can circumvent it, but then *you* need to open up Pandorra's box,

Re: [Wicket-user] PasswordTextField encryption - integrating Jasypt

2007-07-19 Thread Daniel Fernández Garrido
Hello, About this topic, I am the founder of a project called Jasypt (Java Simplified Encryption) [http://www.jasypt.org], which is aimed at easily adding robust encryption capabilities to java applications, be it password digesting or two-way text, binary, or number encryption (based on any JCE

Re: [Wicket-user] PasswordTextField encryption

2007-07-19 Thread Martijn Dashorst
On 7/19/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Didnt it have to do with persistency of fields via cookies as well? Yeah, didn't think of that too. Anything stored on the client is a risk, so having the default to be secure is a real safeguard. Martijn -- Wicket joins the Apache Software

Re: [Wicket-user] Modal Window and Page Expired.

2007-07-19 Thread Matej Knopp
Five modal windows? At the same time? It might be that you are running out of pagemaps. This is very weird, hovewer, seems to be reproducable. Can you post a quickstart? Also, could you check if this is working with wicket 1.3? -Matej On 7/18/07, Laurent Brucher [EMAIL PROTECTED] wrote:

[Wicket-user] Select and SelectOptions

2007-07-19 Thread Huy Do
Hi, I have been trying to use select and selectoptions in wicket-extensions but I can't figure out how to get a dynamic set of optgroups going. I have seen the example from the mailing list where select wicket:id=myselect optgroup wicket:id=mygroup option/option /optgroup optgroup

[Wicket-user] .properties encoding

2007-07-19 Thread wheleph
Hi everyone! I've got the following problem. My component needs to display a cyrillic string. I put it in corresponding .propreties with encoding cp1251. But it's read like Íåïðàâèëüíûé ëîãèí/ïàðîëü instead of Неправильный логин/пароль The problem is that the file is read like iso-8859-1.

Re: [Wicket-user] .properties encoding

2007-07-19 Thread Matej Knopp
You can't. Java property files are always encoded in ISO-8859-1. In order to use other characters you need to escape them properly. There is an encoder/decoder for it and/or eclipse plugin. -Matej On 7/19/07, wheleph [EMAIL PROTECTED] wrote: Hi everyone! I've got the following problem. My

Re: [Wicket-user] .properties encoding

2007-07-19 Thread Erik van Oosten
Or you escape everything as unicode characters (e.g. /u00ef, see http://java.sun.com/docs/books/jls/third_edition/html/lexical.html#3.3), or you use the xml syntax supported by Java 6 (sorry no idea how that works in Wicket). Regards, Erik. Matej Knopp-2 wrote: You can't. Java property

Re: [Wicket-user] .properties encoding

2007-07-19 Thread Martijn Dashorst
I vaguely remember something about xml properties files that do handle other encodings. Didn't we implement that? Or was it just one of those things to do in the next version? Martijn On 7/19/07, Matej Knopp [EMAIL PROTECTED] wrote: You can't. Java property files are always encoded in

Re: [Wicket-user] .properties encoding

2007-07-19 Thread wheleph
Matej Knopp-2 wrote: You can't. Java property files are always encoded in ISO-8859-1. I don't think so because actual loading look like this: properties.load(new BufferedInputStream(resourceStream.getInputStream())); strings = new ValueMap(properties);

Re: [Wicket-user] Wicket with JExcel

2007-07-19 Thread Edi
Hi, then when you need the value of B4, then your interpreter translates it to Column 2, Row 4 Yes if col 2, row 4 means, it should B4. You are correct... Any updates, please Ayodeji Aladejebi wrote: I really dint get your question but from what i interpreted, if you want an easy way to

[Wicket-user] CSS Issues with 1.2.6 from 1.2.4 (best practices)

2007-07-19 Thread Ayodeji Aladejebi
I had been crying about wicket 1.2.6 makes my site ugly when i upgraded from 1.2.4 without a change of any line of code. in case you are or meet with this situation, here are the tips that may assist you. While I was with wicket1.2.4 jars, i had Application.getMarkupSettings

[Wicket-user] Passing parameters to a page in WicketTester

2007-07-19 Thread Federico Fanton
Hi everyone! I'm sorry, I'm looking for a little clue.. I have this simple testcase: public void testForm(){ WicketTester tester = new WicketTester(); tester.startPage(MyPage.class ); tester.assertNoErrorMessage(); } And this simple page: public class MyPage extends

Re: [Wicket-user] WicketTester and mocking up next page rendered.

2007-07-19 Thread Timo Rantalaiho
On Tue, 17 Jul 2007, Ingram Chen wrote: We also suffer the same issues here. But due to unmanaged nature of Wicket, there is no chance to intercept construction of page B unless you build your own factory for page. class Page A { MyFactory myFactory ; public Page A {

Re: [Wicket-user] setVesible for the component after onEvent

2007-07-19 Thread Timo Rantalaiho
On Mon, 16 Jul 2007, Igor Vaynberg wrote: try calling setoutputmarkupplaceholdertag(true) on all components you are planning to call setvisible(false) when you create them By the way, would it be a good idea to rename that method to something more descriptive such as enableAjaxUpdates()? I

Re: [Wicket-user] setVesible for the component after onEvent

2007-07-19 Thread Martijn Dashorst
No, because we have discussed the naming already quite a bit and the api is already widely used (not only in apps, but also in libraries). Martijn On 7/19/07, Timo Rantalaiho [EMAIL PROTECTED] wrote: On Mon, 16 Jul 2007, Igor Vaynberg wrote: try calling setoutputmarkupplaceholdertag(true) on

Re: [Wicket-user] Passing parameters to a page in WicketTester

2007-07-19 Thread jonaqua
I'm a wicket newbie, but this was in the javadoc for WicketTester (also your constructor name 'kisspage' doesn't match your class name 'mypage'): //test code public void testRenderYourPage() { // provide page instance source for WicketTester tester.startPage(new

Re: [Wicket-user] .properties encoding

2007-07-19 Thread wheleph
I've solved the problem in the following way: 1. I've created CustomPropertiesFactory subclass of PropertiesFactory and put it in wicket.resource package (to get access to wicket.resource.Properties' package-private constructor) package wicket.resource; ... public class CustomPropertiesFactory

Re: [Wicket-user] PasswordTextField encryption

2007-07-19 Thread David Rosenstrauch
Martijn Dashorst wrote: It is configurable: don't use PasswordTextField but TextField instead. No. If you try to use a TextField, then wicket will insist that you convert your HTML to use input type=text/ instead of input type=password/ - and thus lose the masked password entry capabilities

Re: [Wicket-user] PasswordTextField encryption

2007-07-19 Thread Martijn Dashorst
On 7/19/07, David Rosenstrauch [EMAIL PROTECTED] wrote: Martijn Dashorst wrote: It is configurable: don't use PasswordTextField but TextField instead. No. If you try to use a TextField, then wicket will insist that you convert your HTML to use input type=text/ instead of input

Re: [Wicket-user] PasswordTextField encryption

2007-07-19 Thread Daniel Fernández Garrido
David, I think your problem (not wanting password to come encrypted from the input component) would be solved by simply making your Application object return your own implementation of the wicket.settings.ISecuritySettingsinterface for its getSecuritySettings method. And in this extension

Re: [Wicket-user] PasswordTextField encryption

2007-07-19 Thread David Rosenstrauch
Martijn Dashorst wrote: On 7/19/07, David Rosenstrauch [EMAIL PROTECTED] wrote: Martijn Dashorst wrote: It is configurable: don't use PasswordTextField but TextField instead. No. If you try to use a TextField, then wicket will insist that you convert your HTML to use input type=text/ instead

Re: [Wicket-user] PasswordTextField encryption

2007-07-19 Thread David Rosenstrauch
Daniel Fernández Garrido wrote: David, I think your problem (not wanting password to come encrypted from the input component) would be solved by simply making your Application object return your own implementation of the wicket.settings.ISecuritySettingsinterface for its getSecuritySettings

Re: [Wicket-user] PasswordTextField encryption

2007-07-19 Thread Martijn Dashorst
PasswordTextField { protected String getInputType() { return password; } } TextField { /** * Subclass should override this method if this textfields mappes on a different * input type as text. Like PasswordField or HiddenField.

[Wicket-user] Repaint single row of a DataTable

2007-07-19 Thread ChuckDeal
I searched for answers to this problem, but most responses were to repaint the whole table (or more specifically, the container holding the table). I am trying to make an editable grid. In addition to that, when some cell contents change, other cells may need to be repainted (they might contain

Re: [Wicket-user] Passing parameters to a page in WicketTester

2007-07-19 Thread Federico Fanton
On Thu, 19 Jul 2007 07:25:47 -0700 (PDT) jonaqua [EMAIL PROTECTED] wrote: but this was in the javadoc for WicketTester D'oh!! I'm sorry :( Instead of tester.startPage(pageClass), we define a ITestPageSource to provide testing page instance for WicketTester. I see.. Many thanks, you've been

[Wicket-user] Download / View Attacment (like gmail)

2007-07-19 Thread Francisco Diaz Trepat - gmail
Hello. Any way of doing this? -- Forwarded message -- From: Francisco Diaz Trepat - gmail [EMAIL PROTECTED] Date: Jul 18, 2007 4:15 PM Subject: Download / View Attacment (like gmail) To: wicket-user@lists.sourceforge.net Hi guys is there an easy way to have, say two buttons or

Re: [Wicket-user] PasswordTextField encryption

2007-07-19 Thread David Rosenstrauch
Martijn Dashorst wrote: PasswordTextField { protected String getInputType() { return password; } } TextField { /** * Subclass should override this method if this textfields mappes on a different * input type as text. Like

Re: [Wicket-user] PasswordTextField encryption

2007-07-19 Thread Martijn Dashorst
Ok, my bad: you need to provide your own type... So create a MyRequiredPasswordTextField, and override the getInputType() and have it return password Martijn On 7/19/07, David Rosenstrauch [EMAIL PROTECTED] wrote: Martijn Dashorst wrote: PasswordTextField { protected String

Re: [Wicket-user] Repaint single row of a DataTable

2007-07-19 Thread Peter Thomas
On 7/19/07, ChuckDeal [EMAIL PROTECTED] wrote: I searched for answers to this problem, but most responses were to repaint the whole table (or more specifically, the container holding the table). I am trying to make an editable grid. In addition to that, when some cell contents change,

[Wicket-user] Question regarding dropdownchoice

2007-07-19 Thread Walter_Ritzel
Hello to all! I'm beginning to learn how to use wicket and I have a question regarding DropDownChoice: I have a POJO that is serving me as the model for my page, so my form is bind to the properties. My problem with the Dropdownchoice in this case is: even if the property in the POJO is filled

Re: [Wicket-user] PasswordTextField encryption

2007-07-19 Thread David Rosenstrauch
Martijn Dashorst wrote: Ok, my bad: you need to provide your own type... So create a MyRequiredPasswordTextField, and override the getInputType() and have it return password Martijn K. That makes much more sense. Thx. BTW, I'm curious to hear if anyone has any thoughts about the

Re: [Wicket-user] .properties encoding

2007-07-19 Thread Igor Vaynberg
he problem here is specifying the charset, properties factory is global so you might encode your files one way but a jar you use with components might have them encoded in another charset - so we cannot really have a global charset specified. i think the proper thing to do is use xml properties

Re: [Wicket-user] Download / View Attacment (like gmail)

2007-07-19 Thread Igor Vaynberg
On 7/19/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Hello. Any way of doing this? see downloadlink and popupsettings -igor -- Forwarded message -- From: Francisco Diaz Trepat - gmail [EMAIL PROTECTED] Date: Jul 18, 2007 4:15 PM Subject: Download / View

Re: [Wicket-user] Question regarding dropdownchoice

2007-07-19 Thread Igor Vaynberg
On 7/19/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello to all! I'm beginning to learn how to use wicket and I have a question regarding DropDownChoice: I have a POJO that is serving me as the model for my page, so my form is bind to the properties. My problem with the Dropdownchoice

Re: [Wicket-user] .properties encoding

2007-07-19 Thread Eelco Hillenius
On 7/19/07, Martijn Dashorst [EMAIL PROTECTED] wrote: I vaguely remember something about xml properties files that do handle other encodings. Didn't we implement that? Or was it just one of those things to do in the next version? Yes, that is implemented now. XML properties is a JDK 5 feature,

Re: [Wicket-user] Repaint single row of a DataTable

2007-07-19 Thread ChuckDeal
ptrthomas wrote: How about this thread: http://www.nabble.com/Adding-item-to-ListView-over-Ajax---refresh-only-newest-row-t3971491.html#a11572531 Does this help? Thanks, Peter. Not quite, I want to be able to repaint a row that has already been output. Although, this does give

Re: [Wicket-user] Repaint single row of a DataTable

2007-07-19 Thread Igor Vaynberg
this is tricky because datatable encapsulates a lot of this stuff so it will probably need something exposed for this usecase. if you create a quickstart that has a datatable, some bogus data, and some links in columns that should trigger a refresh i can play around with it and see what needs to

Re: [Wicket-user] closing ServletResponse stream/writer

2007-07-19 Thread jan_bar
Thanks for your care. I have a filter that appends some statistics (request processing time, date, ...) as comment to response of text/html content: final String stats = String.format(!--%s (%d[ms])--, new Date(), responseTime); try { try { response.getOutputStream().println(stats); }

Re: [Wicket-user] Repaint single row of a DataTable

2007-07-19 Thread ChuckDeal
Matej Knopp-2 wrote: AjaxRequestTarget target; target.addComponent(item); where item is a repeater Item. This doesn't work for you? What wicket version are you using? -Matej 1.3.0-SNAPSHOT Here's how the Column is created... basically it is adding a custom Fragment to the

Re: [Wicket-user] Repaint single row of a DataTable

2007-07-19 Thread Matej Knopp
AjaxRequestTarget target; target.addComponent(item); where item is a repeater Item. This doesn't work for you? What wicket version are you using? -Matej On 7/19/07, ChuckDeal [EMAIL PROTECTED] wrote: ptrthomas wrote: How about this thread:

Re: [Wicket-user] closing ServletResponse stream/writer

2007-07-19 Thread Johan Compagner
ahh ok, We have ResponseFilter in wicket build in that do that. johan On 7/19/07, jan_bar [EMAIL PROTECTED] wrote: Thanks for your care. I have a filter that appends some statistics (request processing time, date, ...) as comment to response of text/html content: final String stats =

[Wicket-user] Adding markup dynamically to a container?

2007-07-19 Thread mperham
I'd like to build a dynamic charting applet component so that the page can hardcode some presentation params but other params are generated dynamically. For instance: applet wicket:id=applet /applet The params above are presentation and page-specific so they belong in the page's

Re: [Wicket-user] Select and SelectOptions

2007-07-19 Thread mperham
Use a RepeatingView? Huy Do-4 wrote: Hi, I have been trying to use select and selectoptions in wicket-extensions but I can't figure out how to get a dynamic set of optgroups going. I have seen the example from the mailing list where select wicket:id=myselect optgroup

Re: [Wicket-user] Adding markup dynamically to a container?

2007-07-19 Thread Igor Vaynberg
class applet extends webcomponent { oncomponenttagbody(tag) { strinbuilder b=new stringbuilder(); b.append(param name=foo value=bar/); ... replacecomponenttagbody(tag, b.tostring()); } } -igor On 7/19/07, mperham [EMAIL PROTECTED] wrote: I'd like to build a dynamic charting

Re: [Wicket-user] Repaint single row of a DataTable

2007-07-19 Thread ChuckDeal
igor.vaynberg wrote: this is tricky because datatable encapsulates a lot of this stuff so it will probably need something exposed for this usecase. if you create a quickstart that has a datatable, some bogus data, and some links in columns that should trigger a refresh i can play around

Re: [Wicket-user] Adding markup dynamically to a container?

2007-07-19 Thread mperham
But I don't want to replace the body content of the markup container. I want to add additional tags at the bottom of the container's body. applet wicket:id=applet !-- put more params dynamically here -- /applet Something like this: /** * @param extraParams a MapString,IModel

[Wicket-user] tooltip example

2007-07-19 Thread Flemming Boller
Hi I hope this is not considered spam, but I have created a small tutorial about how I have wickyfied a little YUI control, the tooltip. http://bollersblog.blogspot.com Comments are more than welcome, as this is my first attempt to write stuff on the internet. /Flemming ps: I did not know

[Wicket-user] Wicket URLs in javascript

2007-07-19 Thread Joel Hill
My app's home page is nothing more than a blank page which has an onload script which opens a new browser window and loads my app's main page into it. I'm having trouble figuring out how to get it to work in wicket. I don't want to make the page bookmarkable if at all possible, but I have to

Re: [Wicket-user] Download / View Attacment (like gmail)

2007-07-19 Thread Francisco Diaz Trepat - gmail
great thanks ps: i have a first version of the extensible choice auto-complete. should i send you the code? On 7/19/07, Igor Vaynberg [EMAIL PROTECTED] wrote: On 7/19/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Hello. Any way of doing this? see downloadlink and

Re: [Wicket-user] Wicket URLs in javascript

2007-07-19 Thread Igor Vaynberg
RequestCycle.urlFor(Page) will do what you want -igor On 7/19/07, Joel Hill [EMAIL PROTECTED] wrote: My app's home page is nothing more than a blank page which has an onload script which opens a new browser window and loads my app's main page into it. I'm having trouble figuring out how to

Re: [Wicket-user] Download / View Attacment (like gmail)

2007-07-19 Thread Igor Vaynberg
attach it to a jira issue, preferrably as a patch. thanks, -igor On 7/19/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: great thanks ps: i have a first version of the extensible choice auto-complete. should i send you the code? On 7/19/07, Igor Vaynberg [EMAIL PROTECTED]

Re: [Wicket-user] Select and SelectOptions

2007-07-19 Thread Huy Do
Thanks for the suggestion. Matej also suggested this on IRC but I think the current Select component should support this. I'm going to try to implement the current Select as a repeating view. Thanks again, Huy Use a RepeatingView? Huy Do-4 wrote: Hi, I have been trying to use select

Re: [Wicket-user] Odd Refresh Page Behavior

2007-07-19 Thread Eelco Hillenius
I have successfully deployed and verified that the behavior still seems to be in error. I have not actually run the phonebook application but was using it as a pattern. One of the forgotten emails I'm afraid... Did you make any progress on this, or is it still a problem? If it is, would you

Re: [Wicket-user] Setting custom session in a wicket unit test that doesn't take an Application as parameter.

2007-07-19 Thread Eelco Hillenius
How do you create a mock session for this websession? WicketTester creates a new instance of MockWebApplication which extends WebApplication and not my custom AuthenticatedWebApplication. This becomes troublesome because the constructor of my custom session takes a subclass of

Re: [Wicket-user] validator.w3.org validation

2007-07-19 Thread Eelco Hillenius
I don't know... I would still go for XML schema. DTDs don't know namespaces, so anything you do with them will be a hack imho. Over the last two years, I think various people have made a go at it, and tbh I'm not sure whether anyone had the final working DTD or whether they just gave up on it.

Re: [Wicket-user] Resource finder for files in a JAR

2007-07-19 Thread Eelco Hillenius
With this code, resourceFinder.add() only accepts directories, isn't it? Now i want the templated to be searched from a jar (distributed as plugins) or from a directory (distributed with the installation). You would be better off using IResourceStreamLocator directly. Use the decorator pattern

Re: [Wicket-user] Page getting redirected when accessing from mail reply

2007-07-19 Thread Eelco Hillenius
Will that be included in your book? It's still the plan. We're fighting to get it done in the first place though, so it might prove tricky. Marcel Offermans was also interesting in helping out, so the problem does not lie in lack of help from OSGi people. Eelco

Re: [Wicket-user] Select and SelectOptions

2007-07-19 Thread Huy Do
On second thoughtsthis may be over my head. It's harder then I thought. I don't understand the wicket internals enough to confidently do this within an exceptable time frame. Huy Thanks for the suggestion. Matej also suggested this on IRC but I think the current Select component should

Re: [Wicket-user] line break after ImageMap?

2007-07-19 Thread Eelco Hillenius
On 7/16/07, verbal evasion [EMAIL PROTECTED] wrote: i had two images side by side, both inside the div tag. then i made the left one an ImageMap and the second image (on the right) went to the next line. i tried to resize them and everything, but nothing helped. how do i fix this? Make it an

Re: [Wicket-user] Replace a component with another component by adding a Behaviour

2007-07-19 Thread Eelco Hillenius
I try to replace a TextArea with a HiddenField (or in next step with a Panel). before: textarea wicket:id=messageInput rows=6 cols=20Input comes here/textarea after: input wicket:id=messageInput type=hidden / I added a Behaviour to the TextArea: public void bind(Component c) {

Re: [Wicket-user] some errors appear in wicket-example 1.3beta2

2007-07-19 Thread Eelco Hillenius
I just run through the library sample - http://wicketstuff.org/wicket13/library/ Supposedly, if you don't key in the title and author field, it will show error as it has FormComponentFeedbackBorder component wrapped around the title and author fields. but in wicket1.3 beta2, it seems like it