Re: [Wicket-user] A trivial problem with tables that i can't manage
Thank you very much for your support. Actually, i'm using Mysql and was wondering how to set a min and max limit on a select. And because i love exotic solutions, i use Cayenne for persistence :-) I will check if Cayenne can do the thing, but Eelco's solution seems very satisfying. 2007/6/25, Scott Swank [EMAIL PROTECTED]: On 6/25/07, Eelco Hillenius [EMAIL PROTECTED] wrote: On Monday, June 25, 2007, 9:54:58 PM, Landry [EMAIL PROTECTED] wrote: A problem remains, however : i don't know how to implement IDataProvider.iterator(int first, int count). Must be something like this in oracle : select * from mytable where rownum=first and rownum count Actually, in Oracle, it's significantly more complex than the above, but let's not go there (unless you're actually doing that in Oracle?). But how to do this in mysql ? (row_id could do the thing, but it is only available when your primary key is integer). I've not used MySQL for years, but I think it's select * from mytable order by whatever limit first, count where 'first' is from 0. If you are using an ORM tool (JPA, Hibernate, JDO) the tool might do specific optimizations for you. But I think what most people (/ implementations) do is just scroll the result set cursor to the first record needed. Eelco In Hibernate, and more widely in JPA, you use setFirstResult() setMaxResults() on your query. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] A trivial problem with tables that i can't manage
I'm as newbie to Cayenne as i am to Wicket, so i'm not sure that i do things the right way ! Anyway, i will have some free time this summer : a good occasion to complete the wiki. 2007/6/26, Gwyn Evans [EMAIL PROTECTED]: On Tuesday, June 26, 2007, 9:25:15 AM, landry [EMAIL PROTECTED] wrote: Thank you very much for your support. Actually, i'm using Mysql and was wondering how to set a min and max limit on a select. And because i love exotic solutions, i use Cayenne for persistence I will check if Cayenne can do the thing, but Eelco's solution seems very satisfying. Incidentally, if you've got any tips/notes that might help anyone looking to use Cayenne with Wicket, please add them to the Wiki - Maybe a child page below http://cwiki.apache.org/WICKET/database-interaction.html ? /Gwyn - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] A trivial problem with tables that i can't manage
Thank you so much for your answer. GridView seems to achieve exactly what i need. A problem remains, however : i don't know how to implement IDataProvider.iterator(int first, int count). Must be something like this in oracle : select * from mytable where rownum=first and rownum count But how to do this in mysql ? (row_id could do the thing, but it is only available when your primary key is integer). Thanks for your help. Igor Vaynberg a écrit : On 6/23/07, *Landry Soules* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hello, I have a very simple problem: i just want to display a table of customers, with some infos on each entry. No problem to achieve that when you deal with one record per line. The problem is that i want to display 4 customers on each row, as this : = Customer1 || Customer2 || Customer3 || Customer4 firstName || firstName || firstName || firstName lastName || lastName || lastName || lastName = Customer5 || Customer6 || Customer7 || Customer8 firstName || firstName || firstName || firstName lastName || lastName || lastName || lastName It sounds so simple, but i can't figure out how to do this. Can someone help me, please ? see GridView component. example here [1] [1] http://wicketstuff.org/wicket13/repeater/?wicket:bookmarkablePage=%3Aorg.apache.wicket.examples.repeater.GridViewPage -igor - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] A trivial problem with tables that i can't manage
Hello, I have a very simple problem: i just want to display a table of customers, with some infos on each entry. No problem to achieve that when you deal with one record per line. The problem is that i want to display 4 customers on each row, as this : = Customer1 || Customer2 || Customer3 || Customer4 firstName || firstName || firstName || firstName lastName || lastName || lastName || lastName = Customer5 || Customer6 || Customer7 || Customer8 firstName || firstName || firstName || firstName lastName || lastName || lastName || lastName It sounds so simple, but i can't figure out how to do this. Can someone help me, please ? - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket and Flash not playing well together ?
No ! There's really no place in my code where i even mention it ! It can only be referenced by the flash code. The only thing is that the flash related stuff is in folder src/eu/kwark/main. Is it possible that Wicket somehow interfere with flash calls ? Matej Knopp a écrit : Unable to load class with name: eu.kwark.main.settings.xml ? It really looks like you're trying to reference packaged resource that's not there. -Matej On 3/23/07, Landry Soules [EMAIL PROTECTED] wrote: Hello ! I'm working on a site that will integrate some cool flash multimedia stuff. My flash component actually consists in : one html page one swf script one mp3 file, contained in a Sound folder. one xml file (settings.xml) If i put all of these directly under webroot, it works great. But if i integrate the html in a Wicket page, only the static content of the flash app is displayed, and Wicket generates errors : 2007-03-23 22:24:18,832 [http--Processor24] ERROR wicket.RequestCycle - Unable to load class with name: eu.kwark.main.settings.xml wicket.WicketRuntimeException: Unable to load class with name: eu.kwark.main.settings.xml at wicket.application.DefaultClassResolver.resolveClass(DefaultClassResolver.java:66) at wicket.request.target.coding.PackageRequestTargetUrlCodingStrategy.decode(PackageRequestTargetUrlCodingStrategy.java:82) at wicket.protocol.http.request.WebRequestCodingStrategy.targetForRequest(WebRequestCodingStrategy.java:331) at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolve(DefaultRequestTargetResolverStrategy.java:83) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.resolve(AbstractCompoundRequestCycleProcessor.java:48) at wicket.RequestCycle.step(RequestCycle.java:992) at wicket.RequestCycle.steps(RequestCycle.java:1084) at wicket.RequestCycle.request(RequestCycle.java:454) at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:219) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) (eu.kwark.main is the package where i stored all the flash related files) Can someone show me the way, please ? - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list
Re: [Wicket-user] Wicket and Flash not playing well together ?
Thanks a lot for your answers, guys. Johan, you were right : i removed the WebApplication.mount() for my page, and everything is all right now! Thanks to your help, i won't even have to use Wireshark ;-) Johan Compagner a écrit : how is that html file targeted in the browser? like a bookmarkable url or a mount? If i have to guess what happens is that flash player looks at the current url strips something and then appens the settings call to it. In wicket it still looks like a bookmarkable url but now with a wrong param or something like that So checkout what exactly the url looks like that did go wrong. johan On 3/23/07, *Landry Soules * [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hello ! I'm working on a site that will integrate some cool flash multimedia stuff. My flash component actually consists in : one html page one swf script one mp3 file, contained in a Sound folder. one xml file (settings.xml) If i put all of these directly under webroot, it works great. But if i integrate the html in a Wicket page, only the static content of the flash app is displayed, and Wicket generates errors : 2007-03-23 22:24:18,832 [http--Processor24] ERROR wicket.RequestCycle - Unable to load class with name: eu.kwark.main.settings.xml wicket.WicketRuntimeException: Unable to load class with name: eu.kwark.main.settings.xml at wicket.application.DefaultClassResolver.resolveClass(DefaultClassResolver.java:66) at wicket.request.target.coding.PackageRequestTargetUrlCodingStrategy.decode(PackageRequestTargetUrlCodingStrategy.java :82) at wicket.protocol.http.request.WebRequestCodingStrategy.targetForRequest(WebRequestCodingStrategy.java:331) at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolve(DefaultRequestTargetResolverStrategy.java :83) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.resolve(AbstractCompoundRequestCycleProcessor.java:48) at wicket.RequestCycle.step(RequestCycle.java:992) at wicket.RequestCycle.steps (RequestCycle.java:1084) at wicket.RequestCycle.request(RequestCycle.java:454) at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:219) at javax.servlet.http.HttpServlet.service(HttpServlet.java :740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java :178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run (Thread.java:595) (eu.kwark.main is the package where i stored all the flash related files) Can someone show me the way, please ? - 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.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn
[Wicket-user] Wicket and Flash not playing well together ?
Hello ! I'm working on a site that will integrate some cool flash multimedia stuff. My flash component actually consists in : one html page one swf script one mp3 file, contained in a Sound folder. one xml file (settings.xml) If i put all of these directly under webroot, it works great. But if i integrate the html in a Wicket page, only the static content of the flash app is displayed, and Wicket generates errors : 2007-03-23 22:24:18,832 [http--Processor24] ERROR wicket.RequestCycle - Unable to load class with name: eu.kwark.main.settings.xml wicket.WicketRuntimeException: Unable to load class with name: eu.kwark.main.settings.xml at wicket.application.DefaultClassResolver.resolveClass(DefaultClassResolver.java:66) at wicket.request.target.coding.PackageRequestTargetUrlCodingStrategy.decode(PackageRequestTargetUrlCodingStrategy.java:82) at wicket.protocol.http.request.WebRequestCodingStrategy.targetForRequest(WebRequestCodingStrategy.java:331) at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolve(DefaultRequestTargetResolverStrategy.java:83) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.resolve(AbstractCompoundRequestCycleProcessor.java:48) at wicket.RequestCycle.step(RequestCycle.java:992) at wicket.RequestCycle.steps(RequestCycle.java:1084) at wicket.RequestCycle.request(RequestCycle.java:454) at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:219) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) (eu.kwark.main is the package where i stored all the flash related files) Can someone show me the way, please ? - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Error when retrieving session property
Thanks a lot Eelco and Igor. add(new Label(username, new PropertyModel(this, customSession.user.firstName))) works very well. Eelco Hillenius a écrit : LOL. Of course. Eelco On 1/21/07, Igor Vaynberg [EMAIL PROTECTED] wrote: pfft add(new Label(username, new PropertyModel(this, customSession.user.firstName))); -igor On 1/21/07, Eelco Hillenius [EMAIL PROTECTED] wrote: or even: public SignInSuccess(String id) { super(id); add(new Label(username, new PropertyModel(new PropertyModel(customSession.user), firstName))); SignOutForm signOut = new SignOutForm(signOutForm); add(signOut); } Erm, I mean: public SignInSuccess(String id) { super(id); add(new Label(username, new PropertyModel(new PropertyModel(this, customSession.user), firstName))); SignOutForm signOut = new SignOutForm(signOutForm); add(signOut); } - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Error when retrieving session property
Hello, I want to make work a signin component i have included in a page. When a user signs in, i retrieve the corresponding user record from DB, and put it a session property. Then i hide the signin component, and make visible a new panel, presenting a signout button, and a welcome message : welcome username. I fail to render it : public SignInSuccess(String id) { super(id); add(new Label(username, new PropertyModel(getCustomSession() .getUser(), firstName))); SignOutForm signOut = new SignOutForm(signOutForm); add(signOut); } It gives me the following error : java.lang.IllegalArgumentException: Parameter modelObject cannot be null What did i miss ? Thanks for your help - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Error when retrieving session property
Sure. But it's a design problem i have here: my signin and signout panels share the same place on the same page, and i'm just set them visible/invisible when required, so they're created at the same time. Yet getCustomSession().setUser(foo) is called after submit on signin... How can i make signout panel to instantiate only after signin has been successfull ? Eelco Hillenius a écrit : It looks like getCustomSession().getUser() returns null. Eelco On 1/21/07, Landry Soules [EMAIL PROTECTED] wrote: Hello, I want to make work a signin component i have included in a page. When a user signs in, i retrieve the corresponding user record from DB, and put it a session property. Then i hide the signin component, and make visible a new panel, presenting a signout button, and a welcome message : welcome username. I fail to render it : public SignInSuccess(String id) { super(id); add(new Label(username, new PropertyModel(getCustomSession() .getUser(), firstName))); SignOutForm signOut = new SignOutForm(signOutForm); add(signOut); } It gives me the following error : java.lang.IllegalArgumentException: Parameter modelObject cannot be null What did i miss ? Thanks for your help - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Two feedback panels on one page
Hello, I put this thread back to the light because I had a similar problem : My site has a signin panel on the left side, and another form in the center. Each of them has a feedback panel. In order to avoid having the same messages displayed in the 2 panels, i followed Igor's tip, but now every feedback in one panel deletes the other's content... Please how can i solve this ? Igor Vaynberg a écrit : well, its not the default because this is a tiny subset of what wicket's feedback system is capable of. now if it is a common usecase in your app you can craete a BoundedFeedbackPanel given the code i gave you previously. its a 10 line component that you can then reuse in your app - this is the power of wicket. we give you the tools that make it easy to adapt the functionality to many situations. if we started to provide impls for all common usecases the api would be too big and you would have a hard time finding what you needed anyways. -Igor On 8/13/06, *Predrag Spasojevic* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Why it isn't FeedbackPanel's default behavior? I think that the common use is one FeedbackPanel per form, not per page On 8/13/06, *Igor Vaynberg* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: final Form form=. new FeedbackPanel(foo, new IFeedbackMessageFilter() { boolean accept(FeedbackMessage message) { // messages reported on the session have a null reporter if ( message.getreporter()!=null) { // only accept messages coming from the children of the form return form.contains(message.getreporter(), true); } return false; } } -Igor On 8/13/06, *Predrag Spasojevic* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi, I have a page with 2 panels. Each panel has its own form and feedback panel. When any validator fails the same messages are displayed on both feedback panels. I have looked into wicket source code and in the class FeedbackMessageModel there is a method for getting feedback messages: public final Object onGetObject(final Component component) { if (messages == null) { // Get filtered messages from page where component lives List pageMessages = component.*getPage().getFeedbackMessages() *.messages(filter); It looks like when validator fails it adds feedback message to a page. And when feedback panel is displayed it calls page to get messages. I suppose that is the reason why both feedback panels shows the same messages. Is there any way to have two feedback panels on one page that are not showing the same messages? -- Regards, Predrag Spasojevic - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Two feedback panels on one page
Thank you Igor for the precision. This behaviour is perfectly logical, so the case i describe shouldn't arise. However, you never know the crazy things users will do ! So i'll give your session solution a try. Best regards. Landry Igor Vaynberg a écrit : the panels dont delete feedback messages. components raise feedback messages - which are kept at the page level panels render messages at the end of request the message are cleared - so if they werent shown during the same request they are gone if you have messages that need to span requests then you need to raise them on the session object - session.error() etc. those are kept in session until they are rendered -Igor On 10/14/06, *Landry Soules* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hello, I put this thread back to the light because I had a similar problem : My site has a signin panel on the left side, and another form in the center. Each of them has a feedback panel. In order to avoid having the same messages displayed in the 2 panels, i followed Igor's tip, but now every feedback in one panel deletes the other's content... Please how can i solve this ? Igor Vaynberg a écrit : well, its not the default because this is a tiny subset of what wicket's feedback system is capable of. now if it is a common usecase in your app you can craete a BoundedFeedbackPanel given the code i gave you previously. its a 10 line component that you can then reuse in your app - this is the power of wicket. we give you the tools that make it easy to adapt the functionality to many situations. if we started to provide impls for all common usecases the api would be too big and you would have a hard time finding what you needed anyways. -Igor On 8/13/06, *Predrag Spasojevic* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Why it isn't FeedbackPanel's default behavior? I think that the common use is one FeedbackPanel per form, not per page On 8/13/06, *Igor Vaynberg* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: final Form form=. new FeedbackPanel(foo, new IFeedbackMessageFilter() { boolean accept(FeedbackMessage message) { // messages reported on the session have a null reporter if ( message.getreporter()!=null) { // only accept messages coming from the children of the form return form.contains(message.getreporter(), true); } return false; } } -Igor On 8/13/06, *Predrag Spasojevic* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi, I have a page with 2 panels. Each panel has its own form and feedback panel. When any validator fails the same messages are displayed on both feedback panels. I have looked into wicket source code and in the class FeedbackMessageModel there is a method for getting feedback messages: public final Object onGetObject(final Component component) { if (messages == null) { // Get filtered messages from page where component lives List pageMessages = component.*getPage().getFeedbackMessages() *.messages(filter); It looks like when validator fails it adds feedback message to a page. And when feedback panel is displayed it calls page to get messages. I suppose that is the reason why both feedback panels shows the same messages. Is there any way to have two feedback panels on one page that are not showing the same messages? -- Regards, Predrag Spasojevic - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1
Re: [Wicket-user] library example using Shades for O/R mapping
:-( That's just what lots of people say in java forums when a new Wicket release is announced : We already have [replace with the framework you think is the market leader] , why the hell should we learn a new one ? One of java's strength is in the choice we have to make our job done :-) Korbinian Bachl a écrit : hi, my thought is: with EJB3 and hibernate (and both together if you want) - why do we need more ? regards, korbinian -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Geoff hendrey Gesendet: Samstag, 26. August 2006 18:54 An: Wicket-user@lists.sourceforge.net Betreff: [Wicket-user] library example using Shades for O/R mapping Hi All, I was one of the early users of Wicket before 1.0. I did a lot of work to use Wicket with my JDO implementation JDOMax (no longer supported). In the process I learned a lot about why it is harder than it has to be to use many ORM frameworks with Wicket and Tapestry. I'm a member of JSR 243 Java Data Objects Experts Group, and I advocated hard within that spec for the fixing of the JDO spec with regard to non-transaction-write behavior, along with Eric Samson and others. The JDO group was receptive, having gotten similar feedback from Howard Lewis Ship of Tapestry. I believe this change will benefit Wicket users, and make it much easier to use JDO 2.0 than JDO 1.1, from Wicket. However, I still wasn't satisfied that it was easy to do ORM from Wicket or Tapestry. So I started a new project, based on what I learned -- it's a better way to do ORM -- I call it Shades. Following the wicket style,Shades works without any XML configuration. Rather than make this any longer-winded, I thought I would just begin passing back some code, showing the Library sample application using Shades. The attached zipfile is just the library folder from the wicket sample applications. EditBook.java and LibrarySession.java have been altered to use Shades for database access. LibraryORMDictionary.java is the only new file required. Please let me know what you think. Also, I do not have a website for Shades yet but I hope to find the right venue for open sourcing the code soon. (see attached zip file 'library.zippo' with library-example directory) - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] New User Documentation
Hi,I'm a very new (and very happy) Wicket user. Thanks a lot for this documentation index.About documentation, i think wicket examples are GREAT, and the best possible start for a newnie like me.The only thing i would like to be more documented, is the Model stuff, as it remains quite abstract for me. 2006/8/7, Gwyn Evans [EMAIL PROTECTED]: To anyone getting started, there's a new Wiki page, DocumentationIndex at http://www.wicket-wiki.org.uk/wiki/index.php/Documentation_Index which is an attempt to provide an overview to the primary sources ofinformation.Hopefully it'll help, but if not, please let us know what sort ofdocumentation/information you feel we need to focus on, please! /Gwyn--Download Wicket 1.2.1 now! - http://wicketframework.org-Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user