Re: [Wicket-user] Best practice and use of detachable models
no, not exactly. if you havent set a model on the component (or set it to null) and call getmodel() wicket will search upwards for a model that implements the compound model interface. look up compound property models on that wiki page. Thanks, will do. One last question: f) And suppose I have a Label that has to be derived by say some string > concatenation or formula and OGNL notation will not work. Will new > Label("foo", fooModel.getFoo() + "bar")kind of hardcoding conflict in > some subtle way with the concept of detachable models? write a simple model private static class foomodel extends abstractreadonlymodel { private final imodel wrapped; public foomodel(imodel wrapped) { this.wrapped=wrapped; } public object getobject() { return wrapped.getobject()+"bar"; } public void detach() { wrapped.detach(); // important } } you do this a lot, so it is very helpful to create a superclass of the above that helps with setting and detaching. i leave that as an excercise to you. Can I assume that doing all this may not be worth it if you are only trying to derive a simple String value to put into a label - so the "hardcoding" may be okay for most scenarios? - 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] Best practice and use of detachable models
On 2/21/07, Peter Thomas <[EMAIL PROTECTED]> wrote: Thanks Igor. This really helped, and along the way I realized I missed a few fundamentals. One more question below: d) Now I am iterating using ListView. How exactly do I initialize the > > ListView so that it uses the "installed" detachable model? > > > what do you mean? you just pass it into the constructor. > Ok I get it. Also, when you do "getModel()" Wicket will search upwards the component hierarchy right? So it does not matter even if you are on a child panel within the page or something, yes? no, not exactly. if you havent set a model on the component (or set it to null) and call getmodel() wicket will search upwards for a model that implements the compound model interface. look up compound property models on that wiki page. -igor - 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] Best practice and use of detachable models
Thanks Igor. This really helped, and along the way I realized I missed a few fundamentals. One more question below: d) Now I am iterating using ListView. How exactly do I initialize the > ListView so that it uses the "installed" detachable model? what do you mean? you just pass it into the constructor. Ok I get it. Also, when you do "getModel()" Wicket will search upwards the component hierarchy right? So it does not matter even if you are on a child panel within the page or something, yes? e) While rendering each row of the ListView, how do I initialize Labels so > that they in turn get the right chunk of the detachable model? just what you did above - new PropertyModel(item.,getModel(), "name"); or if you use PropertyListView just add(new Label("name")) :) Yep. Honestly was not aware of PropertyListView and will look into that as well. f) And suppose I have a Label that has to be derived by say some string > concatenation or formula and OGNL notation will not work. Will new > Label("foo", fooModel.getFoo() + "bar")kind of hardcoding conflict in > some subtle way with the concept of detachable models? write a simple model private static class foomodel extends abstractreadonlymodel { private final imodel wrapped; public foomodel(imodel wrapped) { this.wrapped=wrapped; } public object getobject() { return wrapped.getobject()+"bar"; } public void detach() { wrapped.detach(); // important } } you do this a lot, so it is very helpful to create a superclass of the above that helps with setting and detaching. i leave that as an excercise to you. Thanks, will try that out! - 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] Best practice and use of detachable models
On 2/21/07, Peter Thomas <[EMAIL PROTECTED]> wrote: Hi, I use Hibernate and have got a reasonably sized app working with Wicket. I am aware of the concept of detachable models and want to use it effectively and I have the following questions. If the information is already there on the wiki or something - feel free to point me there. Apologies in advance for the dumb questions, but I'm sure there is a general consensus that Wicket models are tricky to understand. what can be tricky about interface IModel { T getObject(); void setObject(T t); } ? :) there is a great wiki page on models that explains all this stuff in detail. a) If you don't use detachable models, it is ok but the downside is that when your page is serialized, your models get serialized and this could take up a lot of memory. Is my understanding correct? yes. generally you want to keep your session as small as possible. generally there are no reasons to stick things in there that can be loaded from the db. b) In some cases I use new Label("foo", new PropertyModel(fooModel, "foo"))); and in some cases I use new Label("foo", fooModel.getFoo()); which should I stick to or when should I use which? if you dont mind the object put in session then you can do foomodel.getfoo() (like if its something simple like a string) c) I have a list of objects I got from Hibernate. Can you provide (or link to) some simple code that will show me how to "install" this model on the parent component, and I mean in detachable mode. In my case it is just a WebPage. add(new listview("list", new loadabledetachablemodel() { public object load() { return getsession().createcriteria(user.class).list(); } } thats all there is to it. consider this: public class entitymodel extends loadabledetachablemodel { private final Class clazz; private final Serializable id; public entitymodel(Class clazz, Serializable id) { this.clazz=clazz; this.id=id; } public object load() { return getsession().get(clazz, id); } } the above model is a generalized hibernate entity model. you can do thigs like setresponsepage(new ViewUserPage(new entitymodel(user.class, 15))); this model will load the user when getobject() is called, and keep it in memory during the request. once the request is done and before the page is saved this model will null the variable that keeps the user so it is not put in session. only the two key pieces of information necessary to retrieve this user (and which are hopefully much smaller then the actual user object) are kept in session. d) Now I am iterating using ListView. How exactly do I initialize the ListView so that it uses the "installed" detachable model? what do you mean? you just pass it into the constructor. e) While rendering each row of the ListView, how do I initialize Labels so that they in turn get the right chunk of the detachable model? just what you did above - new PropertyModel(item.,getModel(), "name"); or if you use PropertyListView just add(new Label("name")) :) f) And suppose I have a Label that has to be derived by say some string concatenation or formula and OGNL notation will not work. Will new Label("foo", fooModel.getFoo() + "bar")kind of hardcoding conflict in some subtle way with the concept of detachable models? write a simple model private static class foomodel extends abstractreadonlymodel { private final imodel wrapped; public foomodel(imodel wrapped) { this.wrapped=wrapped; } public object getobject() { return wrapped.getobject()+"bar"; } public void detach() { wrapped.detach(); // important } } you do this a lot, so it is very helpful to create a superclass of the above that helps with setting and detaching. i leave that as an excercise to you. -igor 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 - 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] wicket:component, container, pseudo, et al
All of the above tags were disparaged in the vote. Are any other tags all but deprecated? The following are all clearly standard tags. wicket:border wicket:child wicket:extend wicket:message wicket:panel What about wicket:link In particular, which tags (apart from component, container & pseudo) would I be best off avoiding? Thank you, Scott -- Scott Swank reformed mathematician - 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] Best practice and use of detachable models
Hi, I use Hibernate and have got a reasonably sized app working with Wicket. I am aware of the concept of detachable models and want to use it effectively and I have the following questions. If the information is already there on the wiki or something - feel free to point me there. Apologies in advance for the dumb questions, but I'm sure there is a general consensus that Wicket models are tricky to understand. a) If you don't use detachable models, it is ok but the downside is that when your page is serialized, your models get serialized and this could take up a lot of memory. Is my understanding correct? b) In some cases I use new Label("foo", new PropertyModel(fooModel, "foo"))); and in some cases I use new Label("foo", fooModel.getFoo()); which should I stick to or when should I use which? c) I have a list of objects I got from Hibernate. Can you provide (or link to) some simple code that will show me how to "install" this model on the parent component, and I mean in detachable mode. In my case it is just a WebPage. d) Now I am iterating using ListView. How exactly do I initialize the ListView so that it uses the "installed" detachable model? e) While rendering each row of the ListView, how do I initialize Labels so that they in turn get the right chunk of the detachable model? f) And suppose I have a Label that has to be derived by say some string concatenation or formula and OGNL notation will not work. Will new Label("foo", fooModel.getFoo() + "bar")kind of hardcoding conflict in some subtle way with the concept of detachable models? 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] there is no way to preprocess raw markup in wicket 1.1?
That would be great On 2/22/07, James McLaughlin <[EMAIL PROTECTED]> wrote: > Unfortunately, it would be a pain to separate out the examples I have, but > there are some unit tests under wicket.markup.outputTransformer that I'm > pretty sure will get you going. > > hth, > jim > > > On 2/20/07, Carfield Yim <[EMAIL PROTECTED]> wrote: > > > > Could you give me an example to show how it work? > > > > On 2/21/07, James McLaughlin <[EMAIL PROTECTED]> wrote: > > > Probably the thing that makes it difficult to use is that by default > > > it looks for an xsl in the package of the component the > > > XsltTransformerBehavior is being applied to, with the name of its > > > componentId. > > > > > > So if you have a component foo.bar.MyComp.java you want to transform, > > > and it is added to the hierarchy with "myId", then it will look for > > > foo.bar.myid.xsl to apply for the transform. > > > > > > But you can also submit the full path and file name to the > > > XsltTransformerBehavior's constructor. > > > > > > Other than that, it couldn't be easier to use. Just add(new > > > XsltTransformerBehavior()) > > > > > > On 2/20/07, Carfield Yim < [EMAIL PROTECTED]> wrote: > > > > Not really related to the original question, I try to use it before > > > > but fail as I cannot find any example show how to work with this, > > > > could you point some resource to me to take a look? > > > > > > > > On 2/21/07, James McLaughlin <[EMAIL PROTECTED]> wrote: > > > > > There is also XsltTransformerBehavior (in wicket.markup.transformer > ) > > > > > > > > > > hth, > > > > > jim > > > > > > > > > > On 2/20/07, Juergen Donnerstag <[EMAIL PROTECTED]> wrote: > > > > > > search for IMarkupFilter > > > > > > > > > > > > Juergen > > > > > > > > > > > > On 2/19/07, wouvlfe <[EMAIL PROTECTED] > wrote: > > > > > > > > > > > > > > oops, should have been more clear about what i want to do > > > > > > > i want to be able to preprocess some of the tags (that do not > have wicket > > > > > > > ids) in the markup and modify them if necessary > > > > > > > > > > > > > > example: > > > > > > > modify the original tag: > > > > > > > /a/b/c > > > > > > > > > > > > > > to the tag: > > > > > > > /e/f > > > > > > > > > > > > > > that is, change the static paths in certain scenarios > > > > > > > > > > > > > > is there a way this can be done through wicket? > > > > > > > (i dont want to add a 50 different wicket tags for 50 different > static > > > > > > > resources in my markup file. So I would need to do this without > wicket tags) > > > > > > > > > > > > > > i think Igor pointed me to IMarkupFilter but that didnt help me > accomplish > > > > > > > what I want. > > > > > > > The filters dont seem to allow me to modify raw markup. > > > > > > > dont know why but wicket LOVES to make classes and methods > final. > > > > > > > so there is no way i can use polymorphism to extend > functionalities of > > > > > > > wicket's base classes > > > > > > > > > > > > > > vk > > > > > > > > > > > > > > > > > > > > > > > > > > > > Timo Rantalaiho wrote: > > > > > > > > > > > > > > > > On Mon, 19 Feb 2007, wouvlfe wrote: > > > > > > > >> I simply want to be able to modify the values of some static > paths in the > > > > > > > >> raw html markup > > > > > > > >> > > > > > > > >> it seems that there is no way to do it in wicket 1.1 ?? > > > > > > > >> i started by looking into markup filters > > > > > > > >> when i wrote my own markup parser, i couldnt find a way to > replace > > > > > > > >> portions > > > > > > > >> of the raw html > > > > > > > > > > > > > > > > It would help to know more specifically what you are trying > > > > > > > > to achieve. > > > > > > > > > > > > > > > > But if you want to change URLs to static resources, you > > > > > > > > might be better off providing a custom resource locator > > > > > > > > > > > > > > > > > > > > > > > > > http://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.html > > > > > > > > > > > > > > > > or if paths are produced by wicket components, tweaking your > > > > > > > > own versions of the components. > > > > > > > > > > > > > > > > - Timo > > > > > > > > > > > > > > > > -- > > > > > > > > Timo Rantalaiho > > > > > > > > Reaktor Innovations Oyhttp://www.ri.fi/ > > > > > > > > > > > > > > > > > > - > > > > > > > > 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] Dumb question about serialization
7 -igor On 2/21/07, Peter Thomas <[EMAIL PROTECTED]> wrote: What is the default for the maxPageVersions? On 2/21/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > If you don't need back button support at all, just have all your pages > (or probably some base page) override isVersioned (or use > setVersioned) and let it return false. Wicket will not record changes > then, and your URLs between what otherwise would have been versions > keep stable. > > Also, set IPageSettings#setMaxPageVersions to 1 and it is best to use > the HttpSessionStore. > > Eelco > > > On 2/21/07, Jesse Barnum <[EMAIL PROTECTED]> wrote: > > Sorry for the dumb question, but I don't see any overview > > documentation talking about models and serialization in the API. Is > > there any way to not have to serialize objects in a model? I don't > > need support for back button / undo / etc. I have some objects that > > cannot be serialized which need to be displayed in a ListView, and > > when I try to modify the contents of the ListView, it causes > > exceptions because it automatically tries to serialize everything > > which I call modelChanging(). > > > > Is there a setting I can change somewhere to run everything in memory? > > > > --Jesse Barnum, President, 360Works > > http://www.360works.com > > (770) 234-9293 > > > > > > > > > - > > 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 - 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] Dumb question about serialization
What is the default for the maxPageVersions? On 2/21/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: If you don't need back button support at all, just have all your pages (or probably some base page) override isVersioned (or use setVersioned) and let it return false. Wicket will not record changes then, and your URLs between what otherwise would have been versions keep stable. Also, set IPageSettings#setMaxPageVersions to 1 and it is best to use the HttpSessionStore. Eelco On 2/21/07, Jesse Barnum <[EMAIL PROTECTED]> wrote: > Sorry for the dumb question, but I don't see any overview > documentation talking about models and serialization in the API. Is > there any way to not have to serialize objects in a model? I don't > need support for back button / undo / etc. I have some objects that > cannot be serialized which need to be displayed in a ListView, and > when I try to modify the contents of the ListView, it causes > exceptions because it automatically tries to serialize everything > which I call modelChanging(). > > Is there a setting I can change somewhere to run everything in memory? > > --Jesse Barnum, President, 360Works > http://www.360works.com > (770) 234-9293 > > > > - > 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] Wicket dev job in the LA Area
Hopefully a job listing isn't out-of-place on wicket-user (if so, I appologize). We are looking for two great wicket developers at FIM Labs, a newly-formed new product research and development group at Fox Interactive Media. We're building a high-profile site witin MySpace using Wicket, and have a bunch of other interesting projects going on. We're a small group that maintains a startup culture while still having access to the resources of Fox (MySpace, FoxSports.com, IGN, AmericanIdol.com, etc). Or focus is on new social web applications. Right now, our group has one Software Engineer and one Sr. Software Engineer position open. We're in the LA area, but we'd be willing to relocate the right person. While we normally go though HR, feel free to send resumes for this position to me (Daniel dot Gould at fox com) and I will forward them along to HR. The job listing is below; that said, we care far more about smart people who can pick things up than any laundry list of tools and languages. (The HR folks normally attach all the info about benefits, free movies on the Fox lot, lunch at our building, stuff about being an equal oppt'y employer, and all that to the bottom of these, but I wanted to send this out to the wicket community right away, so if you need the even more official version, let me know.) -- Daniel Gould VP, Technology Fox Interactive Media 407 N Maple Dr Beverly Hills, CA 90210 Fox Interactive Media (FIM), a start-up division of News Corporation, is seeking a Software Engineer to work on a dynamic and innovative projects. The Newroo team is a part of FIM Labs, which creates new ideas and products used across FIM; we are currently building an exciting system that will be integrated into MySpace and other sites. This project brings together the many of the new and interesting technologies that form what is today, Web 2.0. We are a small, focused, internally driven team--we'd expect the same out of any prospective candidate. The Software Engineer supports and develops Fox Interactive Media¹s software applications by performing review, analysis, design, and modification of small to large scale systems and components. The primary responsibilities include designing, coding, testing, debugging, installation and maintenance of this team's core front end application. Analysis and Design - Working with designers to plan new social user interfaces - Conducts fact gathering sessions with users. - Participates in group application design activities. - Performs modeling (code architecture). - Design software and database objects. Development and Testing - Develops new complex features and functions for social software applications. - Develops new complex software solutions according to defined application requirements. - Performs Unit Testing and debugging of applications. - Provides programming support through all testing phases and general releases of software. - Performs peer code reviews. Technical Skills and Experience - Bachelor's degree required, preferably in Computer Science. - 2+ years Object Oriented design experience. - 4+ years experience with Java, servlets and web application development, preferably for a large scale web site. - Ease and familiarity working in a Unix/Linux environment required. - Experience with RDBMS required; Experience with Hibernate a strong plus. - Confortable working on heavily multithreaded systems - Knowledge of various Web server technologies and frameworks required; these may include but are not limited to Apache Tomcat, JBoss Application Server, Spring/Struts Frameworks, Lucene, , and Hibernate. - Knowledge of natural language processing and machine learning techniques, including clustering, classification, and ranking algorithms not required but a plus; particularly implementing these algorithms in a real-world context and knowledge of approximation techniques to make online algorithms execute quickly. - Good understanding of deployment strategies for distributed and multi-tiered applications. - Capable of translating complex business needs into technical solutions. - Good verbal and written communication skills with the ability to rapidly learn and explain technical concepts. - Experience through the full software development lifecycle. - Experience with HTML, CSS, XML, RSS, C++, C#, .NET, and Web Services a plus. - 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] there is no way to preprocess raw markup in wicket 1.1?
Unfortunately, it would be a pain to separate out the examples I have, but there are some unit tests under wicket.markup.outputTransformer that I'm pretty sure will get you going. hth, jim On 2/20/07, Carfield Yim <[EMAIL PROTECTED]> wrote: Could you give me an example to show how it work? On 2/21/07, James McLaughlin <[EMAIL PROTECTED]> wrote: > Probably the thing that makes it difficult to use is that by default > it looks for an xsl in the package of the component the > XsltTransformerBehavior is being applied to, with the name of its > componentId. > > So if you have a component foo.bar.MyComp.java you want to transform, > and it is added to the hierarchy with "myId", then it will look for > foo.bar.myid.xsl to apply for the transform. > > But you can also submit the full path and file name to the > XsltTransformerBehavior's constructor. > > Other than that, it couldn't be easier to use. Just add(new > XsltTransformerBehavior()) > > On 2/20/07, Carfield Yim <[EMAIL PROTECTED]> wrote: > > Not really related to the original question, I try to use it before > > but fail as I cannot find any example show how to work with this, > > could you point some resource to me to take a look? > > > > On 2/21/07, James McLaughlin <[EMAIL PROTECTED]> wrote: > > > There is also XsltTransformerBehavior (in wicket.markup.transformer) > > > > > > hth, > > > jim > > > > > > On 2/20/07, Juergen Donnerstag <[EMAIL PROTECTED]> wrote: > > > > search for IMarkupFilter > > > > > > > > Juergen > > > > > > > > On 2/19/07, wouvlfe <[EMAIL PROTECTED]> wrote: > > > > > > > > > > oops, should have been more clear about what i want to do > > > > > i want to be able to preprocess some of the tags (that do not have wicket > > > > > ids) in the markup and modify them if necessary > > > > > > > > > > example: > > > > > modify the original tag: > > > > > /a/b/c > > > > > > > > > > to the tag: > > > > > /e/f > > > > > > > > > > that is, change the static paths in certain scenarios > > > > > > > > > > is there a way this can be done through wicket? > > > > > (i dont want to add a 50 different wicket tags for 50 different static > > > > > resources in my markup file. So I would need to do this without wicket tags) > > > > > > > > > > i think Igor pointed me to IMarkupFilter but that didnt help me accomplish > > > > > what I want. > > > > > The filters dont seem to allow me to modify raw markup. > > > > > dont know why but wicket LOVES to make classes and methods final. > > > > > so there is no way i can use polymorphism to extend functionalities of > > > > > wicket's base classes > > > > > > > > > > vk > > > > > > > > > > > > > > > > > > > > Timo Rantalaiho wrote: > > > > > > > > > > > > On Mon, 19 Feb 2007, wouvlfe wrote: > > > > > >> I simply want to be able to modify the values of some static paths in the > > > > > >> raw html markup > > > > > >> > > > > > >> it seems that there is no way to do it in wicket 1.1 ?? > > > > > >> i started by looking into markup filters > > > > > >> when i wrote my own markup parser, i couldnt find a way to replace > > > > > >> portions > > > > > >> of the raw html > > > > > > > > > > > > It would help to know more specifically what you are trying > > > > > > to achieve. > > > > > > > > > > > > But if you want to change URLs to static resources, you > > > > > > might be better off providing a custom resource locator > > > > > > > > > > > > > > > > > > http://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.html > > > > > > > > > > > > or if paths are produced by wicket components, tweaking your > > > > > > own versions of the components. > > > > > > > > > > > > - Timo > > > > > > > > > > > > -- > > > > > > Timo Rantalaiho > > > > > > Reaktor Innovations Oyhttp://www.ri.fi/ > > > > > > > > > > > > > - > > > > > > 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/there-is-no-way-to-preprocess-raw-markup-in-wicket-1.1--tf3251667.html#a9040495 > > > > > 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 ca
Re: [Wicket-user] Strange Weblogic problem with DataTable - help needed!
In production mode, the toolbars disapers after refreshing the page a number of times. This means that there are no column headers and no paging lnks. The difference compared to development mode is that in development mode a check for unrendred components is performed, so there I get the exception from the first post. Niels igor.vaynberg wrote: > > On 2/21/07, Niels Bo <[EMAIL PROTECTED]> wrote: >> >> >> and deployed the wicket-examples-1.2.5.war, which is in develpment mode > > > and what happens if you deploy it in _production_ mode??? > > -igor > > - > 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/Strange-Weblogic-problem-with-DataTable---help-needed%21-tf3267752.html#a9087039 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] Strange Weblogic problem with DataTable - help needed!
s/production/deployment/ -igor On 2/21/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: On 2/21/07, Niels Bo <[EMAIL PROTECTED]> wrote: > > > and deployed the wicket-examples-1.2.5.war, which is in develpment mode and what happens if you deploy it in _production_ mode??? -igor - 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] Strange Weblogic problem with DataTable - help needed!
On 2/21/07, Niels Bo <[EMAIL PROTECTED]> wrote: and deployed the wicket-examples-1.2.5.war, which is in develpment mode and what happens if you deploy it in _production_ mode??? -igor - 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] Strange Weblogic problem with DataTable - help needed!
Yes I can. I simply downloaded the Wicket examples application http://sourceforge.net/project/showfiles.php?group_id=119783&package_id=138752 http://sourceforge.net/project/showfiles.php?group_id=119783&package_id=138752 and deployed the wicket-examples-1.2.5.war, which is in develpment mode, and the exception in below in first post. I am however *not* able to reproduce it with Sun jvm and/or when a debugger is attached! I am running it in a clean/new/default WL 8.1 SP5 installation where Jrockit is selected as JVM. Niels igor.vaynberg wrote: > > heh, no > > i dont have any of that stuff installed. > > can you reproduce that in an app that is running in deployment mode? > > -igor > > > On 2/21/07, Niels Bo <[EMAIL PROTECTED]> wrote: >> >> >> But did you try with Weblogic 8.1.5+JRockit JVM? >> >> We did not see any problems while developing using Sun JVM. >> >> Niels >> >> igor.vaynberg wrote: >> > >> > i could not reproduce it here >> > >> > http://wicketstuff.org/wicket13/repeater/ >> > >> > -igor >> > >> > >> > On 2/21/07, Niels Bo <[EMAIL PROTECTED]> wrote: >> >> >> >> Hi >> >> >> >> We were ready to put a new wicket application into production, but >> after >> >> deploying it it on our pre-production server with Weblogic >> >> 8.1SP5+JRockit, >> >> we see a really strange and serious problem. >> >> >> >> Initially after deployment, everything works fine, but after >> refreshing >> a >> >> page with a DataTable 10-50 times, the toolbar components added to the >> >> DataTable >> >> (column headers and the paging) disapears! And they disapear on ALL >> pages >> >> using the DataTable component. >> >> No errors in any logs, and otherwise everything works perfect. >> >> Only re-deploying or restaring the server will make the toolbars come >> >> back. >> >> >> >> Then we tried to download and deploy the Wicket-examples-1.2.5.war, >> and >> >> it >> >> also fails in the same way, after refreshing the "DataTable Example" >> >> a number of times. Since it is configured as development mode, it does >> >> show an exception instead of the toolbars jst disapering. >> >> The exception is below, and indicate that the markup has "lost" it >> >> references to the toolbars. >> >> >> >> We can recreate the problem running WL+JRockit locally from IntelliJ, >> but >> >> not when a debugger is attached (probably because optimization is then >> >> turned off). >> >> >> >> The strange thing is that only the toolbar components fail, and that >> it >> >> fails only after showing such a page a number of times. >> >> Also when one page with a DataTable has failed, all the pages in the >> >> application using DataTable component will be in error >> >> >> >> Since we are otherwise ready to go into poduction, we really need a >> >> workaround or a fix, >> >> but changing the application server or JVM will be really difficult >> >> because we are a big company with standardized production servers. >> >> >> >> I will be really really thankfull, if someone can solve this problem! >> >> Niels Bo >> >> Unexpected RuntimeException >> >> >> >> WicketMessage: The component(s) below failed to render. A common >> problem >> >> is that you have added a component in code but forgot to reference it >> in >> >> the markup (thus the component will never be rendered). >> >> >> >> 1. [MarkupContainer [Component id = 1, page = >> >> wicket.examples.repeater.DataTablePage, path = >> >> 98:table:bottomToolbars:1.WebMarkupContainer, isVisible = true, >> >> isVersioned = false]] >> >> >> >> Root cause: >> >> >> >> wicket.WicketRuntimeException: The component(s) below failed to >> render. >> A >> >> common problem is that you have added a component in code but forgot >> to >> >> reference it in the markup (thus the component will never be >> rendered). >> >> >> >> 1. [MarkupContainer [Component id = 1, page = >> >> wicket.examples.repeater.DataTablePage, path = >> >> 98:table:bottomToolbars:1.WebMarkupContainer, isVisible = true, >> >> isVersioned = false]] >> >> >> >> at >> >> wicket.Page.checkRendering(Lwicket/MarkupContainer;)V(Page.java:1109) >> >> at wicket.Page.renderPage()V(Page.java:416) >> >> at >> >> wicket.request.target.component.BookmarkablePageRequestTarget.respond >> (Lwicket/RequestCycle;)V(BookmarkablePageRequestTarget.java:226) >> >> at >> >> wicket.request.compound.DefaultResponseStrategy.respond >> (Lwicket/RequestCycle;)V(DefaultResponseStrategy.java:49) >> >> at >> >> wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond >> (Lwicket/RequestCycle;)V(AbstractCompoundRequestCycleProcessor.java:66) >> >> at wicket.RequestCycle.step()V(Optimized Method) >> >> at wicket.RequestCycle.steps()V(RequestCycle.java:1084) >> >> at wicket.RequestCycle.request()V(RequestCycle.java:448) >> >> at >> >> wicket.protocol.http.WicketServlet.doGet >> (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V(Optimized >> >> Method) >> >> at >> >> java
Re: [Wicket-user] Strange Weblogic problem with DataTable - help needed!
heh, no i dont have any of that stuff installed. can you reproduce that in an app that is running in deployment mode? -igor On 2/21/07, Niels Bo <[EMAIL PROTECTED]> wrote: But did you try with Weblogic 8.1.5+JRockit JVM? We did not see any problems while developing using Sun JVM. Niels igor.vaynberg wrote: > > i could not reproduce it here > > http://wicketstuff.org/wicket13/repeater/ > > -igor > > > On 2/21/07, Niels Bo <[EMAIL PROTECTED]> wrote: >> >> Hi >> >> We were ready to put a new wicket application into production, but after >> deploying it it on our pre-production server with Weblogic >> 8.1SP5+JRockit, >> we see a really strange and serious problem. >> >> Initially after deployment, everything works fine, but after refreshing a >> page with a DataTable 10-50 times, the toolbar components added to the >> DataTable >> (column headers and the paging) disapears! And they disapear on ALL pages >> using the DataTable component. >> No errors in any logs, and otherwise everything works perfect. >> Only re-deploying or restaring the server will make the toolbars come >> back. >> >> Then we tried to download and deploy the Wicket-examples-1.2.5.war, and >> it >> also fails in the same way, after refreshing the "DataTable Example" >> a number of times. Since it is configured as development mode, it does >> show an exception instead of the toolbars jst disapering. >> The exception is below, and indicate that the markup has "lost" it >> references to the toolbars. >> >> We can recreate the problem running WL+JRockit locally from IntelliJ, but >> not when a debugger is attached (probably because optimization is then >> turned off). >> >> The strange thing is that only the toolbar components fail, and that it >> fails only after showing such a page a number of times. >> Also when one page with a DataTable has failed, all the pages in the >> application using DataTable component will be in error >> >> Since we are otherwise ready to go into poduction, we really need a >> workaround or a fix, >> but changing the application server or JVM will be really difficult >> because we are a big company with standardized production servers. >> >> I will be really really thankfull, if someone can solve this problem! >> Niels Bo >> Unexpected RuntimeException >> >> WicketMessage: The component(s) below failed to render. A common problem >> is that you have added a component in code but forgot to reference it in >> the markup (thus the component will never be rendered). >> >> 1. [MarkupContainer [Component id = 1, page = >> wicket.examples.repeater.DataTablePage, path = >> 98:table:bottomToolbars:1.WebMarkupContainer, isVisible = true, >> isVersioned = false]] >> >> Root cause: >> >> wicket.WicketRuntimeException: The component(s) below failed to render. A >> common problem is that you have added a component in code but forgot to >> reference it in the markup (thus the component will never be rendered). >> >> 1. [MarkupContainer [Component id = 1, page = >> wicket.examples.repeater.DataTablePage, path = >> 98:table:bottomToolbars:1.WebMarkupContainer, isVisible = true, >> isVersioned = false]] >> >> at >> wicket.Page.checkRendering(Lwicket/MarkupContainer;)V(Page.java:1109) >> at wicket.Page.renderPage()V(Page.java:416) >> at >> wicket.request.target.component.BookmarkablePageRequestTarget.respond (Lwicket/RequestCycle;)V(BookmarkablePageRequestTarget.java:226) >> at >> wicket.request.compound.DefaultResponseStrategy.respond (Lwicket/RequestCycle;)V(DefaultResponseStrategy.java:49) >> at >> wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond (Lwicket/RequestCycle;)V(AbstractCompoundRequestCycleProcessor.java:66) >> at wicket.RequestCycle.step()V(Optimized Method) >> at wicket.RequestCycle.steps()V(RequestCycle.java:1084) >> at wicket.RequestCycle.request()V(RequestCycle.java:448) >> at >> wicket.protocol.http.WicketServlet.doGet (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V(Optimized >> Method) >> at >> javax.servlet.http.HttpServlet.service (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V(Optimized >> Method) >> at >> javax.servlet.http.HttpServlet.service (Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(Optimized >> Method) >> at >> weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run ()Ljava/lang/Object;(ServletStubImpl.java:1072) >> at >> weblogic.servlet.internal.ServletStubImpl.invokeServlet (Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Lweblogic/servlet/internal/FilterChainImpl;)V(Optimized >> Method) >> at >> weblogic.servlet.internal.ServletStubImpl.invokeServlet (Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(Optimized >> Method) >> at >> weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run ()Ljava/lang/Object;(Optimized >> Method) >> at >> weblogic.s
Re: [Wicket-user] ExceptionErrorPage throws java.lang.NoClassDefFoundError
Hmm I had a similar problem with the wicket 2 snapshot yesterday. I deleted the wicket folder and did a clean checkout, that solved it for me. Andrew Klochkov wrote: > > I got the following exception when wicket tries to build > ExceptionErrorPage, I'm using wicket 1.3 fresh from SVN. > > 15:50:11.468 WARN!! Error for /quickstart/app/ > java.lang.NoClassDefFoundError: > Lwicket/protocol/http/request/urlcompressing/UrlCompressor; > at java.lang.Class.getDeclaredFields0(Native Method) > at java.lang.Class.privateGetDeclaredFields(Unknown Source) > at java.lang.Class.getDeclaredField(Unknown Source) > at java.io.ObjectStreamClass.getDeclaredSUID(Unknown Source) > at java.io.ObjectStreamClass.access$700(Unknown Source) > at java.io.ObjectStreamClass$2.run(Unknown Source) > at java.security.AccessController.doPrivileged(Native Method) > at java.io.ObjectStreamClass.(Unknown Source) > at java.io.ObjectStreamClass.lookup(Unknown Source) > at java.io.ObjectStreamClass.(Unknown Source) > at java.io.ObjectStreamClass.lookup(Unknown Source) > at java.io.ObjectOutputStream.writeObject0(Unknown Source) > at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) > at java.io.ObjectOutputStream.writeSerialData(Unknown Source) > at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) > at java.io.ObjectOutputStream.writeObject0(Unknown Source) > at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) > at java.io.ObjectOutputStream.writeSerialData(Unknown Source) > at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) > at java.io.ObjectOutputStream.writeObject0(Unknown Source) > at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) > at java.io.ObjectOutputStream.writeSerialData(Unknown Source) > at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) > at java.io.ObjectOutputStream.writeObject0(Unknown Source) > at java.io.ObjectOutputStream.writeObject(Unknown Source) > at wicket.util.lang.Objects.sizeof(Objects.java:1094) > at wicket.Component.getSizeInBytes(Component.java:1104) > at wicket.markup.html.debug.PageView$3.component(PageView.java:140) > at wicket.MarkupContainer.visitChildren(MarkupContainer.java:746) > at wicket.MarkupContainer.visitChildren(MarkupContainer.java:761) > at wicket.MarkupContainer.visitChildren(MarkupContainer.java:786) > at > wicket.markup.html.debug.PageView.getComponentData(PageView.java:121) > at wicket.markup.html.debug.PageView.(PageView.java:79) > at > wicket.markup.html.pages.ExceptionErrorPage.(ExceptionErrorPage.java:92) > at > wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:154) > at wicket.RequestCycle.step(RequestCycle.java:1082) > at wicket.RequestCycle.steps(RequestCycle.java:1116) > at wicket.RequestCycle.request(RequestCycle.java:456) > at wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:263) > at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:126) > > -- > Andrew Klochkov > > > - > 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/ExceptionErrorPage-throws-java.lang.NoClassDefFoundError-tf3266532.html#a9086404 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] Could this be a bug in Wicket 2?
I've posted this as a reply to another thread but I think it deserves a thread of its own. What happens is that I'd like to show and hide a label by setting switch between setVisible(true) and setVisible(false) when clicking on a AjaxFallbackLink. I've wrapped the label inside a WebMarkupContainer to make this doable. Here is the code: public BasePage() { final WebMarkupContainer table = new WebMarkupContainer(this, "tableId"); table.setOutputMarkupId(true); final Label label = new Label(table, "labelId", "This is a label"); label.setOutputMarkupId(true); label.setVisible(false); new AjaxFallbackLink(this, "linkId") { private static final long serialVersionUID = 5523627214368899839L; @Override public void onClick(AjaxRequestTarget target) { final boolean visible = label.isVisible(); label.setVisible(!visible); target.addComponent(table); } }; } When I click on the AjaxFallbackLink the first time everything is fine, the label (with wicket id "labelId") gets visible. But when I click the link again to make it invisible, I get a NullPointerException when executing label.setVisible(..). Debugging down into the wicket source code tells me that the NullPointerException occurs on 327 in class Page, when it tries to execute "versionManager.componentStateChanging(change)". However versionManager is null. Why is this? Is this a bug or am I doing something wrong? Thanks -- View this message in context: http://www.nabble.com/Could-this-be-a-bug-in-Wicket-2--tf3268456.html#a9086303 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] Strange Weblogic problem with DataTable - help needed!
But did you try with Weblogic 8.1.5+JRockit JVM? We did not see any problems while developing using Sun JVM. Niels igor.vaynberg wrote: > > i could not reproduce it here > > http://wicketstuff.org/wicket13/repeater/ > > -igor > > > On 2/21/07, Niels Bo <[EMAIL PROTECTED]> wrote: >> >> Hi >> >> We were ready to put a new wicket application into production, but after >> deploying it it on our pre-production server with Weblogic >> 8.1SP5+JRockit, >> we see a really strange and serious problem. >> >> Initially after deployment, everything works fine, but after refreshing a >> page with a DataTable 10-50 times, the toolbar components added to the >> DataTable >> (column headers and the paging) disapears! And they disapear on ALL pages >> using the DataTable component. >> No errors in any logs, and otherwise everything works perfect. >> Only re-deploying or restaring the server will make the toolbars come >> back. >> >> Then we tried to download and deploy the Wicket-examples-1.2.5.war, and >> it >> also fails in the same way, after refreshing the "DataTable Example" >> a number of times. Since it is configured as development mode, it does >> show an exception instead of the toolbars jst disapering. >> The exception is below, and indicate that the markup has "lost" it >> references to the toolbars. >> >> We can recreate the problem running WL+JRockit locally from IntelliJ, but >> not when a debugger is attached (probably because optimization is then >> turned off). >> >> The strange thing is that only the toolbar components fail, and that it >> fails only after showing such a page a number of times. >> Also when one page with a DataTable has failed, all the pages in the >> application using DataTable component will be in error >> >> Since we are otherwise ready to go into poduction, we really need a >> workaround or a fix, >> but changing the application server or JVM will be really difficult >> because we are a big company with standardized production servers. >> >> I will be really really thankfull, if someone can solve this problem! >> Niels Bo >> Unexpected RuntimeException >> >> WicketMessage: The component(s) below failed to render. A common problem >> is that you have added a component in code but forgot to reference it in >> the markup (thus the component will never be rendered). >> >> 1. [MarkupContainer [Component id = 1, page = >> wicket.examples.repeater.DataTablePage, path = >> 98:table:bottomToolbars:1.WebMarkupContainer, isVisible = true, >> isVersioned = false]] >> >> Root cause: >> >> wicket.WicketRuntimeException: The component(s) below failed to render. A >> common problem is that you have added a component in code but forgot to >> reference it in the markup (thus the component will never be rendered). >> >> 1. [MarkupContainer [Component id = 1, page = >> wicket.examples.repeater.DataTablePage, path = >> 98:table:bottomToolbars:1.WebMarkupContainer, isVisible = true, >> isVersioned = false]] >> >> at >> wicket.Page.checkRendering(Lwicket/MarkupContainer;)V(Page.java:1109) >> at wicket.Page.renderPage()V(Page.java:416) >> at >> wicket.request.target.component.BookmarkablePageRequestTarget.respond(Lwicket/RequestCycle;)V(BookmarkablePageRequestTarget.java:226) >> at >> wicket.request.compound.DefaultResponseStrategy.respond(Lwicket/RequestCycle;)V(DefaultResponseStrategy.java:49) >> at >> wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(Lwicket/RequestCycle;)V(AbstractCompoundRequestCycleProcessor.java:66) >> at wicket.RequestCycle.step()V(Optimized Method) >> at wicket.RequestCycle.steps()V(RequestCycle.java:1084) >> at wicket.RequestCycle.request()V(RequestCycle.java:448) >> at >> wicket.protocol.http.WicketServlet.doGet(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V(Optimized >> Method) >> at >> javax.servlet.http.HttpServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V(Optimized >> Method) >> at >> javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(Optimized >> Method) >> at >> weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava/lang/Object;(ServletStubImpl.java:1072) >> at >> weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Lweblogic/servlet/internal/FilterChainImpl;)V(Optimized >> Method) >> at >> weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(Optimized >> Method) >> at >> weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run()Ljava/lang/Object;(Optimized >> Method) >> at >> weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic/security/subject/AbstractSubject;Ljava/security/PrivilegedAction;)Ljava/lang/Object;(Optimized >> Method) >> at >> weblogic
Re: [Wicket-user] Strange Weblogic problem with DataTable - help needed!
Yes, it can be reproduced by the "wicket examples" application from www.wicket-library.com. Of cause we run our application in production mode, but the wicket-examples application is in development mode when downloaded, so it makes no effect on the error other than in development mode the below exception is shown instead of the toolbars just disapering. Niels Eelco Hillenius wrote: > > Do you think you can isolate the case and have it reproducible in a > test case or quickstart project? > > I'm also wondering why you run the application in development mode. It > doesn't run those render checks when you're in production mode. > > Eelco > > > On 2/21/07, Niels Bo <[EMAIL PROTECTED]> wrote: >> Hi >> >> We were ready to put a new wicket application into production, but after >> deploying it it on our pre-production server with Weblogic 8.1 >> SP5+JRockit, >> we see a really strange and serious problem. >> >> Initially after deployment, everything works fine, but after refreshing a >> page with a DataTable 10-50 times, the toolbar components added to the >> DataTable >> (column headers and the paging) disapears! And they disapear on ALL >> pages >> using the DataTable component. >> No errors in any logs, and otherwise everything works perfect. >> Only re-deploying or restaring the server will make the toolbars come >> back. >> >> Then we tried to download and deploy the Wicket-examples-1.2.5.war, and >> it >> also fails in the same way, after refreshing the "DataTable Example" >> a number of times. Since it is configured as development mode, it does >> show >> an exception instead of the toolbars jst disapering. >> The exception is below, and indicate that the markup has "lost" it >> references to the toolbars. >> >> We can recreate the problem running WL+JRockit locally from IntelliJ, >> but >> not when a debugger is attached (probably because optimization is then >> turned off). >> >> The strange thing is that only the toolbar components fail, and that it >> fails only after showing such a page a number of times. >> Also when one page with a DataTable has failed, all the pages in the >> application using DataTable component will be in error >> >> Since we are otherwise ready to go into poduction, we really need a >> workaround or a fix, >> but changing the application server or JVM will be really difficult >> because >> we are a big company with standardized production servers. >> >> I will be really really thankfull, if someone can solve this problem! >> Niels Bo >> Unexpected RuntimeException >> >> WicketMessage: The component(s) below failed to render. A common problem >> is >> that you have added a component in code but forgot to reference it in the >> markup (thus the component will never be rendered). >> >> 1. [MarkupContainer [Component id = 1, page = >> wicket.examples.repeater.DataTablePage, path = >> 98:table:bottomToolbars:1.WebMarkupContainer, isVisible = true, >> isVersioned >> = false]] >> >> Root cause: >> >> wicket.WicketRuntimeException: The component(s) below failed to render. A >> common problem is that you have added a component in code but forgot to >> reference it in the markup (thus the component will never be rendered). >> >> 1. [MarkupContainer [Component id = 1, page = >> wicket.examples.repeater.DataTablePage, path = >> 98:table:bottomToolbars:1.WebMarkupContainer, isVisible = true, >> isVersioned >> = false]] >> >> at wicket.Page.checkRendering(Lwicket/MarkupContainer;)V(Page.java:1109) >> at wicket.Page.renderPage()V(Page.java:416) >> at >> wicket.request.target.component.BookmarkablePageRequestTarget.respond(Lwicket/RequestCycle;)V(BookmarkablePageRequestTarget.java:226) >> at >> wicket.request.compound.DefaultResponseStrategy.respond(Lwicket/RequestCycle;)V(DefaultResponseStrategy.java:49) >> at >> wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(Lwicket/RequestCycle;)V(AbstractCompoundRequestCycleProcessor.java:66) >> at wicket.RequestCycle.step()V(Optimized Method) >> at wicket.RequestCycle.steps()V(RequestCycle.java:1084) >> at wicket.RequestCycle.request()V(RequestCycle.java:448) >> at >> wicket.protocol.http.WicketServlet.doGet(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V(Optimized >> Method) >> at >> javax.servlet.http.HttpServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V(Optimized >> Method) >> at >> javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(Optimized >> Method) >> at >> weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava/lang/Object;(ServletStubImpl.java:1072) >> at >> weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Lweblogic/servlet/internal/FilterChainImpl;)V(Optimized >> Method) >> at >> weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax/servlet/ServletRequest;Ljava
Re: [Wicket-user] Strange Weblogic problem with DataTable - help needed!
i could not reproduce it here http://wicketstuff.org/wicket13/repeater/ -igor On 2/21/07, Niels Bo <[EMAIL PROTECTED]> wrote: Hi We were ready to put a new wicket application into production, but after deploying it it on our pre-production server with Weblogic 8.1SP5+JRockit, we see a really strange and serious problem. Initially after deployment, everything works fine, but after refreshing a page with a DataTable 10-50 times, the toolbar components added to the DataTable (column headers and the paging) disapears! And they disapear on ALL pages using the DataTable component. No errors in any logs, and otherwise everything works perfect. Only re-deploying or restaring the server will make the toolbars come back. Then we tried to download and deploy the Wicket-examples-1.2.5.war, and it also fails in the same way, after refreshing the "DataTable Example" a number of times. Since it is configured as development mode, it does show an exception instead of the toolbars jst disapering. The exception is below, and indicate that the markup has "lost" it references to the toolbars. We can recreate the problem running WL+JRockit locally from IntelliJ, but not when a debugger is attached (probably because optimization is then turned off). The strange thing is that only the toolbar components fail, and that it fails only after showing such a page a number of times. Also when one page with a DataTable has failed, all the pages in the application using DataTable component will be in error Since we are otherwise ready to go into poduction, we really need a workaround or a fix, but changing the application server or JVM will be really difficult because we are a big company with standardized production servers. I will be really really thankfull, if someone can solve this problem! Niels Bo Unexpected RuntimeException WicketMessage: The component(s) below failed to render. A common problem is that you have added a component in code but forgot to reference it in the markup (thus the component will never be rendered). 1. [MarkupContainer [Component id = 1, page = wicket.examples.repeater.DataTablePage, path = 98:table:bottomToolbars:1.WebMarkupContainer, isVisible = true, isVersioned = false]] Root cause: wicket.WicketRuntimeException: The component(s) below failed to render. A common problem is that you have added a component in code but forgot to reference it in the markup (thus the component will never be rendered). 1. [MarkupContainer [Component id = 1, page = wicket.examples.repeater.DataTablePage, path = 98:table:bottomToolbars:1.WebMarkupContainer, isVisible = true, isVersioned = false]] at wicket.Page.checkRendering(Lwicket/MarkupContainer;)V(Page.java:1109) at wicket.Page.renderPage()V(Page.java:416) at wicket.request.target.component.BookmarkablePageRequestTarget.respond(Lwicket/RequestCycle;)V(BookmarkablePageRequestTarget.java:226) at wicket.request.compound.DefaultResponseStrategy.respond(Lwicket/RequestCycle;)V(DefaultResponseStrategy.java:49) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(Lwicket/RequestCycle;)V(AbstractCompoundRequestCycleProcessor.java:66) at wicket.RequestCycle.step()V(Optimized Method) at wicket.RequestCycle.steps()V(RequestCycle.java:1084) at wicket.RequestCycle.request()V(RequestCycle.java:448) at wicket.protocol.http.WicketServlet.doGet(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V(Optimized Method) at javax.servlet.http.HttpServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V(Optimized Method) at javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(Optimized Method) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava/lang/Object;(ServletStubImpl.java:1072) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Lweblogic/servlet/internal/FilterChainImpl;)V(Optimized Method) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(Optimized Method) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run()Ljava/lang/Object;(Optimized Method) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic/security/subject/AbstractSubject;Ljava/security/PrivilegedAction;)Ljava/lang/Object;(Optimized Method) at weblogic.security.service.SecurityManager.runAs(Lweblogic/security/acl/internal/AuthenticatedSubject;Lweblogic/security/acl/internal/AuthenticatedSubject;Ljava/security/PrivilegedAction;)Ljava/lang/Object;(Optimized Method) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogic/servlet/internal/ServletRequestImpl;Lweblogic/servlet/internal/ServletResponseImpl;)V(Optimized Method) at web
Re: [Wicket-user] Dumb question about serialization
If you don't need back button support at all, just have all your pages (or probably some base page) override isVersioned (or use setVersioned) and let it return false. Wicket will not record changes then, and your URLs between what otherwise would have been versions keep stable. Also, set IPageSettings#setMaxPageVersions to 1 and it is best to use the HttpSessionStore. Eelco On 2/21/07, Jesse Barnum <[EMAIL PROTECTED]> wrote: > Sorry for the dumb question, but I don't see any overview > documentation talking about models and serialization in the API. Is > there any way to not have to serialize objects in a model? I don't > need support for back button / undo / etc. I have some objects that > cannot be serialized which need to be displayed in a ListView, and > when I try to modify the contents of the ListView, it causes > exceptions because it automatically tries to serialize everything > which I call modelChanging(). > > Is there a setting I can change somewhere to run everything in memory? > > --Jesse Barnum, President, 360Works > http://www.360works.com > (770) 234-9293 > > > > - > 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] wicket 2.0: setting default locale
Sorry about that, that was a slip. We recently had a change that would allow you to pin the session's locale in the constructor. Setting the locale afterwards should have been removed. It's fixed in trunk now. Eelco On 2/21/07, Harald Gruber <[EMAIL PROTECTED]> wrote: > hi all, > > any ideas how to set a default locale for sessions (wicket 2.0 > snapshot)? i support only a limited amount of locales in my app and need > to get some localized data from my database using the sessions locale. > > my first thought was to set the locale in my websession's constructor. > but it gets overwritten in WebApplication.getSession again > > > if (session == null) > { > // Create session using session factory > session = setSessionFactory().newSession(request); > // Set the client Locale for this session > session.setLocale(request.getLocale()); > } > > as in the Session class constructor the locale is set anyways, is there > a special reason to set the locale again right after the creation? > > protected Session(final Application application, Request request) > { > this.locale = request.getLocale(); > if (locale == null) > { > throw new IllegalArgumentException("Parameter 'locale' must > not be null"); > } > } > > thanks for your help! > h. > > - > 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] Strange Weblogic problem with DataTable - help needed!
Do you think you can isolate the case and have it reproducible in a test case or quickstart project? I'm also wondering why you run the application in development mode. It doesn't run those render checks when you're in production mode. Eelco On 2/21/07, Niels Bo <[EMAIL PROTECTED]> wrote: > Hi > > We were ready to put a new wicket application into production, but after > deploying it it on our pre-production server with Weblogic 8.1 SP5+JRockit, > we see a really strange and serious problem. > > Initially after deployment, everything works fine, but after refreshing a > page with a DataTable 10-50 times, the toolbar components added to the > DataTable > (column headers and the paging) disapears! And they disapear on ALL pages > using the DataTable component. > No errors in any logs, and otherwise everything works perfect. > Only re-deploying or restaring the server will make the toolbars come back. > > Then we tried to download and deploy the Wicket-examples-1.2.5.war, and it > also fails in the same way, after refreshing the "DataTable Example" > a number of times. Since it is configured as development mode, it does show > an exception instead of the toolbars jst disapering. > The exception is below, and indicate that the markup has "lost" it > references to the toolbars. > > We can recreate the problem running WL+JRockit locally from IntelliJ, but > not when a debugger is attached (probably because optimization is then > turned off). > > The strange thing is that only the toolbar components fail, and that it > fails only after showing such a page a number of times. > Also when one page with a DataTable has failed, all the pages in the > application using DataTable component will be in error > > Since we are otherwise ready to go into poduction, we really need a > workaround or a fix, > but changing the application server or JVM will be really difficult because > we are a big company with standardized production servers. > > I will be really really thankfull, if someone can solve this problem! > Niels Bo > Unexpected RuntimeException > > WicketMessage: The component(s) below failed to render. A common problem is > that you have added a component in code but forgot to reference it in the > markup (thus the component will never be rendered). > > 1. [MarkupContainer [Component id = 1, page = > wicket.examples.repeater.DataTablePage, path = > 98:table:bottomToolbars:1.WebMarkupContainer, isVisible = true, isVersioned > = false]] > > Root cause: > > wicket.WicketRuntimeException: The component(s) below failed to render. A > common problem is that you have added a component in code but forgot to > reference it in the markup (thus the component will never be rendered). > > 1. [MarkupContainer [Component id = 1, page = > wicket.examples.repeater.DataTablePage, path = > 98:table:bottomToolbars:1.WebMarkupContainer, isVisible = true, isVersioned > = false]] > > at wicket.Page.checkRendering(Lwicket/MarkupContainer;)V(Page.java:1109) > at wicket.Page.renderPage()V(Page.java:416) > at > wicket.request.target.component.BookmarkablePageRequestTarget.respond(Lwicket/RequestCycle;)V(BookmarkablePageRequestTarget.java:226) > at > wicket.request.compound.DefaultResponseStrategy.respond(Lwicket/RequestCycle;)V(DefaultResponseStrategy.java:49) > at > wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(Lwicket/RequestCycle;)V(AbstractCompoundRequestCycleProcessor.java:66) > at wicket.RequestCycle.step()V(Optimized Method) > at wicket.RequestCycle.steps()V(RequestCycle.java:1084) > at wicket.RequestCycle.request()V(RequestCycle.java:448) > at > wicket.protocol.http.WicketServlet.doGet(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V(Optimized > Method) > at > javax.servlet.http.HttpServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V(Optimized > Method) > at > javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(Optimized > Method) > at > weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava/lang/Object;(ServletStubImpl.java:1072) > at > weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Lweblogic/servlet/internal/FilterChainImpl;)V(Optimized > Method) > at > weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(Optimized > Method) > at > weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run()Ljava/lang/Object;(Optimized > Method) > at > weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic/security/subject/AbstractSubject;Ljava/security/PrivilegedAction;)Ljava/lang/Object;(Optimized > Method) > at > weblogic.security.service.SecurityManager.runAs(Lweblogic/security/acl/internal/AuthenticatedSubject;Lweblogic/security/acl/internal/AuthenticatedSubject;Ljava/security
Re: [Wicket-user] Navigation between pages
On 2/21/07, Scott Swank <[EMAIL PROTECTED]> wrote: > Nino, > > Wouldn't that leave all of the pages in session? I.e. you expect to > have 7 pages in history, but 7 points to 8, which points to 9, etc. Yep, it would. This pattern works good for when you have dialogue style pages (gather some info and then return) that could be accessed from a number of different pages (so where to navigate back to is something you want to keep flexible). But the price for the ease is that you'll keep a reference to the page to get back to thus preventing it to be garbage collected. 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] Navigation between pages
Nino, Wouldn't that leave all of the pages in session? I.e. you expect to have 7 pages in history, but 7 points to 8, which points to 9, etc. Scott On 2/21/07, Nino Wael <[EMAIL PROTECTED]> wrote: > You can also employ an easy way to go back to the previous page by passing > the current page to the next page. It's been pretty useful for us. Or even > telling the page which page to goto next. > > Small pseudo snipplet: > > > public class mypage extends WebPage { > > public mypage(final Page Previous, final Page next, Model model) { > > on next button: setresponse(next); > > on previous: setresponse(previous); > > } > > Regards Nino > > > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gohan > Sent: 21. februar 2007 09:36 > To: wicket-user@lists.sourceforge.net > Subject: Re: [Wicket-user] Navigation between pages > > > Well you could just use setResponsePage(new YourWebPage(..)); > > > Peter Klassen wrote: > > > > Hi all, > > > > just one more trivial question; ;-) > > > > which possibilities do i got to navigate from one Webpage to another after > > an event is triggered? > > > > Thx in advance! Peter > > > > > > > > -- > View this message in context: > http://www.nabble.com/Navigation-between-pages-tf3265417.html#a9077111 > 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 > -- Scott Swank reformed mathematician - 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 Wicket with JMeter
Hi! I've also been making JMeter tests over Wicket applications. I had to use the HTTP Cookie Manager. But still sometimes I found strange behaviour, like it sometimes stopped working, I recorded the same test again and it worked. The problem always appeared with a submit (POST). Not much help, but... > Date: Wed, 14 Feb 2007 10:18:42 +0100 > From: "Nino Wael" <[EMAIL PROTECTED]> > Subject: [Wicket-user] Testing Wicket with JMeter > To: > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="us-ascii" > > Hi > > > > Im trying to test an application with jmeter , I keep getting page expired > when testing. I have a cookie manager and save jsessionid, are there any > thing else I should be aware of in that direction? > > > > The application are rather simple although there are some ajax calls. The > test fails on the first submit with a page expired.. Any ideas on what im > doing wrong ? Please ask if you need more information... > > Nino Wael - 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] Strage Weblogic problem with DataTable - help needed!
Hi We were ready to put a new wicket application into production, but after deploying it it on our pre-production server with Weblogic 8.1 SP5+JRockit, we see a really strange and serious problem. Initially after deployment, everything works fine, but after refreshing a page with a DataTable 10-50 times, the toolbar components added to the DataTable (column headers and the paging) disapears! And they disapear on ALL pages using the DataTable component. No errors in any logs, and otherwise everything works perfect. Only re-deploying or restaring the server will make the toolbars come back. Then we tried to download and deploy the Wicket-examples-1.2.5.war, and it also fails in the same way, after refreshing the "DataTable Example" a number of times. Since it is configured as development mode, it does show an exception instead of the toolbars jst disapering. The exception is below, and indicate that the markup has "lost" it references to the toolbars. We can recreate the problem running WL+JRockit locally from IntelliJ, but not when a debugger is attached (probably because optimization is then turned off). The strange thing is that only the toolbar components fail, and that it fails only after showing such a page a number of times. Also when one page with a DataTable has failed, all the pages in the application using DataTable component will be in error Since we are otherwise ready to go into poduction, we really need a workaround or a fix, but changing the application server or JVM will be really difficult because we are a big company with standardized production servers. I will be really really thankfull, if someone can solve this problem! Niels Bo Unexpected RuntimeException WicketMessage: The component(s) below failed to render. A common problem is that you have added a component in code but forgot to reference it in the markup (thus the component will never be rendered). 1. [MarkupContainer [Component id = 1, page = wicket.examples.repeater.DataTablePage, path = 98:table:bottomToolbars:1.WebMarkupContainer, isVisible = true, isVersioned = false]] Root cause: wicket.WicketRuntimeException: The component(s) below failed to render. A common problem is that you have added a component in code but forgot to reference it in the markup (thus the component will never be rendered). 1. [MarkupContainer [Component id = 1, page = wicket.examples.repeater.DataTablePage, path = 98:table:bottomToolbars:1.WebMarkupContainer, isVisible = true, isVersioned = false]] at wicket.Page.checkRendering(Lwicket/MarkupContainer;)V(Page.java:1109) at wicket.Page.renderPage()V(Page.java:416) at wicket.request.target.component.BookmarkablePageRequestTarget.respond(Lwicket/RequestCycle;)V(BookmarkablePageRequestTarget.java:226) at wicket.request.compound.DefaultResponseStrategy.respond(Lwicket/RequestCycle;)V(DefaultResponseStrategy.java:49) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(Lwicket/RequestCycle;)V(AbstractCompoundRequestCycleProcessor.java:66) at wicket.RequestCycle.step()V(Optimized Method) at wicket.RequestCycle.steps()V(RequestCycle.java:1084) at wicket.RequestCycle.request()V(RequestCycle.java:448) at wicket.protocol.http.WicketServlet.doGet(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V(Optimized Method) at javax.servlet.http.HttpServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V(Optimized Method) at javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(Optimized Method) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava/lang/Object;(ServletStubImpl.java:1072) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Lweblogic/servlet/internal/FilterChainImpl;)V(Optimized Method) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(Optimized Method) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run()Ljava/lang/Object;(Optimized Method) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic/security/subject/AbstractSubject;Ljava/security/PrivilegedAction;)Ljava/lang/Object;(Optimized Method) at weblogic.security.service.SecurityManager.runAs(Lweblogic/security/acl/internal/AuthenticatedSubject;Lweblogic/security/acl/internal/AuthenticatedSubject;Ljava/security/PrivilegedAction;)Ljava/lang/Object;(Optimized Method) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogic/servlet/internal/ServletRequestImpl;Lweblogic/servlet/internal/ServletResponseImpl;)V(Optimized Method) at weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic/kernel/ExecuteThread;)V(Optimized Method) at weblogic.kernel.ExecuteThread.execute(Lwebl
[Wicket-user] Dumb question about serialization
Sorry for the dumb question, but I don't see any overview documentation talking about models and serialization in the API. Is there any way to not have to serialize objects in a model? I don't need support for back button / undo / etc. I have some objects that cannot be serialized which need to be displayed in a ListView, and when I try to modify the contents of the ListView, it causes exceptions because it automatically tries to serialize everything which I call modelChanging(). Is there a setting I can change somewhere to run everything in memory? --Jesse Barnum, President, 360Works http://www.360works.com (770) 234-9293 - 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] AutoCompleteTextField issue (wicket 1.2.3)
The AutoCompleteTextField does not invoke the functions registered by Wicket.Ajax.registerPostCallHandler() after the ajax request has been completed. Is someone else experiencing the same problem? Thank you, Paolo - 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] wicket 2.0: setting default locale
hi all, any ideas how to set a default locale for sessions (wicket 2.0 snapshot)? i support only a limited amount of locales in my app and need to get some localized data from my database using the sessions locale. my first thought was to set the locale in my websession's constructor. but it gets overwritten in WebApplication.getSession again if (session == null) { // Create session using session factory session = setSessionFactory().newSession(request); // Set the client Locale for this session session.setLocale(request.getLocale()); } as in the Session class constructor the locale is set anyways, is there a special reason to set the locale again right after the creation? protected Session(final Application application, Request request) { this.locale = request.getLocale(); if (locale == null) { throw new IllegalArgumentException("Parameter 'locale' must not be null"); } } thanks for your help! h. - 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] Session is valid?
use for a login or landing page stateless links and forms. (only possible in 1.3/2.0) what do you mean with session is still valid? if you are in a request the session will always be valid or maybe if you have a really long request the session could be invalidated by the container beneath your feet.. but i dont think there is a method on the HttpSession like isValid() The wicket session sessionInvalidated is only set by you if you call invalidate() johan On 2/21/07, Robert . <[EMAIL PROTECTED]> wrote: Hi, Is there a way to see if a session is still valid. I could only find the private sessionInvalidated so that's not available. One other related question is how to deal with a case like this: A user loads the login page and goes away for a while. Later he comes back and tries to login. However at that point the session has expired and receives this message when trying to log in. Is there some way to prevent this from happening? Robert - 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] ExceptionErrorPage throws java.lang.NoClassDefFoundError
I got the following exception when wicket tries to build ExceptionErrorPage, I'm using wicket 1.3 fresh from SVN. 15:50:11.468 WARN!! Error for /quickstart/app/ java.lang.NoClassDefFoundError: Lwicket/protocol/http/request/urlcompressing/UrlCompressor; at java.lang.Class.getDeclaredFields0(Native Method) at java.lang.Class.privateGetDeclaredFields(Unknown Source) at java.lang.Class.getDeclaredField(Unknown Source) at java.io.ObjectStreamClass.getDeclaredSUID(Unknown Source) at java.io.ObjectStreamClass.access$700(Unknown Source) at java.io.ObjectStreamClass$2.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.io.ObjectStreamClass.(Unknown Source) at java.io.ObjectStreamClass.lookup(Unknown Source) at java.io.ObjectStreamClass.(Unknown Source) at java.io.ObjectStreamClass.lookup(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at wicket.util.lang.Objects.sizeof(Objects.java:1094) at wicket.Component.getSizeInBytes(Component.java:1104) at wicket.markup.html.debug.PageView$3.component(PageView.java:140) at wicket.MarkupContainer.visitChildren(MarkupContainer.java:746) at wicket.MarkupContainer.visitChildren(MarkupContainer.java:761) at wicket.MarkupContainer.visitChildren(MarkupContainer.java:786) at wicket.markup.html.debug.PageView.getComponentData(PageView.java:121) at wicket.markup.html.debug.PageView.(PageView.java:79) at wicket.markup.html.pages.ExceptionErrorPage.(ExceptionErrorPage.java:92) at wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:154) at wicket.RequestCycle.step(RequestCycle.java:1082) at wicket.RequestCycle.steps(RequestCycle.java:1116) at wicket.RequestCycle.request(RequestCycle.java:456) at wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:263) at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:126) -- Andrew Klochkov - 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] Session is valid?
Hi, Is there a way to see if a session is still valid. I could only find the private sessionInvalidated so that's not available. One other related question is how to deal with a case like this: A user loads the login page and goes away for a while. Later he comes back and tries to login. However at that point the session has expired and receives this message when trying to log in. Is there some way to prevent this from happening? Robert - 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] Navigation between pages
You can also employ an easy way to go back to the previous page by passing the current page to the next page. It's been pretty useful for us. Or even telling the page which page to goto next. Small pseudo snipplet: public class mypage extends WebPage { public mypage(final Page Previous, final Page next, Model model) { on next button: setresponse(next); on previous: setresponse(previous); } Regards Nino -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gohan Sent: 21. februar 2007 09:36 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Navigation between pages Well you could just use setResponsePage(new YourWebPage(..)); Peter Klassen wrote: > > Hi all, > > just one more trivial question; ;-) > > which possibilities do i got to navigate from one Webpage to another after > an event is triggered? > > Thx in advance! Peter > > > -- View this message in context: http://www.nabble.com/Navigation-between-pages-tf3265417.html#a9077111 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] Why does setResponse sometimes does notResponse?
On 2/21/07, manu <[EMAIL PROTECTED]> wrote: > So, the fix allows using setResponse in constructions, should we the > users understand that? Sorry, because the thread extended a little bit > confusing at the end... :/ No problem :) Yes, you can just use setResponse in the constructor now. See http://issues.apache.org/jira/browse/WICKET-298 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] Why does setResponse sometimes does notResponse?
So, the fix allows using setResponse in constructions, should we the users understand that? Sorry, because the thread extended a little bit confusing at the end... :/ On 2/20/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > On 2/20/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > umm...that was a joke :) > > Bastard! :) > > - > 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 texttemplates or some other stuff?
> I have some pages that need to use specific stylesheets, per user. How would > you suggest I solve this? I've been thinking of using the > packagedtexttemplates for this. That should work. You probably could get by using simple variable substitution like is supported. If you need to do more complex stuff - working with conditionals and loops etc - you could let it be processed by e.g. Velocity in the same fashion variable substitution is done now. But to me it seems unlikely you ever really would need that. > Im thinking that I could store the custom > CSS In either a database or some xml structure, would that be okay because > im having some trouble seeing how I can apply the sharedressource decorator > to the template I don't know... why from a database or xml file when you can just have the raw (non-interpolated) css file with your sources, served as a package resource, and then interpolate with the variables that are specific for the user (and e.g. come from a database)? But I guess if you want, you could directly extend TextTemplate and provide your getString implementation anyway you want it. > this is 1.2.3 extensions though? I think it is. 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] java.util.ConcurrentModificationException
that looks the problem. you are adding resource loaders in a page constructor?? why? You should do that in the Application.init() johan On 2/20/07, Konstantin <[EMAIL PROTECTED]> wrote: Code: private void initKeyMap(){ for (String aKeyMap : keyMap) { keyHashMap.put(aKeyMap, getString(aKeyMap)); } for (String aKeyMap : keyMap) { shiftedKeyHashMap.put(aKeyMap, getString(aKeyMap+"Shifted")); } } Is in the keyboard panel. Custom resource loader is added in prototype page constructor: public TemplatePage() { ClassStringResourceLoader loader = new ClassStringResourceLoader(this.getApplication(), this.getClass()); this.dbAction = new DBAction( loader.loadStringResource(this.getClass(),"envContextName",null,null) ,loader.loadStringResource(this.getClass(),"dataSourceName",null,null) ); getApplication().getResourceSettings().addStringResourceLoader(new DBStringResourceLoader(dbAction)); Johan Compagner wrote: > > I think the code is sort of still the same (you use a pretty old version) > > final Iterator iterator = application.getResourceSettings() > .getStringResourceLoaders().iterator(); > > that is the iterator that goes wrong. But that is strange, are you adding > string resourceloaders at some place > while the application is running? > > johan > > > On 2/20/07, Konstantin <[EMAIL PROTECTED]> wrote: >> >> >> What could be the reason of this ? (Using Wicket 1.2.1) >> >> 19/2/2007 19:15:28 wicket.RequestCycle step >> SEVERE: null >> java.util.ConcurrentModificationException >> at java.util.AbstractList$Itr.checkForComodification(Unknown >> Source) >> at java.util.AbstractList$Itr.next(Unknown Source) >> at java.util.Collections$UnmodifiableCollection$1.next(Unknown >> Source) >> at wicket.Localizer.visitResourceLoaders(Localizer.java:406) >> at wicket.Localizer.getString(Localizer.java:236) >> at wicket.Localizer.getString(Localizer.java:121) >> at wicket.Component.getString(Component.java:1171) >> at wicket.Component.getString(Component.java:1158) >> >> -- >> View this message in context: >> http://www.nabble.com/java.util.ConcurrentModificationException-tf3260239.html#a9060910 >> 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 this message in context: http://www.nabble.com/java.util.ConcurrentModificationException-tf3260239.html#a9062112 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] Navigation between pages
Well you could just use setResponsePage(new YourWebPage(..)); Peter Klassen wrote: > > Hi all, > > just one more trivial question; ;-) > > which possibilities do i got to navigate from one Webpage to another after > an event is triggered? > > Thx in advance! Peter > > > -- View this message in context: http://www.nabble.com/Navigation-between-pages-tf3265417.html#a9077111 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] Navigation between pages
Hi all, just one more trivial question; ;-) which possibilities do i got to navigate from one Webpage to another after an event is triggered? Thx in advance! Peter -- View this message in context: http://www.nabble.com/Navigation-between-pages-tf3265417.html#a9077014 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] Pass popup parameters from parent page
Thanks serban.balamaci wrote: > > Hi. > > I need to open a popup page that displays information that is related to > parameters in the parent page. For example, a popuppage with a list of > streets, and in the parent i would have a combo with counties ids, name > and only the street in that county would be shown in the popup. The > problem is that i would not want to make an unnecesary trip back to the > server, but by not doing so the model behind the combo of counties is not > updated, and an invocation on the onClick method of the link and calling > combo.getModelObject does not return what was selected, since no data is > passed to the server. > > I guess that the problem could be solved by using javascript, but i tried > and found no solutions to how i could pass the parameters without forcing > the user to first submit the form and then open the popup. > > Temporary solution is an update of the model with > combo.add(new AjaxFormComponentUpdatingBehavior("onblur") { > protected void onUpdate(AjaxRequestTarget target) { > // nothing > } > }); > > Can it be done some other way? > > Thanks. > -- View this message in context: http://www.nabble.com/Pass-popup-parameters-from-parent-page-tf3252580.html#a9076917 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