Re: [Wicket-user] Render Page to String

2006-04-19 Thread Juergen Donnerstag
Please see WicketTester which is based on MockWebApplication and all the junit test cases in src/test which use the same principle: create the output as a string and compare it with the expected output which is kept in a file. Juergen On 4/19/06, Aaron Hiniker [EMAIL PROTECTED] wrote: I would

Re: [Wicket-user] Render Page to String

2006-04-19 Thread Aaron Hiniker
Ok, So I extended WicketTester, added a method to return the servlet output and I got the html mail to render correctly. However, the normal requestCycle seems to be corrupted after I do this: in the logs: 2006-04-19 01:47:10,500 ERROR [STDERR] java.lang.NullPointerException 2006-04-19

Re: [Wicket-user] Encrytption of password data

2006-04-19 Thread Rüdiger Schulz
ok, great! I think I can wait for the next RC, as this app is still in development, and I can remove (and later re-add) those = in the database manually for now. -- greetings from Berlin, Rüdiger Schulz Martijn Dashorst wrote on 19.04.2006 at 00:29: In the next RC this problem will be

Re: [Wicket-user] Encrytption of password data

2006-04-19 Thread Johan Compagner
it is not just the =we use a different base64 set where + and / are - and _ so that urls can handle them.http://www.faqs.org/rfcs/rfc3548.htmlThe best thing to do is convert to SHA one way encryption for passwords. johanOn 4/19/06, Rüdiger Schulz [EMAIL PROTECTED] wrote: ok, great!I think I can

Re: [Wicket-user] Render Page to String

2006-04-19 Thread Juergen Donnerstag
I don't have much time to look into your code. But there virtually hundreds of unit tests which you just need to copy. Juergen On 4/19/06, Aaron Hiniker [EMAIL PROTECTED] wrote: Ok, So I extended WicketTester, added a method to return the servlet output and I got the html mail to render

Re: [Wicket-user] Render Page to String

2006-04-19 Thread Aaron Hiniker
My initial thoughts of the exceptions being related to the ThreadLocal nature of wicket.Application seem to hold true. I solved this once and for all by using a subclass of WicketTester (for which I needed to add a getter for the generated source), and a new Thread to create the WicketTester

Re: [Wicket-user] Encrytption of password data

2006-04-19 Thread Rüdiger Schulz
Johan Compagner wrote on 19.04.2006 at 12:11: it is not just the = we use a different base64 set where + and /  are - and _ so that urls can handle them. http://www.faqs.org/rfcs/rfc3548.html The best thing to do is convert to SHA one way encryption for passwords. You're probably right

Re: [Wicket-user] Encrytption of password data

2006-04-19 Thread Johan Compagner
the problem with including this into a ui framework.. is that it doesn't really belong thereBecause encrypting strings and storing in the db is something of the businesslayer not a ui thing.johan On 4/19/06, Rüdiger Schulz [EMAIL PROTECTED] wrote: Johan Compagner wrote on 19.04.2006 at 12:11: it

Re: [Wicket-user] Encrytption of password data

2006-04-19 Thread Juergen Donnerstag
Johan, may be you can create a little ICrypt implementation for that? As it is one way, decrypt should probably throw an exception Juergen On 4/19/06, Rüdiger Schulz [EMAIL PROTECTED] wrote: Johan Compagner wrote on 19.04.2006 at 12:11: it is not just the = we use a different base64 set

Re: [Wicket-user] Encrytption of password data

2006-04-19 Thread Johan Compagner
But how to use that? Because we only have 1 crypt instance/factory that could be usedfor crypting/decrypting stuff in wicket itself (like password or cookies)So there you can't just set one that works only one way. johanOn 4/19/06, Juergen Donnerstag [EMAIL PROTECTED] wrote: Johan, may be you can

Re: [Wicket-user] Encrytption of password data

2006-04-19 Thread Martijn Dashorst
import java.io.UnsupportedEncodingException;import java.security.MessageDigest;import java.security.NoSuchAlgorithmException;import wicket.util.crypt.ICrypt;public final class OneWayCrypt implements ICrypt { /** * One way encryption only, throws UnsupportedOperationException. * * @see

Re: [Wicket-user] WebPage generated script problem

2006-04-19 Thread Timo Stamm
nato schrieb: mime type: text/html doctype: xhtml 1.0 transitional script and style tags: enclose it within CDATA With this setup that I've been doing for almost a year, I haven't had any problems. My applications run even on the very sucking IE. Dito. But Wicket prevents me from having a

Re: [Wicket-user] WebPage generated script problem

2006-04-19 Thread Timo Stamm
nato schrieb: it's a syntax error for javascript if the ![CDATA[ and ]] are not commented. No it isn't, at least not if you declare the document as XHTML. TImo --- Using Tomcat but need to do more? Need to support web services, security?

[Wicket-user] New Suggestion: Form components as labels

2006-04-19 Thread Ali Zaid
Hi Guys; I have been working with the RC1 and I found it wonderful, today I came across something that make me think about new thing to add to wicket (unless it is there and I don't know) The thing is, I want to create some Information sheet (I always do ;)), and I need to show info, and give

Re: [Wicket-user] New Suggestion: Form components as labels

2006-04-19 Thread Igor Vaynberg
but you can do this yourself by creating a panel that swaps between a label and a textfield. i see no need for this to be part of the core textfield component, maybe a set of these swappable panels can go into extensions. another alternative is to add a behavior that morphs the tag in

[Wicket-user] Bug: Message from EmailAddressPatternValidator not displayed correctly

2006-04-19 Thread Rüdiger Schulz
Hello list, in a form I have a TextField for an email, simply like this: final TextField email = new TextField(email); email.add(EmailAddressPatternValidator.getInstance()); add(email); In the properties for the enclosing page, I defined a message for invalid emails:

Re: [Wicket-user] New Suggestion: Form components as labels

2006-04-19 Thread Timo Stamm
Ali, that's a nice idea. But I think it has some disadvantages: The TextInput component would have to change the entire tag. So it would have to be responsible not only for input tags, but for the static representation as a span or div as well. I am not a friend of putting that much

[Wicket-user] Null and NullValid

2006-04-19 Thread Gustavo Hexsel
Still on the properties suffixes saga: The process for determining suffixes 'null' and 'nullValid' seems to have changed. Until 1.2b3, the loader would try to load the component name (without the hierarchy) followed by 'null'. For instance, for my list component, named site, that

[Wicket-user] Suggestion for PageParameters

2006-04-19 Thread Rüdiger Schulz
Hey, I have a suggestion for PageParameters. All those nice methods getInt(), getBoolean() etc. should not throw an Exception, at least if a default value is provided. I mean, that's the purpose of default values, isn't it ;) Currently I'm helping myself with letting

Re: [Wicket-user] Bug: Message from EmailAddressPatternValidator not displayed correctly

2006-04-19 Thread Juergen Donnerstag
Where does the a come from? Juergen On 4/19/06, Rüdiger Schulz [EMAIL PROTECTED] wrote: Hello list, in a form I have a TextField for an email, simply like this: final TextField email = new TextField(email); email.add(EmailAddressPatternValidator.getInstance()); add(email); In the

Re: [Wicket-user] Bug: Message from EmailAddressPatternValidator not displayed correctly

2006-04-19 Thread Igor Vaynberg
i think that is the component id. we fallback to it if label is not set i believe.-IgorOn 4/19/06, Juergen Donnerstag [EMAIL PROTECTED] wrote:Where does the a come from? JuergenOn 4/19/06, Rüdiger Schulz [EMAIL PROTECTED] wrote: Hello list, in a form I have a TextField for an email, simply like

RE: [Wicket-user] Null and NullValid

2006-04-19 Thread Gustavo Hexsel
It seems to be only looking for nullValid or {full hierarchy}.nullValid. []s Gus DEBUG| wicket.resource.loader.AbstractStringResourceLoader - Try to load resource from: com.sagebrush.pinpoint.administration.source.BaseEditSourcePage:en_US; key: nullValid DEBUG|

Re: [Wicket-user] WebPage generated script problem

2006-04-19 Thread Eelco Hillenius
I'm still unsure about that. I'm waiting to see where this thread goes. Eelco On 4/19/06, Johan Compagner [EMAIL PROTECTED] wrote: are you going to commit this? And use the JavaScriptUtils class all over the place to open an close those javascript tags? johan

Re: [Wicket-user] Dynamically generated buttons are showing up as broken links

2006-04-19 Thread kurt heston
That particular text message came up in Firefox when I was running it on the server. Running the app from another machine produces a similar message (with a different URL). Martijn Dashorst wrote: The image http://localhost/feeple/?path

Re: [Wicket-user] New Suggestion: Form components as labels

2006-04-19 Thread Eelco Hillenius
I agree that this shouldn't be part of the core components. It shouldn't be too hard to write your own components that do this though (or as Igor suggested you might look into behaviors for this); that would be a one-time undertaking for your whole project. Do a little bit of extra work now, and

Re: [Wicket-user] Dynamically generated buttons are showing up as broken links

2006-04-19 Thread kurt heston
Is anyone using button shapes as hyperlinks like I am? I was coloring a bit outside the lines when I wrote the code you see below. Tell me if you are doing it differently. Maybe doing it another way will rid me of my broken link problem. kurt heston wrote: That particular text message came

[Wicket-user] Wicket 1.2-rc2 available for download

2006-04-19 Thread Martijn Dashorst
All,To keep our release cycle moving, I have created and uploaded a new RC release of 1.2, with several bugs fixed, and some additional localized messages as defaults. Keep them coming! Please submit your language file using the Java unicode format as used in the finnish and hungarian examples. We

Re: [Wicket-user] Suggestion for PageParameters

2006-04-19 Thread Eelco Hillenius
Could you please file a bug report/ feature request for that? Eelco On 4/19/06, Rüdiger Schulz [EMAIL PROTECTED] wrote: Hey, I have a suggestion for PageParameters. All those nice methods getInt(), getBoolean() etc. should not throw an Exception, at least if a default value is provided. I

Re: [Wicket-user] Null and NullValid

2006-04-19 Thread Johan Compagner
don't know why it doesn't search the hierachy that is as far as i know not changedWhy we have 2 different things now because it was already 2 different things in the code baseBy default nullValid was and null was Choose One And we couldn't distinguish between them at all but the are different.

Re: [Wicket-user] Dynamically generated buttons are showing up as broken links

2006-04-19 Thread Johan Compagner
do debug when you just ask for the link in the browser what you excactly are sending to the browser.isn't it by accident 0 bytes?johanOn 4/19/06, kurt heston [EMAIL PROTECTED] wrote: Is anyone using button shapes as hyperlinks like I am?I was coloring abit outside the lines when I wrote the code

[Wicket-user] Excel-Like TextField Grid Problem

2006-04-19 Thread Ayodeji Aladejebi
I am developing a web based solution for a client that prefers to enter records into the system like it is done in Excel so that in a single click of Submit, several rows in the database can be updated at once.Now i want to build a multi dimensional array of Textfields that maps to multiple rows

Re: [Wicket-user] Excel-Like TextField Grid Problem

2006-04-19 Thread Igor Vaynberg
int cols=5; int rows=5; final String[][] values=new String[rows][cols];form.add(new Loop(rows, rows) { populateitem(Item item) { final int row=item.getindex(); item.add(new Loop(cols, cols) { populateitem(Item item) { final int col=item.getindex(); IModel model=new Model() { setobject(Component

Re: [Wicket-user] Wicket 1.2-rc2 available for download

2006-04-19 Thread lu dongping
Hi, Martijn here is the simple chinese version for Application.properties ! Regards, outersky On 4/20/06, Martijn Dashorst [EMAIL PROTECTED] wrote: All, To keep our release cycle moving, I have created and uploaded a new RC release of 1.2, with several bugs fixed, and some additional

Re: [Wicket-user] Wicket 1.2-rc2 available for download

2006-04-19 Thread Eelco Hillenius
I added it. Xie xie! Eelco On 4/19/06, lu dongping [EMAIL PROTECTED] wrote: Hi, Martijn here is the simple chinese version for Application.properties ! Regards, outersky On 4/20/06, Martijn Dashorst [EMAIL PROTECTED] wrote: All, To keep our release cycle moving, I have created and

Re: [Wicket-user] Wicket 1.2-rc2 available for download

2006-04-19 Thread lu dongping
haha, you know chinese ? bu xie ! outersky On 4/20/06, Eelco Hillenius [EMAIL PROTECTED] wrote: I added it. Xie xie! Eelco On 4/19/06, lu dongping [EMAIL PROTECTED] wrote: Hi, Martijn here is the simple chinese version for Application.properties ! Regards, outersky On

Re: [Wicket-user] Wicket 1.2-rc2 available for download

2006-04-19 Thread Eelco Hillenius
Little bit. I've worked in China for a few months (not IT). Kind of got stuck at the speaking part :) Is our forminput example still up-to-date btw? Thanks, Eelco On 4/19/06, lu dongping [EMAIL PROTECTED] wrote: haha, you know chinese ? bu xie ! outersky On 4/20/06, Eelco Hillenius

Re: [Wicket-user] Wicket 1.2-rc2 available for download

2006-04-19 Thread Igor Vaynberg
show offOn 4/19/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Little bit. I've worked in China for a few months (not IT). Kind ofgot stuck at the speaking part :)Is our forminput example still up-to-date btw?Thanks,EelcoOn 4/19/06, lu dongping [EMAIL PROTECTED] wrote: haha, you know chinese ? bu

Re: [Wicket-user] Wicket 1.2-rc2 available for download

2006-04-19 Thread lu dongping
I'll check it this night. On 4/20/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Little bit. I've worked in China for a few months (not IT). Kind of got stuck at the speaking part :) Is our forminput example still up-to-date btw? Thanks, Eelco On 4/19/06, lu dongping [EMAIL PROTECTED]

Re: [Wicket-user] Wicket 1.2-rc2 available for download

2006-04-19 Thread Eelco Hillenius
On 4/19/06, Igor Vaynberg [EMAIL PROTECTED] wrote: show off more? --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM

[Wicket-user] Wicket now ranks 89 on sf.net top 100

2006-04-19 Thread Martijn Dashorst
As Jonathan observed yesterday, the Wicket project has entered the ranks of the SourceForge top 100 of most active projects. We are barely in the top 100 and today we moved up 9 places!Date (UTC) Rank20 Apr 2006 89 19 Apr 2006 N/D18 Apr 2006 98Martijn-- Wicket 1.2 is coming! Write Ajax