Re: [Wicket-user] Field validation + FeedbackIndicator + Ajax

2007-02-28 Thread Vincent Demay
Hi manuel, Confluence about wicket-contrib-dojo is unfortunatly not up to date, but there are also some cool validation methods in wicket-contrib-dojo (1.X-SNAPSHOT because it is the most maintained). You can take a look at live exemple (comes from svn repo : wicket-contrib-dojo-example

Re: [Wicket-user] Question about Panel

2007-02-28 Thread Nino Wael
Just create the panel as an anonym class in your page or inner class... Pseudo Snipplet: Webpage extends page { Mypanel panel=new Mypanel(); This.add(panel); } Mypanel extends panel{} As I remember it should work... From: [EMAIL

[Wicket-user] Nicer URLs

2007-02-28 Thread Chris Colman
Today I hit the critical mass of connections between neurons in my brain required to grasp Wicket and I have to say - Wicket rocks massively! A while back I designed my own *little* component based rendering technology (design stage only thankfully) and Wicket looks just like the one I was

Re: [Wicket-user] Nicer URLs

2007-02-28 Thread Nino Wael
Just use a mountedurl mountBookmarkablePage(/desiredurl, desiredclass.class); -Nino -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Colman Sent: 28. februar 2007 11:59 To:

Re: [Wicket-user] Nicer URLs

2007-02-28 Thread Nino Wael
Oeh an forgot to say that parameters you can just append to the url Short example: http:\\localhost\mywicketapp\myniceurl\paramA\valueA\paramB\valueB -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael Sent: 28. februar 2007 12:02 To:

[Wicket-user] Ajax Link + IE7 problem

2007-02-28 Thread Dipu
Hi All, Ajax Link doesnt work on IE 7 when there is a table in between the anchor tags. If we change the following line in the LinksPage.html from ajax expample counter 1: span wicket:id=c1/span a href=# wicket:id=c1-linkincrement/a ( ajax-only link ) to counter 1: span wicket:id=c1/span a

[Wicket-user] using a map in a model

2007-02-28 Thread Ivo van Dongen
Hi, We have a domain object that contains (among others) a map with key-value pairs. I want to use entries in this map in a Form with separate input fields for each entry (some may not already exist in the map). What would be the way to do this? Can I use a CompoundModel for this somehow?

Re: [Wicket-user] Ajax Link + IE7 problem

2007-02-28 Thread Ivo van Dongen
Hi, Using a table in a link is probably not standards compliant. I don't know if that is the problem here, but this kind of thing can cause a lot of problems with javascript. See http://htmlhelp.com/reference/html40/special/a.html for the element specs. Ivo On 2/28/07, Dipu [EMAIL PROTECTED]

[Wicket-user] IE 7 + Ajax + Datepicker issues

2007-02-28 Thread Dipu
Hi All, I use Ajax links to switch between different panels on a page and some of the panels has datepicker components on it. On IE 7 the date picker will stop working ( calendar won't pop up ) after switching between panels using ajax link. I think the reason for this is that when the dom is

Re: [Wicket-user] Ajax Link + IE7 problem

2007-02-28 Thread Dipu
Thanks very much , if thats the case then i can inform the page designers about that. Regards Dipu - Original Message - From: Ivo van Dongen To: wicket-user@lists.sourceforge.net Sent: Wednesday, February 28, 2007 12:08 PM Subject: Re: [Wicket-user] Ajax Link + IE7 problem

[Wicket-user] mountBookmarkablePage causes 'no session' error

2007-02-28 Thread Chris Colman
I tried to add some nice URLs by adding the following to my application class: public void init() { mountBookmarkablePage(/home, HomePage.class); mountBookmarkablePage(/location, LocationPage.class); } But then I get the following error when the web app is deployed:

Re: [Wicket-user] Nicer URLs

2007-02-28 Thread Ayodeji Aladejebi
Today I hit the critical mass of connections between neurons in my brain required to grasp Wicket - according to Marcus Buckingham in the book now, discover your strength, that is what is called Synapse On 2/28/07, Nino Wael [EMAIL PROTECTED] wrote: Oeh an forgot to say that parameters you can

[Wicket-user] mount shared resource inside initializer?

2007-02-28 Thread Mats Norén
Hi, is it possible to mount my shared resource within my localizer? public class ForumFeedResource extends ContentFeedResource public static class Initializer implements IInitializer { public void init(Application application) { application.getSharedResources().add(newsFeed,

Re: [Wicket-user] using a map in a model

2007-02-28 Thread Johan Compagner
this should work i think: Map map = new HashMap(); // fill map map.put(name, Ivo); Form form = new Form(form, new CompoundModel(map)); form.add(new TextField(name)); johan On 2/28/07, Ivo van Dongen [EMAIL PROTECTED] wrote: Hi, We have a domain object that contains (among others) a map

Re: [Wicket-user] mountBookmarkablePage causes 'no session' error

2007-02-28 Thread Johan Compagner
can you show me a bit more stacktrace of that second trace? Where does the constructor init starts? It seems you are making a static instance inside your HomePage or LocationPage.class?? johan On 2/28/07, Chris Colman [EMAIL PROTECTED] wrote: I tried to add some nice URLs by adding the

Re: [Wicket-user] Field validation + FeedbackIndicator + Ajax

2007-02-28 Thread Manuel Alejandro de Brito Fontes
Hi, the alerticon contains the tooltip, just pass the mouse over the image and show the message. On 28-02-2007, at 7:05, Vincent Demay wrote: Hi manuel, Confluence about wicket-contrib-dojo is unfortunatly not up to date, but there are also some cool validation methods in wicket-

[Wicket-user] Resuable AddressPanel

2007-02-28 Thread Flemming Boller
Hi I have a challenge about creating a reuseable Panel for my pojo called Address. class Address { String streetName; String streetNumber; String floor; String letter; String door; String zipCode; String city; } What I would like is to concatenate streetName, streetNumber, floor, letter,

Re: [Wicket-user] using a map in a model

2007-02-28 Thread Ivo van Dongen
Thanks, I'll try that this afternoon. Ivo On 2/28/07, Johan Compagner [EMAIL PROTECTED] wrote: this should work i think: Map map = new HashMap(); // fill map map.put(name, Ivo); Form form = new Form(form, new CompoundModel(map)); form.add(new TextField(name)); johan On 2/28/07, Ivo van

Re: [Wicket-user] mount shared resource inside initializer?

2007-02-28 Thread Johan Compagner
i think that should work Doesn't it? error? or the mount is just not there? johan On 2/28/07, Mats Norén [EMAIL PROTECTED] wrote: Hi, is it possible to mount my shared resource within my localizer? public class ForumFeedResource extends ContentFeedResource public static class Initializer

Re: [Wicket-user] mount shared resource inside initializer?

2007-02-28 Thread Mats Norén
On 2/28/07, Johan Compagner [EMAIL PROTECTED] wrote: i think that should work Doesn't it? error? or the mount is just not there? not there! :) wicket 1.2.4 btw /Mats johan On 2/28/07, Mats Norén [EMAIL PROTECTED] wrote: Hi, is it possible to mount my shared resource within my

Re: [Wicket-user] mount shared resource inside initializer?

2007-02-28 Thread Johan Compagner
make a jira issue for this. On 2/28/07, Mats Norén [EMAIL PROTECTED] wrote: On 2/28/07, Johan Compagner [EMAIL PROTECTED] wrote: i think that should work Doesn't it? error? or the mount is just not there? not there! :) wicket 1.2.4 btw /Mats johan On 2/28/07, Mats Norén [EMAIL

[Wicket-user] Can templates have an extension other than .html?

2007-02-28 Thread Matt Welch
I'd like my template files to have an extension other than .html. Is that possible? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions

Re: [Wicket-user] Can templates have an extension other than .html?

2007-02-28 Thread Carfield Yim
Should be just override WebPage. getMarkupType() http://wicket.sourceforge.net/apidocs/wicket/markup/html/WebPage.html#getMarkupType() On 3/1/07, Matt Welch [EMAIL PROTECTED] wrote: I'd like my template files to have an extension other than .html. Is that possible?

Re: [Wicket-user] Question about Panel

2007-02-28 Thread Ryan Holmes
Use a WebMarkupContainer component instead of a Panel. You might also be interested in fragments: http://wicket.sourceforge.net/ExampleUsingFragments.html http://cwiki.apache.org/WICKET/fragments.html -Ryan On Feb 28, 2007, at 1:56 AM, Zhang Hailong wrote: Hi all, I found it is inconvenient

Re: [Wicket-user] IE 7 + Ajax + Datepicker issues

2007-02-28 Thread Eelco Hillenius
What version are you using? And if the version is 1.3 or 2.0, you could consider using the much better datepicker that is in wicket-datetime. Anyway, this sounds like a problem we had in previous versions to; should be fixed in new versions. Eelco On 2/28/07, Dipu [EMAIL PROTECTED] wrote:

Re: [Wicket-user] Ajax Link + IE7 problem

2007-02-28 Thread Igor Vaynberg
the only reason it wouldnt work is that the table captures the onclick event and doesnt bubble it up to the link. but, in general, you shouldnt use table inside anchors as was said -igor On 2/28/07, Dipu [EMAIL PROTECTED] wrote: Thanks very much , if thats the case then i can inform the

Re: [Wicket-user] Nicer URLs

2007-02-28 Thread Igor Vaynberg
http://wicketstuff.org/wicket13/niceurl/ -igor On 2/28/07, Chris Colman [EMAIL PROTECTED] wrote: Today I hit the critical mass of connections between neurons in my brain required to grasp Wicket and I have to say - Wicket rocks massively! A while back I designed my own *little* component

Re: [Wicket-user] mount shared resource inside initializer?

2007-02-28 Thread Mats Norén
Hmm...I think I've missed the fact that the application doesn't have mount. I guess I should cast the Application to WebApplication and just be done with it... Sorry for the noise... /Mats On 2/28/07, Johan Compagner [EMAIL PROTECTED] wrote: make a jira issue for this. On 2/28/07, Mats

Re: [Wicket-user] Resuable AddressPanel

2007-02-28 Thread Igor Vaynberg
why use a type converter? you are not converting types... i would use a model to do this class addrlinemodel implements imodelstring { private imodel addrmodel; public String getobject() { address addr=addrmodel.getobject(); return addr.streetnumber+ +addr.streetname; }

Re: [Wicket-user] Field validation + FeedbackIndicator + Ajax

2007-02-28 Thread Igor Vaynberg
would be cool if you could create a wiki page explaining how you built it. not only is it a cool component, but outlining the process will help others a lot. -igor On 2/28/07, Manuel Alejandro de Brito Fontes [EMAIL PROTECTED] wrote: Hi, the alerticon contains the tooltip, just pass the

Re: [Wicket-user] IE 7 + Ajax + Datepicker issues

2007-02-28 Thread Dipu
I am using 1.2.1 at the moment. Did we have an official release of the version 2.0. I wiasd thinking of moving to 2.0 when its released. Regards Dipu - Original Message - From: Eelco Hillenius [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Wednesday, February 28, 2007

Re: [Wicket-user] Can templates have an extension other than .html?

2007-02-28 Thread Matt Welch
I'm a little concerned by the Note int he javadocs for this method: Note: The markup type must be equal to the extension of the markup file. In the case of WebPages, it must always be html. Does that mean that the string html has some meaning beyond just telling the framework what file

Re: [Wicket-user] Can templates have an extension other than .html?

2007-02-28 Thread Igor Vaynberg
that is an interesting comment indeed. if it was really true then webpage.getmarkuptype() would be final. anyone else mind to comment? -igor On 2/28/07, Matt Welch [EMAIL PROTECTED] wrote: I'm a little concerned by the Note int he javadocs for this method: Note: The markup type must be

Re: [Wicket-user] Can templates have an extension other than .html?

2007-02-28 Thread Eelco Hillenius
I'm a little concerned by the Note int he javadocs for this method: Note: The markup type must be equal to the extension of the markup file. In the case of WebPages, it must always be html. Does that mean that the string html has some meaning beyond just telling the framework what file

Re: [Wicket-user] IE 7 + Ajax + Datepicker issues

2007-02-28 Thread Eelco Hillenius
I think upgrading to the latest 1.2 would fix your problem. The current version is 1.2.5, see http://sourceforge.net/project/showfiles.php?group_id=119783package_id=130482 Eelco On 2/28/07, Dipu [EMAIL PROTECTED] wrote: I am using 1.2.1 at the moment. Did we have an official release of the

Re: [Wicket-user] Can templates have an extension other than .html?

2007-02-28 Thread Eelco Hillenius
On 2/28/07, Igor Vaynberg [EMAIL PROTECTED] wrote: that is an interesting comment indeed. if it was really true then webpage.getmarkuptype() would be final. anyone else mind to comment? Looks like an ancient leftover. I ditched it. Eelco

Re: [Wicket-user] Field validation + FeedbackIndicator + Ajax

2007-02-28 Thread Eelco Hillenius
would be cool if you could create a wiki page explaining how you built it. not only is it a cool component, but outlining the process will help others a lot. I second that. Eelco - Take Surveys. Earn Cash. Influence the

Re: [Wicket-user] Resuable AddressPanel

2007-02-28 Thread Eelco Hillenius
As you probably know by now, I am not against using a converter as I have always viewed converters as input/output converters rather than 'just' type converters. However, in 1.2.x and 1.3 until Johan backports the converters from 2.0 this is awkward to achieve, so Igor's approach works best. If

[Wicket-user] FormComponent mask

2007-02-28 Thread Manuel Alejandro de Brito Fontes
Hi, I have a question about field mask, It's possible do something like this: http://www.zapatec.com/website/ajax/zpform/demo/mask.html or similar to http://java.sun.com/docs/books/tutorial/uiswing/ components/formattedtextfield.html in wicket? I miss something in the documentation?. I only

Re: [Wicket-user] Question about Panel

2007-02-28 Thread Zhang Hailong
It looks good. I will try it. Thank you! best, hailong On 3/1/07, Ryan Holmes [EMAIL PROTECTED] wrote: Use a WebMarkupContainer component instead of a Panel. You might also be interested in fragments: http://wicket.sourceforge.net/ExampleUsingFragments.html

Re: [Wicket-user] FormComponent mask

2007-02-28 Thread Igor Vaynberg
zapatec do it with javascript, which is really the only way to go about it. once you figure out the javascript it is trivial to hook it into wicket. -igor On 2/28/07, Manuel Alejandro de Brito Fontes [EMAIL PROTECTED] wrote: Hi, I have a question about field mask, It's possible do something

Re: [Wicket-user] Can templates have an extension other than .html?

2007-02-28 Thread Matt Welch
Nice! Thanks for the help. On 2/28/07, Eelco Hillenius [EMAIL PROTECTED] wrote: On 2/28/07, Igor Vaynberg [EMAIL PROTECTED] wrote: that is an interesting comment indeed. if it was really true then webpage.getmarkuptype() would be final. anyone else mind to comment? Looks like an ancient

Re: [Wicket-user] FormComponent mask

2007-02-28 Thread Manuel Alejandro de Brito Fontes
Yes, I'ts simple, the problem is when I modify the content of the textfield the value of the object is with the mask, not the value behind. For instance, I have a textfield that only accept integer numbers (thats is easy with new PatternValidator( \\d+ ) ), now I want that the user enter

Re: [Wicket-user] FormComponent mask

2007-02-28 Thread Igor Vaynberg
so you want the user to enter 1,000,000 but on serverside that to be 100? then you need a maskconverter that will convert the string to integer. -igor On 2/28/07, Manuel Alejandro de Brito Fontes [EMAIL PROTECTED] wrote: Yes, I'ts simple, the problem is when I modify the content of the

[Wicket-user] server side triggered page refresh (aka push)

2007-02-28 Thread Xavier Hanin
Hi All, I'm currently developing an application in which I need some kind of push technology, and even if wicket doesn't seem to support such feature for the moment, it seems that the gates are open to implement my own. Great design, kudos to the wicket team! I'd like to share with you my ideas

Re: [Wicket-user] server side triggered page refresh (aka push)

2007-02-28 Thread Johan Compagner
I haven't looked in dept into the jetty feature but as far as i know jetty hold the connection open. It pools it internally and when a request (from the client) comes in that connection is used and the request is pretty much handled like a normal servlet request. The problem is how and where

[Wicket-user] Nicer URLs

2007-02-28 Thread Chris Colman
Today I hit the critical mass of connections between neurons in my brain required to grasp Wicket - according to Marcus Buckingham in the book now, discover your strength, that is what is called Synapse Or dendrites and axons or something. Why couldn't they just call them conductors or wires

[Wicket-user] mountBookmarkablePage causes 'no session' error

2007-02-28 Thread Chris Colman
On 2/28/07, Chris Colman [EMAIL PROTECTED] wrote: I tried to add some nice URLs by adding the following to my application class: public void init() { mountBookmarkablePage(/home, HomePage.class); mountBookmarkablePage(/location, LocationPage.class); } can you show

Re: [Wicket-user] mountBookmarkablePage causes 'no session' error

2007-02-28 Thread Eelco Hillenius
It seems like mountBookmarkablePage method tries to instantiate the pages. These pages always need PageParameters (they use this to process the o= parameter so they can determine the organization to display). Their constructors that take no parameters don't do anything because they won't be

[Wicket-user] repeaters and inheritance

2007-02-28 Thread Scott Swank
In our application we have several places where we are construction an html table but the content of the rows varies by ProductType. For example: column 1. always an image column 2. the pricing: for hotels by room, for shows by ticket, for limo by hours column 3. item summary: for hotels the

[Wicket-user] Multiple sections of markup replaced by subclassed markup

2007-02-28 Thread Chris Colman
I have a situation where I have the need to place a wicket:child / in the head and another in the body of a superclass markup page. Ie,. The derived class markups need the ability to provide both header (typically javascript) and body markup to be inserted when the page is rendered. Does wicket

Re: [Wicket-user] Multiple sections of markup replaced by subclassed markup

2007-02-28 Thread Igor Vaynberg
no we do not, but what we do support is wicket:headstuff/wicket:head which will put stuff into head element of the page so wicket:head.../wicket:headwicket:extend.../wicket:extend -igor On 2/28/07, Chris Colman [EMAIL PROTECTED] wrote: I have a situation where I have the need to place a

[Wicket-user] Does wicket:head work with markup inheritance?

2007-02-28 Thread Chris Colman
Using a wicket:head in derived class markup as well as wicket:extend seems to cause problems in both 1.2.4 and 1.2.5 of wicket (haven't tried earlier versions). The following scenario demonstrates this: Base class markup: -- ?xml version=1.0 encoding=UTF-8? html

Re: [Wicket-user] server side triggered page refresh (aka push)

2007-02-28 Thread Dan Brough
I'm sorry I don't understand too well how jetty works as I have only been using it for a week or so and so far I'm pleased as punch with what Ive achieved in that time. It would be nice to have some sort of AjaxPollBehaviour though. I personally don't care much about jetty continuation's as I'm

[Wicket-user] mountBookmarkablePage causes 'no session' error

2007-02-28 Thread Chris Colman
According to the bug list on Altassian my 'no session' issue is caused by a bug that has been recently fixed but only in Wicket 1.3 and 2.0, not 1.2.x. How can I get Wicket 1.3? Are the binaries available for download or do I have to get the source and build it myself?

Re: [Wicket-user] mountBookmarkablePage causes 'no session' error

2007-02-28 Thread Igor Vaynberg
are you sure you need to specify a different pagemap? that is only needed when you work with frames/popups meanwhile ive reopened the issue. -igor On 2/28/07, Chris Colman [EMAIL PROTECTED] wrote: http://wicketstuff.org/maven/repository/org/apache/wicket/ where is the link to the bug?

Re: [Wicket-user] mountBookmarkablePage causes 'no session' error

2007-02-28 Thread Eelco Hillenius
This is *exactly* why we made such a big fuss about it a couple of weeks ago, when fixing it was vetod. This sucks. Eelco On 2/28/07, Igor Vaynberg [EMAIL PROTECTED] wrote: http://wicketstuff.org/maven/repository/org/apache/wicket/ where is the link to the bug? maybe we should backport it

Re: [Wicket-user] mountBookmarkablePage causes 'no session' error

2007-02-28 Thread Eelco Hillenius
We should just remove that stupid method. I hope this is enough proof that removing this doesn BREAK anything but rather FIXES something. We just wasted Chris'es time and ours by trying to help it. Eelco On 2/28/07, Eelco Hillenius [EMAIL PROTECTED] wrote: This is *exactly* why we made such a

Re: [Wicket-user] repeaters and inheritance

2007-02-28 Thread Eelco Hillenius
On 2/28/07, Scott Swank [EMAIL PROTECTED] wrote: In our application we have several places where we are construction an html table but the content of the rows varies by ProductType. For example: column 1. always an image column 2. the pricing: for hotels by room, for shows by ticket, for

Re: [Wicket-user] repeaters and inheritance

2007-02-28 Thread Iman Rahmatizadeh
Another solution would be to put all the complexity of managing items into a general CartPanel class, but that wont get much cleaner I guess. One thing that comes to mind is, If you have a Pricing domain object to handle pricing issues, and a Summary object to handle the items summary , you can

[Wicket-user] Tree Node Link and Page Expired Issue

2007-02-28 Thread Lan Boon Ping
Hi all, I have a Page Expired issue in tree node link, for example I have a tree, when i click on any node 6 times or more and click 5 times on Back button back to first visited page, and click on any tree node I will get Page Expired exception. Does anyone know how to solve this problem? By

Re: [Wicket-user] Tree Node Link and Page Expired Issue

2007-02-28 Thread Igor Vaynberg
what you want is getsessionsettings().setpagemapevictionstrategy(new leastrecentlyaccessedevictionstrategy(15)) -igor On 2/28/07, Lan Boon Ping [EMAIL PROTECTED] wrote: Hi all, I have a Page Expired issue in tree node link, for example I have a tree, when i click on any node 6 times or

Re: [Wicket-user] Tree Node Link and Page Expired Issue

2007-02-28 Thread Lan Boon Ping
It works now. Thanks for your fast reply! Regards Boon Ping On 3/1/07, Igor Vaynberg [EMAIL PROTECTED] wrote: what you want is getsessionsettings().setpagemapevictionstrategy(new leastrecentlyaccessedevictionstrategy(15)) -igor On 2/28/07, Lan Boon Ping [EMAIL PROTECTED] wrote: Hi all,

Re: [Wicket-user] mountBookmarkablePage causes 'no session' error

2007-02-28 Thread Eelco Hillenius
/me grumbles ok nevermind then, I'll just keep away from this issue. Eelco On 2/28/07, Eelco Hillenius [EMAIL PROTECTED] wrote: We should just remove that stupid method. I hope this is enough proof that removing this doesn BREAK anything but rather FIXES something. We just wasted Chris'es

Re: [Wicket-user] Nicer URLs

2007-02-28 Thread Erik van Oosten
If you want more power, you can use MixedParamUrlCodingStrategy from Wicket 1.3/2.0. If you are on the 1.2 branch you can pull it from http://issues.apache.org/jira/browse/WICKET-138. Regards, Erik. igor.vaynberg wrote: http://wicketstuff.org/wicket13/niceurl/ -igor -- Erik van