RE: Wiquery experiences
WiQuery *has* matured a lot. We are working hard in our late hours to implement and test interfaces to all facets of jQuery and are getting ready for Wicket 1.5. Bruno is right that for some purposes it is easy using only jQuery, simply add the jQuery js files you want and write a script tag with the document.onready function. But I am curious how one handles ajax added panels with jQuery functionality on a page or components that consume data or jquery enabled components that have jQuery options set based on business logic or components that have their visibility set based on business logic. Once a component is replaced by an ajax call the jQuery functionality is removed from this component. Not to speak of being able to reuse numerous components on numerous pages... I don't even want to begin to think about how to handle jquery component options based on business data. Now I do agree that in some cases (which do not cover the ones I described above) WiQuery is absolutely not useful and a simple static js file and static jQuery initialization statement is good enough. Not every jQuery component is worth converting to a WiQuery component. The ones that are worth are often: - components that are ajax enabled and/or; - components that have their jQuery options depend on data or logic and/or; - components that have their visibility or are enabled based on data or logic and/or; - components that are added by an ajax request and not at page load; The reason I started working on the WiQuery project is because my company creates enterprise administration applications where we have *a lot* of pages with ajax replaced panels, autocomplete text fields, accordion panels, tabbed panels, feedback popups... you name it we have it. With WiQuery we create reusable components, define which resources this component needs and what bit of jQuery it needs to initialize after the page (or ajax response) has been loaded, and simple add them to the page. The page is on a need to know basis, it will define the layout not boss all components around... WiQuery checks which resources are loaded, removes duplicates, adds the jQuery Core, jQuery UI and jQuery UI Theme. While managing multiple projects with over 1000+ pages, this takes away quite a load off our shoulders. Maarten says: Writing what should be JavaScript in your wicket Java code is quite out-of-place, and generally all you need to do is place your code where it belongs, in a .js or your markup. I wonder if he ever really used WiQuery or even looked how it's used. Or for that matter used jQuery. What you *don't* need to do with WiQuery is write js code in your java classes and we recommend to put all js code in js files and load them as a resource! To create a jQuery wicket component you: - write your jQuery js file and the html file that comes with it; - write the java code that you need to insert any application data, behaviors or validators; - let your component implement an interface (so WiQuery can detect it upon creation) to define which js/css files you want to be added as a resource and define the jQuery initialization statement with java code (which is translated most often something like document.onready(.);. There are other libraries around that do about the same as WiQuery, and perhaps better or faster, but my rant above is to clarify why the project exists and why people are using it. And the best part of it is: you don't have to use it... Regards, Hielke -Original Message- From: Bruno Borges [mailto:bruno.bor...@gmail.com] Sent: donderdag 7 april 2011 0:32 To: users@wicket.apache.org Cc: Maarten Billemont Subject: Re: Wiquery experiences Most of the things you want to do with jQuery, you don't need a library for. I totally agree with Maarten Bruno Borges www.brunoborges.com.br +55 21 76727099 The glory of great men should always be measured by the means they have used to acquire it. - Francois de La Rochefoucauld On Wed, Apr 6, 2011 at 6:15 AM, Maarten Billemont lhun...@gmail.com wrote: Unless WiQuery has matured a *lot* lately and the code has been cleaned up significantly, I can't recommend it, personally. Writing what should be JavaScript in your wicket Java code is quite out-of-place, and generally all you need to do is place your code where it belongs, in a .js or your markup. There may be some odd cases here or there where tighter integration of jQuery and Wicket can be beneficial, but those can usually be resolved some other way. I don't have enough experience or knowledge of the framework to cast a final vote though, all I'm saying is: beware of the quality of this library's code and make sure you actually need it first (I want to do jQuery stuff in my Wicket application is generally not reason enough). On 06 Apr 2011, at 11:09, ha...@dds.nl wrote: Hi, We are thinking of using wiquery for a project. We are interested in the experiences
Re: Wiquery experiences
The best thing to do is use the right tool for the right job. I personally use both plain jquery and wiquery and I am happy with it. On Thu, Apr 7, 2011 at 10:54 AM, Hielke Hoeve hielke.ho...@topicus.nlwrote: WiQuery *has* matured a lot. We are working hard in our late hours to implement and test interfaces to all facets of jQuery and are getting ready for Wicket 1.5. Bruno is right that for some purposes it is easy using only jQuery, simply add the jQuery js files you want and write a script tag with the document.onready function. But I am curious how one handles ajax added panels with jQuery functionality on a page or components that consume data or jquery enabled components that have jQuery options set based on business logic or components that have their visibility set based on business logic. Once a component is replaced by an ajax call the jQuery functionality is removed from this component. Not to speak of being able to reuse numerous components on numerous pages... I don't even want to begin to think about how to handle jquery component options based on business data. Now I do agree that in some cases (which do not cover the ones I described above) WiQuery is absolutely not useful and a simple static js file and static jQuery initialization statement is good enough. Not every jQuery component is worth converting to a WiQuery component. The ones that are worth are often: - components that are ajax enabled and/or; - components that have their jQuery options depend on data or logic and/or; - components that have their visibility or are enabled based on data or logic and/or; - components that are added by an ajax request and not at page load; The reason I started working on the WiQuery project is because my company creates enterprise administration applications where we have *a lot* of pages with ajax replaced panels, autocomplete text fields, accordion panels, tabbed panels, feedback popups... you name it we have it. With WiQuery we create reusable components, define which resources this component needs and what bit of jQuery it needs to initialize after the page (or ajax response) has been loaded, and simple add them to the page. The page is on a need to know basis, it will define the layout not boss all components around... WiQuery checks which resources are loaded, removes duplicates, adds the jQuery Core, jQuery UI and jQuery UI Theme. While managing multiple projects with over 1000+ pages, this takes away quite a load off our shoulders. Maarten says: Writing what should be JavaScript in your wicket Java code is quite out-of-place, and generally all you need to do is place your code where it belongs, in a .js or your markup. I wonder if he ever really used WiQuery or even looked how it's used. Or for that matter used jQuery. What you *don't* need to do with WiQuery is write js code in your java classes and we recommend to put all js code in js files and load them as a resource! To create a jQuery wicket component you: - write your jQuery js file and the html file that comes with it; - write the java code that you need to insert any application data, behaviors or validators; - let your component implement an interface (so WiQuery can detect it upon creation) to define which js/css files you want to be added as a resource and define the jQuery initialization statement with java code (which is translated most often something like document.onready(.);. There are other libraries around that do about the same as WiQuery, and perhaps better or faster, but my rant above is to clarify why the project exists and why people are using it. And the best part of it is: you don't have to use it... Regards, Hielke -Original Message- From: Bruno Borges [mailto:bruno.bor...@gmail.com] Sent: donderdag 7 april 2011 0:32 To: users@wicket.apache.org Cc: Maarten Billemont Subject: Re: Wiquery experiences Most of the things you want to do with jQuery, you don't need a library for. I totally agree with Maarten Bruno Borges www.brunoborges.com.br +55 21 76727099 The glory of great men should always be measured by the means they have used to acquire it. - Francois de La Rochefoucauld On Wed, Apr 6, 2011 at 6:15 AM, Maarten Billemont lhun...@gmail.com wrote: Unless WiQuery has matured a *lot* lately and the code has been cleaned up significantly, I can't recommend it, personally. Writing what should be JavaScript in your wicket Java code is quite out-of-place, and generally all you need to do is place your code where it belongs, in a .js or your markup. There may be some odd cases here or there where tighter integration of jQuery and Wicket can be beneficial, but those can usually be resolved some other way. I don't have enough experience or knowledge of the framework to cast a final vote though, all I'm saying is: beware of the quality of this library's code and make sure you
Re: Wicket cannot work on OC4J (ias 10g)?
The traditional workaround for OC4J is to use the WicketServlet rather than the WicketFilter. The reason the WicketFilter does not work, though, is normally that there is nothing to filter. OC4J will first look for the resource (e.g. /), and only if it find this resource will it actually apply any filter. Hence, declaring any also seems to work: 1) Create a dummy index.html, and store in the root folder (e.g. src/main/webapp/index.html) 2) Edit your web.xml (src/main/webapp/WEB-INF/web.xml), adding a reference to the welcome file: index.html Voila! ... at least for me :-) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-cannot-work-on-OC4J-ias-10g-tp1862252p3432836.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wiquery experiences
On 07 Apr 2011, at 09:54, Hielke Hoeve wrote: Maarten says: Writing what should be JavaScript in your wicket Java code is quite out-of-place, and generally all you need to do is place your code where it belongs, in a .js or your markup. I wonder if he ever really used WiQuery or even looked how it's used. Or for that matter used jQuery. What you *don't* need to do with WiQuery is write js code in your java classes and we recommend to put all js code in js files and load them as a resource! When I said Writing what *should* be JavaScript in your wicket Java code ..., what I was referring to is things like (ref. wiQuery Quickstart): JsScope.quickScope(alert('foo')); to represent: function() { alert('foo'); } Don't get me wrong, I'm sure wiQuery has its place and use. As I said, tightly integrating jQuery components with your Wicket application logic is probably much easier done with this abstraction layer. It's just important to know that wiQuery isn't a requirement for being able to do jQuery in a wicket application, or any sort of custom JS/AJAX for that matter. And if wiQuery has indeed matured a lot, and you aren't at risk of code injection, then sure, have at it - where it makes sense. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wiquery experiences
Hi Hielke Nice to be able to discuss with some wiquery commiter. Acutally, I was willing to use it some time ago but I found wiquery wasn't very good at selling itself. The wiki is pretty old and useless (http://code.google.com/p/wiquery/wiki/DocumentationHome?tm=6) and at the time I found no tutorial or example... Did it change in some way? I would still love to be able to have a better clue of it, since it looks intriguing, but I don't have enough time to do a proper investigation on how to use it... Regards 2011/4/7 Hielke Hoeve hielke.ho...@topicus.nl: WiQuery *has* matured a lot. We are working hard in our late hours to implement and test interfaces to all facets of jQuery and are getting ready for Wicket 1.5. Bruno is right that for some purposes it is easy using only jQuery, simply add the jQuery js files you want and write a script tag with the document.onready function. But I am curious how one handles ajax added panels with jQuery functionality on a page or components that consume data or jquery enabled components that have jQuery options set based on business logic or components that have their visibility set based on business logic. Once a component is replaced by an ajax call the jQuery functionality is removed from this component. Not to speak of being able to reuse numerous components on numerous pages... I don't even want to begin to think about how to handle jquery component options based on business data. Now I do agree that in some cases (which do not cover the ones I described above) WiQuery is absolutely not useful and a simple static js file and static jQuery initialization statement is good enough. Not every jQuery component is worth converting to a WiQuery component. The ones that are worth are often: - components that are ajax enabled and/or; - components that have their jQuery options depend on data or logic and/or; - components that have their visibility or are enabled based on data or logic and/or; - components that are added by an ajax request and not at page load; The reason I started working on the WiQuery project is because my company creates enterprise administration applications where we have *a lot* of pages with ajax replaced panels, autocomplete text fields, accordion panels, tabbed panels, feedback popups... you name it we have it. With WiQuery we create reusable components, define which resources this component needs and what bit of jQuery it needs to initialize after the page (or ajax response) has been loaded, and simple add them to the page. The page is on a need to know basis, it will define the layout not boss all components around... WiQuery checks which resources are loaded, removes duplicates, adds the jQuery Core, jQuery UI and jQuery UI Theme. While managing multiple projects with over 1000+ pages, this takes away quite a load off our shoulders. Maarten says: Writing what should be JavaScript in your wicket Java code is quite out-of-place, and generally all you need to do is place your code where it belongs, in a .js or your markup. I wonder if he ever really used WiQuery or even looked how it's used. Or for that matter used jQuery. What you *don't* need to do with WiQuery is write js code in your java classes and we recommend to put all js code in js files and load them as a resource! To create a jQuery wicket component you: - write your jQuery js file and the html file that comes with it; - write the java code that you need to insert any application data, behaviors or validators; - let your component implement an interface (so WiQuery can detect it upon creation) to define which js/css files you want to be added as a resource and define the jQuery initialization statement with java code (which is translated most often something like document.onready(.);. There are other libraries around that do about the same as WiQuery, and perhaps better or faster, but my rant above is to clarify why the project exists and why people are using it. And the best part of it is: you don't have to use it... Regards, Hielke -Original Message- From: Bruno Borges [mailto:bruno.bor...@gmail.com] Sent: donderdag 7 april 2011 0:32 To: users@wicket.apache.org Cc: Maarten Billemont Subject: Re: Wiquery experiences Most of the things you want to do with jQuery, you don't need a library for. I totally agree with Maarten Bruno Borges www.brunoborges.com.br +55 21 76727099 The glory of great men should always be measured by the means they have used to acquire it. - Francois de La Rochefoucauld On Wed, Apr 6, 2011 at 6:15 AM, Maarten Billemont lhun...@gmail.com wrote: Unless WiQuery has matured a *lot* lately and the code has been cleaned up significantly, I can't recommend it, personally. Writing what should be JavaScript in your wicket Java code is quite out-of-place, and generally all you need to do is place your code where it
Re: Wiquery experiences
Joseph, Well it is true the documentation is not updated and there is not much to start with... but mind that WiQuery is maintained by people that do this mostly on their free time... I think 1- support on the google group is rather good 2- the speed on fixing bugs and reacting to user input is hight... Additionally some of use have tried to add some extensions integrating different jquery plugins (components) (e.g. see [1] and [2]). So, what else do you need? Someone to teach you step by step how to use the projects? What about getting the example project, see how the examples works, look to the source code... and learn from there? IMHO theses are basic skills someone trying to make a living as Java programmer should have... and once you have learned something... Why not take your time and contribute some documentation? Regards, Ernesto References, 1-http://code.google.com/p/wiquery-plugins/ 2-https://github.com/hielkehoeve/wiquery-jqplot On Thu, Apr 7, 2011 at 12:06 PM, Live Nono liven...@gmail.com wrote: Hi Hielke Nice to be able to discuss with some wiquery commiter. Acutally, I was willing to use it some time ago but I found wiquery wasn't very good at selling itself. The wiki is pretty old and useless (http://code.google.com/p/wiquery/wiki/DocumentationHome?tm=6) and at the time I found no tutorial or example... Did it change in some way? I would still love to be able to have a better clue of it, since it looks intriguing, but I don't have enough time to do a proper investigation on how to use it... Regards 2011/4/7 Hielke Hoeve hielke.ho...@topicus.nl: WiQuery *has* matured a lot. We are working hard in our late hours to implement and test interfaces to all facets of jQuery and are getting ready for Wicket 1.5. Bruno is right that for some purposes it is easy using only jQuery, simply add the jQuery js files you want and write a script tag with the document.onready function. But I am curious how one handles ajax added panels with jQuery functionality on a page or components that consume data or jquery enabled components that have jQuery options set based on business logic or components that have their visibility set based on business logic. Once a component is replaced by an ajax call the jQuery functionality is removed from this component. Not to speak of being able to reuse numerous components on numerous pages... I don't even want to begin to think about how to handle jquery component options based on business data. Now I do agree that in some cases (which do not cover the ones I described above) WiQuery is absolutely not useful and a simple static js file and static jQuery initialization statement is good enough. Not every jQuery component is worth converting to a WiQuery component. The ones that are worth are often: - components that are ajax enabled and/or; - components that have their jQuery options depend on data or logic and/or; - components that have their visibility or are enabled based on data or logic and/or; - components that are added by an ajax request and not at page load; The reason I started working on the WiQuery project is because my company creates enterprise administration applications where we have *a lot* of pages with ajax replaced panels, autocomplete text fields, accordion panels, tabbed panels, feedback popups... you name it we have it. With WiQuery we create reusable components, define which resources this component needs and what bit of jQuery it needs to initialize after the page (or ajax response) has been loaded, and simple add them to the page. The page is on a need to know basis, it will define the layout not boss all components around... WiQuery checks which resources are loaded, removes duplicates, adds the jQuery Core, jQuery UI and jQuery UI Theme. While managing multiple projects with over 1000+ pages, this takes away quite a load off our shoulders. Maarten says: Writing what should be JavaScript in your wicket Java code is quite out-of-place, and generally all you need to do is place your code where it belongs, in a .js or your markup. I wonder if he ever really used WiQuery or even looked how it's used. Or for that matter used jQuery. What you *don't* need to do with WiQuery is write js code in your java classes and we recommend to put all js code in js files and load them as a resource! To create a jQuery wicket component you: - write your jQuery js file and the html file that comes with it; - write the java code that you need to insert any application data, behaviors or validators; - let your component implement an interface (so WiQuery can detect it upon creation) to define which js/css files you want to be added as a resource and define the jQuery initialization statement with java code (which is translated most often something like document.onready(.);. There are other libraries around that do about the same as WiQuery,
RE: Wiquery experiences
The wiki is quite outdated, except for a small and somewhat hidden area: http://code.google.com/p/wiquery/wiki/QuickStart The WiQuery plugins project isn't really well known and our project site does not point to it, but it a good start to see how applications can be converted, as it also contains a simple WebApplication. Any other pointers as how to improve documentation and tutorials are most welcome! Hielke -Original Message- From: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] Sent: donderdag 7 april 2011 12:26 To: users@wicket.apache.org Subject: Re: Wiquery experiences Joseph, Well it is true the documentation is not updated and there is not much to start with... but mind that WiQuery is maintained by people that do this mostly on their free time... I think 1- support on the google group is rather good 2- the speed on fixing bugs and reacting to user input is hight... Additionally some of use have tried to add some extensions integrating different jquery plugins (components) (e.g. see [1] and [2]). So, what else do you need? Someone to teach you step by step how to use the projects? What about getting the example project, see how the examples works, look to the source code... and learn from there? IMHO theses are basic skills someone trying to make a living as Java programmer should have... and once you have learned something... Why not take your time and contribute some documentation? Regards, Ernesto References, 1-http://code.google.com/p/wiquery-plugins/ 2-https://github.com/hielkehoeve/wiquery-jqplot On Thu, Apr 7, 2011 at 12:06 PM, Live Nono liven...@gmail.com wrote: Hi Hielke Nice to be able to discuss with some wiquery commiter. Acutally, I was willing to use it some time ago but I found wiquery wasn't very good at selling itself. The wiki is pretty old and useless (http://code.google.com/p/wiquery/wiki/DocumentationHome?tm=6) and at the time I found no tutorial or example... Did it change in some way? I would still love to be able to have a better clue of it, since it looks intriguing, but I don't have enough time to do a proper investigation on how to use it... Regards 2011/4/7 Hielke Hoeve hielke.ho...@topicus.nl: WiQuery *has* matured a lot. We are working hard in our late hours to implement and test interfaces to all facets of jQuery and are getting ready for Wicket 1.5. Bruno is right that for some purposes it is easy using only jQuery, simply add the jQuery js files you want and write a script tag with the document.onready function. But I am curious how one handles ajax added panels with jQuery functionality on a page or components that consume data or jquery enabled components that have jQuery options set based on business logic or components that have their visibility set based on business logic. Once a component is replaced by an ajax call the jQuery functionality is removed from this component. Not to speak of being able to reuse numerous components on numerous pages... I don't even want to begin to think about how to handle jquery component options based on business data. Now I do agree that in some cases (which do not cover the ones I described above) WiQuery is absolutely not useful and a simple static js file and static jQuery initialization statement is good enough. Not every jQuery component is worth converting to a WiQuery component. The ones that are worth are often: - components that are ajax enabled and/or; - components that have their jQuery options depend on data or logic and/or; - components that have their visibility or are enabled based on data or logic and/or; - components that are added by an ajax request and not at page load; The reason I started working on the WiQuery project is because my company creates enterprise administration applications where we have *a lot* of pages with ajax replaced panels, autocomplete text fields, accordion panels, tabbed panels, feedback popups... you name it we have it. With WiQuery we create reusable components, define which resources this component needs and what bit of jQuery it needs to initialize after the page (or ajax response) has been loaded, and simple add them to the page. The page is on a need to know basis, it will define the layout not boss all components around... WiQuery checks which resources are loaded, removes duplicates, adds the jQuery Core, jQuery UI and jQuery UI Theme. While managing multiple projects with over 1000+ pages, this takes away quite a load off our shoulders. Maarten says: Writing what should be JavaScript in your wicket Java code is quite out-of-place, and generally all you need to do is place your code where it belongs, in a .js or your markup. I wonder if he ever really used WiQuery or even looked how it's used. Or for that matter used jQuery. What you *don't* need to do with WiQuery is write js code in your java classes and we recommend to put all
Re: Wiquery experiences
Ernesto, Hielke thanks a lot for your answers At the time I looked at wiquery, it was for some specific task. This task didn't include explorating whether a full blown jquery/wicket integration framework would fit our needs. This is quite a task on its own imho, and there the lack of documentation is a real issue. For example, questions I had which would involve quite some time to figure out: - does wiquery support being used from a wicket ajax request nicely? If so, is it part of its intended aims and thus made across all its wrappers or just some of the wrapper being properly done? How does it handle the case of wiquery dependent component made visible through an ajax request? = Hielke already provided some answers which I'm glad to have read, but it doesn't cover it all - ease to use with other librairies, like JSLibraries (and its CDN integration) ? - reliability now and in the future: what about eventual bug I would find, would they be easy to fix on my own? Does the code make enough sense to me? In there a proper community around to help in case ? What's the plan for currently supported jquery versions and the future? = Ernesto also provided some answers, which is good, thanks :) I hope you understand better the questions which arise and why it would take a while to figure them out just by looking at the code. That's where more documentation/tutorial/feedbacks would help, to make the discovery cost lower. as a side note, I was already bitten by being early adopting some new frameworks, so now I tend to be more carefull, esp. for stuff that are directly seen by the users... regards - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Wiquery experiences
-Original Message- From: msj121 [mailto:msj...@gmail.com] Sent: donderdag 7 april 2011 2:13 To: users@wicket.apache.org Subject: Re: Wiquery experiences I both agree and disagree with the aforementioned comments. I don't think anyone would disagree that writing JavaScript from wicket or using a decorator to write JavaScript is wrong. In fact quite often I may not know the id of an object until run-time and I may want the javascript to run on a specific textfield with no extra class names or additional tags marking it. To say that you need an extra .js file for a one-line or even 20 line simple js command is arguable I think. Hence we created the JsScope.quickScope(). However others, like Maarten, do not like this function as it allows people to write js code in a java class. There are more than 1 way to use WiQuery and everyone can use their favorite one. That being said, if you know JavaScript or jQuery, probably WiQuery is not the most necessary, it is really an object oriented interface to jQuery, not much more as I recall. That and resource manager. That is all it needs to be, because otherwise it would be slow, large in jar size and unmaintainable. The best advantage to WiQuery I find is that JQuery at page ready can run numerous sets of commands All you need to do with WiQuery is add these commands and they are all grouped together and run in a single document ready function. Similarly WiQuery will take care of keeping track of what object id to run the script against, JavaScript files to import etc It does simplify things, but do you NEED another library, some people want to keep as few dependencies as possible, some don't care. Remember the real engine is JQuery, WiQuery is just an interface to simplify. But look at writing javascript plainly in Wicket. If it is easy for you, probably don't bother, but if your getting a headache you might want to use WiQuery. Hooray for freedom of choice! :-) My main fear is how often it may be updated and how long will it be around. I have WiQuery in a current project I may take it out, I notice I mostly have been writing my own jQuery anyway. Since January we have released 4 new 1.2 versions in which we fixed a great deal of bugs and added new features, like the YUI compressor to compress resources when in production mode. We have started to work on a wicket 1.5 version and are nearing RC status. Hielke - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Redirect back to wicket page problem
I am having a populate details link on my page which redirects to linkedin site to authorize user and fetch his information back to wicket page. What is happening right now is when user click continue on linkedin site to move back to the our site then a pin is sent to the page. Using this pin we fetch a authorization token but the problem is in case of IE the page's constructor is called twice and by then the token gets expired. I have debugged a lot but not able to find why constructor is being called twice in case of IE. I am using wicket 1.4.16, jdk1.6.24 and tomcat6 Please help. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Redirect-back-to-wicket-page-problem-tp3432947p3432947.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Redirect back to wicket page problem
check for img src=/ in your page markup. this would cause a second request to the page itself there is a IResponseFilter in Wicket for this problem: EmptySrcAttributeCheckFilter it is enabled only in DEV mode in newer versions On Thu, Apr 7, 2011 at 12:18 PM, harrytalky harryta...@gmail.com wrote: I am having a populate details link on my page which redirects to linkedin site to authorize user and fetch his information back to wicket page. What is happening right now is when user click continue on linkedin site to move back to the our site then a pin is sent to the page. Using this pin we fetch a authorization token but the problem is in case of IE the page's constructor is called twice and by then the token gets expired. I have debugged a lot but not able to find why constructor is being called twice in case of IE. I am using wicket 1.4.16, jdk1.6.24 and tomcat6 Please help. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Redirect-back-to-wicket-page-problem-tp3432947p3432947.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/
RE: Wiquery experiences
Keep in mind I do use WiQuery myself primarily for the Resource Manager, my main point was that this is the main reason to use WiQuery, like you mentioned, and that it should only be viewed as an interface was in my opinion more of a compliment to well written code. And of course people who don't know jquery or javascript will gain a lot from WiQuery bypassing much of that knowledge. I do admit that there are regular updates to WiQuery, but there was some time where it did not convert its source jquery files to the newer versions of JQuery (which I understand requires testing etc... and cannot be done quickly), which I think now can be overriden more easily by the user. My other main fear is that with a couple of JQuery Wicket modules, which will stay and be adopted and which will go. I personally hope that WiQuery will continue to be updated and grow, but with only a couple of people as maintainers, I thought it could become extinct all of a sudden at any time. Though it is good to know that it is being used by an organization, which means there is monetary incentive for them to keep it afloat. But yes, I do think that WiQuery is a great project! Though I do need to one day solve issue 77, I am hoping with the new versions of wicket/wiquery it will have been somehow solved though I may have solved it by working around the problem which is probably better code. Hielke Hoeve-2 wrote: -Original Message- From: msj121 [mailto:msj...@gmail.com] Sent: donderdag 7 april 2011 2:13 To: users@wicket.apache.org Subject: Re: Wiquery experiences I both agree and disagree with the aforementioned comments. I don't think anyone would disagree that writing JavaScript from wicket or using a decorator to write JavaScript is wrong. In fact quite often I may not know the id of an object until run-time and I may want the javascript to run on a specific textfield with no extra class names or additional tags marking it. To say that you need an extra .js file for a one-line or even 20 line simple js command is arguable I think. Hence we created the JsScope.quickScope(). However others, like Maarten, do not like this function as it allows people to write js code in a java class. There are more than 1 way to use WiQuery and everyone can use their favorite one. That being said, if you know JavaScript or jQuery, probably WiQuery is not the most necessary, it is really an object oriented interface to jQuery, not much more as I recall. That and resource manager. That is all it needs to be, because otherwise it would be slow, large in jar size and unmaintainable. The best advantage to WiQuery I find is that JQuery at page ready can run numerous sets of commands All you need to do with WiQuery is add these commands and they are all grouped together and run in a single document ready function. Similarly WiQuery will take care of keeping track of what object id to run the script against, JavaScript files to import etc It does simplify things, but do you NEED another library, some people want to keep as few dependencies as possible, some don't care. Remember the real engine is JQuery, WiQuery is just an interface to simplify. But look at writing javascript plainly in Wicket. If it is easy for you, probably don't bother, but if your getting a headache you might want to use WiQuery. Hooray for freedom of choice! :-) My main fear is how often it may be updated and how long will it be around. I have WiQuery in a current project I may take it out, I notice I mostly have been writing my own jQuery anyway. Since January we have released 4 new 1.2 versions in which we fixed a great deal of bugs and added new features, like the YUI compressor to compress resources when in production mode. We have started to work on a wicket 1.5 version and are nearing RC status. Hielke - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wiquery-experiences-tp3430320p3433900.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
SpringComponentInjector and non-Wicket servlets
We are seeing an intermittent problem with our webapp, where we are seeing the exception below. We have servlets other than Wicket's in our webapp, which provide remote services. The problem seems to be that somehow the Wicket proxy for a given Spring bean is being requested, perhaps from a different thread than Wicket's. Is there a solution for this? Any advice is appreciated. Julian org.apache.wicket.WicketRuntimeException: There is no application attached to current thread http-8443-1 at org.apache.wicket.Application.get(Application.java:179) at org.apache.wicket.spring.injection.annot.SpringComponentInjector$ContextLocator.getSpringContext(SpringComponentInjector.java:159) at org.apache.wicket.spring.SpringBeanLocator.getSpringContext(SpringBeanLocator.java:219) at org.apache.wicket.spring.SpringBeanLocator.locateProxyTarget(SpringBeanLocator.java:205) at org.apache.wicket.proxy.LazyInitProxyFactory$CGLibInterceptor.intercept(LazyInitProxyFactory.java:317) at WICKET_com.hytrust.arc.TrustedHostMgr$$EnhancerByCGLIB$$60187c65.refreshAllPolicy() at com.hytrust.policy.update.DynamicUpdater.dynamicRefreshHost(DynamicUpdater.java:868) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/SpringComponentInjector-and-non-Wicket-servlets-tp3434182p3434182.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Stateless form throws Unexpected RuntimeException
Hello i am getting a strange problem when i use stateless form in a simple wicket stateless page. this is the HTML side: Test! Enter And this is the java side: public final class Test extends WebPage { public Test () { super (); StatelessForm Form = new StatelessForm(formData){ public void onSubmit() { System.out.println(Enter);} }; add(Form); this.setStatelessHint(true); } public Test (PageParameters params) { //TODO: process page parameters } } When i click submit button called enter, wicket throws one runtime exception like this: WicketMessage: unable to find component with path formData on stateless page [Page class = com.pages.Test, id = 0, version = 0] it could be that the component is inside a repeater make your component return false in getStatelessHint() ¿Where is the repeater component? I'm going crazy with this error, ¿can someone help me? Thanks a lot! PD. I'm using wicket 1.4.17 - Another wicket newbie programmer Wicket en Español - http://aprendiendowicket.wordpress.com -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Stateless-form-throws-Unexpected-RuntimeException-tp3434187p3434187.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: SpringComponentInjector and non-Wicket servlets
the proxies wicket generates are only to be used by wicket, so do not pass those to other services. -igor On Thu, Apr 7, 2011 at 11:28 AM, jsinai jsi...@yahoo.com wrote: We are seeing an intermittent problem with our webapp, where we are seeing the exception below. We have servlets other than Wicket's in our webapp, which provide remote services. The problem seems to be that somehow the Wicket proxy for a given Spring bean is being requested, perhaps from a different thread than Wicket's. Is there a solution for this? Any advice is appreciated. Julian org.apache.wicket.WicketRuntimeException: There is no application attached to current thread http-8443-1 at org.apache.wicket.Application.get(Application.java:179) at org.apache.wicket.spring.injection.annot.SpringComponentInjector$ContextLocator.getSpringContext(SpringComponentInjector.java:159) at org.apache.wicket.spring.SpringBeanLocator.getSpringContext(SpringBeanLocator.java:219) at org.apache.wicket.spring.SpringBeanLocator.locateProxyTarget(SpringBeanLocator.java:205) at org.apache.wicket.proxy.LazyInitProxyFactory$CGLibInterceptor.intercept(LazyInitProxyFactory.java:317) at WICKET_com.hytrust.arc.TrustedHostMgr$$EnhancerByCGLIB$$60187c65.refreshAllPolicy() at com.hytrust.policy.update.DynamicUpdater.dynamicRefreshHost(DynamicUpdater.java:868) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/SpringComponentInjector-and-non-Wicket-servlets-tp3434182p3434182.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Stateless form throws Unexpected RuntimeException
chain the constructors the form is never created when the ctor with PageParameters is used, i.e when you submit On Thu, Apr 7, 2011 at 8:30 PM, Juansoft andresnet2...@yahoo.es wrote: Hello i am getting a strange problem when i use stateless form in a simple wicket stateless page. this is the HTML side: Test! Enter And this is the java side: public final class Test extends WebPage { public Test () { super (); StatelessForm Form = new StatelessForm(formData){ public void onSubmit() { System.out.println(Enter);} }; add(Form); this.setStatelessHint(true); } public Test (PageParameters params) { //TODO: process page parameters } } When i click submit button called enter, wicket throws one runtime exception like this: WicketMessage: unable to find component with path formData on stateless page [Page class = com.pages.Test, id = 0, version = 0] it could be that the component is inside a repeater make your component return false in getStatelessHint() ¿Where is the repeater component? I'm going crazy with this error, ¿can someone help me? Thanks a lot! PD. I'm using wicket 1.4.17 - Another wicket newbie programmer Wicket en Español - http://aprendiendowicket.wordpress.com -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Stateless-form-throws-Unexpected-RuntimeException-tp3434187p3434187.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/
Re: SpringComponentInjector and non-Wicket servlets
Or use WicketSessionFilter to export the Application and Session to other servlets Hacky but ... On Thu, Apr 7, 2011 at 9:41 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: the proxies wicket generates are only to be used by wicket, so do not pass those to other services. -igor On Thu, Apr 7, 2011 at 11:28 AM, jsinai jsi...@yahoo.com wrote: We are seeing an intermittent problem with our webapp, where we are seeing the exception below. We have servlets other than Wicket's in our webapp, which provide remote services. The problem seems to be that somehow the Wicket proxy for a given Spring bean is being requested, perhaps from a different thread than Wicket's. Is there a solution for this? Any advice is appreciated. Julian org.apache.wicket.WicketRuntimeException: There is no application attached to current thread http-8443-1 at org.apache.wicket.Application.get(Application.java:179) at org.apache.wicket.spring.injection.annot.SpringComponentInjector$ContextLocator.getSpringContext(SpringComponentInjector.java:159) at org.apache.wicket.spring.SpringBeanLocator.getSpringContext(SpringBeanLocator.java:219) at org.apache.wicket.spring.SpringBeanLocator.locateProxyTarget(SpringBeanLocator.java:205) at org.apache.wicket.proxy.LazyInitProxyFactory$CGLibInterceptor.intercept(LazyInitProxyFactory.java:317) at WICKET_com.hytrust.arc.TrustedHostMgr$$EnhancerByCGLIB$$60187c65.refreshAllPolicy() at com.hytrust.policy.update.DynamicUpdater.dynamicRefreshHost(DynamicUpdater.java:868) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/SpringComponentInjector-and-non-Wicket-servlets-tp3434182p3434182.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/
Re: SpringComponentInjector and non-Wicket servlets
Igor, thanks for your reply. But that's the weird thing: we are not passing those proxies to other services. We use the @SpringBean annotation only in the UI code. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/SpringComponentInjector-and-non-Wicket-servlets-tp3434182p3434532.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: SpringComponentInjector and non-Wicket servlets
well, looks like com.hytrust.policy.update.DynamicUpdater is using a proxy, is that a wicket class? -igor On Thu, Apr 7, 2011 at 1:48 PM, jsinai jsi...@yahoo.com wrote: Igor, thanks for your reply. But that's the weird thing: we are not passing those proxies to other services. We use the @SpringBean annotation only in the UI code. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/SpringComponentInjector-and-non-Wicket-servlets-tp3434182p3434532.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: SpringComponentInjector and non-Wicket servlets
say you are using @springbean in a non component in a wicket thread and you are using it in a non wicket thread too, you can do something like below if(Application.exists()) { InjectorHolder.getInjector().inject(this); }else{ //set service my way service=ServicesFactory.getService(); } On Thu, Apr 7, 2011 at 11:58 PM, jsinai jsi...@yahoo.com wrote: We are seeing an intermittent problem with our webapp, where we are seeing the exception below. We have servlets other than Wicket's in our webapp, which provide remote services. The problem seems to be that somehow the Wicket proxy for a given Spring bean is being requested, perhaps from a different thread than Wicket's. Is there a solution for this? Any advice is appreciated. Julian org.apache.wicket.WicketRuntimeException: There is no application attached to current thread http-8443-1 at org.apache.wicket.Application.get(Application.java:179) at org.apache.wicket.spring.injection.annot.SpringComponentInjector$ContextLocator.getSpringContext(SpringComponentInjector.java:159) at org.apache.wicket.spring.SpringBeanLocator.getSpringContext(SpringBeanLocator.java:219) at org.apache.wicket.spring.SpringBeanLocator.locateProxyTarget(SpringBeanLocator.java:205) at org.apache.wicket.proxy.LazyInitProxyFactory$CGLibInterceptor.intercept(LazyInitProxyFactory.java:317) at WICKET_com.hytrust.arc.TrustedHostMgr$$EnhancerByCGLIB$$60187c65.refreshAllPolicy() at com.hytrust.policy.update.DynamicUpdater.dynamicRefreshHost(DynamicUpdater.java:868) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/SpringComponentInjector-and-non-Wicket-servlets-tp3434182p3434182.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- thank you, regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: SpringComponentInjector and non-Wicket servlets
Thanks to Vineet and Igor for your help. I think I have an idea about what we've been doing wrong. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/SpringComponentInjector-and-non-Wicket-servlets-tp3434182p3434738.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org