Re: Managing Pagemaps

2009-03-13 Thread Martijn Dashorst
Premature optimization. Don't try to do this type of stuff unless it is actually a problem. Why not make sure you have applications first and then see if it is actually a problem? Martijn On Sat, Mar 14, 2009 at 2:40 AM, subbu_tce wrote: > > I mean two different wicket applications running in th

Re: Two Wicket Apps in a single web app

2009-03-13 Thread Willis Blackburn
Sure. You just have to sort out the URL space so they don't conflict. Mount a bunch of Wicket filters on various URLs, each referencing a different Application instance. W On Mar 13, 2009, at 9:46 PM, subbu_tce wrote: Is it possible to two or more wicket apps in a single web appliation?

Re: Two Wicket Apps in a single web app

2009-03-13 Thread Igor Vaynberg
see wicket-examples, that runs like 10 wicket applications in a single webapp. -igor On Fri, Mar 13, 2009 at 6:46 PM, subbu_tce wrote: > > Is it possible to two or more wicket apps in a single web appliation? > -- > View this message in context: > http://www.nabble.com/Two-Wicket-Apps-in-a-sing

Two Wicket Apps in a single web app

2009-03-13 Thread subbu_tce
Is it possible to two or more wicket apps in a single web appliation? -- View this message in context: http://www.nabble.com/Two-Wicket-Apps-in-a-single-web-app-tp22508361p22508361.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Managing Pagemaps

2009-03-13 Thread subbu_tce
I mean two different wicket applications running in the same JVM.. And i launch the first wicket application in a window.. i navigate among different pages in the first wicket application. now since i have navigated through different pages, i understand that multiple versions of the pages would h

Re: Managing Pagemaps

2009-03-13 Thread Johan Compagner
do you mean multiply wicket applications on the same host? (just like our example?) then yes you have a pagemap set per wicket app in your session (prefixed with the wicket app name) There are no such hooks because a wicket app 1 is independent on wicket app 2, they should be isolated. (they coul

Re: memcached session store

2009-03-13 Thread Johan Compagner
like igor already also stated but just want to stress this out a bit more If you are really in the big numbers then round robin dividing sticky sessions will be just as good as just round robin I cant believe that there is any difference, its all about statistics for example you have 3 servers an

Re: WYSIWYG component

2009-03-13 Thread Daniel Ferreira Castro
Great :) Thanks :) The Exception stopped from ocurring, but I still have the problem of only showing a TextArea without the look of an WYSWYG edit text area. I looked inside https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/tinymce-parent/tinymce-examples/src/main

Re: can we get this patch applied to the current snapshot?

2009-03-13 Thread Igor Vaynberg
yes, you are right, the red squiggle i got in the ide was actually : error: this variable might not have been initialized :| -igor On Fri, Mar 13, 2009 at 1:39 PM, James Carman wrote: > As I said before, my patch for WICKET-2165 doesn't change any test or > example code at all and everything bui

Re: Propper Way to Use StringResourceModel

2009-03-13 Thread Igor Vaynberg
i said COMPONENT not a MODEL -igor On Fri, Mar 13, 2009 at 2:50 PM, Daniel Ferreira Castro wrote: > If I declare > *private final* StringResourceModel labelCategoriaValue = new > StringResourceModel("categoria.label", *this, null, new* Object[] { > getLocale() }); > > The labelCategoriaValue is

Re: Propper Way to Use StringResourceModel

2009-03-13 Thread Daniel Ferreira Castro
If I declare *private final* StringResourceModel labelCategoriaValue = new StringResourceModel("categoria.label", *this, null, new* Object[] { getLocale() }); The labelCategoriaValue is not a ResourceBundle. The method signature getString does not have input parameters. So, as seems, it is not a

Open popup window in an ajax-response

2009-03-13 Thread mfs
Hello Guys, I am looking for some suggestions on this one issue i am trying to resolve. I have an ajax enabled form which consists of an input field and a submit button. Basically the input needs to be validated against some validation-rules and if successful a popup window should be opened up,

Re: can we get this patch applied to the current snapshot?

2009-03-13 Thread James Carman
As I said before, my patch for WICKET-2165 doesn't change any test or example code at all and everything builds just fine. There are plenty of examples in the test and example code where you pass in a IModel> to the constructor and it all is still working. Take for example the FileListView class

Re: wicketstuff-jamon

2009-03-13 Thread shetc
Started tracing where the null monitor is being created. For my Wicket application, the null target values are associated with Wicket packaged resources such as images and JavaScript files. -- View this message in context: http://www.nabble.com/wicketstuff-jamon-tp16125597p22501465.html Sent fro

Re: can we get this patch applied to the current snapshot?

2009-03-13 Thread James Carman
I did! I added a simple class to my wicket development project that has all of my changes applied for WICKET-2165. In IDEA when I hit Ctrl-B (go to declaration) it takes me to a constructor with this signature: public ListView(final String id, final IModel> model) If you don't believe me, just

Re: can we get this patch applied to the current snapshot?

2009-03-13 Thread Igor Vaynberg
now change listview to take imodel> -igor On Fri, Mar 13, 2009 at 1:00 PM, James Carman wrote: > Ok, what part are you talking about that doesn't compile?  In my IDE > right now, I have: > > public class ListManager extends Panel > { >    public ListManager(String id, IModel> entries) >    { >  

Re: can we get this patch applied to the current snapshot?

2009-03-13 Thread James Carman
Ok, what part are you talking about that doesn't compile? In my IDE right now, I have: public class ListManager extends Panel { public ListManager(String id, IModel> entries) { super(id); add(new ListView("list", entries) { protected void populateItem(L

Re: memcached session store

2009-03-13 Thread Igor Vaynberg
why would server one have 1000 users while server two and three are empty? do you mean that in the time between user starting a heavy task and your loadbalancer receiving a cpu-load update from server one it has already received 1000 new requests from 1000 users while server two and three have not

Re: memcached session store

2009-03-13 Thread Victor Igumnov
@martin REDIRECT_TO_RENDER did not work in my case as well. Possibly I might have screwed something up? @Johan The point of non-sticky sessions is to have even load distribution on your cluster. What happens when you have 1,000 users dependent on server1 that is processing some heavy backg

Re: can we get this patch applied to the current snapshot?

2009-03-13 Thread Igor Vaynberg
yes, sorry class listmanager extends panel { public listmanager(string id, imodel> entries) { add(new form("form") { onsubmit() { listmanager.this.getmodelobject().add(someentry);}} add(new listview("list", entries){}); -igor On Fri, Mar 13, 2009 at 11:51 AM, James Carman wrote: > If T is

Re: can we get this patch applied to the current snapshot?

2009-03-13 Thread James Carman
If T is the element type, then you can't use an IModel for the choices. You can't do that with the current API. Did you mean to pass in an IModel> to the constructor? On Mar 13, 2009 2:45 PM, "Igor Vaynberg" wrote: t is the type of a list element, see below class listmanager extends panel { p

Re: can we get this patch applied to the current snapshot?

2009-03-13 Thread Igor Vaynberg
t is the type of a list element, see below class listmanager extends panel { public listmanager(string id, imodel entries) { add(new form("form") { onsubmit() { listmanager.this.getmodelobject().add(someentry);}} add(new listview("list", entries){}); ^ wont compile because you cant as

Re: Refresh an invisible component via ajax

2009-03-13 Thread jWeekend
Daniele, Try setOutputMarkupPlaceholderTag(true). Regards - Cemal http://jWeekend.com jWeekend Daniele Dellafiore wrote: > > Hi. > Today again I lost some time cause a panel was not being refresh after > being correctly added to AjaxRequestTarget. > > The reason is one I already know but fo

Refresh an invisible component via ajax

2009-03-13 Thread Daniele Dellafiore
Hi. Today again I lost some time cause a panel was not being refresh after being correctly added to AjaxRequestTarget. The reason is one I already know but forgot: if the panel is invisible when the page is rendered, it's html is not rendered at all so you are calling a refresh on a Component with

Re: Security in a Spring & Wicket layered application

2009-03-13 Thread Daniele Dellafiore
we just finished (yesterday) to implement authorization in a wicket app. basically, we end up with integration of WASP, Spring Security and a little beat of SWARM with a home made User-Group-Permission mechanism that is really simple and string based, and persisted on DB (via hibernate) We have a

Re: can we get this patch applied to the current snapshot?

2009-03-13 Thread James Carman
T has to be a list of some sort in this case and you would want to convey that in your API. Are you wanting T to be the element type here or the list type itself. I'm really having a hard time following what you're trying to do here. What type parameter are you passing into your listview? On Fr

Re: BaseWicketTester.clickLink call onBeginRequest two times

2009-03-13 Thread Daniele Dellafiore
On Fri, Mar 13, 2009 at 4:33 PM, Igor Vaynberg wrote: > probably has something to do with one of those wickettester-related issues. > > feel free to open a jira issue and provide a test case. ok, just want to be sure that is really strange or wrong that onBeginRequest is called two times in the s

Re: can we get this patch applied to the current snapshot?

2009-03-13 Thread Igor Vaynberg
the problem remains. lets say we change listview to take imodel> i want to do something like this: class listmanger extends panel { public listmanager(string id, imodel entries) { addformtoaddtems(); add(new listview("list", entities)); ^ wont compile because you cant assign imod

Re: wicketstuff-jamon

2009-03-13 Thread Lars Vonk
I started it and left it in a very basic state, mainly because of my lack of css skills. It is funcationally usable and checked in. See the JamonAdminPage. Lars On Fri, Mar 13, 2009 at 2:42 PM, shetc wrote: > > Thanks, Lars. I also have seen a null monitor as well, and was going to > look > in

Re: BaseWicketTester.clickLink call onBeginRequest two times

2009-03-13 Thread Igor Vaynberg
probably has something to do with one of those wickettester-related issues. feel free to open a jira issue and provide a test case. -igor On Fri, Mar 13, 2009 at 7:54 AM, Daniele Dellafiore wrote: > On Fri, Mar 13, 2009 at 3:49 PM, Igor Vaynberg > wrote: >> did you look at the 1.3.4 changelog

Re: Possible to retrieve previous page from PageMap

2009-03-13 Thread francisco treacy
igor, i would agree with you if i wanted to mimic the browser back button functionality. but i do not. we intensively use panel swapping and we're only interested in registering when users click on certain pages (we can fine-tune pages which pages should be "back-clickable"). we actually consider

Re: Have a feature, want to contribute

2009-03-13 Thread Alex Objelean
Marat, as you can see people are interested and waiting for this feature to be published somewhere Alex Marat Radchenko-2 wrote: > > Wicket pages/components can be either stateful or stateless. Wicket > manages hem transparently and it is very easy to write any complex > page you want. Sta

Re: can we get this patch applied to the current snapshot?

2009-03-13 Thread James Carman
Yes, but that's fine. The idea is that I want to collect a List, but I want to choose from a List. That should be allowed. On Fri, Mar 13, 2009 at 10:42 AM, Igor Vaynberg wrote: > so then again you are back to something taking imodel> and a > widened version in the same constructor. > > -igor

Re: BaseWicketTester.clickLink call onBeginRequest two times

2009-03-13 Thread Daniele Dellafiore
On Fri, Mar 13, 2009 at 3:49 PM, Igor Vaynberg wrote: > did you look at the 1.3.4 changelog? yes and I did not see anything related to this specific issue unless there are a couple of tickets related to WicketTester. -- Daniele Dellafiore http://blog.ildella.net/ --

Re: BaseWicketTester.clickLink call onBeginRequest two times

2009-03-13 Thread Igor Vaynberg
did you look at the 1.3.4 changelog? -igor On Fri, Mar 13, 2009 at 6:40 AM, Daniele Dellafiore wrote: > Hi. > > I am trying to upgrade an application from wicket 1.3.3 to 1.3.4 or .5 > some tests I have failse couse the new BaseWicketTester implementation > treat the AjaxLink in a different way

Re: [NEWBEE] How to get a property from context-param ?

2009-03-13 Thread Igor Vaynberg
see webapplication#getservletcontext, as far as system props a simple System#getProperty() will do -igor On Fri, Mar 13, 2009 at 6:08 AM, Ista Pouss wrote: > Hi, > > How is it possible to get a key from the context-param from web.xml in wicket > ? > > Or how is it possible to set some systems p

Re: Propper Way to Use StringResourceModel

2009-03-13 Thread Igor Vaynberg
each component is a resource bundle, not a model. you can use component's getstring(..) to read any resource you want. -igor On Fri, Mar 13, 2009 at 4:19 AM, Daniel Ferreira Castro wrote: > I have seen some examples of Pages that uses the StringResourceModel to read > properties inside property

Re: Base64UrlSafe violating RFC 3548?

2009-03-13 Thread Igor Vaynberg
feel free to file a bug report. -igor On Fri, Mar 13, 2009 at 1:28 AM, Jonas wrote: > Hi, > > I recently stumbled across Base64UrlSafe, which claims > 'Provides Base64 encoding and decoding with URL and filename safe > alphabet as defined by RFC 3548, section 4.' > In the mentioned section of th

Re: Possible to retrieve previous page from PageMap

2009-03-13 Thread Igor Vaynberg
its really a lot of work to duplicate what the back button in the browser already does. or a simple back will do as well. -igor On Fri, Mar 13, 2009 at 5:02 AM, francisco treacy wrote: > to be honest i haven't read the whole thread, but we are also trying > to achieve roughly the same thing. > >

Re: can we get this patch applied to the current snapshot?

2009-03-13 Thread Igor Vaynberg
so then again you are back to something taking imodel> and a widened version in the same constructor. -igor On Fri, Mar 13, 2009 at 3:54 AM, James Carman wrote: > Again, ListMultipleChoice is okay in this instance.  You don't want to > "widen" the model.  You want to widen what can go in it (the

Re: building a wicket app with maven 1

2009-03-13 Thread Igor Vaynberg
mvn dependency:tree is your friend -Igor On 3/13/09, Stephen Swinsburg wrote: > Spot on, it's been a while since I've done Maven1 work and this has > caught me out previously I just didn't think of it this time! I'll > double check the jars that are in my Maven2 webapp and presume I will > find

Re: Have a feature, want to contribute

2009-03-13 Thread Stefan Simik
Sounds very useful ! -especially in development model. We've spent much time debugging and searching for the one "stateful" component/behavior - in our large page hierarchies ! Marat Radchenko-2 wrote: > > Wicket pages/components can be either stateful or stateless. Wicket > manages hem transp

Re: wicketstuff-jamon

2009-03-13 Thread shetc
Thanks, Lars. I also have seen a null monitor as well, and was going to look into that -- I'll let you know how I get on. Did you finish Wicketising the Admin pages? -- View this message in context: http://www.nabble.com/wicketstuff-jamon-tp16125597p22496658.html Sent from the Wicket - User mail

BaseWicketTester.clickLink call onBeginRequest two times

2009-03-13 Thread Daniele Dellafiore
Hi. I am trying to upgrade an application from wicket 1.3.3 to 1.3.4 or .5 some tests I have failse couse the new BaseWicketTester implementation treat the AjaxLink in a different way that results in RequestCycle.onBeginRequest to be called two times: callOnBeginRequest(requestCycle); processRequ

Re: Large Scale Applications using Wicket

2009-03-13 Thread nino martinez wael
Yeah as people say, it's the business logic that will really be the bottleneck.. 2009/3/13 Willis Blackburn > I don't think that page serialization is going to be your bottleneck. > > I don't know what you're thinking when you say "large scale." Some folks > think "large scale" means two server

Re: wicketstuff-jamon

2009-03-13 Thread Lars Vonk
Hi Steve, I haven't worked on the code for a while, so feel free to commit, change or adjust it the way you like. I have used in in production code without problems. It is pretty monkey proof, so even if it fails it wont intervene with the normal process. The only thing that can "break" is the mon

[NEWBEE] How to get a property from context-param ?

2009-03-13 Thread Ista Pouss
Hi, How is it possible to get a key from the context-param from web.xml in wicket ? Or how is it possible to set some systems properties in a wicket webapp ? Thank for your help. - To unsubscribe, e-mail: users-unsubscr...@wick

Re: onComponentTag not processed for visible=false?

2009-03-13 Thread Martin Makundi
Well.. there is no such thing as a nested form in HTML so why lying to your children is better? ;) ** Martin 2009/3/13 Jeremy Thomerson : > Think of the children! :) When your children grow up and become > programmers and take over your code, they open it and see > - is that very clear? > > Wi

Re: onComponentTag not processed for visible=false?

2009-03-13 Thread Jeremy Thomerson
Think of the children! :) When your children grow up and become programmers and take over your code, they open it and see - is that very clear? Wicket should enforce a form being rendered only with a form tag - that makes sense. -- Jeremy Thomerson http://www.wickettraining.com On Fri, Mar

Re: Stop AjaxFallbackLink activity from the value of java script confirmation message

2009-03-13 Thread Piller Sébastien
Maybe with an IAjaxCallDecorator and the script "if(!confirm('Delete')) return false;"? There are lots of exemple on the list ;) vela a écrit : Hello, I have a AjaxFallbackLink and on click of it, it will delete the value from the database. On click of the link, a java script confirmation dia

Re: memcached session store

2009-03-13 Thread Johan Compagner
If you do have a lot of stateless pages then for those it doesnt matter what kind of sessions you use. The issues he is describing do map exactly on what i am saying. Why would you have none sticky sessions? What do you think you will gain? On Fri, Mar 13, 2009 at 12:14, Martin Grotzke wrote: >

Stop AjaxFallbackLink activity from the value of java script confirmation message

2009-03-13 Thread vela
Hello, I have a AjaxFallbackLink and on click of it, it will delete the value from the database. On click of the link, a java script confirmation dialog will be shown. If option 'yes' is selected, then deleting should happen, else if 'no' is chosen, then deletion should not take place. How to

RE: Dutch Wicket workshop?

2009-03-13 Thread jeroend
Not sure whether this is something you were looking for but..: http://cwiki.apache.org/WICKET/wicket-community-meetups-amsterdam.html regards Jeroen. -Oorspronkelijk bericht- Van: Linda van der Pal [mailto:lvd...@heritageagenturen.nl] Verzonden: vr 3/13/2009 12:41 Aan: users@wicket.apach

Re: memcached session store

2009-03-13 Thread Johan Compagner
a get request will change the page. For example wicket always tries to redirect to the page. So that a post will always be a normal get to the current page. (so no resend of post data when pressing F5) But the page that you render can change. For example you can show a listview on that table and s

Re: Possible to retrieve previous page from PageMap

2009-03-13 Thread francisco treacy
to be honest i haven't read the whole thread, but we are also trying to achieve roughly the same thing. as of wicket 1.4-m1 there is a class called PageId that you may want to consider. i created a "back state holder" class that holds a PageId and an IModel for the text of the back link. so for e

Dutch Wicket workshop?

2009-03-13 Thread Linda van der Pal
Triggered by the news of a London Wicket Event, I wondered if there is any (Dutch) Wicket guru who would like to give a workshop about Wicket? I am the founder and chairwoman of Duchess (http://jduchess.org) and we try to have workshops about five times a year. I've just started working with Wi

Re: London Wicket Event - 1st of April @ Google

2009-03-13 Thread jWeekend
We've already had around 40 guests register (30 confirmed so far) for our next London Wicket Event, including several developers from WicketStuff and other Wicket based projects you may already be using or are interested in, so make sure you register early at http://jweekend.com/dev/LWUGReg/ the

Propper Way to Use StringResourceModel

2009-03-13 Thread Daniel Ferreira Castro
I have seen some examples of Pages that uses the StringResourceModel to read properties inside property files. But the examples that I saw shows that I need to create a StringResourceModel for each property that is inside my property file. So, If I have a Login page that have 3 properties, like l

Re: memcached session store

2009-03-13 Thread Martin Grotzke
On Wed, 2009-03-11 at 12:06 -0700, Victor Igumnov wrote: > I had issues when running non-sticky sessions with ONE_PASS_RENDERER, > the results were mixed. Responses came back as a mixed bag, sometimes > it worked or not. Expired sessions did happen from time to time with > no rhyme or reason.

Re: memcached session store

2009-03-13 Thread Martin Grotzke
On Wed, 2009-03-11 at 20:09 +0100, Johan Compagner wrote: > thats impossible to do completely > A refresh of a browser is for example 1 Ok, from a technical/academical point of view this is valid. However, GET requests should not modify any data. For POST-requests the user also has to confirm that

Re: can we get this patch applied to the current snapshot?

2009-03-13 Thread James Carman
Again, ListMultipleChoice is okay in this instance. You don't want to "widen" the model. You want to widen what can go in it (the choices), which I have. On Fri, Mar 13, 2009 at 3:40 AM, Igor Vaynberg wrote: > taking ListMultipleChoice as another example, your patch leaves it us > > public clas

Re: can we get this patch applied to the current snapshot?

2009-03-13 Thread James Carman
Your right, my patch was a bit off with respect to Palette, but not because of this. I shouldn't have "widened" the second constructor. It should take a IModel>. So, the getModelCollection() doesn't have to change. When we're doing this widening, only the "choices" (not the model) should be wide

Regarding Tomcat web project customize xml (settings.xml)content is missing

2009-03-13 Thread Edi
hello experts, i tried to configure web based java application. but my customize settings.xml content is missing. so after saving the information. i am getting javax.servlet.ServletException: Servlet execution threw an exception please advise thanks -- View this message in context: http://

Re: Large Scale Applications using Wicket

2009-03-13 Thread Willis Blackburn
I don't think that page serialization is going to be your bottleneck. I don't know what you're thinking when you say "large scale." Some folks think "large scale" means two server and others think Travelocity or Google. I developed a system in PHP that served about 20-50 pages per second.

Re: Extensible wicket application

2009-03-13 Thread Ernesto Reinaldo Barreiro
You will have to use bridge-servlet approach for that. As said the bridge-servlet will launch an equinox runtime and redirect your request to the "underlaying" http service. If you import the projects I mentioned into eclipse and then export them as plugin jar files into the plugins folder on t

Re: Generics question

2009-03-13 Thread Linda van der Pal
Thanks! Erik van Oosten wrote: Hi Linda, You are assuming that IModel> is a subtype of IModel> In java this is not the case (even if Subgenre extends DomainObject). You'll need an explicit cast to make this work: IModel> castedModel = (IModel>) subgenreModel; Regards, Erik.

Re: Generics question

2009-03-13 Thread Olivier Michallat
This looks exactly like the DropDownChoice issue that has been debated recently. See the comments in JIRA: https://issues.apache.org/jira/browse/WICKET-2137 The problem is that IModel> doesn't work as we intuitively expect it to. It won't match IModel> (nor IModel> for that matter). As suggested

Re: Generics question

2009-03-13 Thread Erik van Oosten
Hi Linda, You are assuming that IModel> is a subtype of IModel> In java this is not the case (even if Subgenre extends DomainObject). You'll need an explicit cast to make this work: IModel> castedModel = (IModel>) subgenreModel; Regards, Erik. Linda van der Pal wrote: This i

Re: AjaxFallbackButton not working when PasswordTextField is not entered

2009-03-13 Thread vela
Hello, Thank you very much for your inputs. Its working fine. vela wrote: > > Hello, > I have a PasswordTextField, some text fields and AjaxFallbackButton in the > form. If PasswordTextField is not entered and on sumbit of the > AjaxFallbackButton, onSubmit(AjaxRequestTarget , ...

Re: Possible to retrieve previous page from PageMap

2009-03-13 Thread pixologe
Just a thought which I did not think about when implementing this (thus I had to change this stuff all over afterwards), perhaps it helps someone avoiding the same mistake: The latest rendered page is not neccessarily the page that lead the user to the current page. I.e. retrieving the last page

Re: building a wicket app with maven 1

2009-03-13 Thread Steve Swinsburg
Yes I do, but the particular framework they are building this app into requires Maven1 unfortunately. Recent iterations of it are now on M2 its just a legacy version they are running and can't upgrade due to various factors. cheers, Steve On 13 Mar 2009, at 08:55, Martijn Dashorst wrot

Re: Extensible wicket application

2009-03-13 Thread Daniel Dominik Holúbek
Hello, this seems to be helpful, thanks. But still it does not solve the main problem. How do I put OSGi on the Sun Java Application Server and then how do I install bundles in it? (preferably with no console available) Thanks again :) On Thu, Mar 12, 2009 at 10:24 PM, Ernesto Reinaldo Barreiro <

Re: onComponentTag not processed for visible=false?

2009-03-13 Thread Martin Makundi
> What is the use of being able to attach a form to a ? There is > absolutely NONE. Not necessary TABLE but it is very useful to replace with, for example TR. ** Martin > > On Fri, Mar 13, 2009 at 10:02 AM, Martin Makundi > wrote: I wonder if (nested) forms should simply be allowed to have

Generics question

2009-03-13 Thread Linda van der Pal
This is not really Wicket related, but I don't quite know where else to ask this. The question is: why won't this compile? // I define a model IModel> subgenreModel = new AbstractReadOnlyModel>() { ... } // Here I try to use the model FieldSwitchPanel subgenrefield = *new SubgenreFieldSwi

Re: onComponentTag not processed for visible=false?

2009-03-13 Thread Martijn Dashorst
It is about clarity: the fact that the form tag is replaced by something else when used inside another form is a technological artifact, not something we're proud of. A form needs to attach to a form. There is no other reasonable alternative tag available. Wicket can't reasonably ensure validity o

Re: onComponentTag not processed for visible=false?

2009-03-13 Thread Martin Makundi
>> I wonder if (nested) forms should simply be allowed to have any tag >> name the programmer desires? > > No. Because 99% of the time the programmer is not aware that the form > is used in a nested fashion: the form usually is on a Panel, that is > used inside another form. The panel is standalone

Re: building a wicket app with maven 1

2009-03-13 Thread Martijn Dashorst
You (and presumably your client) do know that maven 1 is a technological, and evolutional dead end just like the dodo, right? Martijn On Fri, Mar 13, 2009 at 9:35 AM, Stephen Swinsburg wrote: > Spot on, it's been a while since I've done Maven1 work and this has caught > me out previously I just

Re: building a wicket app with maven 1

2009-03-13 Thread Stephen Swinsburg
Spot on, it's been a while since I've done Maven1 work and this has caught me out previously I just didn't think of it this time! I'll double check the jars that are in my Maven2 webapp and presume I will find that jar missing from the Maven1 build. Thanks Linda and Adriano! On 13/03/2009

Re: onComponentTag not processed for visible=false?

2009-03-13 Thread Martijn Dashorst
On Fri, Mar 13, 2009 at 9:04 AM, Martin Makundi wrote: > I wonder if (nested) forms should simply be allowed to have any tag > name the programmer desires? No. Because 99% of the time the programmer is not aware that the form is used in a nested fashion: the form usually is on a Panel, that is us

Base64UrlSafe violating RFC 3548?

2009-03-13 Thread Jonas
Hi, I recently stumbled across Base64UrlSafe, which claims 'Provides Base64 encoding and decoding with URL and filename safe alphabet as defined by RFC 3548, section 4.' In the mentioned section of the RFC [1], they use the '-' character for value 62 and '_' for value 63. Strangely, Base64UrlSafe

Re: Large Scale Applications using Wicket

2009-03-13 Thread pixologe
Serialization is not that bad. Just take care not to serialize all your domain model objects (use LoadableDetachableModel/DataView/DataProvider) Perhaps you might want to have a look at DiskPageStore, too. subbu_tce wrote: > > Do we have any Clustering Solutions other than Terracotta that ca

Re: AjaxFallbackButton not working when PasswordTextField is not entered

2009-03-13 Thread Linda van der Pal
By default a PasswordTextField is required. So if you don't enter any value in it, the validation will fail and onError will be called instead of onSubmit. I'm guessing you didn't set the other fields to be required, so that's why they don't break the validation. Linda. vela wrote: Hello, I

Re: building a wicket app with maven 1

2009-03-13 Thread Linda van der Pal
Maven2 handles transitive dependencies, meaning that if a project you are dependent on is dependent on other projects, Maven will add them to the classpath. So that's why you didn't have to add that jar manually, Maven did it for you. I don't think Maven1 had this functionality. Linda Stephen

Re: onComponentTag not processed for visible=false?

2009-03-13 Thread Martin Makundi
> ah, so this fails when the an innerform is invisible and you called > setoutputmarkupplaceholdertag(true). > > that makes sense, and you are right - we do not handle this usecase right now. > > please open a jira issue, and if you do not want to wait for a > snapshot subclass your form and overid

AjaxFallbackButton not working when PasswordTextField is not entered

2009-03-13 Thread vela
Hello, I have a PasswordTextField, some text fields and AjaxFallbackButton in the form. If PasswordTextField is not entered and on sumbit of the AjaxFallbackButton, onSubmit(AjaxRequestTarget , ..) is not getting called. But when I remove the PasswordTextField and without entering the

Re: onComponentTag not processed for visible=false?

2009-03-13 Thread Igor Vaynberg
ah, so this fails when the an innerform is invisible and you called setoutputmarkupplaceholdertag(true). that makes sense, and you are right - we do not handle this usecase right now. please open a jira issue, and if you do not want to wait for a snapshot subclass your form and overide it thusly:

Re: can we get this patch applied to the current snapshot?

2009-03-13 Thread Igor Vaynberg
taking ListMultipleChoice as another example, your patch leaves it us public class ListMultipleChoice extends AbstractChoice, T> when in fact it should be properly declared as public class ListMultipleChoice extends AbstractChoice, T> so that getModelObject() properly returns Collection instead

Re: can we get this patch applied to the current snapshot?

2009-03-13 Thread Igor Vaynberg
your patch works because it does not properly refactor Palette#getModelCollection(). you left it us: public Collection getModelCollection() { return (Collection)getDefaultModelObject(); } which is incorrect, it should in fact now return Collection, which will break

Re: onComponentTag not processed for visible=false?

2009-03-13 Thread Martin Makundi
> wicket rewrites nested form tags for you to divs Is it a bug that wicket does not rewrite if the form is not visible? Component.render(final MarkupStream markupStream) { ... if (determineVisibility()) { // render -> replace form with div } else if (markupStream != null) { if (getFlag(FLA

Re: onComponentTag not processed for visible=false?

2009-03-13 Thread Igor Vaynberg
wicket rewrites nested form tags for you to divs -igor On Thu, Mar 12, 2009 at 11:52 PM, Martin Makundi wrote: > Hi! > > onComponentTag is not processed when a component is not visible. > > This has the implication that nested forms look like style="display:none"> which potentially breaks form