Re: [Wicket-user] onSelectionChanged and session-in-view
Same can be said for ajax update behaviour. See for example: TextField password = new TextField("password"); AjaxFormComponentUpdatingBehavior ajaxBehaviour = new AjaxFormComponentUpdatingBehavior("onblur") { protected void onUpdate(AjaxRequestTarget target) { System.out.println("ajaxUpdated"); } }; password.add(ajaxBehaviour); The output: - getPassword setPassword <--- here ajaxUpdated Should I avoid directly using persistent objects for models? What do you suggest? I could serialize an (hibernate)detached object as a form field and then re-attach it on form submission. Or I could load and (hibernate)detach the object on every request (same as I'm doing now, but detaching from session immediately after loading). Or I could use a plain dto. Cheers, Carlos On 4/5/07, Carlos Pita <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm a bit concerned about onSelectionChanged event effectively binding > my model. Suppose my model is a LoadableDetachableModel that is loaded > from the repository every time. Normally (upon form submission) > nothing will be bound after successfully passing validation; then > additional logic will run inside a transactional service and a > rollback thrown if something goes wrong (take into account that I'm > using session-in-view). But if a property of my model object is bound > outside this controlled scenario, the change will be persisted upon > session correct finalization, even if the object is invalid. I > observed that during onSelectionChanged execution the changed property > is effectively bound, so how should I deal with this? > Here is an example with a simple User that has a sex property allowing > the usual two values, note how setSex is called during execution of > onSelectionChanged: > > > The ouput for onSelectionChanged > -- > > loadSexModel > getSex > setSex <--- here > getSex > selectionChanged > getSex > > The user domain entity. > -- > > public class User implements Serializable { > [...] > private String sex; > > [...] > public String getSex() { > System.out.println("getSex"); > return sex; > } > > public void setSex(String sex) { > System.out.println("setSex"); > this.sex = sex; > } > } > > The sex choice. > -- > > DropDownChoice sex = new DropDownChoice("sex", getSexModel()) { > protected void onSelectionChanged(Object newSelection) { > System.out.println("selectionChanged"); > } > protected boolean wantOnSelectionChangedNotifications() { > return true; > } > }; > > The sex model. > - > > private IModel getSexModel() { > return new LoadableDetachableModel() { > protected Object load() { > System.out.println("loadSexModel"); > return Arrays.asList("Masculine", "Feminine"); > } > }; > } > > > Cheers, > Carlos > - 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 on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] onSelectionChanged and session-in-view
Hi all, I'm a bit concerned about onSelectionChanged event effectively binding my model. Suppose my model is a LoadableDetachableModel that is loaded from the repository every time. Normally (upon form submission) nothing will be bound after successfully passing validation; then additional logic will run inside a transactional service and a rollback thrown if something goes wrong (take into account that I'm using session-in-view). But if a property of my model object is bound outside this controlled scenario, the change will be persisted upon session correct finalization, even if the object is invalid. I observed that during onSelectionChanged execution the changed property is effectively bound, so how should I deal with this? Here is an example with a simple User that has a sex property allowing the usual two values, note how setSex is called during execution of onSelectionChanged: The ouput for onSelectionChanged -- loadSexModel getSex setSex <--- here getSex selectionChanged getSex The user domain entity. -- public class User implements Serializable { [...] private String sex; [...] public String getSex() { System.out.println("getSex"); return sex; } public void setSex(String sex) { System.out.println("setSex"); this.sex = sex; } } The sex choice. -- DropDownChoice sex = new DropDownChoice("sex", getSexModel()) { protected void onSelectionChanged(Object newSelection) { System.out.println("selectionChanged"); } protected boolean wantOnSelectionChangedNotifications() { return true; } }; The sex model. - private IModel getSexModel() { return new LoadableDetachableModel() { protected Object load() { System.out.println("loadSexModel"); return Arrays.asList("Masculine", "Feminine"); } }; } Cheers, Carlos - 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 on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Internationalization and DropDownChoice
Hello again, And again thank you for all your help and interest I really appreciate it!. This is not working... I have a CompoundPropertyModel with all the data from the form, including the country. The getCountries() method outputs the list of countries depending on the language stored in session. But if I create the DropDownChoice as you said: countries = new DropDownChoice("country", new Model() { public List getObject() { return getCountries();} }, new ChoiceRenderer ("countryName", "countryID")); I have a RunTimeException: java.lang.NullPointerException: List of choices is null - Was the supplied 'Choices' model empty? I'm sure that getCountries() always gives something back, so I'm missing something here... The getObject() of the Model is always called? Thank you again, Oskar Janos Cserep wrote: > > 2007/3/30, Toscano <[EMAIL PROTECTED]>: >> >> >> countries = new DropDownChoice ("country", >> new Model() { >> public List getObject() { >> return getCountries(); >> } >> }, getCountries(), >> new CountryChoiceRenderer()); >> > > > Skip the second getCountries() call - you don't need that - and also this > way you lose the selected country (check the javadoc for DDC). Wicket > Models > may be hard to grasp at first, I suggest you read the wiki again. > > Remember: component's are just components they don't (or at least > shouldn't) > store domain objects. Models do that. If you pass a List to DropDownChoice > it will be wrapped in a static Model in the constructor and won't be > affected by later changes. If you pass in a Model which calls > getCountries() > on each request - your Model will refresh the list on each request. > > My solution for you would be to write: > > countries = new DDC("country", new PropertyModel(this, "countries), new > CountryChoiceRenderer()); > > This of course needs a CompoundPropertyModel somewhere up the component > tree > that stores a bean that has getCountry() and setCountry() methods... If > you > want to store your selected country elsewhere, you will need something > similar to the following code: > > countries = new DDC("country", new PropertyModel(countryBean, > "selectedCountry"), new PropertyModel(this, "countries), new > CountryChoiceRenderer()); > > -- > János Cserép - [EMAIL PROTECTED] > Mobile: +36 20 4328730 > Web: http://www.szeretgom.hu > Skype: cserepj > > - > 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 on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- View this message in context: http://www.nabble.com/Internationalization-and-DropDownChoice-tf3485705.html#a9866830 Sent from the Wicket - User mailing list archive at Nabble.com. - 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 on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Framework Evaluation
> In this comparison thread, I've heard Tapestry mentioned, but has > anyone compared it to Rife? I am also in the middle of the framework > shopping game, and honestly, it's no fun. Rife is very different from most frameworks. It's XML heavy and flow oriented and has 'continuations' as one of it's central concepts. Not my style tbh, but it has a good community, good docs and a good lead developer, so I'd expect it to be at least a good quality framework. Best thing you can do is check out their examples and do a little coding with it yourself. Eelco - 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 on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Framework Evaluation
In this comparison thread, I've heard Tapestry mentioned, but has anyone compared it to Rife? I am also in the middle of the framework shopping game, and honestly, it's no fun. Jeremy On Apr 5, 2007, at 6:18 PM, Eelco Hillenius wrote: > On 4/5/07, Matej Knopp <[EMAIL PROTECTED]> wrote: >> Right, it should, but if you are not using sticky sessions, the path >> where serialized pages are stored must be accessible from all nodes. > > Yeah, and a clustered environment. Or use a database instead of the > file system. Would be nice to have that implemented btw. > > Eelco > > -- > --- > 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 on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php? > page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user - 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 on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Framework Evaluation
On 4/5/07, Matej Knopp <[EMAIL PROTECTED]> wrote: > Right, it should, but if you are not using sticky sessions, the path > where serialized pages are stored must be accessible from all nodes. Yeah, and a clustered environment. Or use a database instead of the file system. Would be nice to have that implemented btw. Eelco - 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 on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Framework Evaluation
Right, it should, but if you are not using sticky sessions, the path where serialized pages are stored must be accessible from all nodes. -Matej On 4/5/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > I would love nothing more than to have Wicket as the "de facto" where I > > work. Unfortunately, the application server admin is somewhat worried > > about the amount of heap space my app uses. I am working at profiling > > the app to see where the real issue lies. Unfortunately, it has been > > almost impossible to get any hard numbers from him on how big a slice he > > has had to a lot my app. The funny thing is we have multiple apps in > > production (non-Wicket) whose sessions' are so big that they can't be > > clustered in Weblogic. My Wicket app clusters just fine so I am not > > sure why he has such trepidation about using Wicket in more places. > > It's the unfortunate knee-jerk reaction people have when they hear > Wicket uses server side memory. Only thing you can say to those people > is 'measure before you make conclusions'. You've heard of the root of > all evil: 'premature optmization'. Java EE has a lot of that > unfortunately. > > Anyway, if you upgrade to 1.3 and use SecondLevelCacheSessionStore > (the default for 1.3) you'll find that memory usage dropped quite a > bit. > > Eelco > > - > 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 on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - 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 on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Framework Evaluation
> I would love nothing more than to have Wicket as the "de facto" where I > work. Unfortunately, the application server admin is somewhat worried > about the amount of heap space my app uses. I am working at profiling > the app to see where the real issue lies. Unfortunately, it has been > almost impossible to get any hard numbers from him on how big a slice he > has had to a lot my app. The funny thing is we have multiple apps in > production (non-Wicket) whose sessions' are so big that they can't be > clustered in Weblogic. My Wicket app clusters just fine so I am not > sure why he has such trepidation about using Wicket in more places. It's the unfortunate knee-jerk reaction people have when they hear Wicket uses server side memory. Only thing you can say to those people is 'measure before you make conclusions'. You've heard of the root of all evil: 'premature optmization'. Java EE has a lot of that unfortunately. Anyway, if you upgrade to 1.3 and use SecondLevelCacheSessionStore (the default for 1.3) you'll find that memory usage dropped quite a bit. Eelco - 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 on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Question - Is ITypeConverter really used anywhere? (wicket-1.x)
You're right, they can go now that we have better converters. Thanks for reporting, I'm on it. Eelco On 4/5/07, Thomas R. Corbin <[EMAIL PROTECTED]> wrote: > ConverterLocater refers to it in the javadoc, but as far as I can tell, it > doesn't really use it. > > Same for SimpleConverterAdapter. > > - > 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 on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - 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 on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Framework Evaluation
> I don't suppose they hear any great stories about Wicket from you? :) Indeed they did ;-) My one friend was particularly impressed by my description of markup inheritance. I would love nothing more than to have Wicket as the "de facto" where I work. Unfortunately, the application server admin is somewhat worried about the amount of heap space my app uses. I am working at profiling the app to see where the real issue lies. Unfortunately, it has been almost impossible to get any hard numbers from him on how big a slice he has had to a lot my app. The funny thing is we have multiple apps in production (non-Wicket) whose sessions' are so big that they can't be clustered in Weblogic. My Wicket app clusters just fine so I am not sure why he has such trepidation about using Wicket in more places. -scott > -Original Message- > From: [EMAIL PROTECTED] [mailto:wicket-user- > [EMAIL PROTECTED] On Behalf Of Martijn Dashorst > Sent: Thursday, April 05, 2007 4:45 PM > To: wicket-user@lists.sourceforge.net > Subject: Re: [Wicket-user] Framework Evaluation > > On 4/5/07, Weaver, Scott <[EMAIL PROTECTED]> wrote: > > They are in the process of re-writing one of the web apps from the > ground up > > using Tapestry and all I hear is what a nightmare Tapestry is to work > with. > > I don't suppose they hear any great stories about Wicket from you? :) > > Related to the topic, our company also uses Wicket for all new Java > development, though we will not hesitate to use any other tech if that > should suit the problem domain better (or just to try something new). > > We have gone through the struts (1.1?), maverick, JSF path. Even > several of the .net guys look envious at wicket (especially those that > have worked with it). > > Martijn > > -- > Learn Wicket at ApacheCon Europe: http://apachecon.com > Join the wicket community at irc.freenode.net: ##wicket > Wicket 1.2.5 will keep your server alive. Download Wicket now! > http://wicketframework.org > > - > 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 on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE V > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user - 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 on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Question - Is ITypeConverter really used anywhere? (wicket-1.x)
ConverterLocater refers to it in the javadoc, but as far as I can tell, it doesn't really use it. Same for SimpleConverterAdapter. - 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 on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Framework Evaluation
> several of the .net guys look envious at wicket (especially those that > have worked with it). Yeah. I used to work for that company Martijn works for. From what I've seen, I think Wicket saved Java in that company, as people really were starting to get tired of Struts/ Maverick/ model 2. Eelco - 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 on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Framework Evaluation
> I have never heard any first-hand accounts of Tapestry being all that great > to work with. I have never used it myself, but I have a couple of buddies > that work at a company that develops management software for doctors. They > are in the process of re-writing one of the web apps from the ground up > using Tapestry and all I hear is what a nightmare Tapestry is to work with. > This is from people who I consider top notch developers. I can't give you > any specifics, so you can take it for what it is worth. For me, Wicket has > been a joy to work with from day one and it feels very uncomfortable when I > have to work on web applications that are not written in Wicket. I've never worked with T myself, but read a book on it and browsed through the source code. The funny thing is that I was about to start a proof of concept in it for the company I worked for three years ago. But Johan just got out of a project that used it, and explained some of the problems it had (T 3). So we took a look at JSF, didn't like that either and decided to forget about proposing a new framework (though we had some serious maintenance issues with our model 2 based apps). Then Johan (again) found Wicket a couple of months later and we agreed that this was exactly what we were looking for, even though it was still in pre-pre-pre-alpha. Anyway, for T's defense, my hunch is that it is still a hell of a lot better than using model 2 frameworks. Especially now that I've been working with Wicket for a while, there is just not a single thing I find good or useful about them. Stripes provides a programming model that at least fixes some of the most annoying things that exist in the other model 2 frameworks, but still, the concept of model 2 is utterly broken imo. And T *was* one of the first Java frameworks to try to provide a better programming model. Gotta give HLS credit for that :) My 2c, Eelco - 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 on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Framework Evaluation
On 4/5/07, Weaver, Scott <[EMAIL PROTECTED]> wrote: > They are in the process of re-writing one of the web apps from the ground up > using Tapestry and all I hear is what a nightmare Tapestry is to work with. I don't suppose they hear any great stories about Wicket from you? :) Related to the topic, our company also uses Wicket for all new Java development, though we will not hesitate to use any other tech if that should suit the problem domain better (or just to try something new). We have gone through the struts (1.1?), maverick, JSF path. Even several of the .net guys look envious at wicket (especially those that have worked with it). Martijn -- Learn Wicket at ApacheCon Europe: http://apachecon.com Join the wicket community at irc.freenode.net: ##wicket Wicket 1.2.5 will keep your server alive. Download Wicket now! http://wicketframework.org - 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 on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Framework Evaluation
I have never heard any first-hand accounts of Tapestry being all that great to work with. I have never used it myself, but I have a couple of buddies that work at a company that develops management software for doctors. They are in the process of re-writing one of the web apps from the ground up using Tapestry and all I hear is what a nightmare Tapestry is to work with. This is from people who I consider top notch developers. I can't give you any specifics, so you can take it for what it is worth. For me, Wicket has been a joy to work with from day one and it feels very uncomfortable when I have to work on web applications that are not written in Wicket. Oh, and the help on the user list in unmatched :-) -scott From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of xrogue Sent: Wednesday, April 04, 2007 3:49 PM To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] Framework Evaluation We are currently evaluating GWT, Tapestry and Wicket for our company. We would like to pick one that we can standardize on for the entire company to build all of our new web products on going forward. I managed to get Wicket to Round 2 ;-), but our architects have some lingering concerns that I simply cannot address in the short time I have been working with Wicket. So, I have some questions that I hope people can answer, or at least point me in the right direction to look for the answers ;-) I am currently working with Wicket 1.2.5... 1. I have found comparisons between Wicket and Tapestry (and JSF), but none between Wicket and GWT. Are there any out there? 2. When using GWT, you appear to get AJAX for free. We are trying to produce Wicket code to a) add dynamic components to a web page at runtime and b) have those components (like a link) modify an existing component when selected, all on the client-side with no calls back to the server. Is there any code available that demonstrates this capability? We have looked through the Ajax examples and could not find a good demonstration of that... 3. Given the following HTML element ")'>link, is there a way to have it rendered in browser as foo? In other words, we are looking for a way to replace "" with "foo" Thanks for any assistance, rhogue - 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 on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Escaping of HTML by wicket:message - can this be disabled?
ah, 1.2.5. i was talking about 1.3. i dont know if we support this in 1.2.5 -igor On 4/5/07, ZedroS Schwart <[EMAIL PROTECTED]> wrote: Hum, I'm quite surprised since I've inserted some html (mainly ) code in my properties files and it weren't rendered properly... I just had some appearing in my page (using wicket 1.2.5). What do I do wrong ? Thanks in advance ZedroS On 4/5/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > it is deactivated by default > > > On 4/5/07, ZedroS <[EMAIL PROTECTED]> wrote: > > > > Hi > > > > Regarind the html escaping in message tag, can we now desactivate it ? If > > so, could you tell me how please ? > > > > Thanks in advance > > ZedroS > > > > > > igor.vaynberg wrote: > > > > > > done in branches-1.x and trunk > > > > > > -igor > > > > > > > > > On 1/19/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > >> > > >> Ok, I guess just not escaping would be fine is most if not all cases. > > >> > > >> Eelco > > >> > > >> On 1/19/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > >> > i dont know if we need yet another setting/attribute > > >> > > > >> > lets go the simple route and have them always not escaped first, then > > >> if > > >> > someone wants it thats fine. do we need to have a vote on this? > > >> > > > >> > -1 on a setting for sure, if i design a component to work in one > > >> setting > > >> and > > >> > you drop it into a project that uses another it will break. so an > > >> attribute > > >> > maybe - upon a request. setting def not. > > >> > > > >> > as far as wicket:message property - yes those should always be > escaped > > >> - > > >> > there is no reason to embed markup in an attribute afaict > > >> > > > >> > -igor > > >> > > > >> > > > >> > > > >> > On 1/19/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > >> > > Yeah. It would probably be a better default. It would be best if > you > > >> > > could at least override this default with an attribute on the > > >> > > wicket:message tag, and maybe as a global setting as well. What > about > > >> > > wicket:message attributes though (actually, I didn't know they were > > >> > > working yet): those should probably always be escaped? > > >> > > > > >> > > Eelco > > >> > > > > >> > > > > >> > > On 1/19/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > >> > > > i guess maybe we should allow markup in wicket:message since it > > >> comes > > >> > from > > >> > > > .property files so no security threat. > > >> > > > > > >> > > > what do others think? > > >> > > > > > >> > > > > > >> > > > -igor > > >> > > > > > >> > > > > > >> > > > On 1/19/07, Peter Thomas <[EMAIL PROTECTED] > wrote: > > >> > > > > Yes, that would be great and I'll watch out for when it is > > >> released ! > > >> > > > > > > >> > > > > I am also wondering if this can be "globally" set (maybe slight > > >> > > > performance improvement?) but you will be the best judge for > that. > > >> > > > > > > >> > > > > > > >> > > > > Thanks, > > >> > > > > > > >> > > > > Peter. > > >> > > > > > > >> > > > > > > >> > > > > On 1/19/07, Igor Vaynberg < [EMAIL PROTECTED]> wrote: > > >> > > > > > if you want to upgrade to 1.x (1.3) i can try adding a switch > > >> to > > >> > > > wicket:message to disable escaping > > >> > > > > > > > >> > > > > > > > >> > > > > > -igor > > >> > > > > > > > >> > > > > > > > >> > > > > > > > >> > > > > > On 1/19/07, Peter Thomas < [EMAIL PROTECTED]> wrote: > > >> > > > > > > I am using 1.2.4 > > >> > > > > > > > > >> > > > > > > Not sure if it matters but I'm using a Spring MessageSource > > >> so > > >> I > > >> > have > > >> > > > my own implementation of IStringResourceLoader set up in the > > >> Application > > >> > > > through > "getResourceSettings().addStringResourceLoader" > > >> > > > > > > > > >> > > > > > > Thanks, > > >> > > > > > > > > >> > > > > > > Peter. > > >> > > > > > > > > >> > > > > > > > > >> > > > > > > > > >> > > > > > > On 1/19/07, Igor Vaynberg < [EMAIL PROTECTED] > > wrote: > > >> > > > > > > > what version of wicket are you using? > > >> > > > > > > > > > >> > > > > > > > -igor > > >> > > > > > > > > > >> > > > > > > > > > >> > > > > > > > > > >> > > > > > > > > > >> > > > > > > > On 1/19/07, Peter Thomas < [EMAIL PROTECTED]> wrote: > > >> > > > > > > > > > > >> > > > > > > > > Hi, > > >> > > > > > > > > > > >> > > > > > > > > I'm migrating a JSP app which already has i18n to > wicket > > >> and > > >> > > > re-using an existing resource bundle. There are a few cases > where > > >> HTML > > >> > has > > >> > > > been embedded in the string resource - e.g: > > >> > > > > > > > > > > >> > > > > > > > > my.key=Hello World! > > >> > > > > > > > > > > >> > > > > > > > > But now when using > wicket > > >> > appears > > >> > > > to be html escaping the value of the localized string retrieved - > > >> so > > >> in > > >> > this > > >> > > > case I see the "" rendered on screen where I expected a line > > >> break. > > >> > > > > > > > > > > >> > > > > > > > > Is there any way to suppress this or there is
Re: [Wicket-user] Framework Evaluation
Hi I was myself looking for a web framework and I've looked at both Tapestry and Wicket, so I'll quickly give my feeling : - Tapestry development team switch from major version to major version without providing a clear migration path for the user. As such, on Tapestry forums, you got questions of "old" Tapestry 3, then of current Tap 4 and even some on Tap 5, each version being quite different. That was a major hurdle for me, because I want my web framework to last more than the time of a version and to have a clear migration path. - In tapestry, components inheritance isn't possible. In wicket, it's just awesome, especially considering an enterprise developed website. Indeed, you define "basePage", "baseForm" and so on, so the basic developer is guided and helped a lot. For example, I use an "ajaxBasedForm" for my forms, and thus the ajax stuff is written only once and I don't have to deal with it anymore, even if all my forms are ajax enabled. Great isn't it ? On an enterprise, I really see the benefits : the "normal" forms' developers will just have to deal with the forms' elements, and not with the form validation and submitting logic. - last but not least, the developers behind Wicket are just really user friendly. They listen to developers inputs as well as respond really fast and efficiently to questions. It's just amazing. For GWT, I can't tell. I mainly skipped it because it was way too much "full ajax" and, at the time, not free (quite annoying at the time for the unfixed bugs). Best regards ZedroS - 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 on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Escaping of HTML by wicket:message - can this be disabled?
Hum, I'm quite surprised since I've inserted some html (mainly ) code in my properties files and it weren't rendered properly... I just had some appearing in my page (using wicket 1.2.5). What do I do wrong ? Thanks in advance ZedroS On 4/5/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > it is deactivated by default > > > On 4/5/07, ZedroS <[EMAIL PROTECTED]> wrote: > > > > Hi > > > > Regarind the html escaping in message tag, can we now desactivate it ? If > > so, could you tell me how please ? > > > > Thanks in advance > > ZedroS > > > > > > igor.vaynberg wrote: > > > > > > done in branches-1.x and trunk > > > > > > -igor > > > > > > > > > On 1/19/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > >> > > >> Ok, I guess just not escaping would be fine is most if not all cases. > > >> > > >> Eelco > > >> > > >> On 1/19/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > >> > i dont know if we need yet another setting/attribute > > >> > > > >> > lets go the simple route and have them always not escaped first, then > > >> if > > >> > someone wants it thats fine. do we need to have a vote on this? > > >> > > > >> > -1 on a setting for sure, if i design a component to work in one > > >> setting > > >> and > > >> > you drop it into a project that uses another it will break. so an > > >> attribute > > >> > maybe - upon a request. setting def not. > > >> > > > >> > as far as wicket:message property - yes those should always be > escaped > > >> - > > >> > there is no reason to embed markup in an attribute afaict > > >> > > > >> > -igor > > >> > > > >> > > > >> > > > >> > On 1/19/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > >> > > Yeah. It would probably be a better default. It would be best if > you > > >> > > could at least override this default with an attribute on the > > >> > > wicket:message tag, and maybe as a global setting as well. What > about > > >> > > wicket:message attributes though (actually, I didn't know they were > > >> > > working yet): those should probably always be escaped? > > >> > > > > >> > > Eelco > > >> > > > > >> > > > > >> > > On 1/19/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > >> > > > i guess maybe we should allow markup in wicket:message since it > > >> comes > > >> > from > > >> > > > .property files so no security threat. > > >> > > > > > >> > > > what do others think? > > >> > > > > > >> > > > > > >> > > > -igor > > >> > > > > > >> > > > > > >> > > > On 1/19/07, Peter Thomas <[EMAIL PROTECTED] > wrote: > > >> > > > > Yes, that would be great and I'll watch out for when it is > > >> released ! > > >> > > > > > > >> > > > > I am also wondering if this can be "globally" set (maybe slight > > >> > > > performance improvement?) but you will be the best judge for > that. > > >> > > > > > > >> > > > > > > >> > > > > Thanks, > > >> > > > > > > >> > > > > Peter. > > >> > > > > > > >> > > > > > > >> > > > > On 1/19/07, Igor Vaynberg < [EMAIL PROTECTED]> wrote: > > >> > > > > > if you want to upgrade to 1.x (1.3) i can try adding a switch > > >> to > > >> > > > wicket:message to disable escaping > > >> > > > > > > > >> > > > > > > > >> > > > > > -igor > > >> > > > > > > > >> > > > > > > > >> > > > > > > > >> > > > > > On 1/19/07, Peter Thomas < [EMAIL PROTECTED]> wrote: > > >> > > > > > > I am using 1.2.4 > > >> > > > > > > > > >> > > > > > > Not sure if it matters but I'm using a Spring MessageSource > > >> so > > >> I > > >> > have > > >> > > > my own implementation of IStringResourceLoader set up in the > > >> Application > > >> > > > through > "getResourceSettings().addStringResourceLoader" > > >> > > > > > > > > >> > > > > > > Thanks, > > >> > > > > > > > > >> > > > > > > Peter. > > >> > > > > > > > > >> > > > > > > > > >> > > > > > > > > >> > > > > > > On 1/19/07, Igor Vaynberg < [EMAIL PROTECTED] > > wrote: > > >> > > > > > > > what version of wicket are you using? > > >> > > > > > > > > > >> > > > > > > > -igor > > >> > > > > > > > > > >> > > > > > > > > > >> > > > > > > > > > >> > > > > > > > > > >> > > > > > > > On 1/19/07, Peter Thomas < [EMAIL PROTECTED]> wrote: > > >> > > > > > > > > > > >> > > > > > > > > Hi, > > >> > > > > > > > > > > >> > > > > > > > > I'm migrating a JSP app which already has i18n to > wicket > > >> and > > >> > > > re-using an existing resource bundle. There are a few cases > where > > >> HTML > > >> > has > > >> > > > been embedded in the string resource - e.g: > > >> > > > > > > > > > > >> > > > > > > > > my.key=Hello World! > > >> > > > > > > > > > > >> > > > > > > > > But now when using > wicket > > >> > appears > > >> > > > to be html escaping the value of the localized string retrieved - > > >> so > > >> in > > >> > this > > >> > > > case I see the "" rendered on screen where I expected a line > > >> break. > > >> > > > > > > > > > > >> > > > > > > > > Is there any way to suppress this or there is no option > > >> but to > > >> > > > clean up the bundles? > > >> > > > > > > > > > > >> > > > > > > > > Thanks, > > >> > > > > > > > > > > >
Re: [Wicket-user] AjaxFormSubmitBehavior : which event to use ?
Hi Just for records, I found my issue : I was adding mu behavior of the form itself. I now add it to the ajax button and it rocks ! Thanks again Wicket team :) ZedroS On 4/2/07, ZedroS Schwart <[EMAIL PROTECTED]> wrote: > Hi > > Just to add a new point : in fact each time the user click on the form > the ajax call is made, even if the feedback panel isn't updated... > Weird for a AjaxFormSubmitIndicator no ? How can I avoid such a > behavior ? > > Thanks in advance > ZedroS > > On 4/1/07, ZedroS Schwart <[EMAIL PROTECTED]> wrote: > > Hi > > > > I'm using an AjaxFormSubmitBehavior to render a little indicator on > > the ongoing Ajax request. > > > > I've done it this way : > > class AjaxFormSubmitIndicator extends > > AjaxFormSubmitBehavior > > implements IAjaxIndicatorAware { > > > > public AjaxFormSubmitIndicator() { > > super(UserInscriptionForm.this, > > "onclick"); > > } > > > > public String getAjaxIndicatorMarkupId() { > > return imgContainer.getMarkupId(); > > } > > > > @Override > > protected void onSubmit(AjaxRequestTarget > > target) { > > target.addComponent(imgContainer); > > } > > } > > > > However, I've the image shown each time the user click somewhere on > > the form. It's really brief, for sure, but still it's kind of > > misleading/annoying. > > > > Moreover, I'm using a AjaxSubmitButton to submit this form. Can > > something be done to show the image indicator from it ? > > > > thanks in advance > > ZedroS > > > - 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 on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Tree for navigation
The best way to do this is to ignore the Tree components we ship. What you're after here is either something similar to https://svn.sourceforge.net/svnroot/wicket-stuff/branches/WICKET_1_2/wicket-contrib-navmenu or something based on a javascript (client side only) tree. Eelco On 4/5/07, BPnwn <[EMAIL PROTECTED]> wrote: > > > Nicolai Dymosz wrote: > > > > Hi All, > > > > i built a tree (wicket.extension.markup.html.tree.Tree). The tree works > > fine. But now i want to use the tree for navigation. > > > > I just found examples to build a tree, but i didn`t find some examples to > > use the tree for navigation. > > > > Can anyone give me further information in how to make tree links > > bookmarkabel? > > > > Regards Nico > > > > I have the same question, and I'd like to add to it by asking how to keep > the tree expanded, rather than collapsing every time a node is clicked? > Here's how I did it, but I suspect there are better ways: > > I built the tree starting from the example in the extensions (although I > used wicket.extension.markup.html.tree.Tree, not the Ajax version): > > private TreeModel createTreeModel() > { > DefaultMutableTreeNode rootNode = new DefaultMutableTreeNode( > new ModelBean("MyNode", MyPage.class)); > > // My model bean stores the page class to which I want to navigate. > > rootNode .add(new DefaultMutableTreeNode(new ModelBean("MyNode2", > MyPage2.class))); > ... > TreeModel model = new DefaultTreeModel(rootNode); > return model; > } > > public MyBasePage() > { > Tree tree = new Tree("tree", createTreeModel()) > { > @Override > protected void nodeLinkClicked(DefaultMutableTreeNode arg0) > { > super.nodeLinkClicked(arg0); > ModelBean bean = (ModelBean) arg0.getUserObject(); > if (bean.getLinkClass() != null) > { > MyBasePage.this.setResponsePage(bean.getLinkClass()); > } > this.expandAll(true); // I want the tree to stay > expanded...is this the > best way? > } > }; > tree.expandAll(true); > add(tree); > } > > -- > View this message in context: > http://www.nabble.com/Tree-for-navigation-tf3524348.html#a9859814 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > 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 on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - 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 on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Tree for navigation
Nicolai Dymosz wrote: > > Hi All, > > i built a tree (wicket.extension.markup.html.tree.Tree). The tree works > fine. But now i want to use the tree for navigation. > > I just found examples to build a tree, but i didn`t find some examples to > use the tree for navigation. > > Can anyone give me further information in how to make tree links > bookmarkabel? > > Regards Nico > I have the same question, and I'd like to add to it by asking how to keep the tree expanded, rather than collapsing every time a node is clicked? Here's how I did it, but I suspect there are better ways: I built the tree starting from the example in the extensions (although I used wicket.extension.markup.html.tree.Tree, not the Ajax version): private TreeModel createTreeModel() { DefaultMutableTreeNode rootNode = new DefaultMutableTreeNode( new ModelBean("MyNode", MyPage.class)); // My model bean stores the page class to which I want to navigate. rootNode .add(new DefaultMutableTreeNode(new ModelBean("MyNode2", MyPage2.class))); ... TreeModel model = new DefaultTreeModel(rootNode); return model; } public MyBasePage() { Tree tree = new Tree("tree", createTreeModel()) { @Override protected void nodeLinkClicked(DefaultMutableTreeNode arg0) { super.nodeLinkClicked(arg0); ModelBean bean = (ModelBean) arg0.getUserObject(); if (bean.getLinkClass() != null) { MyBasePage.this.setResponsePage(bean.getLinkClass()); } this.expandAll(true); // I want the tree to stay expanded...is this the best way? } }; tree.expandAll(true); add(tree); } -- View this message in context: http://www.nabble.com/Tree-for-navigation-tf3524348.html#a9859828 Sent from the Wicket - User mailing list archive at Nabble.com. - 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 on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Using Wicket to develop WAP sites
maybe i wrote it a bit fuzzy - what i mean is that if you have to supply different mob. devices, then the tags would be different too, so that the hirarchie itself also wouldnt be in sync... but youre right in correcting this in case of same markup and hierarchy Regards > -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Im Auftrag > von Martijn Dashorst > Gesendet: Donnerstag, 5. April 2007 16:52 > An: wicket-user@lists.sourceforge.net > Betreff: Re: [Wicket-user] Using Wicket to develop WAP sites > > On 4/5/07, Korbinian Bachl <[EMAIL PROTECTED]> wrote: > > And for the html you cant have multi htmls for 1 java file as this > > would make no sense (html and java cover each other!) > > Please get your facts straight. Wicket supports different > styles, localizations and variations for one given Java page/panel. > > MyPage.java can have many different HTML files: > > MyPage.html > MyPage_en.html > MyPage_de.html > MyPage_wap.html > MyPage_purple.html > MyPage_wap_en.html > > etc. > > The order of style, variation and language could be different. > > The only thing you need to do in this case is to keep the > component hierarchy in sync between the different markup files. > > Martijn > > -- > Learn Wicket at ApacheCon Europe: http://apachecon.com Join > the wicket community at irc.freenode.net: ##wicket Wicket > 1.2.5 will keep your server alive. Download Wicket now! > http://wicketframework.org > > -- > --- > 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 on IT & business topics through brief > surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge &CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - 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 on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Tree for navigation
Nicolai Dymosz wrote: > > Hi All, > > i built a tree (wicket.extension.markup.html.tree.Tree). The tree works > fine. But now i want to use the tree for navigation. > > I just found examples to build a tree, but i didn`t find some examples to > use the tree for navigation. > > Can anyone give me further information in how to make tree links > bookmarkabel? > > Regards Nico > I have the same question, and I'd like to add to it by asking how to keep the tree expanded, rather than collapsing every time a node is clicked? Here's how I did it, but I suspect there are better ways: I built the tree starting from the example in the extensions (although I used wicket.extension.markup.html.tree.Tree, not the Ajax version): private TreeModel createTreeModel() { DefaultMutableTreeNode rootNode = new DefaultMutableTreeNode( new ModelBean("MyNode", MyPage.class)); // My model bean stores the page class to which I want to navigate. rootNode .add(new DefaultMutableTreeNode(new ModelBean("MyNode2", MyPage2.class))); ... TreeModel model = new DefaultTreeModel(rootNode); return model; } public MyBasePage() { Tree tree = new Tree("tree", createTreeModel()) { @Override protected void nodeLinkClicked(DefaultMutableTreeNode arg0) { super.nodeLinkClicked(arg0); ModelBean bean = (ModelBean) arg0.getUserObject(); if (bean.getLinkClass() != null) { MyBasePage.this.setResponsePage(bean.getLinkClass()); } this.expandAll(true); // I want the tree to stay expanded...is this the best way? } }; tree.expandAll(true); add(tree); } -- View this message in context: http://www.nabble.com/Tree-for-navigation-tf3524348.html#a9859814 Sent from the Wicket - User mailing list archive at Nabble.com. - 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 on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] replace of multi inc. spans
Add them both to the component tree, but use setVisible/ override isVisible to display only the one you need. Eelco On 4/5/07, Korbinian Bachl <[EMAIL PROTECTED]> wrote: > I didnt get this one - what do you mean here? Would you please be so kind > and explain it to me? > > Regards > > > -Ursprüngliche Nachricht- > > Von: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] Im Auftrag > > von Matej Knopp > > Gesendet: Donnerstag, 5. April 2007 14:03 > > An: wicket-user@lists.sourceforge.net > > Betreff: Re: [Wicket-user] replace of multi inc. spans > > > > The View and Label can be displayed conditionally - either > > listview on label, they don't need to by displayed at the same time. > > > > On 4/5/07, Korbinian Bachl <[EMAIL PROTECTED]> wrote: > > > Thax for quick reply - i then stick with the > > "panel-replace-solution" > > > as i dont have the space to display a view and a label > > (mobile thing) > > > > > > Regards > > > > > > > > > > -Ursprüngliche Nachricht- > > > > Von: [EMAIL PROTECTED] > > > > [mailto:[EMAIL PROTECTED] Im Auftrag von > > > > Matej Knopp > > > > Gesendet: Donnerstag, 5. April 2007 13:22 > > > > An: wicket-user@lists.sourceforge.net > > > > Betreff: Re: [Wicket-user] replace of multi inc. spans > > > > > > > > You can't just replace the listView by a label, because > > the markup > > > > won't match. Safest solution probably not to replace the > > listView, > > > > just ide it and show the label next to lisview. > > > > > > > > On 4/5/07, Korbinian Bachl <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > > > > > > > > maybe its a noobish question, but how can i replace a > > markup that > > > > > spans other markup wihtout touching the inner one? > > > > > > > > > > e.g: > > > > > > > > > > > > > > > foo > > > > > foo > > > > > > > > > > > > > > > wich is a simple ListView repeater - that should be > > replaced by a > > > > > single Label Component > > > > > > > > > > getPage().replace(new Label("data","Error - no datasource > > > > defined")); > > > > > > > > > > I know i can do it via having a the DataView as a panel, > > > > but wonder if > > > > > there isnt a quick dirty aproach here... > > > > > > > > > > currently, it tells me: > > > > > > > > > > "Expected close tag for '' Possible > > > > attempt to > > > > > embed > > > > > component(s) '" and all i want is that wicket discards > > > > the inner > > > > > ones and replaces them like it does for all content sittin > > > > within its part. > > > > > > > > > > Regards > > > > > > > > > > Korbinian > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > --- 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 on IT & business topics through brief > > > > surveys-and earn > > > > > cash > > > > > > > > > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=D > > > > EV > > > > > DEV ___ > > > > > Wicket-user mailing list > > > > > Wicket-user@lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > > > > -- > > > > --- > > > > 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 on IT & business topics through brief > > surveys-and earn > > > > cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge > > > &CID=DEVDEV > > > > ___ > > > > Wicket-user mailing list > > > > Wicket-user@lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > > > > > > -- > > > --- 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 on IT & business topics through brief > > surveys-and earn > > > cash > > > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEV > > > DEV ___ > > > Wicket-user mailing list > > > Wicket-user@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > -- > > --- > > 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 on IT & business topics through brief > > surveys-and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge > &CID=DEVDEV > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net
Re: [Wicket-user] Using Wicket to develop WAP sites
hey Ashish, i did some research in this field long time back; unfortunately i failed and i gave up at one point but at least i can share my experience. here are few key points as far as i can see them: - first of all you'll deal with 3 versions of markup: WML1.0, XHTML-MP, HTML - figure out what are your target devices from the very beginning, if the site needs to work on all mobile devices out there then good luck buddy. - you need a very well designed site design, designer needs to keep in mind that same content will be rendered in 3 formats, for devices with very very very different capabilities. - the component hierarchy in all 3 markups has to match, but in WML1.0 will display only 10% of all components so there will be a isVisible vs. isNotVisible playing game. well, you can implement your own rendering/resolving strategies to achieve that. - some wicket components are very rich in terms of markup/javascript/css, you have to implement your own WML components where it is needed, as i said it is very important to have a simple and WML/HTML friendly web design. - and last one, even everything is perfect and works fine there is mobile device browsers war. if you can make site to look good in IE/FF/Opera; you'll find out that mobile's browsers are real nightmare; they are so many types with very different capabilities and behaviors; tables are not supported by this specific version, even they say it is, text is not wrapped properly, all kind of resolutions issues ad so on. if you have time and resources to do it it will be great asset for wicket community and open source community in general. i can say that i couldnt find a good and reliable WML/HTML framework out there. except WURLF that is jsp based and is quite acceptable (but who uses jsp/taglibraries/scriplets these days) and "a give it a try and not supported anymore" renderkit from myface jsf framework, there is nothing, really nothing. /iulian On 4/5/07, Ashish Shrestha <[EMAIL PROTECTED]> wrote: Hi All, I am currently looking at Wicket and going over the examples. I am interested in developing mobile friendly websites. Any one has any experience they can share or point me to place where I can get more information. I would like to serve different 'versions' of the page based on the capabilities of the mobile phone browser. In the demo, the HTML file is named same as the Java class. Can I have different 'version' of HTML file based on the mobile capability? Would this be similar to internationalisation? How does one do internationalisation with Wicket? I am planning to use http://wurfl.sourceforge.net/ to find the capability of the mobile browser. Thank you for any hints, suggestions or pointers. Ashish - 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 on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - 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 on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Using Wicket to develop WAP sites
> I am planning to use http://wurfl.sourceforge.net/ to find the > capability of the mobile browser. You can provide a custom request cycle and override newClientInfo to plugin your client capabilities (and e.g. call Session#setStyle accordingly). See also wicket.examples.hellobrowser Eelco - 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 on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Escaping of HTML by wicket:message - can this be disabled?
it is deactivated by default On 4/5/07, ZedroS <[EMAIL PROTECTED]> wrote: Hi Regarind the html escaping in message tag, can we now desactivate it ? If so, could you tell me how please ? Thanks in advance ZedroS igor.vaynberg wrote: > > done in branches-1.x and trunk > > -igor > > > On 1/19/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: >> >> Ok, I guess just not escaping would be fine is most if not all cases. >> >> Eelco >> >> On 1/19/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: >> > i dont know if we need yet another setting/attribute >> > >> > lets go the simple route and have them always not escaped first, then >> if >> > someone wants it thats fine. do we need to have a vote on this? >> > >> > -1 on a setting for sure, if i design a component to work in one >> setting >> and >> > you drop it into a project that uses another it will break. so an >> attribute >> > maybe - upon a request. setting def not. >> > >> > as far as wicket:message property - yes those should always be escaped >> - >> > there is no reason to embed markup in an attribute afaict >> > >> > -igor >> > >> > >> > >> > On 1/19/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: >> > > Yeah. It would probably be a better default. It would be best if you >> > > could at least override this default with an attribute on the >> > > wicket:message tag, and maybe as a global setting as well. What about >> > > wicket:message attributes though (actually, I didn't know they were >> > > working yet): those should probably always be escaped? >> > > >> > > Eelco >> > > >> > > >> > > On 1/19/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: >> > > > i guess maybe we should allow markup in wicket:message since it >> comes >> > from >> > > > .property files so no security threat. >> > > > >> > > > what do others think? >> > > > >> > > > >> > > > -igor >> > > > >> > > > >> > > > On 1/19/07, Peter Thomas <[EMAIL PROTECTED] > wrote: >> > > > > Yes, that would be great and I'll watch out for when it is >> released ! >> > > > > >> > > > > I am also wondering if this can be "globally" set (maybe slight >> > > > performance improvement?) but you will be the best judge for that. >> > > > > >> > > > > >> > > > > Thanks, >> > > > > >> > > > > Peter. >> > > > > >> > > > > >> > > > > On 1/19/07, Igor Vaynberg < [EMAIL PROTECTED]> wrote: >> > > > > > if you want to upgrade to 1.x (1.3) i can try adding a switch >> to >> > > > wicket:message to disable escaping >> > > > > > >> > > > > > >> > > > > > -igor >> > > > > > >> > > > > > >> > > > > > >> > > > > > On 1/19/07, Peter Thomas < [EMAIL PROTECTED]> wrote: >> > > > > > > I am using 1.2.4 >> > > > > > > >> > > > > > > Not sure if it matters but I'm using a Spring MessageSource >> so >> I >> > have >> > > > my own implementation of IStringResourceLoader set up in the >> Application >> > > > through "getResourceSettings().addStringResourceLoader" >> > > > > > > >> > > > > > > Thanks, >> > > > > > > >> > > > > > > Peter. >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > On 1/19/07, Igor Vaynberg < [EMAIL PROTECTED] > wrote: >> > > > > > > > what version of wicket are you using? >> > > > > > > > >> > > > > > > > -igor >> > > > > > > > >> > > > > > > > >> > > > > > > > >> > > > > > > > >> > > > > > > > On 1/19/07, Peter Thomas < [EMAIL PROTECTED]> wrote: >> > > > > > > > > >> > > > > > > > > Hi, >> > > > > > > > > >> > > > > > > > > I'm migrating a JSP app which already has i18n to wicket >> and >> > > > re-using an existing resource bundle. There are a few cases where >> HTML >> > has >> > > > been embedded in the string resource - e.g: >> > > > > > > > > >> > > > > > > > > my.key=HelloWorld! >> > > > > > > > > >> > > > > > > > > But now when using wicket >> > appears >> > > > to be html escaping the value of the localized string retrieved - >> so >> in >> > this >> > > > case I see the "" rendered on screen where I expected a line >> break. >> > > > > > > > > >> > > > > > > > > Is there any way to suppress this or there is no option >> but to >> > > > clean up the bundles? >> > > > > > > > > >> > > > > > > > > Thanks, >> > > > > > > > > >> > > > > > > > > Peter. >> > > > > > > > > >> > > > > > > > > >> > > > >> > >> - >> > > > > > > > > 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 on IT & business topics through brief surveys - >> and >> > earn >> > > > cash >> > > > > > > > > >> > > > >> > >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> > > > > > > > > >> > > > > > > > > >> > ___ >> > > > > > > > > Wicket-user mailing list >> > > > > > > > > Wicket-user@lists.sourceforge.net >> > > > > > > > > >> > > > >> > https://lists.sourceforge.net/lists/listinfo/wicket-user >> > > > > > > > > >> > > > > > > > > >> > > > > > >
Re: [Wicket-user] Wicket 1.3 ready for development?
You can get them here: http://wicketstuff.org/maven/repository/org/apache/wicket/ or build them yourself with maven. Eelco On 4/5/07, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote: > please where can i get latest snapshot of 1.3? > > > On 4/4/07, Bruno Borges <[EMAIL PROTECTED]> wrote: > > > > Erik, could you please share with us your results about this comparison > between Tapestry/GWT and Wicket ? > > > > []'s > > > > > > > > On 3/31/07, Erik van Oosten < [EMAIL PROTECTED]> wrote: > > > Thanks Eelco, Frank, > > > > > > 1.3 it will be. > > > > > > Regards, > > > Erik. > > > > > > > > > -- > > > Erik van Oosten > > > http://day-to-day-stuff.blogspot.com/ > > > > > > > > > > - > > > 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 on IT & business topics through brief surveys-and earn cash > > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > ___ > > > Wicket-user mailing list > > > Wicket-user@lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > > -- > > Bruno Borges > > Summa Technologies Inc. > > www.summa-tech.com > > (48) 8404-1300 > > (11) 3055-2060 > > > - > > 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 on IT & business topics through brief surveys-and earn cash > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > - > 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 on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > - 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 on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Using Wicket to develop WAP sites
Though I don't currently develop webapps targeted toward mobile devices, I found this thread quit interesting. Especially as it seems that mobile devices are the future. I've taken what has been said so far and created a wiki page, with a little bit of minor editing. http://cwiki.apache.org/confluence/display/WICKET/Mobile+Devices This page is linked to from the FAQ. Anyone who is more familiar than I am about using wicket to develop for mobile devices is more than welcome to dress that page up and add content. I sure hope this helps someone. On Thu, 2007-04-05 at 16:51 +0200, Martijn Dashorst wrote: > On 4/5/07, Korbinian Bachl <[EMAIL PROTECTED]> wrote: > > And for the html you cant have multi htmls for 1 java file as this would > > make no sense (html and java cover each other!) > > Please get your facts straight. Wicket supports different styles, > localizations and variations for one given Java page/panel. > > MyPage.java can have many different HTML files: > > MyPage.html > MyPage_en.html > MyPage_de.html > MyPage_wap.html > MyPage_purple.html > MyPage_wap_en.html > > etc. > > The order of style, variation and language could be different. > > The only thing you need to do in this case is to keep the component > hierarchy in sync between the different markup files. > > Martijn > -- Philip A. Chapman Desktop and Web Application Development: Java, .NET, PostgreSQL, MySQL, MSSQL Linux, Windows 2000, Windows XP signature.asc Description: This is a digitally signed message part - 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 on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Disable debug messages in wicket-contrib-dojo 1.3.0-SNAPSHOT
Hi Vincent. I think you should use the wicket ajax debug console for these kind of messages since that's what it's there for I guess. That way you can disable them by using "getDebugSettings().setAjaxDebugModeEnabled(false);" which didn't work in this case. Setting wicket to deployment mode in web.xml worked though. Thanks! Vincent Demay wrote: > > Gohan a écrit : >> Does anyone know how to disable the debug messages that's being printed >> all >> over the screen when using wicket-contrib-dojo 1.3.0-SNAPSHOT? >> > Hi Gohan > > You can use https://addons.mozilla.org/fr/firefox/addon/1843 on you > browser add log will be moved on its console, also in production mode, > no log will be displayed. > If you think it is very disturbing, just say me, we will remove logs > waiting for a better way to log : e,g : in wicket log console for exemple. > > -- > Vincent > http://www.demay-fr.net/blog > > - > 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 on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- View this message in context: http://www.nabble.com/Disable-debug-messages-in-wicket-contrib-dojo-1.3.0-SNAPSHOT-tf3530102.html#a9857776 Sent from the Wicket - User mailing list archive at Nabble.com. - 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 on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket 1.3 ready for development?
please where can i get latest snapshot of 1.3? On 4/4/07, Bruno Borges <[EMAIL PROTECTED]> wrote: Erik, could you please share with us your results about this comparison between Tapestry/GWT and Wicket ? []'s On 3/31/07, Erik van Oosten < [EMAIL PROTECTED]> wrote: > > Thanks Eelco, Frank, > > 1.3 it will be. > > Regards, > Erik. > > > -- > Erik van Oosten > http://day-to-day-stuff.blogspot.com/ > > > - > > 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 on IT & business topics through brief surveys-and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > -- Bruno Borges Summa Technologies Inc. www.summa-tech.com (48) 8404-1300 (11) 3055-2060 - 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 on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - 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 on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Disable debug messages in wicket-contrib-dojo 1.3.0-SNAPSHOT
Gohan a écrit : > Does anyone know how to disable the debug messages that's being printed all > over the screen when using wicket-contrib-dojo 1.3.0-SNAPSHOT? > Hi Gohan You can use https://addons.mozilla.org/fr/firefox/addon/1843 on you browser add log will be moved on its console, also in production mode, no log will be displayed. If you think it is very disturbing, just say me, we will remove logs waiting for a better way to log : e,g : in wicket log console for exemple. -- Vincent http://www.demay-fr.net/blog - 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 on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Using Wicket to develop WAP sites
On 4/5/07, Korbinian Bachl <[EMAIL PROTECTED]> wrote: > And for the html you cant have multi htmls for 1 java file as this would > make no sense (html and java cover each other!) Please get your facts straight. Wicket supports different styles, localizations and variations for one given Java page/panel. MyPage.java can have many different HTML files: MyPage.html MyPage_en.html MyPage_de.html MyPage_wap.html MyPage_purple.html MyPage_wap_en.html etc. The order of style, variation and language could be different. The only thing you need to do in this case is to keep the component hierarchy in sync between the different markup files. Martijn -- Learn Wicket at ApacheCon Europe: http://apachecon.com Join the wicket community at irc.freenode.net: ##wicket Wicket 1.2.5 will keep your server alive. Download Wicket now! http://wicketframework.org - 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 on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] form with listview that contains radio groups?
You have to give the radio group a model, that is backed by your question object, not only the current value of its answer: RadioGroup answer = new RadioGroup("answer", new PropertyModel(question, "answer")); Kurt R. Hoehn wrote: > I never really know what to put in the subject, but here is my question. > > I'm putting together a series of questions that exist under one profile > and they are simple yes/no radio buttons and the user clicks yes or no > for the question. I put together the form and it pulls and displays the > information with out error in an edit mode, but when I submit the form > with changes to the questions, they don't seem to make it from the form. > > I have been successful with a radio group outside of a listview and the > radio buttons inside the listview, but this is the reverse of that. > > Does Wicket allow this or is there a workaround to this? > > Here is my code: > > Environment: >Wicket 1.x branch >Spring >Hibernate >Java 1.5_8 >FirebirdSql >Ubuntu 6.10 (linux) > > Domain Objects: > > public class Profile > { > ... > private String identity; > private String name; > ... > } > > public class SurveyQuestion > { > ... > private String identity; > private String question; > private Boolean answer; > ... > } > > Wicket Page Object: > public class SurveyPage extends WebPage > { > ... > > public SurveyPage() > { > Questions questions = new Questions(); > questions.setProfile( profileDao.findProfile() ); > > questions.setQuestions( questionDao.findQuestions(questions.getProfile())); > CompoundPropertyModel survey = new > CompoundPropertyModel(questions); > add(new SurveyForm("surveyForm", questions)); > } > > class SurveyForm extends Form > { > public SurveyForm(String s, final IModel iModel) > { > super(s, iModel); > > ... > > ListView survey = new ListView("survey") { > protected void populateItem(ListItem listItem) { > SurveyQuestion question = (SurveyQuestion) > listItem.getModelObject(); > > listItem.add(new Label("question", > question.getQuestion())); > RadioGroup answer = new RadioGroup("answer", new > Model(question.getAnswer())); > answer.add(new Radio("true", new Model(true))); > answer.add(new Radio("false", new Model(false))); > listItem.add(answer); > } > }; > > survey.setReuseItems(true); > add(survey); > > ... > } > > public void onSubmit() > { > Profile profile = > ((Questions)getModel().getObject()).getProfile(); > > PageParameters parameters = new PageParameters(); > parameters.add("identity", center.getIdentity()); > parameters.add("ro", "true"); > setResponsePage(SurveyPage.class, parameters ); > > profileDao.makePersistent(profile); > > // Doing this to see if the domain object is being updated from the > form. > for(Object survey: > ((Questions)getModel().getObject()).getSurvey()) > { > System.out.println( "Answer: " + > ((ProfileSurvey)survey).getAnswer() ); > } > } > } > } > > class Questions implements Serializable > { > private Profile profile; > private List survey; > > ... > } > > SurveyPage.html > > > ... > > > > > Yes type="radio" > wicket:id="false">No > > > > ... > > > TIA, > > -kurt > > > - > 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 on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > - 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 on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Adding code to moveUpLink, moveDownLink and removeLink on ListView
* Andrew Moore: > I've got a listView which I'm using moveUpLink, moveDownLink and > removeLink on. I suggest to use RefreshingView. It seems a bit harder at first glance, but when you're used to it, it's much more powerful. And beware that if you reorder or remove rows with ListView, you loose the whole user input, so make sure that you don't have editable fields in your ListView! -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ - 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 on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Using Wicket to develop WAP sites
Hi, as far as i know, there is *no* real mobile-language. Its usually html (various levels depending on device) plus some special css (depending on device, too). And for the html you cant have multi htmls for 1 java file as this would make no sense (html and java cover each other!) - however, you can use markupinheritance to create a main-page and then extend it in the flavours of the possibilities of the mobile devices... but also think: you are better on aiming for pocketIE or pocketOpera (...) as for special and device dependent markups. If you want to have a standard-website wich is also usable with mobile devices then your key to success is clean html + individial css files for the targetenvironment. Some base to get startet: http://www.w3.org/TR/css-mobile/ http://www.htmldog.com/ptg/archives/55.php http://events.ccc.de/congress/2005/fahrplan/events/933.de.html http://www.westciv.com/style_master/academy/css_tutorial/advanced/mobile_pro file.html These pages should give you a way to understand how to achive best cover for various devices, Regards > -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Im Auftrag > von Ashish Shrestha > Gesendet: Donnerstag, 5. April 2007 15:54 > An: wicket-user@lists.sourceforge.net > Betreff: [Wicket-user] Using Wicket to develop WAP sites > > Hi All, > > I am currently looking at Wicket and going over the examples. > I am interested in developing mobile friendly websites. Any > one has any experience they can share or point me to place > where I can get more information. > > I would like to serve different 'versions' of the page based > on the capabilities of the mobile phone browser. In the demo, > the HTML file is named same as the Java class. Can I have > different 'version' of HTML file based on the mobile > capability? Would this be similar to internationalisation? > How does one do internationalisation with Wicket? > > I am planning to use http://wurfl.sourceforge.net/ to find > the capability of the mobile browser. > > Thank you for any hints, suggestions or pointers. > Ashish > > > -- > --- > 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 on IT & business topics through brief > surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge &CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - 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 on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Testing trouble when backporting application from 2.0 to 1.2.5
* Gohan: > > "Label model does not match. expected: > but was:" > The problem seem to be that the call to ..setModelValue(..) doesn't update > the model or it get "lost" when I press the submit button somehow. How can I > fix this? This is fixed in the soon-to-be-released Wicket 1.3 And please think searching Jira before asking questions! A quick search for "formtester" gives: FormTester doesn't update input models https://issues.apache.org/jira/browse/WICKET-83 FormTester does not set request parameters for unchanged form fields https://issues.apache.org/jira/browse/WICKET-85 FormTester doesn't pass form components default values https://issues.apache.org/jira/browse/WICKET-258 Cheers, -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ - 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 on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] patch question: wicket 313
* Apaar Trivedi: > Hey all, I've applied this patch WICKET-313 to wicket 1.2.4 and > it doesn't seem to have changed the way my errors are handled in > ajaxRequestTarget. Am I missing other patches that this depends > on? The patch suppresses the try/catch in AjaxRequestTarget in order to propagate the exception. In that case, it is necessarily handled by RequestCycle. Did you try to follow the exception handling step-by-step in the debugger? -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ - 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 on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Using Wicket to develop WAP sites
Hi All, I am currently looking at Wicket and going over the examples. I am interested in developing mobile friendly websites. Any one has any experience they can share or point me to place where I can get more information. I would like to serve different 'versions' of the page based on the capabilities of the mobile phone browser. In the demo, the HTML file is named same as the Java class. Can I have different 'version' of HTML file based on the mobile capability? Would this be similar to internationalisation? How does one do internationalisation with Wicket? I am planning to use http://wurfl.sourceforge.net/ to find the capability of the mobile browser. Thank you for any hints, suggestions or pointers. Ashish - 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 on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] replace of multi inc. spans
I didnt get this one - what do you mean here? Would you please be so kind and explain it to me? Regards > -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Im Auftrag > von Matej Knopp > Gesendet: Donnerstag, 5. April 2007 14:03 > An: wicket-user@lists.sourceforge.net > Betreff: Re: [Wicket-user] replace of multi inc. spans > > The View and Label can be displayed conditionally - either > listview on label, they don't need to by displayed at the same time. > > On 4/5/07, Korbinian Bachl <[EMAIL PROTECTED]> wrote: > > Thax for quick reply - i then stick with the > "panel-replace-solution" > > as i dont have the space to display a view and a label > (mobile thing) > > > > Regards > > > > > > > -Ursprüngliche Nachricht- > > > Von: [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED] Im Auftrag von > > > Matej Knopp > > > Gesendet: Donnerstag, 5. April 2007 13:22 > > > An: wicket-user@lists.sourceforge.net > > > Betreff: Re: [Wicket-user] replace of multi inc. spans > > > > > > You can't just replace the listView by a label, because > the markup > > > won't match. Safest solution probably not to replace the > listView, > > > just ide it and show the label next to lisview. > > > > > > On 4/5/07, Korbinian Bachl <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > > > > > maybe its a noobish question, but how can i replace a > markup that > > > > spans other markup wihtout touching the inner one? > > > > > > > > e.g: > > > > > > > > > > > > foo > > > > foo > > > > > > > > > > > > wich is a simple ListView repeater - that should be > replaced by a > > > > single Label Component > > > > > > > > getPage().replace(new Label("data","Error - no datasource > > > defined")); > > > > > > > > I know i can do it via having a the DataView as a panel, > > > but wonder if > > > > there isnt a quick dirty aproach here... > > > > > > > > currently, it tells me: > > > > > > > > "Expected close tag for '' Possible > > > attempt to > > > > embed > > > > component(s) '" and all i want is that wicket discards > > > the inner > > > > ones and replaces them like it does for all content sittin > > > within its part. > > > > > > > > Regards > > > > > > > > Korbinian > > > > > > > > > > > > > > > > > > > -- > > > > --- 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 on IT & business topics through brief > > > surveys-and earn > > > > cash > > > > > > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=D > > > EV > > > > DEV ___ > > > > Wicket-user mailing list > > > > Wicket-user@lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > -- > > > --- > > > 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 on IT & business topics through brief > surveys-and earn > > > cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge > > &CID=DEVDEV > > > ___ > > > Wicket-user mailing list > > > Wicket-user@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > -- > > --- 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 on IT & business topics through brief > surveys-and earn > > cash > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEV > > DEV ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > -- > --- > 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 on IT & business topics through brief > surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge &CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - 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 on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Re: [Wicket-user] Getting at the http request parameters from inside newMarkupResourceStream
After a little investigation it seems like it's a problem with using Bookmarkable pages. If I don't use them I can get at the request, but using Bookmarkable pages the requestMap is blank. I notice somebody has already raised a bug for this. For the moment I'll use a string tokenizer on the URL from the request (which does return a value) and get my parameter from there. Andrew Moore wrote: > > Hi, > I'm using wicket 1.2.5. > I'm using newMarkupResourceStream to get dynamic html pages from an > external location. > > In the constructor of the page I'm using (final PageParameters parameters) > to get at the parameters of the website. > From here I can get a page parameter with > parameters.getString("websiteId") > > But as newMarkupResourceStream fires first, what approach should I use to > get at request parameters. > > I've tried getRequest().getParameter("websiteId"), but nothing is found, > I've also tried getParameterMap() but it's size is 0. > > I'm sure this is really simple, but cannot work out what method I should > be using. > Cheers > Andrew > -- View this message in context: http://www.nabble.com/Getting-at-the-http-request-parameters-from-inside-newMarkupResourceStream-tf3531369.html#a9856025 Sent from the Wicket - User mailing list archive at Nabble.com. - 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 on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Testing trouble when backporting application from 2.0 to 1.2.5
1.3 is currently a bit in flux because of the backports and and the renaming so that naming is logical But that should settle in a couple of weeks. And then we will also try to release the first beta. johan On 4/5/07, Gohan <[EMAIL PROTECTED]> wrote: Thanks for your reply. When is 1.3 going to be released? Is there a milestone or release candidate version that you can download instead of downloading the latest snapshot so I don't have to change my code all the time as with wicket 2.0. /Johan Johan Compagner wrote: > > this looks more like a WicketTester failure then a failure of the real > code > > are you really porting to 1.2? You should try to go from 2.0 to 1.3 > because > else you need > to change quite a lot more > > johan > > > On 4/4/07, Gohan <[EMAIL PROTECTED]> wrote: >> >> >> I'm porting an application from wicket 2.0 to 1.2 but I run into trouble >> when >> executing tests for some of the classes. The tests worked in Wicket 2.0 . >> Bellow is a simple example the demonstrate the problem: >> public class FormPage extends WebPage { >> private static final long serialVersionUID = >> 1067399768727619005L; >> >> public FormPage() { >> >> final Label label = new Label("labelId", new Model( >> "Result will be shown here")); >> add(label); >> >> Form form = new Form("formId", new >> CompoundPropertyModel(new Model( >> new Person(; >> >> form.add(new TextField("firstName")); >> form.add(new TextField("lastName")); >> >> form.add(new Button("buttonId", new Model("Submit")) { >> private static final long serialVersionUID = >> -6844333946044170902L; >> >> @Override >> @SuppressWarnings("unchecked") >> public void onSubmit() { >> Person person = (Person) >> getForm().getModelObject(); >> label >> .setModel(new Model("You >> entered: " >> + >> person.getFullname())); >> } >> }); >> >> add(form); >> } >> } >> >> One of the test that I've created earlier and that worked with Wicket 2.0 >> looks like this: >> @Test >> public void submit() { >> FormPage formPage = (FormPage) tester.getLastRenderedPage >> (); >> Form form = (Form) formPage.get("formId"); >> >> TextField firstName = (TextField) form.get ("firstName"); >> firstName.setModelValue("Firstname"); >> TextField lastName = (TextField) form.get("lastName"); >> lastName.setModelValue("Lastname"); >> >> FormTester formTester = tester.newFormTester("formId"); >> formTester.submit("buttonId"); >> >> // Get the label and validate the model object >> Label label = (Label) formPage.get("labelId"); >> assertEquals("Label model does not match.", >> "You entered: Firstname Lastname", >> label.getModelObject()); >> } >> >> However this does not seem to work with wicket 1.2. The last line of the >> test fails saying: >> "Label model does not match. expected: >> but was:" >> The problem seem to be that the call to ..setModelValue(..) doesn't >> update >> the model or it get "lost" when I press the submit button somehow. How >> can >> I >> fix this? >> >> thanks >> -- >> View this message in context: >> http://www.nabble.com/Testing-trouble-when-backporting-application-from-2.0-to-1.2.5-tf3528486.html#a9846434 >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> 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 on IT & business topics through brief surveys-and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> ___ >> Wicket-user mailing list >> Wicket-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> > > - > 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 on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- View t
Re: [Wicket-user] XSD / Validation
Johannes Schneider-3 wrote: > > Could you paste your created xsd file? > Maybe this is useful for others, too. > http://www.w3.org/2001/XMLSchema"; targetNamespace="http://wicket.sourceforge.net"; xmlns="http://wicket.sourceforge.net"; elementFormDefault="qualified"> -- View this message in context: http://www.nabble.com/XSD---Validation-tf3488923.html#a9855396 Sent from the Wicket - User mailing list archive at Nabble.com. - 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 on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Getting at the http request parameters from inside newMarkupResourceStream
Hi, I'm using wicket 1.2.5. I'm using newMarkupResourceStream to get dynamic html pages from an external location. In the constructor of the page I'm using (final PageParameters parameters) to get at the parameters of the website. >From here I can get a page parameter with parameters.getString("websiteId") But as newMarkupResourceStream fires first, what approach should I use to get at request parameters. I've tried getRequest().getParameter("websiteId"), but nothing is found, I've also tried getParameterMap() but it's size is 0. I'm sure this is really simple, but cannot work out what method I should be using. Cheers Andrew -- View this message in context: http://www.nabble.com/Getting-at-the-http-request-parameters-from-inside-newMarkupResourceStream-tf3531369.html#a9855123 Sent from the Wicket - User mailing list archive at Nabble.com. - 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 on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] replace of multi inc. spans
The View and Label can be displayed conditionally - either listview on label, they don't need to by displayed at the same time. On 4/5/07, Korbinian Bachl <[EMAIL PROTECTED]> wrote: > Thax for quick reply - i then stick with the "panel-replace-solution" as i > dont have the space to display a view and a label (mobile thing) > > Regards > > > > -Ursprüngliche Nachricht- > > Von: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] Im Auftrag > > von Matej Knopp > > Gesendet: Donnerstag, 5. April 2007 13:22 > > An: wicket-user@lists.sourceforge.net > > Betreff: Re: [Wicket-user] replace of multi inc. spans > > > > You can't just replace the listView by a label, because the > > markup won't match. Safest solution probably not to replace > > the listView, just ide it and show the label next to lisview. > > > > On 4/5/07, Korbinian Bachl <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > > > maybe its a noobish question, but how can i replace a markup that > > > spans other markup wihtout touching the inner one? > > > > > > e.g: > > > > > > > > > foo > > > foo > > > > > > > > > wich is a simple ListView repeater - that should be replaced by a > > > single Label Component > > > > > > getPage().replace(new Label("data","Error - no datasource > > defined")); > > > > > > I know i can do it via having a the DataView as a panel, > > but wonder if > > > there isnt a quick dirty aproach here... > > > > > > currently, it tells me: > > > > > > "Expected close tag for '' Possible > > attempt to > > > embed > > > component(s) '" and all i want is that wicket discards > > the inner > > > ones and replaces them like it does for all content sittin > > within its part. > > > > > > Regards > > > > > > Korbinian > > > > > > > > > > > -- > > > --- 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 on IT & business topics through brief > > surveys-and earn > > > cash > > > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEV > > > DEV ___ > > > Wicket-user mailing list > > > Wicket-user@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > -- > > --- > > 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 on IT & business topics through brief > > surveys-and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge > &CID=DEVDEV > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > - > 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 on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - 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 on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] replace of multi inc. spans
You can't just replace the listView by a label, because the markup won't match. Safest solution probably not to replace the listView, just ide it and show the label next to lisview. On 4/5/07, Korbinian Bachl <[EMAIL PROTECTED]> wrote: > Hi, > > maybe its a noobish question, but how can i replace a markup that spans > other markup wihtout touching the inner one? > > e.g: > > > foo > foo > > > wich is a simple ListView repeater - that should be replaced by a single > Label Component > > getPage().replace(new Label("data","Error - no datasource defined")); > > I know i can do it via having a the DataView as a panel, but wonder if there > isnt a quick dirty aproach here... > > currently, it tells me: > > "Expected close tag for '' Possible attempt to embed > component(s) '" and all i want is that wicket discards the inner ones > and replaces them like it does for all content sittin within its part. > > Regards > > Korbinian > > > - > 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 on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - 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 on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] form with listview that contains radio groups?
I never really know what to put in the subject, but here is my question. I'm putting together a series of questions that exist under one profile and they are simple yes/no radio buttons and the user clicks yes or no for the question. I put together the form and it pulls and displays the information with out error in an edit mode, but when I submit the form with changes to the questions, they don't seem to make it from the form. I have been successful with a radio group outside of a listview and the radio buttons inside the listview, but this is the reverse of that. Does Wicket allow this or is there a workaround to this? Here is my code: Environment: Wicket 1.x branch Spring Hibernate Java 1.5_8 FirebirdSql Ubuntu 6.10 (linux) Domain Objects: public class Profile { ... private String identity; private String name; ... } public class SurveyQuestion { ... private String identity; private String question; private Boolean answer; ... } Wicket Page Object: public class SurveyPage extends WebPage { ... public SurveyPage() { Questions questions = new Questions(); questions.setProfile( profileDao.findProfile() ); questions.setQuestions( questionDao.findQuestions(questions.getProfile())); CompoundPropertyModel survey = new CompoundPropertyModel(questions); add(new SurveyForm("surveyForm", questions)); } class SurveyForm extends Form { public SurveyForm(String s, final IModel iModel) { super(s, iModel); ... ListView survey = new ListView("survey") { protected void populateItem(ListItem listItem) { SurveyQuestion question = (SurveyQuestion) listItem.getModelObject(); listItem.add(new Label("question", question.getQuestion())); RadioGroup answer = new RadioGroup("answer", new Model(question.getAnswer())); answer.add(new Radio("true", new Model(true))); answer.add(new Radio("false", new Model(false))); listItem.add(answer); } }; survey.setReuseItems(true); add(survey); ... } public void onSubmit() { Profile profile = ((Questions)getModel().getObject()).getProfile(); PageParameters parameters = new PageParameters(); parameters.add("identity", center.getIdentity()); parameters.add("ro", "true"); setResponsePage(SurveyPage.class, parameters ); profileDao.makePersistent(profile); // Doing this to see if the domain object is being updated from the form. for(Object survey: ((Questions)getModel().getObject()).getSurvey()) { System.out.println( "Answer: " + ((ProfileSurvey)survey).getAnswer() ); } } } } class Questions implements Serializable { private Profile profile; private List survey; ... } SurveyPage.html ... Yes No ... TIA, -kurt - 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 on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] replace of multi inc. spans
Thax for quick reply - i then stick with the "panel-replace-solution" as i dont have the space to display a view and a label (mobile thing) Regards > -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Im Auftrag > von Matej Knopp > Gesendet: Donnerstag, 5. April 2007 13:22 > An: wicket-user@lists.sourceforge.net > Betreff: Re: [Wicket-user] replace of multi inc. spans > > You can't just replace the listView by a label, because the > markup won't match. Safest solution probably not to replace > the listView, just ide it and show the label next to lisview. > > On 4/5/07, Korbinian Bachl <[EMAIL PROTECTED]> wrote: > > Hi, > > > > maybe its a noobish question, but how can i replace a markup that > > spans other markup wihtout touching the inner one? > > > > e.g: > > > > > > foo > > foo > > > > > > wich is a simple ListView repeater - that should be replaced by a > > single Label Component > > > > getPage().replace(new Label("data","Error - no datasource > defined")); > > > > I know i can do it via having a the DataView as a panel, > but wonder if > > there isnt a quick dirty aproach here... > > > > currently, it tells me: > > > > "Expected close tag for '' Possible > attempt to > > embed > > component(s) '" and all i want is that wicket discards > the inner > > ones and replaces them like it does for all content sittin > within its part. > > > > Regards > > > > Korbinian > > > > > > > -- > > --- 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 on IT & business topics through brief > surveys-and earn > > cash > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEV > > DEV ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > -- > --- > 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 on IT & business topics through brief > surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge &CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - 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 on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Escaping of HTML by wicket:message - can this be disabled?
Hi Regarind the html escaping in message tag, can we now desactivate it ? If so, could you tell me how please ? Thanks in advance ZedroS igor.vaynberg wrote: > > done in branches-1.x and trunk > > -igor > > > On 1/19/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: >> >> Ok, I guess just not escaping would be fine is most if not all cases. >> >> Eelco >> >> On 1/19/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: >> > i dont know if we need yet another setting/attribute >> > >> > lets go the simple route and have them always not escaped first, then >> if >> > someone wants it thats fine. do we need to have a vote on this? >> > >> > -1 on a setting for sure, if i design a component to work in one >> setting >> and >> > you drop it into a project that uses another it will break. so an >> attribute >> > maybe - upon a request. setting def not. >> > >> > as far as wicket:message property - yes those should always be escaped >> - >> > there is no reason to embed markup in an attribute afaict >> > >> > -igor >> > >> > >> > >> > On 1/19/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: >> > > Yeah. It would probably be a better default. It would be best if you >> > > could at least override this default with an attribute on the >> > > wicket:message tag, and maybe as a global setting as well. What about >> > > wicket:message attributes though (actually, I didn't know they were >> > > working yet): those should probably always be escaped? >> > > >> > > Eelco >> > > >> > > >> > > On 1/19/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: >> > > > i guess maybe we should allow markup in wicket:message since it >> comes >> > from >> > > > .property files so no security threat. >> > > > >> > > > what do others think? >> > > > >> > > > >> > > > -igor >> > > > >> > > > >> > > > On 1/19/07, Peter Thomas <[EMAIL PROTECTED] > wrote: >> > > > > Yes, that would be great and I'll watch out for when it is >> released ! >> > > > > >> > > > > I am also wondering if this can be "globally" set (maybe slight >> > > > performance improvement?) but you will be the best judge for that. >> > > > > >> > > > > >> > > > > Thanks, >> > > > > >> > > > > Peter. >> > > > > >> > > > > >> > > > > On 1/19/07, Igor Vaynberg < [EMAIL PROTECTED]> wrote: >> > > > > > if you want to upgrade to 1.x (1.3) i can try adding a switch >> to >> > > > wicket:message to disable escaping >> > > > > > >> > > > > > >> > > > > > -igor >> > > > > > >> > > > > > >> > > > > > >> > > > > > On 1/19/07, Peter Thomas < [EMAIL PROTECTED]> wrote: >> > > > > > > I am using 1.2.4 >> > > > > > > >> > > > > > > Not sure if it matters but I'm using a Spring MessageSource >> so >> I >> > have >> > > > my own implementation of IStringResourceLoader set up in the >> Application >> > > > through "getResourceSettings().addStringResourceLoader" >> > > > > > > >> > > > > > > Thanks, >> > > > > > > >> > > > > > > Peter. >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > On 1/19/07, Igor Vaynberg < [EMAIL PROTECTED] > wrote: >> > > > > > > > what version of wicket are you using? >> > > > > > > > >> > > > > > > > -igor >> > > > > > > > >> > > > > > > > >> > > > > > > > >> > > > > > > > >> > > > > > > > On 1/19/07, Peter Thomas < [EMAIL PROTECTED]> wrote: >> > > > > > > > > >> > > > > > > > > Hi, >> > > > > > > > > >> > > > > > > > > I'm migrating a JSP app which already has i18n to wicket >> and >> > > > re-using an existing resource bundle. There are a few cases where >> HTML >> > has >> > > > been embedded in the string resource - e.g: >> > > > > > > > > >> > > > > > > > > my.key=HelloWorld! >> > > > > > > > > >> > > > > > > > > But now when using wicket >> > appears >> > > > to be html escaping the value of the localized string retrieved - >> so >> in >> > this >> > > > case I see the "" rendered on screen where I expected a line >> break. >> > > > > > > > > >> > > > > > > > > Is there any way to suppress this or there is no option >> but to >> > > > clean up the bundles? >> > > > > > > > > >> > > > > > > > > Thanks, >> > > > > > > > > >> > > > > > > > > Peter. >> > > > > > > > > >> > > > > > > > > >> > > > >> > >> - >> > > > > > > > > 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 on IT & business topics through brief surveys - >> and >> > earn >> > > > cash >> > > > > > > > > >> > > > >> > >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> > > > > > > > > >> > > > > > > > > >> > ___ >> > > > > > > > > Wicket-user mailing list >> > > > > > > > > Wicket-user@lists.sourceforge.net >> > > > > > > > > >> > > > >> > https://lists.sourceforge.net/lists/listinfo/wicket-user >> > > > > > > > > >> > > > > > > > > >> > > > > > > > > >> > > > > > > > >> > > > > > > > >> > > > > > > > >> > > > >> > >> -
[Wicket-user] replace of multi inc. spans
Hi, maybe its a noobish question, but how can i replace a markup that spans other markup wihtout touching the inner one? e.g: foo foo wich is a simple ListView repeater - that should be replaced by a single Label Component getPage().replace(new Label("data","Error - no datasource defined")); I know i can do it via having a the DataView as a panel, but wonder if there isnt a quick dirty aproach here... currently, it tells me: "Expected close tag for '' Possible attempt to embed component(s) '" and all i want is that wicket discards the inner ones and replaces them like it does for all content sittin within its part. Regards Korbinian - 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 on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] AbstractAjaxTimerBehavior on a page not possible ?
Hi Thanks for your answer. That's what I had done but I wondered whether there would be a better way. 1.3 looks even further interesting I see ;) Cheers ZedroS On 4/4/07, Johan Compagner <[EMAIL PROTECTED]> wrote: > in 1.2 you need to work around it by having a component. > > in 1.3 this is fixed and it will work on a page. > > johan > > > On 4/4/07, ZedroS Schwart < [EMAIL PROTECTED]> wrote: > > > > I use wicket 1.2.5... > > > > How shall I do ? > > > > Thanks in advance > > ZedroS > > > > > - > > 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 on IT & business topics through brief surveys-and earn cash > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > - > 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 on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > - 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 on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Disable debug messages in wicket-contrib-dojo 1.3.0-SNAPSHOT
Does anyone know how to disable the debug messages that's being printed all over the screen when using wicket-contrib-dojo 1.3.0-SNAPSHOT? -- View this message in context: http://www.nabble.com/Disable-debug-messages-in-wicket-contrib-dojo-1.3.0-SNAPSHOT-tf3530102.html#a9851435 Sent from the Wicket - User mailing list archive at Nabble.com. - 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 on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user