Re: [Wicket-user] wicket emailaddress validation incorrect

2006-06-21 Thread cowwoc
Instead of using some super long regex why not code the logic by hand (the old fashion way without regex). I find that often the resulting code is easier to read and in this case it might actually turn out to be shorter. Maybe :) Gili Frank Bille Jensen wrote: > On Wed, 2006-06-21 at 12:

Re: [Wicket-user] wicket emailaddress validation incorrect

2006-06-21 Thread Frank Bille Jensen
On Thu, 2006-06-22 at 06:47 +0200, jan_bar wrote: > just in the case, do you take IDN (International Domain Names) into > consideration? Allowed characters for .de domain are listed here: > http://www.denic.de/en/domains/idns/liste.html. It's not me who have created the RFC 822 compliant regex. Bu

Re: [Wicket-user] wicket emailaddress validation incorrect

2006-06-21 Thread ali
On Tue, 20 Jun 2006 13:07:37 +0430, Michiel Korthuis <[EMAIL PROTECTED]> wrote: i think \w = [_A-Za-z0-9] so instread of ^[_A-Za-z0-9-]+(\\.[_A-Za-z0-9-]+)[EMAIL PROTECTED](\\.[A-Za-z0-9-]+)*((\\.[A-Za-z]{2,}){1}$) can tell ^\w+(\.\w+)[EMAIL PROTECTED]((\.\w+\.)+|\.)[a-z]{2,3}$

Re: [Wicket-user] will wicket-contrib-dojo upgrade to wicket 1.2?

2006-06-21 Thread Martijn Dashorst
I tried (a 0.4 snapshot version of ) dojo with 1.2, but that got several exceptions. After putting the most recent (soon to be released) Wicket 1.2.1 and trunk from dojo into the project, both seemed to work. When 1.2.1 is released, I'll see to upgrade and put up a release (0.4) of dojo. Martijn

Re: [Wicket-user] How to get Attribute in HttpSession in wicketApplication (part 2)?

2006-06-21 Thread Martijn Dashorst
If you're building a wicket-only application, typically you would create your own session class (extends WebSession) and add normal properties to that class just as you would do with a normal object. This provides a better way of dealing with session usage from a programmers point of view: no more

[Wicket-user] will wicket-contrib-dojo upgrade to wicket 1.2?

2006-06-21 Thread Nili Adoram
Hi all, Does anyone know whether it is planned to upgrade wicket-contrib-dojo to wicket 1.2? Currently we cannot use them both in the same classpath since there are collisions. Thanks Nili All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The high

Re: [Wicket-user] wicket emailaddress validation incorrect

2006-06-21 Thread jan_bar
Hi, just in the case, do you take IDN (International Domain Names) into consideration? Allowed characters for .de domain are listed here: http://www.denic.de/en/domains/idns/liste.html. http://www.mädchen.de (doesn't work but is registered) Jan All the advantages of Linux Managed Hosting--Wi

[Wicket-user] How to get Attribute in HttpSession in wicketApplication (part 2)?

2006-06-21 Thread JFC
Hey:     I've found a way to solve this problem:   ---  javax.servlet.http.HttpServletRequest httpRequest =       ((ServletWebRequest) RequestCycle.get().getRequest()).getHttpServletRequest();              HttpSession sessionStore = httpRequest.getS

Re: [Wicket-user] How to get Attribute in HttpSession in wicketApplication?

2006-06-21 Thread Igor Vaynberg
((WebRequest)RequestCycle.get().getRequest()).getHttpServletRequest().getHttpSession()-IgorOn 6/21/06, 8723056 < [EMAIL PROTECTED]> wrote:I'm a rookie in Wicket, please forgive me if this is a stupid question. I have a loginServlet which is as follows: public void doPost(HttpServletRequest request,

[Wicket-user] How to get Attribute in HttpSession in wicketApplication?

2006-06-21 Thread 8723056
I'm a rookie in Wicket, please forgive me if this is a stupid question. I have a loginServlet which is as follows: public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { //Do some Authentication actions... httpSession

Re: [Wicket-user] Beginner Image question

2006-06-21 Thread Igor Vaynberg
you know what would be a great commercial, the scene from hot shots where sheen cooks an egg on golino's sexy stomich.-IgorOn 6/21/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote: Now making commercials for Apple, are you? :)MartijnOn 6/21/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:> Yep. Or alt

Re: [Wicket-user] Beginner Image question

2006-06-21 Thread Martijn Dashorst
Now making commercials for Apple, are you? :) Martijn On 6/21/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > Yep. Or alternatively, use attribute modifiers: > > WebMarkupContainer c = new WebMarkupContainer("myimage"); > c.add(new SimpleAttributeModifier("src", > "http://images.apple.com/macboo

Re: [Wicket-user] wicket emailaddress validation incorrect

2006-06-21 Thread Igor Vaynberg
and its in extensions.thanks,-IgorOn 6/21/06, Frank Bille Jensen <[EMAIL PROTECTED] > wrote:On Wed, 2006-06-21 at 21:27 +0200, Frank Bille Jensen wrote:> On Wed, 2006-06-21 at 12:23 -0700, Igor Vaynberg wrote: > > if you attach one to sf.net tracker or an email i will happily put it> > into extensi

Re: [Wicket-user] wicket emailaddress validation incorrect

2006-06-21 Thread Frank Bille Jensen
On Wed, 2006-06-21 at 21:27 +0200, Frank Bille Jensen wrote: > On Wed, 2006-06-21 at 12:23 -0700, Igor Vaynberg wrote: > > if you attach one to sf.net tracker or an email i will happily put it > > into extensions. > > > Yeah, why not :) I'll brew something together when I have a spare > moment.

Re: [Wicket-user] wicket emailaddress validation incorrect

2006-06-21 Thread Frank Bille Jensen
On Wed, 2006-06-21 at 12:23 -0700, Igor Vaynberg wrote: > if you attach one to sf.net tracker or an email i will happily put it > into extensions. Yeah, why not :) I'll brew something together when I have a spare moment. - fb All the advantages of Linux Managed Hosting--Without the Cost and R

Re: [Wicket-user] wicket emailaddress validation incorrect

2006-06-21 Thread Igor Vaynberg
How about having a RfcCompliantEmailAddressPatternValidator living nextto the normal EmailAddressPatternValidator? Then developers would only pick the RFC compliant version if they actually needed it. Just athought.if you attach one to sf.net tracker or an email i will happily put it into extension

Re: [Wicket-user] wicket emailaddress validation incorrect

2006-06-21 Thread Frank Bille Jensen
On Wed, 2006-06-21 at 12:02 -0400, Michael Day wrote: > I only glanced quickly at the larger expression, but it seems to > allow for quite a bit that you would NOT want. I think it's more > geared toward mail servers. For example, I think it will evaluate > the following as a valid email ad

[Wicket-user] Cascading column lists

2006-06-21 Thread Nathan Hamblen
Not sure how common this is, but more than once I've had to hack up models that split a list into sublists for the UI: A D G B E H C F I ... I've hit upon a nice way of doing it I thought I'd share with everyone: http://databinder.net/wsvn/Databinder/databinder

Re: [Wicket-user] Formatting Dates

2006-06-21 Thread Eelco Hillenius
And if you always/ throughout your whole web application have to format in a certain style, you can register a converter that does that. Eelco On 6/21/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > yeah, you pretty much nailed it. although i would extend webmarkupcomponent > instead of label sin

Re: [Wicket-user] Embedding video links

2006-06-21 Thread Eelco Hillenius
I'm afraid I have no experience with that. Maybe someone else on the list? Eelco On 6/19/06, Ross Mark <[EMAIL PROTECTED]> wrote: > I've just written my first wicket app and I'm having a small problem. > The web app is a simple survey form where the user will navigate a > series of video clips a

Re: [Wicket-user] How to reuse panels with form fields

2006-06-21 Thread Eelco Hillenius
I have to admit, it was the first thing I missed when I started playing with wicket. I even attempted to create some special form for deep nesting *slaps himself on the head*. Eelco On 6/21/06, Hugo Visser <[EMAIL PROTECTED]> wrote: > Thanks, that works. Come to think of it, it sounds really obv

Re: [Wicket-user] Beginner Image question

2006-06-21 Thread Eelco Hillenius
Yep. Or alternatively, use attribute modifiers: WebMarkupContainer c = new WebMarkupContainer("myimage"); c.add(new SimpleAttributeModifier("src", "http://images.apple.com/macbook/images/macbookglossydisplay20060516.jpg";)); add(c); or public class ExternalImage extends WebMarkupContainer { p

Re: [Wicket-user] JFreeChart Experiment

2006-06-21 Thread Igor Vaynberg
yes. but the biggest part is detaching - if you have a chart that has 1 data points, you dont want those sitting in session/being replicated across cluster. so a detachable model will retrieve them when they are needed, but dump them before it is serialized into session. and this has an advanta

Re: [Wicket-user] JFreeChart Experiment

2006-06-21 Thread Stefan Arentz
On 6/21/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: mm...sexy...here is something you might want to try:class JFreeChartImage extends Image {    protected Resource getImageResource() {     Chart chart=(Chart)getModelObject();     return new JFreeChartImageResource(chart,     }}this way

Re: [Wicket-user] WicketTester in 1.2 causing "internal error cloning object" errors.

2006-06-21 Thread Juergen Donnerstag
HTTP sessions and hence Wicket Pages get serialized and hence all it components and variable must be serializable or transient. We enforced that policy a little bit to make sure the error are detected earlier and late when the application is deployed already. Just make sure your components and comp

Re: [Wicket-user] JFreeChart Experiment

2006-06-21 Thread Igor Vaynberg
mm...sexy...here is something you might want to try:class JFreeChartImage extends Image {    protected Resource getImageResource() {     Chart chart=(Chart)getModelObject();     return new JFreeChartImageResource(chart,     }}this way your chart data will be updated from request to requ

[Wicket-user] JFreeChart Experiment

2006-06-21 Thread Stefan Arentz
Wicket is pretty cool :-)I created a little JFreeChart experiment. You can see all the code at http://stuff.sateh.com/JFreeChartImageResource/ The test page looks like this:  http://stuff.sateh.com/JFreeChartImageResource/TestPage.pngI'm sure you all have done this a thousand times already, but I w

Re: [Wicket-user] Formatting Dates

2006-06-21 Thread Igor Vaynberg
yeah, you pretty much nailed it. although i would extend webmarkupcomponent instead of label since you are really not using any of label's functionality.as an alternative to this method you can create an imodel decorator that has the formatting in getobject... IModel.getObject(Component c) {   Date

Re: [Wicket-user] wicket emailaddress validation incorrect

2006-06-21 Thread Michael Day
I only glanced quickly at the larger expression, but it seems to allow for quite a bit that you would NOT want. I think it's more geared toward mail servers. For example, I think it will evaluate the following as a valid email address (possibly with random tabs and spaces throughout): <[

Re: [Wicket-user] wicket emailaddress validation incorrect

2006-06-21 Thread Nick Heudecker
If people want the monster validator, they can write their own email address validator.On 6/21/06, Igor Vaynberg < [EMAIL PROTECTED]> wrote:heh, my vote is for michael's :) i merged it into 1.2 and 2.0 branches.what do you guys think? the big pattern is quiete a bit bigger and the way it works rig

Re: [Wicket-user] Ajax Panel Include

2006-06-21 Thread Igor Vaynberg
yeah, unfortunately it is not that simple. we do need to remember what we have already rendered and not to duplicate it again just because of ajax render. yuck, any ideas on how to do that?-Igor On 6/20/06, Juergen Donnerstag <[EMAIL PROTECTED]> wrote: Without having tested it. IHeaderContributor i

Re: [Wicket-user] How to reuse panels with form fields

2006-06-21 Thread Igor Vaynberg
On 6/21/06, Hugo Visser <[EMAIL PROTECTED]> wrote: it sounds really obvious actually :)welcome to wicket :)-Igor ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user

Re: [Wicket-user] wicket emailaddress validation incorrect

2006-06-21 Thread Igor Vaynberg
heh, my vote is for michael's :) i merged it into 1.2 and 2.0 branches.what do you guys think? the big pattern is quiete a bit bigger and the way it works right now is every instance of email addr validator will create its own copy - maybe if we refactor that to keep the pattern as a singleton it w

Re: [Wicket-user] page reloades infinitely

2006-06-21 Thread Matej Knopp
Yes, null is all right. For every page the javascript checks, whether it's opened in new window/tab (therefore the cookie). If so, new pagemap is created, page is cloned into the new pagemap and the browser tab/window is redirected to the page in new pagemap). -Matej Ittay Dror wrote: > one o

Re: [Wicket-user] page reloades infinitely

2006-06-21 Thread Ittay Dror
one other question. the original page map name is still 'null'. is this ok? Ittay Dror wrote: > ok, i did the same magic in my coding strategy and it works. in new tabs > the url now looks like > http://localhost/page/SomePage?wicket:bookmarkablePage=wicket-0:com.package.SomePage > > > > can

Re: [Wicket-user] page reloades infinitely

2006-06-21 Thread Ittay Dror
ok, i did the same magic in my coding strategy and it works. in new tabs the url now looks like http://localhost/page/SomePage?wicket:bookmarkablePage=wicket-0:com.package.SomePage can someone explain the mechanism to me? also, why should i take care of this and not WebRequestCodingStrategy? th

Re: [Wicket-user] [Beginner] Image question

2006-06-21 Thread Alex Objelean
Well, in my case the URL is not static... it has different value depending on what the service returns.(In my specific small application, I input countryCode in the form and get the URL to the image which is the country Flag...) -- View this message in context: http://www.nabble.com/-Beginner--Im

Re: [Wicket-user] [Beginner] Image question

2006-06-21 Thread Hugo Visser
This may sound really stupid, but if the image is static you could link to it in your page.html right? That would be like maintaining the constant in your view html code and not in your java code.Hugo On 6/21/06, Alex Objelean <[EMAIL PROTECTED]> wrote: Sorry.. my mistake. It works. I indeed forgot

Re: [Wicket-user] page reloades infinitely

2006-06-21 Thread Ittay Dror
well, this is the code in WebRequestCodingStrategy: public final CharSequence encode(final RequestCycle requestCycle, final IRequestTarget requestTarget) { // first check whether the target was mounted CharSequence path = pathForTarget

Re: [Wicket-user] [Beginner] Image question

2006-06-21 Thread Alex Objelean
Sorry.. my mistake. It works. I indeed forgot to use the ExternalImage component. Thank you again! :) -- View this message in context: http://www.nabble.com/-Beginner--Image-question-t1823773.html#a4975300 Sent from the Wicket - User forum at Nabble.com. _

Re: [Wicket-user] page reloades infinitely

2006-06-21 Thread Ittay Dror
Matej Knopp wrote: > Hmm.. The problem with this kind of bugs is that it's very difficult to > reproduce. > > IMHO The problem is in this line: > else {document.location.href = > '/page/SomePage;jsessionid=E43E09C7B61190F3C8C5E98CB988F21F?';} > > The url should contain pagemap name (something

Re: [Wicket-user] page reloades infinitely

2006-06-21 Thread Ittay Dror
Matej Knopp wrote: > Strange. I'm looking into PageMapChecker#renderHead and it doesn't seem > obvious why the generated url doesn't contain pageMap name. > > Are you using a custom URL encoding scheme or anything like that? yes about the custom schema. the page map name is mull. does it cause

Re: [Wicket-user] [Beginner] Image question

2006-06-21 Thread Alex Objelean
Yes, exactly... the Image I am trying to use is located outside my application... I thought it will be a piece of cake:( -- View this message in context: http://www.nabble.com/-Beginner--Image-question-t1823773.html#a4975150 Sent from the Wicket - User forum at Nabble.com. ___

Re: [Wicket-user] page reloades infinitely

2006-06-21 Thread Matej Knopp
Hmm.. The problem with this kind of bugs is that it's very difficult to reproduce. IMHO The problem is in this line: else {document.location.href = '/page/SomePage;jsessionid=E43E09C7B61190F3C8C5E98CB988F21F?';} The url should contain pagemap name (something like wicket-1). In wicket-1.2 the u

Re: [Wicket-user] [Beginner] Image question

2006-06-21 Thread Stefan Arentz
On 6/21/06, Alex Objelean <[EMAIL PROTECTED]> wrote: Unfortunatelly, this code throws an exception:WicketMessage: Unable to find package resource [path =training/wicket/countryInfo/http:/www.oorsprong.org/WebSamples.CountryInfo/Images/Romania.jpg,style = null, locale = en_US] Root cause:wicket.Wick

Re: [Wicket-user] page reloades infinitely

2006-06-21 Thread Ittay Dror
further investigation shows that for IE and openning new windows, it works fine - a PageMap instance is created, and the page loads fine. i've also started firefox with a new profile (no extensions), to make sure it's not extension related, and no, it happens there also, and also when i open a

Re: [Wicket-user] page reloades infinitely

2006-06-21 Thread Matej Knopp
Strange. I'm looking into PageMapChecker#renderHead and it doesn't seem obvious why the generated url doesn't contain pageMap name. Are you using a custom URL encoding scheme or anything like that? -Matej Ittay Dror wrote: > Hi, > > I'm using firefox. when i duplicate a tab, the tab reloads in

[Wicket-user] page reloades infinitely

2006-06-21 Thread Ittay Dror
Hi, I'm using firefox. when i duplicate a tab, the tab reloads in an infinite loop. this is the reason: