Re: [Wicket-user] There must be some docs somewhere?
If i remember correctly, its been a while since i looked, tapestry book takes a hybrid approach. first half explains how the major parts of the framework work by giving small focused examples, while the second part of the book is a bring it all together incremental build of the tapestry virtual library example. I think this might be good to do for the wicket book as well. it is difficult to cover the wider interactions of components within an application via focused examples imho. -Igor On 11/17/05, Eelco Hillenius [EMAIL PROTECTED] wrote: Martijn and I are writing Wicket In Action currently. We're not usingthe gradual examples thing like e.g. Tapestry In Action has because wedon't like it that much. Maybe Martijn more than me, but I thoughtsuch a book-wide example is too far fetched to be useful. Personally, I am much more charmed about 'Programming RubyThe Pragmatic Programmer's Guide' that has a lot of small but focussedexamples. Anyway, if I had more time I would definitively want towrite a more elaborate example like a blog. The cdapp example that you can find in wicket-contrib-examples is my try of an application withHibernate CRUD and some extra's. Please check that one out too.Eelco A suite of examples that build upon each other in gradual steps, introducing concepts in a logical order in order to build an increasingly complex application in an attempt to reduce the slope of the learning curve.Ideally, the final examples should be a fairly usable application, using all the functionality available and demonstrating best practices.That's basically the structure of the ... in Action books from Manning, whgch has always worked well for me.Not trivial to generate, of course, but it seems like whoever does would be a srong candidate for authorship of WIcket in Action which is a nice resume bullet point. ---This SF.Net email is sponsored by the JBoss Inc.Get Certified TodayRegister for a JBoss Training Course.Free Certification Examfor All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845opclick___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Strange PasswordTextField behaviour
Hello, When delving into the code, I found something weird with PasswordTextField (at least I am founding it weird :-) Indeed, in the case of the form marked as invalid, when the form is resubmitted, all the form components show the last user input (and not the model value), but the password text field. Even if setResetPassword has been set to false. Feature or bug ? Thanks in advance, -- Laurent --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Re: Strange PasswordTextField behaviour
The password text field, when resetPassword=false, is always re-rendered with the value of the model ... On 11/18/05, Laurent PETIT [EMAIL PROTECTED] wrote: Hello, When delving into the code, I found something weird with PasswordTextField (at least I am founding it weird :-) Indeed, in the case of the form marked as invalid, when the form is resubmitted, all the form components show the last user input (and not the model value), but the password text field. Even if setResetPassword has been set to false. Feature or bug ? Thanks in advance, -- Laurent --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] wicket:link recreates link component on each request
It might be the intention, but if it is, there is an error with this solution. When the template is parsed each link-tag inside wicket:link is assignedid named _autolink_. Later this tag is handled by AutoLinkResolver. AutoLinkResolver: private final Component resolveAutomaticLink(final MarkupContainer container, final String id,final ComponentTag tag) ... final String autoId = id + Integer.toString(page.getAutoIndex()); // By setting the component name, the tag becomes a Wicket component// tag, which must have a associated Component.tag.setId(autoId); ... When this is done second time id will contain already handled id, e.g _autolink_1 and a new number is appended. And when there are more than 9 links inside one wicket:link there will be an error like: The markup file must not contain the same wicket:id at the same level: _autolink_11 I think it would be more efficient to create the link components only once. And then this problem would also be solved. This is only problem with current cvs-head, I couldn't get the same exception with 1.1-final. I don't know how it was handled in that version. /arto
Re: [Wicket-user] Re: Strange PasswordTextField behaviour
Yeah. It was a feature. Eelco On 11/18/05, Laurent PETIT [EMAIL PROTECTED] wrote: The password text field, when resetPassword=false, is always re-rendered with the value of the model ... On 11/18/05, Laurent PETIT [EMAIL PROTECTED] wrote: Hello, When delving into the code, I found something weird with PasswordTextField (at least I am founding it weird :-) Indeed, in the case of the form marked as invalid, when the form is resubmitted, all the form components show the last user input (and not the model value), but the password text field. Even if setResetPassword has been set to false. Feature or bug ? Thanks in advance, -- Laurent --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Re: Strange PasswordTextField behaviour
On 11/18/05, Eelco Hillenius [EMAIL PROTECTED] wrote: Yeah. It was a feature. I don't see the value of that feature, could you explain ? My point of view : A user account page, with ability to modify name, address, and password. All the values of the database are prefilled (including password, using setResetPassword(false) ). The user modifies some fields, including password, but enters an invalid address and submits. All the fields a re-rendered as the user had entered them, but the password field is the only that does not take into account the new value, but the original -still not modified- from the model. I don't see the need ?
[Wicket-user] PasswordField special getModelValue() method question
Hello, yet another question concerning PasswordField ? the getModelValue() returns and encrypted version, and the setModelValue() decrypts it, why ? Because it is still possible to get the real value by using getModelAsString() for example, which is not overriden, so I think it has not been done for security reasons ... ?
[Wicket-user] anyone built a large app with wicket?
Can someone out there who has used wicket to build a fairly full featured application provide a URL for me to check it out? I am going to be building an app that will need javascript drop down menus (created programmatically), forms with optional fields depending upon authentication role, javascript based tooltips (or at least a clickable help icon next to form fields), and wizard-like multi-page forms. I'd love to see examples of all or most of those things implemented in wicket, in order to ensure that such things are possible within wicket as it currently stands. I am particularly concerned about being able to prgrammatically include components conditionally, since both my menus and my forms will vary depending upon a User's role. Thanks. --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Best use of Links
Hi all, I wanted to know what's the best way to use Links (PageLinks, BookmarkablePageLinks). In the beginning, I was using BookmarkablePageLink's and converting everything to and from Strings. That obviously was flawed, as I was using string names and passing them back and forth (lost strong-typing, occasionally forgot one parameter, or mistyped the name of it). It also made me reload objects from the database even though I had them handy on the calling class. Then I tried using PageLink's, passing a new XXXPage(whateverparameter) in the constructor. That didn't work either, as pages have links back and forth, leading to stackoverflows. Then I moved one step up in the object hierarchy and started using Link's, but it seems such red tape for each link having to write: add(new Link(cancelLink) { public void onClick() { setResponsePage(new EditProviderPage(provider)); }; }); Any suggestions? []s Gus --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Best use of Links
imho that is the best practice. that is what i use whenever i do not need a bookmarkable page. i have yet to use the PageLink class. PageLink makes it easier to create links to pages because it lets you specify the class name of the page or the created page instance. This is ok for pages that are not bookmarkable and take no parameters, but most of the time that is not the case in my experience. if you work with bookmarkable pages a lot, a static factory method that fills in pageparameters can help with type safety and forgotten params.-IgorOn 11/18/05, Gustavo Hexsel [EMAIL PROTECTED] wrote: Hi all,I wanted to know what's the best way to use Links (PageLinks, BookmarkablePageLinks).In the beginning, I was using BookmarkablePageLink's and converting everything to and from Strings.That obviously was flawed, as I was using string names and passing them back and forth (lost strong-typing, occasionally forgot one parameter, or mistyped the name of it).It also made me reload objects from the database even though I had them handy on the calling class. Then I tried using PageLink's, passing a new XXXPage(whateverparameter) in the constructor.That didn't work either, as pages have links back and forth, leading to stackoverflows.Then I moved one step up in the object hierarchy and started using Link's, but it seems such red tape for each link having to write: add(new Link(cancelLink) {public void onClick() { setResponsePage(new EditProviderPage(provider)); };});Any suggestions? []s Gus--- This SF.Net email is sponsored by the JBoss Inc.Get Certified TodayRegister for a JBoss Training Course.Free Certification Examfor All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845opclick___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] anyone built a large app with wicket?
irt conditional componentshttp://www.mail-archive.com/wicket-user@lists.sourceforge.net/msg07414.htmlirt conditional form fields this is nothing special, just throw in a panel into the form that contains form components if you need to. form components automatically link up to their parent form even if they are not directly contained by it. the form onsubmit can cascade the onsubmit event to all added panels if you need panel-wide validation, but you implement that yourself irt wizard frameworkthere is an easy-wizard + examples project in wicket-stuff. it uses page-based wizard navigation which is not my favorite. for my current employer ive created a panel-based wizard framework that works quiet well for our purposes so its possible and i didnt have to do anything special. just create a wizard model that contains step factories that in turn generate panels. the next button can then figure out the next step, ask it for its panel and replace the current one. -IgorOn 11/18/05, Sam Gendler [EMAIL PROTECTED] wrote: Can someone out there who has used wicket to build a fairly fullfeatured application provide a URL for me to check it out?I am goingto be building an app that will need _javascript_ drop down menus(created programmatically), forms with optional fields depending upon authentication role, _javascript_ based tooltips (or at least aclickable help icon next to form fields), and wizard-like multi-pageforms.I'd love to see examples of all or most of those thingsimplemented in wicket, in order to ensure that such things are possible within wicket as it currently stands.I am particularlyconcerned about being able to prgrammatically include componentsconditionally, since both my menus and my forms will vary dependingupon a User's role. Thanks.---This SF.Net email is sponsored by the JBoss Inc.Get Certified TodayRegister for a JBoss Training Course.Free Certification Exam for All Training Attendees Through End of 2005. For more info visit:http://ads.osdn.com/?ad_idv28alloc_id845opclick___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] anyone built a large app with wicket?
Sam:My app isn't live yet, but it has most of what you're asking for. Besides, unless you're looking at the code, looking at the URL won't really help you.Conditional form fields are actually pretty easy. Here's a link to a wiki page I started: http://www.wicket-wiki.org.uk/wiki/index.php/Forms_with_dynamic_elementsYou could use the exact same method for conditional forms. It works very well. The app we're working on has _javascript_ hyperhelp, but I'm not sure we're going to use Wicket for it since the help docs are largely static. I think we'll end up using XML+XSL or Velocity for hyperhelp. While it may appear that this is a Wicket shortcoming, I believe it's a strength since I can use the best tool for different application components. (Other people on the list can speak to this point.) There are also some pages on the wiki discussing multi-page forms. I prefer the multi-panel approach, but YMMV. Wicket can be extremely difficult to learn, especially coming from Struts, but everything I've wanted to do has been possible, usually with Panels and some help from the mailing list. On 11/18/05, Sam Gendler [EMAIL PROTECTED] wrote: Can someone out there who has used wicket to build a fairly fullfeatured application provide a URL for me to check it out?I am goingto be building an app that will need _javascript_ drop down menus(created programmatically), forms with optional fields depending upon authentication role, _javascript_ based tooltips (or at least aclickable help icon next to form fields), and wizard-like multi-pageforms.I'd love to see examples of all or most of those thingsimplemented in wicket, in order to ensure that such things are possible within wicket as it currently stands.I am particularlyconcerned about being able to prgrammatically include componentsconditionally, since both my menus and my forms will vary dependingupon a User's role. Thanks.---This SF.Net email is sponsored by the JBoss Inc.Get Certified TodayRegister for a JBoss Training Course.Free Certification Exam for All Training Attendees Through End of 2005. For more info visit:http://ads.osdn.com/?ad_idv28alloc_id845opclick___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Best use of Links
If it's OK to write a little more code, you could use a factory for the page with the same signature your constructor uses. In my opinion this could be more elegant, but what Igor said is simpler. Something like (not tested): // reusable class public interface IPageCreator { Page newInstance(); } // reusable class public class PageCreatorLink extends Link { public PageCreatorLink(String id, IPageCreator creator) { super(id); this.creator = creator; } public void onClick() { setResponsePage(creator.newInstance()); } } // your class public class MyPageCreator implements IPageCreator { public MyPageCreator(Object provided) { this.provided = provided; } public Page newInstance() { return new MyPage(provided); } } // your class add(new PageCreatorLink(cancelLink, new MyPageCreator(provided)); maybe your page class could also be the IPageCreator, serving like a prototype: // your class public class MyPage extends WebPage implements IPageCreator { } The factory would be nice when you have to execute some service method before rendering the page, so you would have more clearly separated responsabilities, i.e., the factory would be responsible for calling the service and the page would act just for the view. That way your classes would be more testable too. 2005/11/18, Igor Vaynberg [EMAIL PROTECTED]: imho that is the best practice. that is what i use whenever i do not need a bookmarkable page. i have yet to use the PageLink class. PageLink makes it easier to create links to pages because it lets you specify the class name of the page or the created page instance. This is ok for pages that are not bookmarkable and take no parameters, but most of the time that is not the case in my experience. if you work with bookmarkable pages a lot, a static factory method that fills in pageparameters can help with type safety and forgotten params. -Igor On 11/18/05, Gustavo Hexsel [EMAIL PROTECTED] wrote: Hi all, I wanted to know what's the best way to use Links (PageLinks, BookmarkablePageLinks). In the beginning, I was using BookmarkablePageLink's and converting everything to and from Strings. That obviously was flawed, as I was using string names and passing them back and forth (lost strong-typing, occasionally forgot one parameter, or mistyped the name of it). It also made me reload objects from the database even though I had them handy on the calling class. Then I tried using PageLink's, passing a new XXXPage(whateverparameter) in the constructor. That didn't work either, as pages have links back and forth, leading to stackoverflows. Then I moved one step up in the object hierarchy and started using Link's, but it seems such red tape for each link having to write: add(new Link(cancelLink) { public void onClick() { setResponsePage(new EditProviderPage(provider)); }; }); Any suggestions? []s Gus --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Best use of Links
Actually what i meant was a simple static factory method that translates strongly typed params into PageParameters.ieclass MyBookmarkablePage extends WebPage { public MyBookmarkablePage(PageParameters params) { ... } public static MyBookmarkablePage(String p1, int p2, String p3) { PageParameters params=new PageParameters(); ...fill in params... return new MyBookmarkablePage(params); }}also see IPageLink interface that is used by PageLink class. but i think this is more work, a simple Link's onclick() implementation is the path of least resistance imho.-Igor On 11/18/05, Eduardo Rocha [EMAIL PROTECTED] wrote: If it's OK to write a little more code, you could use a factory forthe page with the same signature your constructor uses. In my opinionthis could be more elegant, but what Igor said is simpler. Somethinglike (not tested): // reusable classpublic interface IPageCreator {Page newInstance();}// reusable classpublic class PageCreatorLink extends Link {public PageCreatorLink(String id, IPageCreator creator) { super(id);this.creator = creator;}public void onClick() {setResponsePage(creator.newInstance());}}// your classpublic class MyPageCreator implements IPageCreator { public MyPageCreator(Object provided) {this.provided = provided;}public Page newInstance() {return new MyPage(provided);}}// your classadd(new PageCreatorLink(cancelLink, new MyPageCreator(provided)); maybe your page class could also be the IPageCreator, serving like a prototype:// your classpublic class MyPage extends WebPage implements IPageCreator {}The factory would be nice when you have to execute some service method before rendering the page, so you would have more clearly separatedresponsabilities, i.e., the factory would be responsible for callingthe service and the page would act just for the view. That way yourclasses would be more testable too. 2005/11/18, Igor Vaynberg [EMAIL PROTECTED]: imho that is the best practice. that is what i use whenever i do not need a bookmarkable page. i have yet to use the PageLink class. PageLink makes it easier to create links to pages because it lets you specify the class name of the page or the created page instance. This is ok for pages that are not bookmarkable and take no parameters, but most of the time that is not the case in my experience. if you work with bookmarkable pages a lot, a static factory method that fills in pageparameters can help with type safety and forgotten params. -Igor On 11/18/05, Gustavo Hexsel [EMAIL PROTECTED] wrote: Hi all, I wanted to know what's the best way to use Links (PageLinks, BookmarkablePageLinks). In the beginning, I was using BookmarkablePageLink's and converting everything to and from Strings.That obviously was flawed, as I was using string names and passing them back and forth (lost strong-typing, occasionally forgot one parameter, or mistyped the name of it).It also made me reload objects from the database even though I had them handy on the calling class. Then I tried using PageLink's, passing a new XXXPage(whateverparameter) in the constructor.That didn't work either, as pages have links back and forth, leading to stackoverflows. Then I moved one step up in the object hierarchy and started using Link's, but it seems such red tape for each link having to write: add(new Link(cancelLink) { public void onClick() { setResponsePage(new EditProviderPage(provider)); }; }); Any suggestions? []s Gus--- This SF.Net email is sponsored by the JBoss Inc.Get Certified Today Register for a JBoss Training Course.Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user ---This SF.Net email is sponsored by the JBoss Inc.Get Certified TodayRegister for a JBoss Training Course.Free Certification Exam for All Training Attendees Through End of 2005. For more info visit:http://ads.osdn.com/?ad_idv28alloc_id845opclick___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Re: Strange PasswordTextField behaviour
You must not be doing something right if the password field is not changing. Are you sure the model is changing with the new value? --AndrewOn 11/18/05, Laurent PETIT [EMAIL PROTECTED] wrote: On 11/18/05, Eelco Hillenius [EMAIL PROTECTED] wrote: Yeah. It was a feature. I don't see the value of that feature, could you explain ? My point of view : A user account page, with ability to modify name, address, and password. All the values of the database are prefilled (including password, using setResetPassword(false) ). The user modifies some fields, including password, but enters an invalid address and submits. All the fields a re-rendered as the user had entered them, but the password field is the only that does not take into account the new value, but the original -still not modified- from the model. I don't see the need ?
Re: [Wicket-user] Best use of Links
Yeah, I just forgot IPageLink and PageLink (by the way these names can be quite confusing!), so ignore my classes, but I keep my point :P. 2005/11/18, Igor Vaynberg [EMAIL PROTECTED]: Actually what i meant was a simple static factory method that translates strongly typed params into PageParameters. ie class MyBookmarkablePage extends WebPage { public MyBookmarkablePage(PageParameters params) { ... } public static MyBookmarkablePage(String p1, int p2, String p3) { PageParameters params=new PageParameters(); ...fill in params... return new MyBookmarkablePage(params); } } also see IPageLink interface that is used by PageLink class. but i think this is more work, a simple Link's onclick() implementation is the path of least resistance imho. -Igor On 11/18/05, Eduardo Rocha [EMAIL PROTECTED] wrote: If it's OK to write a little more code, you could use a factory for the page with the same signature your constructor uses. In my opinion this could be more elegant, but what Igor said is simpler. Something like (not tested): // reusable class public interface IPageCreator { Page newInstance(); } // reusable class public class PageCreatorLink extends Link { public PageCreatorLink(String id, IPageCreator creator) { super(id); this.creator = creator; } public void onClick() { setResponsePage(creator.newInstance()); } } // your class public class MyPageCreator implements IPageCreator { public MyPageCreator(Object provided) { this.provided = provided; } public Page newInstance() { return new MyPage(provided); } } // your class add(new PageCreatorLink(cancelLink, new MyPageCreator(provided)); maybe your page class could also be the IPageCreator, serving like a prototype: // your class public class MyPage extends WebPage implements IPageCreator { } The factory would be nice when you have to execute some service method before rendering the page, so you would have more clearly separated responsabilities, i.e., the factory would be responsible for calling the service and the page would act just for the view. That way your classes would be more testable too. 2005/11/18, Igor Vaynberg [EMAIL PROTECTED]: imho that is the best practice. that is what i use whenever i do not need a bookmarkable page. i have yet to use the PageLink class. PageLink makes it easier to create links to pages because it lets you specify the class name of the page or the created page instance. This is ok for pages that are not bookmarkable and take no parameters, but most of the time that is not the case in my experience. if you work with bookmarkable pages a lot, a static factory method that fills in pageparameters can help with type safety and forgotten params. -Igor On 11/18/05, Gustavo Hexsel [EMAIL PROTECTED] wrote: Hi all, I wanted to know what's the best way to use Links (PageLinks, BookmarkablePageLinks). In the beginning, I was using BookmarkablePageLink's and converting everything to and from Strings. That obviously was flawed, as I was using string names and passing them back and forth (lost strong-typing, occasionally forgot one parameter, or mistyped the name of it). It also made me reload objects from the database even though I had them handy on the calling class. Then I tried using PageLink's, passing a new XXXPage(whateverparameter) in the constructor. That didn't work either, as pages have links back and forth, leading to stackoverflows. Then I moved one step up in the object hierarchy and started using Link's, but it seems such red tape for each link having to write: add(new Link(cancelLink) { public void onClick() { setResponsePage(new EditProviderPage(provider)); }; }); Any suggestions? []s Gus --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845opclick ___ Wicket-user
Re: [Wicket-user] Re: Strange PasswordTextField behaviour
On 11/19/05, Andrew Berman [EMAIL PROTECTED] wrote: You must not be doing something right if the password field is not changing. Are you sure the model is changing with the new value? I'm sure the model is not changed, it's the expected behaviour, because the Component is marked invadid() because the form is invalid (for any sensible reason). But contrary to other components, the value that is represented to the user (can see it with Show source page function of browser) comes from the model, not from the invalidInput field ... Here is the code from PasswordTextField: protected final void onComponentTag(final ComponentTag tag) { checkComponentTag(tag, input); checkComponentTagAttribute(tag, type, password); super.onComponentTag(tag); tag.put(value, getResetPassword() ? : getModelObjectAsString()); } direct call to getModelObjectAsString() and here from TextField: protected void onComponentTag(final ComponentTag tag) { // Must be attached to an input tag checkComponentTag(tag, input); // If this is not a subclass (PasswordTextField) if (getClass() == TextField.class) { // check for text type checkComponentTagAttribute(tag, type, text); } // No validation errors tag.put(value, getValue()); // Default handling for component tag super.onComponentTag(tag); } You can see here the call to the getValue() method, which will return invalidInput or getModelObjectAsString() as needed. --AndrewOn 11/18/05, Laurent PETIT [EMAIL PROTECTED] wrote: On 11/18/05, Eelco Hillenius [EMAIL PROTECTED] wrote: Yeah. It was a feature. I don't see the value of that feature, could you explain ? My point of view : A user account page, with ability to modify name, address, and password. All the values of the database are prefilled (including password, using setResetPassword(false) ). The user modifies some fields, including password, but enters an invalid address and submits. All the fields a re-rendered as the user had entered them, but the password field is the only that does not take into account the new value, but the original -still not modified- from the model. I don't see the need ?
Re: [Wicket-user] performance problem - urgent
I just found by looking at Tomcat documentation that the Context support an cachingAllowed attribute. The default value is true; so that static content is served from the cache. Do you have this value altered? ./alex -- .w( the_mindstorm )p. #: Dorel Vaida changed the world a bit at a time by saying on 11/17/2005 8:04 PM :# Hi all, I've deployed my first application with wicket. However, I have a BIG annoying performance problem with it, and it is visible just in production. We have a pretty big picture on the top of the page, a 200k gif, which is LOADED again and again on every page, it's not cached. On every other sites we've developed, even the big pictures after they were loaded and cached first, they work fine, they are not downloaded every time. In this case, it seems that all the pictures are downloaded every time. The site in case is: http://www.ceramicamaria.ro/ just in case you want to check it live. As you will see, the experience is lousy as you need to wait tons of time for each page loading Anybody has a clue why this is happening ? Any suggestions are greatly appreciated, I assure you. Thanks. --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user !DSPAM:437cc823518088707315241! --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] new method RadioChoice.getInputValue() ?
I've just implemented a form where the user can choose between different payment-types through a RadioGroup. Depending on the payment-type different textfields on the same form are required. So I did 'custom-form-processing' and for validation I had to get first to the value of the payment-type RadioGroup. getInput() gives an int as String or something else. For validation it would be nice to get the actually choice object before setting it on the model. Is there some way to get this, differnt than translating getInput()? BTW: when I did the 'custom form processing' I also wanted to call Form.persistFormComponentData() but this is private. Should this be called when Button.defaultFormProcessing = false. Christian ___ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user