Re: [Wicket-user] Wicket coding style
Hi Igor, Thanks for your answer. It's a nice solution as well although I personally don't like to create too many anonymous classes. Kinda messes up the code in my opinion :) I was thinking there might be a resource for 'most common wicket patterns' or something similar. Guess wicket is too young for that yet? Anyway, wicket is a great framework - I managed to push it through as the framework for my current project and cannot wait to dig deeper into it. :) Thanks again, Che -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg Sent: Monday, September 04, 2006 8:05 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Wicket coding style there is no one way that is considered the best. wicket is code-centric so you can adapt it to your coding style. personally - i would have the panel be abstract and have an abstract onclick() which the link would forward to. then in this onclick i would set the page - that way your reusable panel doesnt need to know anything about the page and you can do add(new MyCustomPanel(panel) { void onclick() { setResponsePage(MyPage.class); } } or add(new MyCustomPanel(panel) { void onclick() { setResponsePage(new MyPage(some params)); } } but to the panel its all the same. -Igor On 9/4/06, Che Schneider [EMAIL PROTECTED] wrote: Hi all, Is there a decent resource somewhere on how to do things 'properly' (aka nice and clean :) in wicket? I can always think of quite a few ways to solve a problem but since I am totally new to wicket I am not sure which way is the right one.. Example: In a custom panel I want to create a link to another page. Since I want to reuse my panel, that link should be dynamic. Is it better to have a constructor argument for the class to link to? Or should I better have the panel only accept a custom model that has a getter for the class? Or is there an even better way? :) Thanks a lot in advance, Che __ DISCLAIMER: This e-mail message is intended for the addressee(s) or authorized recipient only. If you are not the addressee, or an authorized recipient, you are specifically advised that any use, distribution, publication, copying or repetition of this information is prohibited. If you have received this information in error, please notify us immediately (+31 (0)20 50 25 800) and destroy this message. -- --- 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=263057; dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user https://lists.sourceforge.net/lists/listinfo/wicket-user __ DISCLAIMER: This e-mail message is intended for the addressee(s) or authorized recipient only. If you are not the addressee, or an authorized recipient, you are specifically advised that any use, distribution, publication, copying or repetition of this information is prohibited. If you have received this information in error, please notify us immediately (+31 (0)20 50 25 800) and destroy this message.__ DISCLAIMER: This e-mail message is intended for the addressee(s) or authorized recipient only. If you are not the addressee, or an authorized recipient, you are specifically advised that any use, distribution, publication, copying or repetition of this information is prohibited. If you have received this information in error, please notify us immediately (+31 (0)20 50 25 800) and destroy this message. __ DISCLAIMER: This e-mail message is intended for the addressee(s) or authorized recipient only. If you are not the addressee, or an authorized recipient, you are specifically advised that any use, distribution, publication, copying or repetition of this information is prohibited. If you have received this information in error, please notify us immediately (+31 (0)20 50 25 800) and destroy this message. - 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
Re: [Wicket-user] Changing tag attributes
You're absolutely right! That worked. Thanks! I guess I still don't understand when models need to be used and when simple values are ok. Can somebody explain this to me, or point out some docs? Thank you! On Tue, 2006-09-05 at 12:13 +0530, karthik Guru wrote: I think having a PropertyModel to access 'isSuccessful' seems complicated. May be something like this ? public class TestLabel extends Label { boolean isSuccessful; public TestLabel( final String id, final String label,boolean isSuccessful){ super( id, label); this.isSuccessful= isSuccessful; } @Override protected void onComponentTag( final ComponentTag tag ){ super.onComponentTag( tag ); final ValueMap map = tag.getAttributes(); map.put( class, getLabelTagClass( isSuccessful ) ); } } On 9/5/06, David Leangen [EMAIL PROTECTED] wrote: This is exactly what I need. Thanks! Now, to make the code a bit cleaner in my repeater, I'd like to subclass Label, overriding the onComponentTag(ComponentTag) method. I'm a big confused again regarding models... This is the mess I created, which does not work. The part that confuses me the most is the use of the property model in the subclasses Label. public class TestLabel extends Label { private static final long serialVersionUID = 1L; private PropertyModel m_isSuccessfulPropertyModel; public TestLabel( final String id, final String label, final PropertyModel propModel ) { super( id, label ); m_isSuccessfulPropertyModel = propModel; } @Override protected void onComponentTag( final ComponentTag tag ) { super.onComponentTag( tag ); final ValueMap map = tag.getAttributes(); final boolean isSuccessful = (Boolean)m_isSuccessfulPropertyModel.getObject( this ); map.put( class, getLabelTagClass( isSuccessful ) ); } } And I populate my item in the repeater like this. add( new DataView( testResults, new TestResultDataProvider( testResults ) ) { private static final long serialVersionUID = 1L; private boolean m_isSuccessful = true; public void populateItem( final Item item ) { final TestResult testResult = (TestResult)item.getModelObject(); final boolean isSuccessful = testResult.isSuccessful(); setSuccessful( isSuccessful ); final PropertyModel isSuccessfulPropertyModel = new PropertyModel( this, isSuccessful ); final Date lastTimeExecuted = new Date( testResult.getLastTimeExecuted() ); final Long testDuration = testResult.getExecutionTime(); item.add( new TestLabel( test.name, testResult.getName(), isSuccessfulPropertyModel ) ); } public void setSuccessful( final boolean isSuccessful ) { m_isSuccessful = isSuccessful; } public boolean isSuccessful() { return m_isSuccessful; } } ); What am I missing here? On Mon, 2006-09-04 at 19:17 -0700, Igor Vaynberg wrote: you can either override oncomponenttag(ComponentTag tag) { tag.getAttributes().get/put } or add a behavior to the component - namely an (Simple)AttributeModifier. -Igor On 9/4/06, David Leangen [EMAIL PROTECTED] wrote: Could somebody please point me to an example or reference on how to dynamically change tag attributes? I don't recall offhand. I'm trying to do something like this: If no error: span class=noerrRighto!/span Or if error: span class=errSorry, try again!/span Thanks! - 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
Re: [Wicket-user] Wicket coding style
On 9/4/06, Che Schneider [EMAIL PROTECTED] wrote: I was thinking there might be a resource for 'most common wicketpatterns' or something similar. Guess wicket is too young for that yet?not yet, but you are welcome to start one on the wiki Anyway, wicket is a great framework - I managed topush it through asthe framework for my current project and cannot wait to dig deeper into it. :)cool!-Igor - 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] Woogle is down
Ok, thanks! If you need a place to host, you could use my server. Cheers, Dave On Tue, 2006-09-05 at 10:03 +0200, Frank Bille wrote: Sorry about that. Woogle runs off my home server, which has a mirrored raid of SATA discs. All should be fine, but for some reason one of the discs keeps falling out of the raid (HW) and the raid stops working.. grr... But it's up again. Frank On 9/5/06, David Leangen [EMAIL PROTECTED] wrote: Just thought I'd point out (sorry if this is not the right place): Tried using Woogle today and got a bad gateway error: Bad Gateway The proxy server received an invalid response from an upstream server. - 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 - 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] Woogle is down
or our own wicket server..On 9/5/06, David Leangen [EMAIL PROTECTED] wrote: Ok, thanks!If you need a place to host, you could use my server.Cheers,DaveOn Tue, 2006-09-05 at 10:03 +0200, Frank Bille wrote: Sorry about that. Woogle runs off my home server, which has a mirrored raid of SATA discs. All should be fine, but for some reason one of the discs keeps falling out of the raid (HW) and the raid stops working.. grr... But it's up again. Frank On 9/5/06, David Leangen [EMAIL PROTECTED] wrote: Just thought I'd point out (sorry if this is not the right place): Tried using Woogle today and got a bad gateway error: Bad Gateway The proxy server received an invalid response from an upstream server. - 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- 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 listWicket-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
Re: [Wicket-user] Woogle is down
Very interesting. Do you have a possibility to setup a cron job? (that's how the index is updated) It's a little bit of a special setup I have:Woogle app runs off a jettyEvery night I update the index using a shellscript/Nutch. After the index is updated I restart jetty.That's how I could manage to get the index-db updated in the Woogle app..FrankOn 9/5/06, David Leangen [EMAIL PROTECTED] wrote: Ok, thanks!If you need a place to host, you could use my server.Cheers,DaveOn Tue, 2006-09-05 at 10:03 +0200, Frank Bille wrote: Sorry about that. Woogle runs off my home server, which has a mirrored raid of SATA discs. All should be fine, but for some reason one of the discs keeps falling out of the raid (HW) and the raid stops working.. grr... But it's up again. Frank On 9/5/06, David Leangen [EMAIL PROTECTED] wrote: Just thought I'd point out (sorry if this is not the right place): Tried using Woogle today and got a bad gateway error: Bad Gateway The proxy server received an invalid response from an upstream server. - 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- 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 listWicket-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
Re: [Wicket-user] inconsistent exception
Could this be a race between Ajax and synchronized rendering? Is it possible that Ajax has removed nodes from the DOM and the when Page tries to render itself it does not find the components in the markup? Tomer Mevorach wrote: Hi, My application works fine most of the time, however, sometimes an exception indicating a mismatch between java and html component's hierarchy is thrown. I can't think of a test case that generates this exception as it is thrown inconsistently. can anyone please help figure out the problem. I must add that all of my pages are unversioned and some of the components are being refreshed by ajax every 5 seconds. Best Regards, Tomer. Runtime exception has ocurred in Page [Page class = com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, id = 2]. Original cause: 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 = feedback, page = com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path = 2:feedback.JavascriptFeedbackPanel, isVisible = true, isVersioned = false]] 2. [MarkupContainer [Component id = feedback-simple, page = com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path = 2:feedback-simple.FeedbackPanel, isVisible = true, isVersioned = false]] 3. [Component id = breadcrumbs, page = com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path = 2:breadcrumbs.Label, isVisible = true, isVersioned = false] 4. [Component id = title, page = com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path = 2:title.Label, isVisible = true, isVersioned = false] 5. [MarkupContainer [Component id = mainTabs, page = com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path = 2:mainTabs.FiltersPanel, isVisible = true, isVersioned = false]] 6. [MarkupContainer [Component id = filters, page = com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path = 2:mainTabs:filters.FiltersPanel$FiltersListView, isVisible = true, isVersioned = false]] 7. [MarkupContainer [Component id = 0, page = com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path = 2:mainTabs:filters:0.ListItem, isVisible = true, isVersioned = false]] 8. [MarkupContainer [Component id = filterLink, page = com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path = 2:mainTabs:filters:0:filterLink.FiltersPanel$FiltersListView$1, isVisible = true, isVersioned = false]] 9. [Component id = filterImage, page = com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path = 2:mainTabs:filters:0:filterLink:filterImage.FiltersPanel$FiltersListView$2, isVisible = true, isVersioned = false] 10. [Component id = filterCount, page = com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path = 2:mainTabs:filters:0:filterLink:filterCount.Label, isVisible = true, isVersioned = false] 11. [MarkupContainer [Component id = 1, page = com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path = 2:mainTabs:filters:1.ListItem, isVisible = true, isVersioned = false]] 12. [MarkupContainer [Component id = filterLink, page = com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path = 2:mainTabs:filters:1:filterLink.FiltersPanel$FiltersListView$1, isVisible = true, isVersioned = false]] 13. [Component id = filterImage, page = com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path = 2:mainTabs:filters:1:filterLink:filterImage.FiltersPanel$FiltersListView$2, isVisible = true, isVersioned = false] 14. [Component id = filterCount, page = com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path = 2:mainTabs:filters:1:filterLink:filterCount.Label, isVisible = true, isVersioned = false] 15. [MarkupContainer [Component id = 2, page = com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path = 2:mainTabs:filters:2.ListItem, isVisible = true, isVersioned = false]] 16. [MarkupContainer [Component id = filterLink, page = com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path = 2:mainTabs:filters:2:filterLink.FiltersPanel$FiltersListView$1, isVisible = true, isVersioned = false]] 17. [Component id = filterImage, page = com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path = 2:mainTabs:filters:2:filterLink:filterImage.FiltersPanel$FiltersListView$2, isVisible = true, isVersioned = false] 18. [Component id = filterCount, page = com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path = 2:mainTabs:filters:2:filterLink:filterCount.Label, isVisible = true, isVersioned = false] 19. [MarkupContainer [Component id = 3, page = com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path = 2:mainTabs:filters:3.ListItem, isVisible = true, isVersioned = false]] 20. [MarkupContainer [Component id = filterLink, page =
Re: [Wicket-user] image l10n and path and submit tracking
You're right the page method afterCallComponent could be used, just I was looking for something like a superclass hook method that could be called by the framework after some processing occurred (in my case after a submit).In the case for the generic callback I was thinking of something that could be plugged in, instead of having a pair of methods for each step (onBefore../after...),I'm not sure if it makes sense, maybe an interface callback approach could also be useful.Jaime.Igor Vaynberg [EMAIL PROTECTED] wrote: The page hook could be of useful for a submit button but maybe not for a link. how do you figure?Perhaps, I'm not sure, but a generic callback mechanism could be added to the Component class, so pre and post processor could be added for the event listener methods (onSubmit(), onClick(), etc). we already have them and they have all been listed in this thread. i dont think we need more, in fact i think we already have too many.-Igor -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 Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min.- 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] Wicket-user Digest, Vol 4, Issue 26
hello frnds we r using wicket with hibernate . i want to call store procedure in oracle 9i. wating for reply regard's ketan d.gote - 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] image l10n and path and submit tracking
The problem is that if we keep on adding such hooks, Wicket's API will be monstrous. Unless it's a real common use case, we shouldn't directly supporting it. Besides the options that we gave (my favorite would be to replace the IRequestCycleProcessor, and let it call methods of an interface if that is implemented by the targetted component), you can always work with your own hierarchy of components that finalize the interface method and dispatch it, while decorating with before/after/whatever methods. Eelco On 9/5/06, Jaime De La Jara [EMAIL PROTECTED] wrote: You're right the page method afterCallComponent could be used, just I was looking for something like a superclass hook method that could be called by the framework after some processing occurred (in my case after a submit). In the case for the generic callback I was thinking of something that could be plugged in, instead of having a pair of methods for each step (onBefore../after...), I'm not sure if it makes sense, maybe an interface callback approach could also be useful. Jaime. Igor Vaynberg [EMAIL PROTECTED] wrote: The page hook could be of useful for a submit button but maybe not for a link. how do you figure? Perhaps, I'm not sure, but a generic callback mechanism could be added to the Component class, so pre and post processor could be added for the event listener methods (onSubmit(), onClick(), etc). we already have them and they have all been listed in this thread. i dont think we need more, in fact i think we already have too many. -Igor - 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 Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min. - 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] Changing tag attributes
I guess I still don't understand when models need to be used and when simple values are ok. My simplified answer would be: * Models are partially managed by Wicket. E.g. CompoundPropertyModels can be found by model-less children, and Wicket takes care of detaching all models after rendering is done. * You can reuse models for different components. So you use composition rather then inheritance, which is more flexible. * Models are the expected connection to data with Wicket. As most components do use models, designing your components such that they do too is consistent and will probably make them easier to understand by new users. If you don't care about the above items for a specific case, it's fine to not use a model. It's not an anti-pattern. :) Eelco - 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] Wicket-user Digest, Vol 4, Issue 26
http://www.hibernate.org/hib_docs/v3/reference/en/html_single/#sp_query Eelco On 9/5/06, ketan gote [EMAIL PROTECTED] wrote: hello frnds we r using wicket with hibernate . i want to call store procedure in oracle 9i. wating for reply regard's ketan d.gote - 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] Woogle is down
johan has root!-IgorOn 9/5/06, Frank Bille [EMAIL PROTECTED] wrote: Very interesting. Do you have a possibility to setup a cron job? (that's how the index is updated) It's a little bit of a special setup I have:Woogle app runs off a jettyEvery night I update the index using a shellscript/Nutch. After the index is updated I restart jetty.That's how I could manage to get the index-db updated in the Woogle app..Frank On 9/5/06, David Leangen [EMAIL PROTECTED] wrote: Ok, thanks!If you need a place to host, you could use my server.Cheers,DaveOn Tue, 2006-09-05 at 10:03 +0200, Frank Bille wrote: Sorry about that. Woogle runs off my home server, which has a mirrored raid of SATA discs. All should be fine, but for some reason one of the discs keeps falling out of the raid (HW) and the raid stops working.. grr... But it's up again. Frank On 9/5/06, David Leangen [EMAIL PROTECTED] wrote: Just thought I'd point out (sorry if this is not the right place): Tried using Woogle today and got a bad gateway error: Bad Gateway The proxy server received an invalid response from an upstream server. - 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 - 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 listWicket-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.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
Re: [Wicket-user] image l10n and path and submit tracking
but you can do this yourself by implementing callbacks to these pluggable things in your basepage afterCallComponent.-IgorOn 9/5/06, Jaime De La Jara [EMAIL PROTECTED] wrote: You're right the page method afterCallComponent could be used, just I was looking for something like a superclass hook method that could be called by the framework after some processing occurred (in my case after a submit). In the case for the generic callback I was thinking of something that could be plugged in, instead of having a pair of methods for each step (onBefore../after...),I'm not sure if it makes sense, maybe an interface callback approach could also be useful. Jaime.Igor Vaynberg [EMAIL PROTECTED] wrote: The page hook could be of useful for a submit button but maybe not for a link. how do you figure?Perhaps, I'm not sure, but a generic callback mechanism could be added to the Component class, so pre and post processor could be added for the event listener methods (onSubmit(), onClick(), etc). we already have them and they have all been listed in this thread. i dont think we need more, in fact i think we already have too many.-Igor - 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 Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min. -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.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
Re: [Wicket-user] Woogle is down
Not for that server of David! (where frank replied on):)johanOn 9/5/06, Igor Vaynberg [EMAIL PROTECTED] wrote:johan has root! -IgorOn 9/5/06, Frank Bille [EMAIL PROTECTED] wrote: Very interesting. Do you have a possibility to setup a cron job? (that's how the index is updated) It's a little bit of a special setup I have:Woogle app runs off a jettyEvery night I update the index using a shellscript/Nutch. After the index is updated I restart jetty.That's how I could manage to get the index-db updated in the Woogle app..Frank On 9/5/06, David Leangen [EMAIL PROTECTED] wrote: Ok, thanks!If you need a place to host, you could use my server.Cheers,DaveOn Tue, 2006-09-05 at 10:03 +0200, Frank Bille wrote: Sorry about that. Woogle runs off my home server, which has a mirrored raid of SATA discs. All should be fine, but for some reason one of the discs keeps falling out of the raid (HW) and the raid stops working.. grr... But it's up again. Frank On 9/5/06, David Leangen [EMAIL PROTECTED] wrote: Just thought I'd point out (sorry if this is not the right place): Tried using Woogle today and got a bad gateway error: Bad Gateway The proxy server received an invalid response from an upstream server. - 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 - 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 listWicket-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.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.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
Re: [Wicket-user] Woogle is down
Oh.. didn't really know we had one. But that would be obvious, I guess :)FrankOn 9/5/06, Johan Compagner [EMAIL PROTECTED] wrote:or our own wicket server.. On 9/5/06, David Leangen [EMAIL PROTECTED] wrote: Ok, thanks!If you need a place to host, you could use my server.Cheers,DaveOn Tue, 2006-09-05 at 10:03 +0200, Frank Bille wrote: Sorry about that. Woogle runs off my home server, which has a mirrored raid of SATA discs. All should be fine, but for some reason one of the discs keeps falling out of the raid (HW) and the raid stops working.. grr... But it's up again. Frank On 9/5/06, David Leangen [EMAIL PROTECTED] wrote: Just thought I'd point out (sorry if this is not the right place): Tried using Woogle today and got a bad gateway error: Bad Gateway The proxy server received an invalid response from an upstream server. - 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 - 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 listWicket-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.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
Re: [Wicket-user] image l10n and path and submit tracking
I've just added the afterCallComponent to my base page and put some println to see what Component and Listener it was receiving, and when I click a submit button the component that gets called it's the form containing it, I think I misunderstood the method's behaviour since I was expecting that every call to a page component would cause this method to be called. In this case I can't determine which button was clicked. Maybe what I'm looking is too cumbersome, and should evaluate using AOP which in this case I was trying to avoid, I haven't taken a look at Eelco proposal of modifying the RequestCycleProcessor, first I'll try to understand it better.Jaime.Igor Vaynberg [EMAIL PROTECTED] wrote: but you can do this yourself by implementing callbacks to these pluggable things in your basepage afterCallComponent.-IgorOn 9/5/06, Jaime De La Jara [EMAIL PROTECTED] wrote: You're right the page method afterCallComponent could be used, just I was looking for something like a superclass hook method that could be called by the framework after some processing occurred (in my case after a submit). In the case for the generic callback I was thinking of something that could be plugged in, instead of having a pair of methods for each step (onBefore../after...),I'm not sure if it makes sense, maybe an interface callback approach could also be useful. Jaime.Igor Vaynberg [EMAIL PROTECTED] wrote: The page hook could be of useful for a submit button but maybe not for a link. how do you figure?Perhaps, I'm not sure, but a generic callback mechanism could be added to the Component class, so pre and post processor could be added for the event listener methods (onSubmit(), onClick(), etc). we already have them and they have all been listed in this thread. i dont think we need more, in fact i think we already have too many.-Igor - 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 Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min. -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.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 easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min.- 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] image l10n and path and submit tracking
yes because the event is raised on the form not the button, thats how http works. the form then forwards the onsubmit to the button. seee findSubmittingButton() in the form, too bad its not public otherwise you couldve used it directly. -IgorOn 9/5/06, Jaime De La Jara [EMAIL PROTECTED] wrote: I've just added the afterCallComponent to my base page and put some println to see what Component and Listener it was receiving, and when I click a submit button the component that gets called it's the form containing it, I think I misunderstood the method's behaviour since I was expecting that every call to a page component would cause this method to be called. In this case I can't determine which button was clicked. Maybe what I'm looking is too cumbersome, and should evaluate using AOP which in this case I was trying to avoid, I haven't taken a look at Eelco proposal of modifying the RequestCycleProcessor, first I'll try to understand it better. Jaime.Igor Vaynberg [EMAIL PROTECTED] wrote: but you can do this yourself by implementing callbacks to these pluggable things in your basepage afterCallComponent.-IgorOn 9/5/06, Jaime De La Jara [EMAIL PROTECTED] wrote: You're right the page method afterCallComponent could be used, just I was looking for something like a superclass hook method that could be called by the framework after some processing occurred (in my case after a submit). In the case for the generic callback I was thinking of something that could be plugged in, instead of having a pair of methods for each step (onBefore../after...), I'm not sure if it makes sense, maybe an interface callback approach could also be useful. Jaime.Igor Vaynberg [EMAIL PROTECTED] wrote: The page hook could be of useful for a submit button but maybe not for a link. how do you figure? Perhaps, I'm not sure, but a generic callback mechanism could be added to the Component class, so pre and post processor could be added for the event listener methods (onSubmit(), onClick(), etc). we already have them and they have all been listed in this thread. i dont think we need more, in fact i think we already have too many.-Igor - 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 Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min. -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.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min. -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.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
Re: [Wicket-user] image l10n and path and submit tracking
you're right, I browsed the source code of Form and Button and it's just like that. The findSubmittingButton method is protected and final so unfortunely It's of no use in this case. I guess that I'll check another way to tackle this thing, maybe the simplest is to subclass a couple of class MyButton and MyLink and have the subclasses call the superclass event handler first. Thanks a lot again,Jaime.Igor Vaynberg [EMAIL PROTECTED] wrote: yes because the event is raised on the form not the button, thats how http works. the form then forwards the onsubmit to the button. seee findSubmittingButton() in the form, too bad its not public otherwise you couldve used it directly. -IgorOn 9/5/06, Jaime De La Jara [EMAIL PROTECTED] wrote: I've just added the afterCallComponent to my base page and put some println to see what Component and Listener it was receiving, and when I click a submit button the component that gets called it's the form containing it, I think I misunderstood the method's behaviour since I was expecting that every call to a page component would cause this method to be called. In this case I can't determine which button was clicked. Maybe what I'm looking is too cumbersome, and should evaluate using AOP which in this case I was trying to avoid, I haven't taken a look at Eelco proposal of modifying the RequestCycleProcessor, first I'll try to understand it better. Jaime.Igor Vaynberg [EMAIL PROTECTED] wrote: but you can do this yourself by implementing callbacks to these pluggable things in your basepage afterCallComponent.-IgorOn 9/5/06, Jaime De La Jara [EMAIL PROTECTED] wrote: You're right the page method afterCallComponent could be used, just I was looking for something like a superclass hook method that could be called by the framework after some processing occurred (in my case after a submit). In the case for the generic callback I was thinking of something that could be plugged in, instead of having a pair of methods for each step (onBefore../after...), I'm not sure if it makes sense, maybe an interface callback approach could also be useful. Jaime.Igor Vaynberg [EMAIL PROTECTED] wrote: The page hook could be of useful for a submit button but maybe not for a link. how do you figure? Perhaps, I'm not sure, but a generic callback mechanism could be added to the Component class, so pre and post processor could be added for the event listener methods (onSubmit(), onClick(), etc). we already have them and they have all been listed in this thread. i dont think we need more, in fact i think we already have too many.-Igor - 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 Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.Great rates starting at 1¢/min. -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.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min. -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.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] image l10n and path and submit tracking
or add an rfe to make it public :)-IgorOn 9/5/06, Jaime De La Jara [EMAIL PROTECTED] wrote: you're right, I browsed the source code of Form and Button and it's just like that. The findSubmittingButton method is protected and final so unfortunely It's of no use in this case. I guess that I'll check another way to tackle this thing, maybe the simplest is to subclass a couple of class MyButton and MyLink and have the subclasses call the superclass event handler first. Thanks a lot again, Jaime.Igor Vaynberg [EMAIL PROTECTED] wrote: yes because the event is raised on the form not the button, thats how http works. the form then forwards the onsubmit to the button. seee findSubmittingButton() in the form, too bad its not public otherwise you couldve used it directly. -IgorOn 9/5/06, Jaime De La Jara [EMAIL PROTECTED] wrote: I've just added the afterCallComponent to my base page and put some println to see what Component and Listener it was receiving, and when I click a submit button the component that gets called it's the form containing it, I think I misunderstood the method's behaviour since I was expecting that every call to a page component would cause this method to be called. In this case I can't determine which button was clicked. Maybe what I'm looking is too cumbersome, and should evaluate using AOP which in this case I was trying to avoid, I haven't taken a look at Eelco proposal of modifying the RequestCycleProcessor, first I'll try to understand it better. Jaime.Igor Vaynberg [EMAIL PROTECTED] wrote: but you can do this yourself by implementing callbacks to these pluggable things in your basepage afterCallComponent. -IgorOn 9/5/06, Jaime De La Jara [EMAIL PROTECTED] wrote: You're right the page method afterCallComponent could be used, just I was looking for something like a superclass hook method that could be called by the framework after some processing occurred (in my case after a submit). In the case for the generic callback I was thinking of something that could be plugged in, instead of having a pair of methods for each step (onBefore../after...), I'm not sure if it makes sense, maybe an interface callback approach could also be useful. Jaime.Igor Vaynberg [EMAIL PROTECTED] wrote: The page hook could be of useful for a submit button but maybe not for a link. how do you figure? Perhaps, I'm not sure, but a generic callback mechanism could be added to the Component class, so pre and post processor could be added for the event listener methods (onSubmit(), onClick(), etc). we already have them and they have all been listed in this thread. i dont think we need more, in fact i think we already have too many.-Igor - 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 Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min. -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.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min. -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] Toolkit for editing and navigating business objects (a.k.a. Beans)
Dear All, based on some ideas about business objects, descriptions of them and annotations I built a first implementaiton of a toolkit, named webby. Webby uses wicket, wicket-extensions and databinder (http://databinder.net). The goal of this effort is to allow concentrating on writing code which solves business issues, not dumb input/output routines and repetitive user interface functionality, see the http://r8fe.net/webby/index.html. If you are interested in these topics, please have a look at http://r8fe.net and let me know your feedback here on this list or as comments on my latest blog post (http://r8fe.net/wordpress). Cheers, Chris - 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] Toolkit for editing and navigating business objects (a.k.a. Beans)
Cool. Thanks for sharing that. Please put up a link in the WIKI too if you like. It's good to see more people are building on Wicket now; it's suitable for that. Good luck with the framework! Eelco On 9/5/06, Chris M [EMAIL PROTECTED] wrote: Dear All, based on some ideas about business objects, descriptions of them and annotations I built a first implementaiton of a toolkit, named webby. Webby uses wicket, wicket-extensions and databinder (http://databinder.net). The goal of this effort is to allow concentrating on writing code which solves business issues, not dumb input/output routines and repetitive user interface functionality, see the http://r8fe.net/webby/index.html. If you are interested in these topics, please have a look at http://r8fe.net and let me know your feedback here on this list or as comments on my latest blog post (http://r8fe.net/wordpress). Cheers, Chris - 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] image l10n and path and submit tracking
giving it a second thought, the afterComponentCall approach seems good, however to make it simpler the findSubmitting Button should be public so one shouldn't have to make a new Form class just to call that method. I noticed that the Feature Request #1476905 asks just that unfortunely is open.Thanks,Jaime.Jaime De La Jara [EMAIL PROTECTED] wrote: you're right, I browsed the source code of Form and Button and it's just like that. The findSubmittingButton method is protected and final so unfortunely It's of no use in this case. I guess that I'll check another way to tackle this thing, maybe the simplest is to subclass a couple of class MyButton and MyLink and have the subclasses call the superclass event handler first. Thanks a lot again,Jaime.Igor Vaynberg [EMAIL PROTECTED] wrote: yes because the event is raised on the form not the button, thats how http works. the form then forwards the onsubmit to the button. seee findSubmittingButton() in the form, too bad its not public otherwise you couldve used it directly. -IgorOn 9/5/06, Jaime De La Jara [EMAIL PROTECTED] wrote: I've just added the afterCallComponent to my base page and put some println to see what Component and Listener it was receiving, and when I click a submit button the component that gets called it's the form containing it, I think I misunderstood the method's behaviour since I was expecting that every call to a page component would cause this method to be called. In this case I can't determine which button was clicked. Maybe what I'm looking is too cumbersome, and should evaluate using AOP which in this case I was trying to avoid, I haven't taken a look at Eelco proposal of modifying the RequestCycleProcessor, first I'll try to understand it better. Jaime.Igor Vaynberg [EMAIL PROTECTED] wrote: but you can do this yourself by implementing callbacks to these pluggable things in your basepage afterCallComponent.-IgorOn 9/5/06, Jaime De La Jara [EMAIL PROTECTED] wrote: You're right the page method afterCallComponent could be used, just I was looking for something like a superclass hook method that could be called by the framework after some processing occurred (in my case after a submit). In the case for the generic callback I was thinking of something that could be plugged in, instead of having a pair of methods for each step (onBefore../after...), I'm not sure if it makes sense, maybe an interface callback approach could also be useful. Jaime.Igor Vaynberg [EMAIL PROTECTED] wrote: The page hook could be of useful for a submit button but maybe not for a link. how do you figure? Perhaps, I'm not sure, but a generic callback mechanism could be added to the Component class, so pre and post processor could be added for the event listener methods (onSubmit(), onClick(), etc). we already have them and they have all been listed in this thread. i dont think we need more, in fact i think we already have too many.-Igor - 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 Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.Great rates starting at 1¢/min. -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.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min. -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
[Wicket-user] GridView cannot find components
I'm trying to switch from a DataView component to a GridView component as per the GridView example at [1]. Everything worked fine with the DataView but with the GridView (after adding a div wicket:id=cols element) I get: WicketMessage: Couldn't find the markup of the component 'name' in parent productList:2 (possibly off topic, what is the :2 part in this message?) It's very late here, I may be making a very stupid mistake but I just can't see it. Here's the relevant code snippets: ProductList.html div wicket:id=productList div class=product1 div wicket:id=cols p class=product_name span wicket:id=name class=label[Name]/span /p img wicket:id=image class=product_picture / p class=product_details a wicket:id=view href=ProductView.html[Details]/a /p p class=product_price span wicket:id=price[Price]/span /p img src=images/buy_button.gif class=buy_button / /div /div /div ProductList.java GridView dataView = new ProductDataView(this, this, productList, new ProductDataProvider()); dataView.setColumns(ITEM_COLUMNS); dataView.setRows(ITEM_ROWS); ProductDataView.java (extends GridView.java) protected void populateItem(final Item item) { Product product = (Product) item.getModelObject(); ProductDescription desc = ProductDescriptionService.getDescription( product.getId(), ProductDescriptionService.LANG_ID_DEFAULT); if (desc == null) desc = new ProductDescription(); new Label(item, name, desc.getName()); new Label(item, price, product.getPrice().toString()); new Image(item, image, ImageUtil .getThumbnailImageResource(product)); ProductView.link(item, view, product.getId()); item.add(new AttributeModifier(class, true, new AbstractReadOnlyModelString() { @Override public String getObject() { return (item.getIndex() % 2 == 1) ? right_products : left_products; } })); } What on earth am I doing wrong? Ross [1] http://www.wicket-library.com/wicket-examples/repeater?wicket:bookmarkablePage=:wicket.examples.repeater.GridViewPage - 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] GridView cannot find components
you are not doing anything wrong, its the gridview. we are still working out how to make it work within 2.0. the problem is that gridview needs to be able to switch parents of its items - something that we are still unsure how to best implement in 2.0-IgorOn 9/5/06, Ross Gardler [EMAIL PROTECTED] wrote: I'm trying to switch from a DataView component to a GridView componentas per the GridView example at [1]. Everything worked fine with theDataView but with the GridView (after adding a div wicket:id=cols element) I get:WicketMessage: Couldn't find the markup of the component 'name' inparent productList:2(possibly off topic, what is the :2 part in this message?)It's very late here, I may be making a very stupid mistake but I just can't see it. Here's the relevant code snippets:ProductList.htmldiv wicket:id=productList div class=product1 div wicket:id=cols p class=product_name span wicket:id=name class=label[Name]/span /p img wicket:id=image class=product_picture / p class=product_details a wicket:id=view href=""> /p p class=product_price span wicket:id=price[Price]/span /p img src="" class=buy_button / /div /div /divProductList.javaGridView dataView = new ProductDataView(this, this, productList, new ProductDataProvider());dataView.setColumns(ITEM_COLUMNS);dataView.setRows (ITEM_ROWS);ProductDataView.java (extends GridView.java)protected void populateItem(final Item item) { Product product = (Product) item.getModelObject(); ProductDescription desc = ProductDescriptionService.getDescription(product.getId(), ProductDescriptionService.LANG_ID_DEFAULT); if (desc == null) desc = new ProductDescription(); new Label(item, name, desc.getName()); new Label(item, price, product.getPrice().toString()); new Image(item, image, ImageUtil.getThumbnailImageResource(product)); ProductView.link(item, view, product.getId()); item.add(new AttributeModifier(class, true, new AbstractReadOnlyModelString() {@Overridepublic String getObject() { return (item.getIndex() % 2 == 1) ? right_products :left_products;}}));}What on earth am I doing wrong? Ross[1]http://www.wicket-library.com/wicket-examples/repeater?wicket:bookmarkablePage=:wicket.examples.repeater.GridViewPage -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 Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___Wicket-user mailing listWicket-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
[Wicket-user] Output Stream Encoding
Hi dear Users,I have a requirement that I need to cofigure the language encoding based on the Request Header accept-charset. If this is not available than we have our default charset. Now I am overriding the configureResponse() and NOT calling super.configureResponse(). But I am using the same lines used in the source code and please find the code used in configureResponse at the end of the posting. The problem I am facing is that when I visit the page through a wicket link I get the response output stream open in configureResponse, but when I refresh the page the output stream opens after configureResponse is executed. As a result in the first case I get garbage character and in the second case I get correct ouput. Please advice what to do. Currently I am cofiguring the output stream to Shift_JIS hard codedly. If I can get this flow to work then dynamically I will read the request's accept-charset and set it. It is a bit urgent so quick response will be appreciated. Thank you.code final RequestCycle cycle = getRequestCycle(); final Application application = cycle.getApplication(); final Response response = cycle.getResponse(); // Determine encoding @SuppressWarnings(unused) final String encoding = application.getRequestCycleSettings().getResponseRequestEncoding(); final String encoding1 = text/ + getMarkupType() + ; charset= + SHIFT_JIS; // Set content type based on markup type for page ( (WebResponse) response ).getHttpServletResponse().setCharacterEncoding( SHIFT_JIS ); ( (WebResponse) response ).getHttpServletResponse().setContentType( encoding1 ); ( (WebResponse) response ).getHttpServletResponse().setHeader( ACCEPT_CHARSET, SHIFT_JIS ); ( (WebResponse) response ).getHttpServletResponse().setHeader( ACCEPT_LANGUAGE, JA_JP ); // response.setContentType (text/ + getMarkupType() + ; charset= + // encoding); // Write out an xml declaration if the markup stream and settings allow final MarkupStream markupStream = findMarkupStream(); if( ( markupStream != null ) ( markupStream.getXmlDeclaration() != null ) ( application.getMarkupSettings().getStripXmlDeclarationFromOutput() == false ) ) { response.write( ?xml version='1.0' encoding=' ); response.write( SHIFT_JIS ); response.write( '? ); } System.out.println(( (WebResponse) response ).getHttpServletResponse().getCharacterEncoding()); // Set response locale from session locale response.setLocale( getSession().getLocale() );/codeImran - 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] Woogle is down
Hi, Frank, That all sounds possible. I could also see if we could even get a dedicated machine, depending on funding is these days. In that case, you could have root access yourself. This could be my (small) contribution to Wicket. About how many hits do you get per day? Cheers, David On Tue, 2006-09-05 at 10:32 +0200, Frank Bille wrote: Very interesting. Do you have a possibility to setup a cron job? (that's how the index is updated) It's a little bit of a special setup I have: * Woogle app runs off a jetty * Every night I update the index using a shellscript/Nutch. * After the index is updated I restart jetty. That's how I could manage to get the index-db updated in the Woogle app.. Frank On 9/5/06, David Leangen [EMAIL PROTECTED] wrote: Ok, thanks! If you need a place to host, you could use my server. Cheers, Dave On Tue, 2006-09-05 at 10:03 +0200, Frank Bille wrote: Sorry about that. Woogle runs off my home server, which has a mirrored raid of SATA discs. All should be fine, but for some reason one of the discs keeps falling out of the raid (HW) and the raid stops working.. grr... But it's up again. Frank On 9/5/06, David Leangen [EMAIL PROTECTED] wrote: Just thought I'd point out (sorry if this is not the right place): Tried using Woogle today and got a bad gateway error: Bad Gateway The proxy server received an invalid response from an upstream server. - 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 - 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 - 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