Re: newbie problem with wicket...
I don't have secure base page because project is using wicket-auth-roles with AnnotationsRoleAuthorizationStrategy so there is no need for such page. Maybe I misunderstood your idea ? Johan Compagner wrote: > > Why dont you have a securebasepage class where you do that check for > login and login if there is that data in the request? > > On 9/8/08, dlipski <[EMAIL PROTECTED]> wrote: >> >> Hi >> >> Im developing with Wicket for short time so forgive me if I misanderstood >> some Wicket concepts. >> Recently I was asked for develop SSO-like feature for Wicket powered web >> application. >> Application uses wicket-auth-roles + Acegi for securing wicket pages. >> What I have to do is to let authenticate users to this web app only by >> typing URL in their web browsers (or clicking some prepared link). >> This URL will contain username and password but user will not be forced >> to >> fill in any form or press any button - just typing url or cliciking some >> prepared link. >> Actual way of uthentication (via Wicket page) must remain, so there will >> be >> two ways to login to application: either by filling in form or typing url >> in >> web browser. >> Because this application is using wicket-auth-roles what I have to do is >> to >> retrive from request user login and password and call signIn(username, >> password) on Session object. >> This is the moment where problem begins (for me). >> I've tried to write simple servlet to do this but when I've accessed >> Wicket >> session by: Session.get() runtime exception was thrown because Wicket >> session cant be created outside request cycle... >> ...so I decided to do this inside request cycle, but actually I dont know >> any simple solution to execute some code (after sending bookmarkable >> request) and redirect to some WicketPage. >> What I need is something like BookmarkablePage but dont displaying any >> page, >> only redirecting to other page (after executing autentication,or some >> other >> code), something which might be called BookmarkableAction ;). >> Probably it is possible to write custom request target and extend request >> target processor (to create such target) but it looks too complicated for >> me >> to perform some simple task. >> In action oriented frameworks (Struts/SpringMVC/...) its trivial, I know >> that Wicket is page oriented framework but Im wondering if there is any >> support for such 'actions'. >> >> Maybe there is some other way to achive such SSO-like feature ? >> >> Regards >> Daniel >> -- >> View this message in context: >> http://www.nabble.com/newbie-problem-with-wicket...-tp19379970p19379970.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/newbie-problem-with-wicket...-tp19379970p19387046.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Reporting Engine on Wicket 1.3.4
I use jfreechart & jasperreports with idesigner( so that people can design their own reports).. We had our on hack at the integration.. But it should be trivial.. Leon Nieuwoudt wrote: Hi all I would like to know what kind of reporting engines are commonly used for Wicket-based apps? We have the need to generate CSV, Excel, and PDF files with graphs and pretty graphics. We've looked at the JasperReports integration but the docs say it's not complete Thanks in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Reporting Engine on Wicket 1.3.4
We use reportmill (I wouldn't pick that anymore), jasperreports (has its own problems), crystal reports (haven't done anything serious yet) and business objects (old version and nowadays XI). IMO there are lots of problems with reporting tools: jasper is not sophisticated enough in its design tools, crystal reports integrates like shit and reportmill is expensive and not very well supported. Business objects borks your architecture by introducing a duplication of your domain model using its universe. I've looked at birt 3 years ago, and it was bad at that time. Haven't looked at it since. Currently the best tool is jasperreports, when you don't want customers define reports. Crystal reports seem like a better option if you have customers that need to define reports, but providing CR with programmatic data wasn't an option back in the day. So the search for the holy reporting grail continues. Martijn On Tue, Sep 9, 2008 at 9:40 AM, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: > I use jfreechart & jasperreports with idesigner( so that people can design > their own reports).. > > We had our on hack at the integration.. But it should be trivial.. > > Leon Nieuwoudt wrote: >> >> Hi all >> >> I would like to know what kind of reporting engines are commonly used >> for Wicket-based apps? We have the need to generate CSV, Excel, and >> PDF files with graphs and pretty graphics. >> >> We've looked at the JasperReports integration but the docs say it's not >> complete >> >> Thanks in advance >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > -- > -Wicket for love > > Nino Martinez Wael > Java Specialist @ Jayway DK > http://www.jayway.dk > +45 2936 7684 > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Reporting Engine on Wicket 1.3.4
Martijn Dashorst wrote: We use reportmill (I wouldn't pick that anymore), jasperreports (has its own problems), crystal reports (haven't done anything serious yet) and business objects (old version and nowadays XI). IMO there are lots of problems with reporting tools: jasper is not sophisticated enough in its design tools, crystal reports integrates like shit and reportmill is expensive and not very well supported. Business objects borks your architecture by introducing a duplication of your domain model using its universe. I've looked at birt 3 years ago, and it was bad at that time. Haven't looked at it since. Currently the best tool is jasperreports, when you don't want customers define reports. Even if they can use Ireport? http://jasperforge.org/plugins/project/project_home.php?group_id=83 . Crystal reports seem like a better option if you have customers that need to define reports, but providing CR with programmatic data wasn't an option back in the day. So the search for the holy reporting grail continues. Martijn On Tue, Sep 9, 2008 at 9:40 AM, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: I use jfreechart & jasperreports with idesigner( so that people can design their own reports).. We had our on hack at the integration.. But it should be trivial.. Leon Nieuwoudt wrote: Hi all I would like to know what kind of reporting engines are commonly used for Wicket-based apps? We have the need to generate CSV, Excel, and PDF files with graphs and pretty graphics. We've looked at the JasperReports integration but the docs say it's not complete Thanks in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Associating label tags with input elements in RepeatableViews etc.
Hi, Is there an easy way to set the "for" attribute of a label tag to the (generated) markup id of an form input element? I cannot set the for attr. directly in the html template, because the id's are generated dynamically by wicket (because part of RepeatableViews). Right now I am doing it programmatically by overriding onComponentTag on the label and setting it to the markupId of the form component there. But this seems like something that may have a better solution in wicket itself, is there? Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Reporting Engine on Wicket 1.3.4
ireport is not suitable for users. Martijn On Tue, Sep 9, 2008 at 10:29 AM, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: > > > Martijn Dashorst wrote: >> >> We use reportmill (I wouldn't pick that anymore), jasperreports (has >> its own problems), crystal reports (haven't done anything serious yet) >> and business objects (old version and nowadays XI). IMO there are lots >> of problems with reporting tools: jasper is not sophisticated enough >> in its design tools, crystal reports integrates like shit and >> reportmill is expensive and not very well supported. Business objects >> borks your architecture by introducing a duplication of your domain >> model using its universe. >> >> I've looked at birt 3 years ago, and it was bad at that time. Haven't >> looked at it since. >> >> Currently the best tool is jasperreports, when you don't want >> customers define reports. > > Even if they can use Ireport? > http://jasperforge.org/plugins/project/project_home.php?group_id=83 . >> >> Crystal reports seem like a better option if >> you have customers that need to define reports, but providing CR with >> programmatic data wasn't an option back in the day. >> >> So the search for the holy reporting grail continues. >> >> Martijn >> >> On Tue, Sep 9, 2008 at 9:40 AM, Nino Saturnino Martinez Vazquez Wael >> <[EMAIL PROTECTED]> wrote: >> >>> >>> I use jfreechart & jasperreports with idesigner( so that people can >>> design >>> their own reports).. >>> >>> We had our on hack at the integration.. But it should be trivial.. >>> >>> Leon Nieuwoudt wrote: >>> Hi all I would like to know what kind of reporting engines are commonly used for Wicket-based apps? We have the need to generate CSV, Excel, and PDF files with graphs and pretty graphics. We've looked at the JasperReports integration but the docs say it's not complete Thanks in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> -- >>> -Wicket for love >>> >>> Nino Martinez Wael >>> Java Specialist @ Jayway DK >>> http://www.jayway.dk >>> +45 2936 7684 >>> >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >> >> >> >> > > -- > -Wicket for love > > Nino Martinez Wael > Java Specialist @ Jayway DK > http://www.jayway.dk > +45 2936 7684 > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Wicket in Action
My copy of Wicket in Action just arrived - kudos to Martjin and Eelco! Great work! Jörn
[announce] Mootip in wicketstuff minies
I've just added an mootip integration wicketstuff minies. It does somewhat the same as prototip. However it also supports ajaxloading of tool tips, which are very nice. I also added an example project for wicketstuff minies so you can see how it works: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-minis-example/ check it out, and run mvn jetty:run or just start.java to get it running. Theres a screencast about it here, although the blog are about javascript integration: http://ninomartinez.wordpress.com/2008/09/09/apache-wicket-javascript-integration/ -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Associating label tags with input elements in RepeatableViews etc.
there is, something like that: final TextField field = new TextField("foo"); field.setLabel(new ResourceModel("fooKey")); add(field); add(new SimpleFormComponentLabel("fooLabel", field); regards, Michael pointbreak+wicketstuff wrote: > > Hi, > > Is there an easy way to set the "for" attribute of a label tag to the > (generated) markup id of an form input element? I cannot set the for > attr. directly in the html template, because the id's are generated > dynamically by wicket (because part of RepeatableViews). Right now I am > doing it programmatically by overriding onComponentTag on the label and > setting it to the markupId of the form component there. But this seems > like something that may have a better solution in wicket itself, is > there? > > Thanks! > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - Michael Sparer http://talk-on-tech.blogspot.com -- View this message in context: http://www.nabble.com/Associating-label-tags-with-input-elements-in-RepeatableViews-etc.-tp19388383p19389195.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Reporting Engine on Wicket 1.3.4
Martijn Dashorst wrote: ireport is not suitable for users. Wow what a statement. Depends on the user I guess:) So the holy grail continues.. Maybe it's time for a wicket UI jasper integration thing? Martijn On Tue, Sep 9, 2008 at 10:29 AM, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: Martijn Dashorst wrote: We use reportmill (I wouldn't pick that anymore), jasperreports (has its own problems), crystal reports (haven't done anything serious yet) and business objects (old version and nowadays XI). IMO there are lots of problems with reporting tools: jasper is not sophisticated enough in its design tools, crystal reports integrates like shit and reportmill is expensive and not very well supported. Business objects borks your architecture by introducing a duplication of your domain model using its universe. I've looked at birt 3 years ago, and it was bad at that time. Haven't looked at it since. Currently the best tool is jasperreports, when you don't want customers define reports. Even if they can use Ireport? http://jasperforge.org/plugins/project/project_home.php?group_id=83 . Crystal reports seem like a better option if you have customers that need to define reports, but providing CR with programmatic data wasn't an option back in the day. So the search for the holy reporting grail continues. Martijn On Tue, Sep 9, 2008 at 9:40 AM, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: I use jfreechart & jasperreports with idesigner( so that people can design their own reports).. We had our on hack at the integration.. But it should be trivial.. Leon Nieuwoudt wrote: Hi all I would like to know what kind of reporting engines are commonly used for Wicket-based apps? We have the need to generate CSV, Excel, and PDF files with graphs and pretty graphics. We've looked at the JasperReports integration but the docs say it's not complete Thanks in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Reporting Engine on Wicket 1.3.4
Thanks for the advice guys At the moment I'm not too worried about a friendly report designer... although I just know the users will ask for one and never use it ;) So I guess a JasperReport integration will give the most mileage. BIRT does seem interesting, although the integration seems somewhat hacky On Tue, Sep 9, 2008 at 8:59 AM, Martijn Dashorst <[EMAIL PROTECTED] > wrote: > Currently the best tool is jasperreports, when you don't want > customers define reports. Crystal reports seem like a better option if > you have customers that need to define reports, but providing CR with > programmatic data wasn't an option back in the day. > > So the search for the holy reporting grail continues. > > Martijn > >
Re: Gmap2 not visible
It's me again ;) I was trying to figure out why starting wicket in deployment mode solved the problem. I thought i've made a bookmark of the page i've read something about that, but i did not. And now i'm googling around but do not find it again. So would somebody of you be so kind and tell me the reason? Thanks so much! normanr wrote: > > Yeah! Thanks i've read something like that, but my mind plays so many > tricks on me at the moment :D > > Thanks so much! > > francisco treacy-2 wrote: >> >> try firing your app in DEPLOYMENT mode >> >> francisco >> >> On Fri, Sep 5, 2008 at 6:01 PM, normanr <[EMAIL PROTECTED]> wrote: >>> >>> Hi there, >>> >>> i'm having a problem with wicket-contrib-gmap2. I compiled the examples >>> and >>> everything worked fine. Then i wrote my own app just for testing but >>> when >>> i'm looking at the page i only see the 'powered by Google' Logo and the >>> Copyright Notice but no map. >>> >>> Here's my Code: >>> final GMap2 map = new GMap2("contentLocationGMap", "GoogleMapsAPIKey"); >>>add(map); >>> >>> and here the HTML: >>> >>> GoogleMap >>> >>> Had anybody have this problem too? >>> >>> Thanks for the answers ;) >>> >>> Regards, >>> >>> norman >>> -- >>> View this message in context: >>> http://www.nabble.com/Gmap2-not-visible-tp19334325p19334325.html >>> Sent from the Wicket - User mailing list archive at Nabble.com. >>> >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > -- View this message in context: http://www.nabble.com/Gmap2-not-visible-tp19334325p19389431.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Bookmarkable PagingNavigation
Yes, thanks I have read that post serveral times! Finally managed to get the thing working. Not pretty parsing the pageing parameters and adding the page but it works. Thanks! -- View this message in context: http://www.nabble.com/Bookmarkable-PagingNavigation-tp19382751p19389690.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Gmap2 not visible
normanr wrote: It's me again ;) I was trying to figure out why starting wicket in deployment mode solved the problem. I thought i've made a bookmark of the page i've read something about that, but i did not. And now i'm googling around but do not find it again. So would somebody of you be so kind and tell me the reason? Did I ever say how much I like fisheye? http://fisheye3.atlassian.com/browse/wicket-stuff/trunk/wicket-contrib-gmap2-examples/src/main/java/wicket/contrib/examples/GMapExampleApplication.java?r=3997#l57 mf Thanks so much! normanr wrote: Yeah! Thanks i've read something like that, but my mind plays so many tricks on me at the moment :D Thanks so much! francisco treacy-2 wrote: try firing your app in DEPLOYMENT mode francisco On Fri, Sep 5, 2008 at 6:01 PM, normanr <[EMAIL PROTECTED]> wrote: Hi there, i'm having a problem with wicket-contrib-gmap2. I compiled the examples and everything worked fine. Then i wrote my own app just for testing but when i'm looking at the page i only see the 'powered by Google' Logo and the Copyright Notice but no map. Here's my Code: final GMap2 map = new GMap2("contentLocationGMap", "GoogleMapsAPIKey"); add(map); and here the HTML: GoogleMap Had anybody have this problem too? Thanks for the answers ;) Regards, norman -- View this message in context: http://www.nabble.com/Gmap2-not-visible-tp19334325p19334325.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Bookmarkable PagingNavigation
Well if it's pretty or not depends on your point of view. If you want to make the thing stateless, there's no other option but passing the values by means of GET or POST parameters ... if you wish google to index each site then GET is the way to go ... Mathias P.W Nilsson wrote: > > Yes, thanks I have read that post serveral times! > > Finally managed to get the thing working. Not pretty parsing the pageing > parameters and adding the > page but it works. Thanks! > - Michael Sparer http://talk-on-tech.blogspot.com -- View this message in context: http://www.nabble.com/Bookmarkable-PagingNavigation-tp19382751p19390152.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Reporting Engine on Wicket 1.3.4
Hi, Actually there is no deed to have BIRT in a separated WAR: in our project we have included it as a (singleton) runtime which is part of the application. We also have some kind of WEB interface to manage report parameters... We found BIRT quite useful for generating reports thought we had some problems when migrating to new versions (sometimes things that were working perfectly with one version got terrible unfixed when moving to the next). With BIRT you get "for free" the ability to produce Excel, Word, etc... In our project we went a bit further and built a machinery that allows to combine BIRT (and non BIRT) PDF reports into books: BIRT reports are very good in summarizing information but you are on your own when you have to combine them... This "tool" allows you to build a tree like structure (a book) where the nodes are BIRT reports. The tool will help in collecting all the bookmarks into a table of contents, generate combined bookmarks and so on... For simpler use cases I have used iText, JFreeChart, JExcelAPI, OpenCSV... Best, Ernesto egolan74 wrote: > > Hi, > We use BIRT as a report engine. > A freelancer has created the prototype BIRT project, and now we took over > it. > 1. BIRT gives you all your needs. > 2. I don't like it very much actually. > 3. It is a different project than Wicket. (different WAR) > 4. I plan to check how to integrate it to be in the same project / WAR of > our main web application. > > Our integration: > We don't like the way BIRT implemented the parameters window so we wanted > to > make our own. > We found out that it would be much easier to develop it with Wicket than > to > customize it in BIRT. > So: > 1. We have a page that has an IFrame (inline frame). > 2. For each report (in the BIRT project) there's a Wicket's popup modal > window to select parameters. > I am very happy with the module we built for that. It is very easy to > create new parameters window. > 3. When the user chooses the parameters and press OK, I set, using > AttributeModifier, the src attribute of the inline frame. > 4. It is all Ajax, so the inline frame is updated with the src, and the > report is generated with the correct parameters.. > This module is VERY new in our project. I still have some bugs, but this > is > how we integrated BIRT and Wicket. > > A question to you all: > Has anyone worked with Wicket and BIRT? > (funny, but I planned to ask this anyway) > > Eyal > > > On Mon, Sep 8, 2008 at 11:30 AM, Leon Nieuwoudt > <[EMAIL PROTECTED]>wrote: > >> Hi all >> >> I would like to know what kind of reporting engines are commonly used >> for Wicket-based apps? We have the need to generate CSV, Excel, and >> PDF files with graphs and pretty graphics. >> >> We've looked at the JasperReports integration but the docs say it's not >> complete >> >> Thanks in advance >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > Eyal Golan > [EMAIL PROTECTED] > > Visit: http://jvdrums.sourceforge.net/ > LinkedIn: http://www.linkedin.com/in/egolan74 > > P Save a tree. Please don't print this e-mail unless it's really necessary > > > - > Eyal Golan > [EMAIL PROTECTED] > > Visit: JVDrums > LinkedIn: LinkedIn > -- View this message in context: http://www.nabble.com/Reporting-Engine-on-Wicket-1.3.4-tp19367975p19390209.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Reporting Engine on Wicket 1.3.4
reiern70: Could you please elaborate on how you included BIRT as the part of the application? You can mail directly to me if you feel it is out of Wicket's scope. Thanks On Tue, Sep 9, 2008 at 2:19 PM, reiern70 <[EMAIL PROTECTED]> wrote: > > Hi, > > Actually there is no deed to have BIRT in a separated WAR: in our project > we > have included it as a (singleton) runtime which is part of the application. > We also have some kind of WEB interface to manage report parameters... We > found BIRT quite useful for generating reports thought we had some > problems when migrating to new versions (sometimes things that were working > perfectly with one version got terrible unfixed when moving to the next). > With BIRT you get "for free" the ability to produce Excel, Word, etc... > > In our project we went a bit further and built a machinery that allows to > combine BIRT (and non BIRT) PDF reports into books: BIRT reports are very > good in summarizing information but you are on your own when you have to > combine them... This "tool" allows you to build a tree like structure (a > book) where the nodes are BIRT reports. The tool will help in collecting > all the bookmarks into a table of contents, generate combined bookmarks and > so on... > > For simpler use cases I have used iText, JFreeChart, JExcelAPI, OpenCSV... > > Best, > > Ernesto > > > > egolan74 wrote: > > > > Hi, > > We use BIRT as a report engine. > > A freelancer has created the prototype BIRT project, and now we took over > > it. > > 1. BIRT gives you all your needs. > > 2. I don't like it very much actually. > > 3. It is a different project than Wicket. (different WAR) > > 4. I plan to check how to integrate it to be in the same project / WAR of > > our main web application. > > > > Our integration: > > We don't like the way BIRT implemented the parameters window so we wanted > > to > > make our own. > > We found out that it would be much easier to develop it with Wicket than > > to > > customize it in BIRT. > > So: > > 1. We have a page that has an IFrame (inline frame). > > 2. For each report (in the BIRT project) there's a Wicket's popup modal > > window to select parameters. > > I am very happy with the module we built for that. It is very easy > to > > create new parameters window. > > 3. When the user chooses the parameters and press OK, I set, using > > AttributeModifier, the src attribute of the inline frame. > > 4. It is all Ajax, so the inline frame is updated with the src, and the > > report is generated with the correct parameters.. > > This module is VERY new in our project. I still have some bugs, but this > > is > > how we integrated BIRT and Wicket. > > > > A question to you all: > > Has anyone worked with Wicket and BIRT? > > (funny, but I planned to ask this anyway) > > > > Eyal > > > > > > On Mon, Sep 8, 2008 at 11:30 AM, Leon Nieuwoudt > > <[EMAIL PROTECTED]>wrote: > > > >> Hi all > >> > >> I would like to know what kind of reporting engines are commonly used > >> for Wicket-based apps? We have the need to generate CSV, Excel, and > >> PDF files with graphs and pretty graphics. > >> > >> We've looked at the JasperReports integration but the docs say it's not > >> complete > >> > >> Thanks in advance > >> > >> - > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > > > > -- > > Eyal Golan > > [EMAIL PROTECTED] > > > > Visit: http://jvdrums.sourceforge.net/ > > LinkedIn: http://www.linkedin.com/in/egolan74 > > > > P Save a tree. Please don't print this e-mail unless it's really > necessary > > > > > > - > > Eyal Golan > > [EMAIL PROTECTED] > > > > Visit: JVDrums > > LinkedIn: LinkedIn > > > > -- > View this message in context: > http://www.nabble.com/Reporting-Engine-on-Wicket-1.3.4-tp19367975p19390209.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Eyal Golan [EMAIL PROTECTED] Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary
WebResource and authentication
H! I inherited my application class from AuthenticatedWebApplication so my pages requires authentication. It worked. But I've created a class inherited from WebResource to deliver Jasper Report in PDF and mounted it with this code: mountSharedResource("/Report", new ResourceReference("Report") { @Override protected Resource newResource() { return new ReportWebResource(); } }.getSharedResourceKey()); The problem is that when I access /Report it bypass the authentication system, and I don't want this. How can I make WebResource require authentication? Thanks, Adriano - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Reporting Engine on Wicket 1.3.4
We use Jasper reports. We took what had been started and made some modifications and have it working in Wicket. It works well for us. David Eyal Golan wrote: reiern70: Could you please elaborate on how you included BIRT as the part of the application? You can mail directly to me if you feel it is out of Wicket's scope. Thanks On Tue, Sep 9, 2008 at 2:19 PM, reiern70 <[EMAIL PROTECTED]> wrote: Hi, Actually there is no deed to have BIRT in a separated WAR: in our project we have included it as a (singleton) runtime which is part of the application. We also have some kind of WEB interface to manage report parameters... We found BIRT quite useful for generating reports thought we had some problems when migrating to new versions (sometimes things that were working perfectly with one version got terrible unfixed when moving to the next). With BIRT you get "for free" the ability to produce Excel, Word, etc... In our project we went a bit further and built a machinery that allows to combine BIRT (and non BIRT) PDF reports into books: BIRT reports are very good in summarizing information but you are on your own when you have to combine them... This "tool" allows you to build a tree like structure (a book) where the nodes are BIRT reports. The tool will help in collecting all the bookmarks into a table of contents, generate combined bookmarks and so on... For simpler use cases I have used iText, JFreeChart, JExcelAPI, OpenCSV... Best, Ernesto egolan74 wrote: Hi, We use BIRT as a report engine. A freelancer has created the prototype BIRT project, and now we took over it. 1. BIRT gives you all your needs. 2. I don't like it very much actually. 3. It is a different project than Wicket. (different WAR) 4. I plan to check how to integrate it to be in the same project / WAR of our main web application. Our integration: We don't like the way BIRT implemented the parameters window so we wanted to make our own. We found out that it would be much easier to develop it with Wicket than to customize it in BIRT. So: 1. We have a page that has an IFrame (inline frame). 2. For each report (in the BIRT project) there's a Wicket's popup modal window to select parameters. I am very happy with the module we built for that. It is very easy to create new parameters window. 3. When the user chooses the parameters and press OK, I set, using AttributeModifier, the src attribute of the inline frame. 4. It is all Ajax, so the inline frame is updated with the src, and the report is generated with the correct parameters.. This module is VERY new in our project. I still have some bugs, but this is how we integrated BIRT and Wicket. A question to you all: Has anyone worked with Wicket and BIRT? (funny, but I planned to ask this anyway) Eyal On Mon, Sep 8, 2008 at 11:30 AM, Leon Nieuwoudt <[EMAIL PROTECTED]>wrote: Hi all I would like to know what kind of reporting engines are commonly used for Wicket-based apps? We have the need to generate CSV, Excel, and PDF files with graphs and pretty graphics. We've looked at the JasperReports integration but the docs say it's not complete Thanks in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Eyal Golan [EMAIL PROTECTED] Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary - Eyal Golan [EMAIL PROTECTED] Visit: JVDrums LinkedIn: LinkedIn -- View this message in context: http://www.nabble.com/Reporting-Engine-on-Wicket-1.3.4-tp19367975p19390209.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- David R Robison Open Roads Consulting, Inc. 708 S. Battlefield Blvd., Chesapeake, VA 23322 phone: (757) 546-3401 e-mail: [EMAIL PROTECTED] web: http://openroadsconsulting.com blog: http://therobe.blogspot.com book: http://www.xulonpress.com/book_detail.php?id=2579 This e-mail communication (including any attachments) may contain confidential and/or privileged material intended solely for the individual or entity to which it is addressed. If you are not the intended recipient, you should immediately stop reading this message and delete it from all computers that it resides on. Any unauthorized reading, distribution, copying or other use of this communication (or its attachments) is strictly prohibited. If you have received this communication in error, please notify us immediately.
Re: newbie problem witch wicket...
Hi, I've only been using Wicket a very short time, but why don;t you just create a simple login form page. Then look at the source and you'll see something like: Then you need to just to POST the username and password parameters to the above URL , and it'll log you in. I not sure how you set to us GET in wicket which would be more easy for you. But I''m sure someone get tell you how to set that up for a form. cheers Wayne On Mon, Sep 8, 2008 at 9:59 PM, dlipski <[EMAIL PROTECTED]> wrote: > > Hi > > Im developing with Wicket for short time so forgive me if I misanderstood > some Wicket concepts. > Recently I was asked for develop SSO-like feature for Wicket powered web > application. > Application uses wicket-auth-roles + Acegi for securing wicket pages. > What I have to do is to let authenticate users to this web app only by > typing URL in their web browsers (or clicking some prepared link). > This URL will contain username and password but user will not be forced to > fill in any form or press any button - just typing url or cliciking some > prepared link. > Actual way of uthentication (via Wicket page) must remain, so there will be > two ways to login to application: either by filling in form or typing url > in > web browser. > Because this application is using wicket-auth-roles what I have to do is to > retrive from request user login and password and call signIn(username, > password) on Session object. > This is the moment where problem begins (for me). > I've tried to write simple servlet to do this but when I've accessed Wicket > session by: Session.get() runtime exception was thrown because Wicket > session cant be created outside request cycle... > ...so I decided to do this inside request cycle, but actually I dont know > any simple solution to execute some code (after sending bookmarkable > request) and redirect to some WicketPage. > What I need is something like BookmarkablePage but dont displaying any > page, > only redirecting to other page (after executing autentication,or some other > code), something which might be called BookmarkableAction ;). > Probably it is possible to write custom request target and extend request > target processor (to create such target) but it looks too complicated for > me > to perform some simple task. > In action oriented frameworks (Struts/SpringMVC/...) its trivial, I know > that Wicket is page oriented framework but Im wondering if there is any > support for such 'actions'. > > Maybe there is some other way to achive such SSO-like feature ? > > Regards > Daniel > -- > View this message in context: > http://www.nabble.com/newbie-problem-witch-wicket...-tp19379967p19379967.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: StringResourceModel: use MessageFormat features without params array?
Ooops sorry, did not think there would be any reply after a few days... Implementing the varargs doesn't make this any nicer, I think. (Well, a little bit...) The current way does not seem very elegant to me, why would one want to pass an array of propertymodels as a 4th param if all the data could be passed using a single model in the 3rd param? It just does not look right in the line of how elegant the very same works when there are no MessageFormat features needed. I will have a look at it when there's time... maybe I'll be able to post an actual suggestion for improvement then, otherweise I will understand why it is implemented as it currently is. ;-) Timo Rantalaiho wrote: > > On Wed, 27 Aug 2008, pixologe wrote: >> Short question: if my interpretation of the source code is correct, it is >> not possible to use StringResourceModel's MessageFormat features just >> with a >> single model (without passing a params array). >> >> If this is right: would it be a good idea to make it possible or is there >> a >> good reason that it is not, which I am not aware of? > > I think that the best choice is to fix that with varargs in > Wicket 1.4 or 1.5 (that use Java 5 that has varargs). The > dependency on the order will stay though. > > Best wishes, > Timo > > -- > Timo Rantalaiho > Reaktor Innovations Oyhttp://www.ri.fi/ > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/StringResourceModel%3A-use-MessageFormat-features-without-params-array--tp19177943p19391213.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: wicket-mooeditable release + ajax/javascript problem
thanks nino, in fact i copied what i have done with wicket-nicedit textarea. in this case, it did work with ajax. i will grab all available wicket textarea editors, and patiently try to discover what tricks javascript is playing on me. francisco On Mon, Sep 8, 2008 at 2:19 AM, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: > Hi Francisco > > > > francisco treacy wrote: >> >> i have created a basic wicket component that integrates MooEditable, a >> lightweight textarea editor based on mootools. >> >> http://code.google.com/p/wicket-mooeditable/ >> >> usage (in your form): >> >>TextArea textarea = new TextArea("post"); >>textarea.setOutputMarkupId(true); >>textarea.add(new MooEditableBehavior()); >>form.add(textarea); >> >>(...) >> >>form.add(new MooEditableAjaxButton("submit", form) { >> >>@Override >>protected void onSubmit(AjaxRequestTarget arg0, >> Form arg1) { >>// stuff here >>} >> >>}); >> >> >> the need for a special button is because the updated contents of the >> textareas have to be saved before submit. MooEditableAjaxButton is an >> AjaxFallbackButton that decorates the submit's onclick, calling >> saveContent() on every mooeditable-enabled textarea. >> >> >> >> the problem here is that it will always fall back to a normal post, >> never an ajax one. if i change my button to >> form.add(new AjaxFallbackButton("submit", form) { ... } ajax submit >> does work fine. >> but obviously the model binding is not good (post1.saveContent(); >> title2.saveContent(); is not added, therefore textarea's contents are >> not updated). >> > > Looks like it's a mootools thing? You could take a look at YUI editor or > tinyMCE and see how they do their form submission... >> >> my knowledge in javascript is really limited. how can i get to post >> updated contents with pure ajax, not degrading to a normal request? >> >> thanks, >> >> francisco >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > -- > -Wicket for love > > Nino Martinez Wael > Java Specialist @ Jayway DK > http://www.jayway.dk > +45 2936 7684 > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Displaying Images in MultiLineLabel
Hello, i have a problem with my wicket application. It loads files containing wiki-syntax from a svn repository. The wiki- syntax is then converted into HTML and displayed by the application by a MultilineLabel. The wiki-syntax can reference images, which are also stored in the svn repository. After converting the wiki-text to html, i get an tag. Its src references the correct file in the svn repository. The problem is, that the img tag is handled by the clients browser, which does not have access to the svn repository. So, the clients browser will ask for login information. I changed the wiki-converting method so that it adds the svn username and password to the img tag. However, now the browser will ask for confirmation for opening an url with a username. Also, Firefox will display the username and password in the images properties, which should be hidden from the user. The question is, how can i let the application handle the image loading? Greetings Johannes Dorn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Upcoming Wicket Training
Our next 6 scheduled, intensive Wicket courses are listed below. http://jweekend.com/dev/ContactUsBody/ Contact us for custom dates and/or content combined with our Java/Swing/OO/Spring/JPA course modules. http://jweekend.com/dev/JW703/ Apache Wicket (2 day) Sept 13,14 (Sat-Sun; limited booking before Thursday 17:30) Oct 16,17 (Thu-Fri) Oct 18,19 (Sat-Sun) http://jweekend.com/dev/JW706/ Apache Wicket Quickstart (1 day) Sept 21 (Sunday) Sept 22 (Mon) Oct 22 (Wed) Users of this list should enter voucher code JW_WU_B4_20081022 to receive an extra 5% discount on any of the above. Regards - Cemal http://www.jWeekend.co.uk http://jWeekend.co.uk -- View this message in context: http://www.nabble.com/Upcoming-Wicket-Training-tp19391839p19391839.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DateField throwing runtime error in IE only
I am having the same problem in IE7 on a ModalWindow with a Panel, with a DateTextField and a DatePicker attached to it. if I set the date the calendar does not appare. i try to use wicket 1.4m2-m3 but problem remain.. If I remove date from the datetextfield and click on calendar again then calendar appare. Someone have the solution? Michael Mehrle wrote: > > I have a DateField inside a modal and when clicking on the date icon > it's throwing a 'unknown runtime error' in IE's JavaScript console. > Works in Safari and Firefox. > > > > Is this a commonly known problem? > > > > Michael > > > -- View this message in context: http://www.nabble.com/DateField-throwing-runtime-error-in-IE-only-tp17379574p19392243.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: wicketajaxget and waiting?
It has to be done different way. you can do it with onsuccess callback. This might be a bit tricky with current ajax implementation, it will be much easier in Wicket 1.5 -Matej On Tue, Sep 9, 2008 at 12:16 AM, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: > Hi > > Im doing a mootip integration for wicketstuff (minis). I am only one step > away from being able to release. Im having a bit of a problem with the ajax > integration, might be me that have stared myself blind... > > This is where im at (I have all the other bits in place): > > var > content=wicketAjaxGet('?wicket:interface=:0:tooltip02::IBehaviorListener:1:', > null, null,null); > content=document.getElementById('mooTipContent').innerHTML; > return content; > > Now what happens are that the tooltip displays the previous tooltip, so it's > always lacking one behind. It's because wicketAjaxGet loads asynchronous so > the method returns content from the previous request.. So the question are > is there anyway of waiting for wicketAjaxGet to complete? Or should it be > done in another way? > > -- > -Wicket for love > > Nino Martinez Wael > Java Specialist @ Jayway DK > http://www.jayway.dk > +45 2936 7684 > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Displaying Images in MultiLineLabel
You could adjust the src attribute on rendering, so it points back to your web application. You can use a servlet or a wicket resource to load the image date from your svn and serve its contents to the browser. Sven Johannes Dorn schrieb: Hello, i have a problem with my wicket application. It loads files containing wiki-syntax from a svn repository. The wiki- syntax is then converted into HTML and displayed by the application by a MultilineLabel. The wiki-syntax can reference images, which are also stored in the svn repository. After converting the wiki-text to html, i get an tag. Its src references the correct file in the svn repository. The problem is, that the img tag is handled by the clients browser, which does not have access to the svn repository. So, the clients browser will ask for login information. I changed the wiki-converting method so that it adds the svn username and password to the img tag. However, now the browser will ask for confirmation for opening an url with a username. Also, Firefox will display the username and password in the images properties, which should be hidden from the user. The question is, how can i let the application handle the image loading? Greetings Johannes Dorn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: wicketajaxget and waiting?
Hi Matej Yeah found out, and did so:) You can see the final result in minies mootipajaxlistener..:) Matej Knopp wrote: It has to be done different way. you can do it with onsuccess callback. This might be a bit tricky with current ajax implementation, it will be much easier in Wicket 1.5 -Matej On Tue, Sep 9, 2008 at 12:16 AM, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: Hi Im doing a mootip integration for wicketstuff (minis). I am only one step away from being able to release. Im having a bit of a problem with the ajax integration, might be me that have stared myself blind... This is where im at (I have all the other bits in place): var content=wicketAjaxGet('?wicket:interface=:0:tooltip02::IBehaviorListener:1:', null, null,null); content=document.getElementById('mooTipContent').innerHTML; return content; Now what happens are that the tooltip displays the previous tooltip, so it's always lacking one behind. It's because wicketAjaxGet loads asynchronous so the method returns content from the previous request.. So the question are is there anyway of waiting for wicketAjaxGet to complete? Or should it be done in another way? -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: GMap2 (wicket-contrib-gmap2) and autozoom with getBoundsZoomLevel
http://wicketstuff.org/jira/browse/WSGMAPP-7 says implemented in Rev 3416. But I don't find anything like that, neither in the HEAD nor the comment for REV 3416. Is it gone or has it never been in svn? Martin Funk-3 wrote: > > Hi Marko, > > 2008/2/3, Marko Taipale <[EMAIL PROTECTED]>: >> >> >> Hi, >> >> I am about to do a feature to my wicket app containing gmap. There are >> several markers on the map and the map will autozoom & center according >> to >> those marker positions. >> >> Now I am wondering if there is upcoming support for >> getBoundsZoomLevel(bounds) & extend(point)* ? > > > There shure is. It already has its own feature request. > http://wicketstuff.org/jira/browse/WSGMAPP-7 > > Back to serious: > I think its a reasonable request, but I can't tell you when it'll be > implemented. If you can come up with some code you feel confident with you > are welcome to attach ist to the Issue. Or, if you are really confident > about your code ask for commit access to wicket-stuff. > > Thnx, > > Martin > > Or has anybody already written >> an app with such a feature / component and could even pass the code - I'm >> feeling lazy ;). >> >> Thanks, >> - Marko >> >> *see >> http://code.google.com/apis/maps/documentation/reference.html#GMap2and >> example at http://econym.googlepages.com/basic14.htm >> >> -- >> View this message in context: >> http://www.nabble.com/GMap2-%28wicket-contrib-gmap2%29-and-autozoom-with-getBoundsZoomLevel-tp15252786p15252786.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > -- View this message in context: http://www.nabble.com/GMap2-%28wicket-contrib-gmap2%29-and-autozoom-with-getBoundsZoomLevel-tp15252786p19392798.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Displaying Images in MultiLineLabel
Thanks for your answer. I have adjusted the src to point back to the application. It is pointing to this class: public class ViewImg extends WebPage { private static final long serialVersionUID = 1L; public ViewImg(final PageParameters parameters) { String siteId = parameters.getString("id"); String url = Settings.getInstance().getSvnURL() + "/" + "graphiken/" + siteId; StaticImage image = new StaticImage("image", new Model(url)); add(image); } } ViewImg loads and displays the image correctly, if i open the WebPage directly. However, it does not embed the image in the output of the MultiLineLabel. I am very new to Wicket, so i don't know how to use servlets or a wicket resource. Any hints, how i would use them? Greetings Johannes Dorn Am 09.09.2008 um 15:47 schrieb <[EMAIL PROTECTED]>: You could adjust the src attribute on rendering, so it points back to your web application. You can use a servlet or a wicket resource to load the image date from your svn and serve its contents to the browser. Sven Johannes Dorn schrieb: Hello, i have a problem with my wicket application. It loads files containing wiki-syntax from a svn repository. The wiki- syntax is then converted into HTML and displayed by the application by a MultilineLabel. The wiki-syntax can reference images, which are also stored in the svn repository. After converting the wiki-text to html, i get an tag. Its src references the correct file in the svn repository. The problem is, that the img tag is handled by the clients browser, which does not have access to the svn repository. So, the clients browser will ask for login information. I changed the wiki-converting method so that it adds the svn username and password to the img tag. However, now the browser will ask for confirmation for opening an url with a username. Also, Firefox will display the username and password in the images properties, which should be hidden from the user. The question is, how can i let the application handle the image loading? Greetings Johannes Dorn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: session "jumping"?
My appologies. The problem was bad design and code on my part. -- View this message in context: http://www.nabble.com/session-%22jumping%22--tp18999615p19395226.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: GMap2 (wicket-contrib-gmap2) and autozoom with getBoundsZoomLevel
Don't know what bit me there, I have to apologize. You don't happen to have any ideas molded in code on that, do you? mf normanr wrote: http://wicketstuff.org/jira/browse/WSGMAPP-7 says implemented in Rev 3416. But I don't find anything like that, neither in the HEAD nor the comment for REV 3416. Is it gone or has it never been in svn? Martin Funk-3 wrote: Hi Marko, 2008/2/3, Marko Taipale <[EMAIL PROTECTED]>: Hi, I am about to do a feature to my wicket app containing gmap. There are several markers on the map and the map will autozoom & center according to those marker positions. Now I am wondering if there is upcoming support for getBoundsZoomLevel(bounds) & extend(point)* ? There shure is. It already has its own feature request. http://wicketstuff.org/jira/browse/WSGMAPP-7 Back to serious: I think its a reasonable request, but I can't tell you when it'll be implemented. If you can come up with some code you feel confident with you are welcome to attach ist to the Issue. Or, if you are really confident about your code ask for commit access to wicket-stuff. Thnx, Martin Or has anybody already written an app with such a feature / component and could even pass the code - I'm feeling lazy ;). Thanks, - Marko *see http://code.google.com/apis/maps/documentation/reference.html#GMap2and example at http://econym.googlepages.com/basic14.htm -- View this message in context: http://www.nabble.com/GMap2-%28wicket-contrib-gmap2%29-and-autozoom-with-getBoundsZoomLevel-tp15252786p15252786.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: GMap2 (wicket-contrib-gmap2) and autozoom with getBoundsZoomLevel
Not right now Martin, but i think that we'll need to do it. But I can't promise ;( Martin Funk-3 wrote: > > Don't know what bit me there, > I have to apologize. > > You don't happen to have any ideas molded in code on that, do you? > > mf > > normanr wrote: >> http://wicketstuff.org/jira/browse/WSGMAPP-7 says implemented in Rev >> 3416. >> But I don't find anything like that, neither in the HEAD nor the comment >> for REV 3416. Is it gone or has it never been in svn? >> >> >> >> Martin Funk-3 wrote: >> >>> Hi Marko, >>> >>> 2008/2/3, Marko Taipale <[EMAIL PROTECTED]>: >>> Hi, I am about to do a feature to my wicket app containing gmap. There are several markers on the map and the map will autozoom & center according to those marker positions. Now I am wondering if there is upcoming support for getBoundsZoomLevel(bounds) & extend(point)* ? >>> There shure is. It already has its own feature request. >>> http://wicketstuff.org/jira/browse/WSGMAPP-7 >>> >>> Back to serious: >>> I think its a reasonable request, but I can't tell you when it'll be >>> implemented. If you can come up with some code you feel confident with >>> you >>> are welcome to attach ist to the Issue. Or, if you are really confident >>> about your code ask for commit access to wicket-stuff. >>> >>> Thnx, >>> >>> Martin >>> >>> Or has anybody already written >>> an app with such a feature / component and could even pass the code - I'm feeling lazy ;). Thanks, - Marko *see http://code.google.com/apis/maps/documentation/reference.html#GMap2and example at http://econym.googlepages.com/basic14.htm -- View this message in context: http://www.nabble.com/GMap2-%28wicket-contrib-gmap2%29-and-autozoom-with-getBoundsZoomLevel-tp15252786p15252786.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] >>> >> >> > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/GMap2-%28wicket-contrib-gmap2%29-and-autozoom-with-getBoundsZoomLevel-tp15252786p19395666.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Review: Wicket in Action
Hey folks, here's my review of Wicket in Action. Excellent job Martijn and Eelco and all those that help them along the way! http://www.mysticcoders.com/blog/2008/09/09/book-review-wicket-in-action/ -- Craig Tataryn site: http://www.basementcoders.com/ podcast:http://feeds.feedburner.com/TheBasementCoders irc: ThaDon on freenode #basementcoders, ##wicket, #papernapkin im: [EMAIL PROTECTED], skype: craig.tataryn
Re: Review: Wicket in Action
Auch, with all those feathers stuck in my behind sitting will be a problem for the next couple of days. Thanks for the review, I'm glad you enjoyed it! Martijn On Tue, Sep 9, 2008 at 6:47 PM, Craig Tataryn <[EMAIL PROTECTED]> wrote: > Hey folks, here's my review of Wicket in Action. Excellent job Martijn and > Eelco and all those that help them along the way! > > http://www.mysticcoders.com/blog/2008/09/09/book-review-wicket-in-action/ > > -- > Craig Tataryn > site: http://www.basementcoders.com/ > podcast:http://feeds.feedburner.com/TheBasementCoders > irc: ThaDon on freenode #basementcoders, ##wicket, #papernapkin > im: [EMAIL PROTECTED], skype: craig.tataryn > -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: newbie problem witch wicket...
Hi It's some idea but I think that its a little bit of hacking (sending GET request to formSubmitListener). I found other (are they better ?) solutions: 1)Use usual WebPage and in constructor of this page write code to execute and then at the end call setRedirect(true) and setResponsePage(somePage) 2)Use Statless page and statless link, write code in link onclick method. Both solutions assume that acces to this page is done through 'bookmarkable' URL. None of these two solutions satisfy me completly because each of them is some kind of hacking for me. In first aproach we use Page constructor to execute some code/action not to display page, this page even doesnt need any markup file (it will never be rendered), whats more, replacing responsePage in constructor of another page looks strange - for me it is breaking of contract(or maybe my understanding) of WebPage. In second solution we use statless page and statless link not to display link to the user but just to allow call any code/action throught 'bookmarkable url'. For me this is also breaking of statless page and statless link contracts. Because both of this solutions work, I probably choose one of them but Im curious why there is no support in wicket for such (simple in action based framework) cases (or maybe there is but I cant find it ?). For me it will be great if I could create 'action' like class and call it from wicket (inside request cycle) and forward/redirect to some page. I think it could be done by extending RequestCycleProcessor (to accept wicket:action url) and write new base class for ActionRequestTargets. I know that Wicket is page oriented framework but wouldnt be great if it could also support some simple 'ations' ? As I said Im new to Wicket and maybe it is impossible or its breaking some of wicket vision/assumptions ? What do you think about such feature ? Of course when nature of web application is rather action then page oriented we should use some of existing action based frameworks, but I think (as newbie) there are scenarios where in page oriented application such feature (call some code inside request cycle and redirect to page) will be very helpfull. Waiting for your opinions. Reagrds, Daniel Wayne Pope wrote: > > Hi, > > I've only been using Wicket a very short time, but why don;t you just > create > a simple login form page. > Then look at the source and you'll see something like: > action="?wicket:bookmarkablePage=:com.youpackage.LoginPage&wicket:interface=:0:signInPanel:signInForm::IFormSubmitListener::" > wicket:id="signInForm" id="signInForm" method="post"> > > > Then you need to just to POST the username and password parameters to the > above URL , and it'll log you in. > > I not sure how you set to us GET in wicket which would be more easy for > you. > But I''m sure someone get tell you how to set that up for a form. > > cheers > Wayne > > On Mon, Sep 8, 2008 at 9:59 PM, dlipski <[EMAIL PROTECTED]> > wrote: > >> >> Hi >> >> Im developing with Wicket for short time so forgive me if I misanderstood >> some Wicket concepts. >> Recently I was asked for develop SSO-like feature for Wicket powered web >> application. >> Application uses wicket-auth-roles + Acegi for securing wicket pages. >> What I have to do is to let authenticate users to this web app only by >> typing URL in their web browsers (or clicking some prepared link). >> This URL will contain username and password but user will not be forced >> to >> fill in any form or press any button - just typing url or cliciking some >> prepared link. >> Actual way of uthentication (via Wicket page) must remain, so there will >> be >> two ways to login to application: either by filling in form or typing url >> in >> web browser. >> Because this application is using wicket-auth-roles what I have to do is >> to >> retrive from request user login and password and call signIn(username, >> password) on Session object. >> This is the moment where problem begins (for me). >> I've tried to write simple servlet to do this but when I've accessed >> Wicket >> session by: Session.get() runtime exception was thrown because Wicket >> session cant be created outside request cycle... >> ...so I decided to do this inside request cycle, but actually I dont know >> any simple solution to execute some code (after sending bookmarkable >> request) and redirect to some WicketPage. >> What I need is something like BookmarkablePage but dont displaying any >> page, >> only redirecting to other page (after executing autentication,or some >> other >> code), something which might be called BookmarkableAction ;). >> Probably it is possible to write custom request target and extend request >> target processor (to create such target) but it looks too complicated for >> me >> to perform some simple task. >> In action oriented frameworks (Struts/SpringMVC/...) its trivial, I know >> that Wicket is page oriented framework but Im wondering if there is any >> support for such 'actions'. >
Best first approach to Wicket for my case
I plan to use Wicket first time for my next project. I will use Wicket + Spring + Hibernate to build a web application. I am familiar with Spring (mostly the pre-2.5 version) and Hibernate. And I also worked with Swing before moved into the Java server side development. I would like to hear any suggestions of most effective approaches. I don't have a lot of time for this project, but would like to get it up ASAP. The first phase of the project will allow users post entries which involves image uploading and map display. Online forum is another feature in my plan. While I am starting research/study on related materials, I would like to hear suggestions/advices from others with related successful or unsuccessful experience. Thanks very much in advance. .v
Re: GMap2 (wicket-contrib-gmap2) and autozoom with getBoundsZoomLevel
normanr wrote: Not right now Martin, but i think that we'll need to do it. But I can't promise ;( who is it that you mean by 'we'? I've been rolling the thoughts about a possible implementation in my head this afternoon, but didn't get to a reasonable answer yet. I might not have understood the use case yet. Implementing the methods 'getBoundsZoomLevel(bounds) & extend(point)' in a way that the server could ask for their execution, while being in a request/response cycle, and also receive their outcome might be not so easy to implement nor to use. If the use is closer to what is described in http://econym.googlepages.com/basic14.htm it might be easier. Here the server would be enabled to place a call to the map which re zooms and slips it, so that some given points would show up. Later on it would be informed about the border and the zoomlevel of the map. I think that's easier to implement. mf Btw.: I can't promis anything either ;-) Martin Funk-3 wrote: Don't know what bit me there, I have to apologize. You don't happen to have any ideas molded in code on that, do you? mf normanr wrote: http://wicketstuff.org/jira/browse/WSGMAPP-7 says implemented in Rev 3416. But I don't find anything like that, neither in the HEAD nor the comment for REV 3416. Is it gone or has it never been in svn? Martin Funk-3 wrote: Hi Marko, 2008/2/3, Marko Taipale <[EMAIL PROTECTED]>: Hi, I am about to do a feature to my wicket app containing gmap. There are several markers on the map and the map will autozoom & center according to those marker positions. Now I am wondering if there is upcoming support for getBoundsZoomLevel(bounds) & extend(point)* ? There shure is. It already has its own feature request. http://wicketstuff.org/jira/browse/WSGMAPP-7 Back to serious: I think its a reasonable request, but I can't tell you when it'll be implemented. If you can come up with some code you feel confident with you are welcome to attach ist to the Issue. Or, if you are really confident about your code ask for commit access to wicket-stuff. Thnx, Martin Or has anybody already written an app with such a feature / component and could even pass the code - I'm feeling lazy ;). Thanks, - Marko *see http://code.google.com/apis/maps/documentation/reference.html#GMap2and example at http://econym.googlepages.com/basic14.htm -- View this message in context: http://www.nabble.com/GMap2-%28wicket-contrib-gmap2%29-and-autozoom-with-getBoundsZoomLevel-tp15252786p15252786.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: session "jumping"?
Could you enlighten us on what the problem was so we know what to avoid in our own implementations? Is that what Igor suggested? Your isVisible() method cheeking a "static" value? 2008/9/9 m_salman <[EMAIL PROTECTED]> > > My appologies. The problem was bad design and code on my part. > > -- > View this message in context: > http://www.nabble.com/session-%22jumping%22--tp18999615p19395226.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
listview
Hi, I have a list of String that I want to display using ListView in three different columns of table. I don't want to split list into three lists and use three different ListViews. I just want to use only one ListView and display strings in three columns. e.g. Title of Table string1 | string2 | string3 string11 | string22 | string33 string111 | string222 | string333 Is there any way to do it? Thanks, -Sanjay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: listview
use a gridview -igor On Tue, Sep 9, 2008 at 1:30 PM, Patel, Sanjay <[EMAIL PROTECTED]> wrote: > Hi, > > I have a list of String that I want to display using ListView in three > different columns of table. I don't want to split list into three lists > and use three different ListViews. I just want to use only one ListView > and display strings in three columns. > > e.g. > > > Title of Table > > string1 | string2 | string3 > string11 | string22 | string33 > string111 | string222 | string333 > > > Is there any way to do it? > > Thanks, > > -Sanjay > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Form values lost in combination of Forms plus ModalWindow
Hi all, I've a problem with Forms and ModalWindows. I have this stuff: -a page with a main Form (the only one that is rendered as an HTML form tag) -this my only page, since all inside it is changed by replacing panels using ajax. -inside some other levels of panels, i have a panel with my content (let me call it myContentPanel), which has its own (sub) Form (which is rendered as a div). -myContentPanel has some controls... TextFields, DropDownChoices, CheckBoxes. -myContentPanel has also a link that opens a ModalWindow. -the ModalWindow has its own Form with components, and an AjaxSubmitLink to close it. Now the problem... 1- I enter to myContentPanel and enter some values in the components. 2- I press the link to open the ModalWindow. 3- I work with the ModalWindow, then press an AjaxSubmitLink to close it. 4- When refreshing myContentPanel, the values in some controls is lost: CheckBoxes, DropDownChoices, but NOT in TextFields. After some investigation, this is what i've discovered: -on step 3 (accept and close the ModalWindow), the AjaxSubmitLink calls (javascript) wicketSubmitFormById passing the ModalWindow's form as parameter. -this processes the ModalWindow's form and prepares the values to be sent to wicket side. -but when i see the url, it mentions that the form that will be used for the HTTP request is the page's form (because it's the only real form, i think this is normal). -on wicket side, the request processing calls Form#onFormSubmitted, which calls #inputChanged, which calls a visitor visiting all components... in the main form! -this ends up calling FormComponent#inputChanged on the CheckBoxes, DropDownChoices, TextFields that where in myContentPanel (also for the controls in the ModalWindow, but that's no surprise). -given that the javascript only prepared the data for the ModalWindow's form, the values for the components in myContentPanel is empty. -looking deeper in #inputChanged, getInputAsArray() gives null for the components in myContentPanel. -then, since CheckBox and DropDownChoice answer true to isInputNullable() (default in FormComponent), the rawInput is set to null, even if i didn't touch the CheckBoxes/DropDownChoices at all in this call (then losing the previous value: NO_RAW_INPUT). -on step 4, when the CheckBox/DropDownChoice wants to get rendered again, onComponentTag calls FormComponent#getValue, which if (NO_RAW_INPUT.equals(rawInput)) uses the Model to get the value (what i would expect), but in my case returns the rawInput (null... ouch). I have fixed it temporaly by overriding isInputNullable in my CheckBoxes/DropDownChoice, but i understand that this is not a very good solution. Some doubts that remain: -is there anything wrong with my structure of forms and panels, which is actually producing these side effects? -if only the values for ModalWindow form are sent to the server, why the is onFormSubmitted called on the main page form? -the javadoc in isInputNullable is not very clear for me... do i break something else if i override isInputNullable answering false? Thanks in advance, German
Re: Development/Deployment style attributes
Sorry, the yellow text should say:
Take the
Test
insom wrote:
>
> I'm not sure if this is a Wicket bug or my own misunderstanding of
> development vs. deployment modes. My markup included the following:
>
> Take the Test
>
> That worked find in development mode, but when I switched to deployment,
> the style attribute was stripped from the final source. In the end I
> solved it like this:
>
> Take the Test
>
> Is that intentional different in development/deployment, and if so, why?
>
--
View this message in context:
http://www.nabble.com/Development-Deployment-style-attributes-tp19401772p19401790.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Development/Deployment style attributes
I'm not sure if this is a Wicket bug or my own misunderstanding of development vs. deployment modes. My markup included the following: Take the Test That worked find in development mode, but when I switched to deployment, the style attribute was stripped from the final source. In the end I solved it like this: Take the Test Is that intentional different in development/deployment, and if so, why? -- View this message in context: http://www.nabble.com/Development-Deployment-style-attributes-tp19401772p19401772.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Development/Deployment style attributes
wicket:message is stripped from the final markup in development mode, this is intentional. Martijn On Tue, Sep 9, 2008 at 11:31 PM, insom <[EMAIL PROTECTED]> wrote: > > I'm not sure if this is a Wicket bug or my own misunderstanding of > development vs. deployment modes. My markup included the following: > > Take the Test > > That worked find in development mode, but when I switched to deployment, the > style attribute was stripped from the final source. In the end I solved it > like this: > > Take the Test > > Is that intentional different in development/deployment, and if so, why? > -- > View this message in context: > http://www.nabble.com/Development-Deployment-style-attributes-tp19401772p19401772.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Development/Deployment style attributes
martijn meant deployment mode. put your wicket:message into a div and set styles on that... -igor On Tue, Sep 9, 2008 at 2:41 PM, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > wicket:message is stripped from the final markup in development mode, > this is intentional. > > Martijn > On Tue, Sep 9, 2008 at 11:31 PM, insom <[EMAIL PROTECTED]> wrote: >> >> I'm not sure if this is a Wicket bug or my own misunderstanding of >> development vs. deployment modes. My markup included the following: >> >> Take the Test >> >> That worked find in development mode, but when I switched to deployment, the >> style attribute was stripped from the final source. In the end I solved it >> like this: >> >> Take the Test >> >> Is that intentional different in development/deployment, and if so, why? >> -- >> View this message in context: >> http://www.nabble.com/Development-Deployment-style-attributes-tp19401772p19401772.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > > -- > Become a Wicket expert, learn from the best: http://wicketinaction.com > Apache Wicket 1.3.4 is released > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Development/Deployment style attributes
It is stripped because you won't be able to find any wicket: tags in any of the HTML standards. Browsers won't be able to do anything with the tag. At best they'll leave it alone, but browsers playing with the wicket tags can also wreck havoc when doing dom manipulations. Martijn On Tue, Sep 9, 2008 at 11:41 PM, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > wicket:message is stripped from the final markup in development mode, > this is intentional. > > Martijn > On Tue, Sep 9, 2008 at 11:31 PM, insom <[EMAIL PROTECTED]> wrote: >> >> I'm not sure if this is a Wicket bug or my own misunderstanding of >> development vs. deployment modes. My markup included the following: >> >> Take the Test >> >> That worked find in development mode, but when I switched to deployment, the >> style attribute was stripped from the final source. In the end I solved it >> like this: >> >> Take the Test >> >> Is that intentional different in development/deployment, and if so, why? >> -- >> View this message in context: >> http://www.nabble.com/Development-Deployment-style-attributes-tp19401772p19401772.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > > -- > Become a Wicket expert, learn from the best: http://wicketinaction.com > Apache Wicket 1.3.4 is released > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. > -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Development/Deployment style attributes
Great, thanks. Is there a compiled list online somewhere of the differences between development and deployment modes? My Google/Nabble skills don't seem to be pulling anything up... Martijn Dashorst wrote: > > It is stripped because you won't be able to find any wicket: tags in > any of the HTML standards. Browsers won't be able to do anything with > the tag. At best they'll leave it alone, but browsers playing with the > wicket tags can also wreck havoc when doing dom manipulations. > > Martijn > > On Tue, Sep 9, 2008 at 11:41 PM, Martijn Dashorst > <[EMAIL PROTECTED]> wrote: >> wicket:message is stripped from the final markup in development mode, >> this is intentional. >> >> Martijn >> On Tue, Sep 9, 2008 at 11:31 PM, insom <[EMAIL PROTECTED]> wrote: >>> >>> I'm not sure if this is a Wicket bug or my own misunderstanding of >>> development vs. deployment modes. My markup included the following: >>> >>> Take the Test >>> >>> That worked find in development mode, but when I switched to deployment, >>> the >>> style attribute was stripped from the final source. In the end I solved >>> it >>> like this: >>> >>> Take the Test >>> >>> Is that intentional different in development/deployment, and if so, why? >>> -- >>> View this message in context: >>> http://www.nabble.com/Development-Deployment-style-attributes-tp19401772p19401772.html >>> Sent from the Wicket - User mailing list archive at Nabble.com. >>> >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> >> >> >> -- >> Become a Wicket expert, learn from the best: http://wicketinaction.com >> Apache Wicket 1.3.4 is released >> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. >> > > > > -- > Become a Wicket expert, learn from the best: http://wicketinaction.com > Apache Wicket 1.3.4 is released > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Development-Deployment-style-attributes-tp19401772p19402042.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: session "jumping"?
Oh, it was much dumber thing than that. I had added the Main page, which had the panels, to the application object. So evey component was shared in the app. Pretty dumb. daniel.mfreitas wrote: > > Could you enlighten us on what the problem was so we know what to avoid in > our own implementations? Is that what Igor suggested? Your isVisible() > method cheeking a "static" value? > > 2008/9/9 m_salman <[EMAIL PROTECTED]> > > > -- View this message in context: http://www.nabble.com/session-%22jumping%22--tp18999615p19402436.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket in Action
Cheers :-) On Tue, Sep 9, 2008 at 2:34 AM, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: > My copy of Wicket in Action just arrived - kudos to Martjin and Eelco! > Great work! > > Jörn > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Form values lost in combination of Forms plus ModalWindow
The link that shows the modal window must be AjaxButton/SubmitLink. -Matej On Tue, Sep 9, 2008 at 11:20 PM, German Morales <[EMAIL PROTECTED]> wrote: > Hi all, > > I've a problem with Forms and ModalWindows. > > I have this stuff: > -a page with a main Form (the only one that is rendered as an HTML form tag) > -this my only page, since all inside it is changed by replacing panels using > ajax. > -inside some other levels of panels, i have a panel with my content (let me > call it myContentPanel), which has its own (sub) Form (which is rendered as > a div). > -myContentPanel has some controls... TextFields, DropDownChoices, > CheckBoxes. > -myContentPanel has also a link that opens a ModalWindow. > -the ModalWindow has its own Form with components, and an AjaxSubmitLink to > close it. > > Now the problem... > 1- I enter to myContentPanel and enter some values in the components. > 2- I press the link to open the ModalWindow. > 3- I work with the ModalWindow, then press an AjaxSubmitLink to close it. > 4- When refreshing myContentPanel, the values in some controls is lost: > CheckBoxes, DropDownChoices, but NOT in TextFields. > > After some investigation, this is what i've discovered: > -on step 3 (accept and close the ModalWindow), the AjaxSubmitLink calls > (javascript) wicketSubmitFormById passing the ModalWindow's form as > parameter. > -this processes the ModalWindow's form and prepares the values to be sent to > wicket side. > -but when i see the url, it mentions that the form that will be used for the > HTTP request is the page's form (because it's the only real form, i think > this is normal). > -on wicket side, the request processing calls Form#onFormSubmitted, which > calls #inputChanged, which calls a visitor visiting all components... in the > main form! > -this ends up calling FormComponent#inputChanged on the CheckBoxes, > DropDownChoices, TextFields that where in myContentPanel (also for the > controls in the ModalWindow, but that's no surprise). > -given that the javascript only prepared the data for the ModalWindow's > form, the values for the components in myContentPanel is empty. > -looking deeper in #inputChanged, getInputAsArray() gives null for the > components in myContentPanel. > -then, since CheckBox and DropDownChoice answer true to isInputNullable() > (default in FormComponent), the rawInput is set to null, even if i didn't > touch the CheckBoxes/DropDownChoices at all in this call (then losing the > previous value: NO_RAW_INPUT). > -on step 4, when the CheckBox/DropDownChoice wants to get rendered again, > onComponentTag calls FormComponent#getValue, which if > (NO_RAW_INPUT.equals(rawInput)) uses the Model to get the value (what i > would expect), but in my case returns the rawInput (null... ouch). > > I have fixed it temporaly by overriding isInputNullable in my > CheckBoxes/DropDownChoice, but i understand that this is not a very good > solution. > > Some doubts that remain: > -is there anything wrong with my structure of forms and panels, which is > actually producing these side effects? > -if only the values for ModalWindow form are sent to the server, why the is > onFormSubmitted called on the main page form? > -the javadoc in isInputNullable is not very clear for me... do i break > something else if i override isInputNullable answering false? > > Thanks in advance, > > German > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
https flips to http
First, thanks to all of you who have helped me out as I've worked through my first Wicket project. The site is finally finished and we're in the process of deploying it to our live servers. However, there's one last hitch. When I go to our URL, https://test.domain.edu/myapp/, the browser goes to the correct Wicket homepage, but it switches from https to http, like so - http://test.domain.edu/myapp/home. The fact that it's getting to "/home" implies to me that Wicket is picking up the request, and then for some reason converting the https to http. Can anyone point me where I should look to solve this? Thanks again! -- View this message in context: http://www.nabble.com/https-flips-to-http-tp19403303p19403303.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: listview
Thanks. This is what I want. -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 09, 2008 5:01 PM To: users@wicket.apache.org Subject: Re: listview use a gridview -igor On Tue, Sep 9, 2008 at 1:30 PM, Patel, Sanjay <[EMAIL PROTECTED]> wrote: > Hi, > > I have a list of String that I want to display using ListView in three > different columns of table. I don't want to split list into three > lists and use three different ListViews. I just want to use only one > ListView and display strings in three columns. > > e.g. > > > Title of Table > > string1 | string2 | string3 > string11 | string22 | string33 > string111 | string222 | string333 > > > Is there any way to do it? > > Thanks, > > -Sanjay > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: https flips to http
Wicket uses relative URLs, so at first guess, I'd think it was something else. Start with something like Firefox plugin "Tamper Data" and see what redirects are happening. Jeremy Thomerson http://www.wickettraining.com -- sent from a wireless device -Original Message- From: insom <[EMAIL PROTECTED]> Sent: Tuesday, September 09, 2008 6:20 PM To: users@wicket.apache.org Subject: https flips to http First, thanks to all of you who have helped me out as I've worked through my first Wicket project. The site is finally finished and we're in the process of deploying it to our live servers. However, there's one last hitch. When I go to our URL, https://test.domain.edu/myapp/, the browser goes to the correct Wicket homepage, but it switches from https to http, like so - http://test.domain.edu/myapp/home. The fact that it's getting to "/home" implies to me that Wicket is picking up the request, and then for some reason converting the https to http. Can anyone point me where I should look to solve this? Thanks again! -- View this message in context: http://www.nabble.com/https-flips-to-http-tp19403303p19403303.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: newbie problem witch wicket...
How about something like: public MyBookmarkableSimpleSignOnPage(PageParameters parameters) { super(parameters); String username = parameters.getString("un"); String password = parameters.getString("pw"); signIn(username, password); throw new RestartResponseAtInterceptPageException(DestinationPage.class); } Of course, there are security concerns with having URLs with username and password in it. But, that wasn't what you asked. You asked specifically how to pull username and password from the request, authenticate, and redirect to authenticated page. Depending on use case, you might think about having a single-use token that is in the URL instead, or a time-restricted token, and in your DB you store a reference that relates that token, an expiration, and the user it works for. This could easily be adapted for that. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Sep 9, 2008 at 2:43 PM, dlipski <[EMAIL PROTECTED]> wrote: > > Hi > > It's some idea but I think that its a little bit of hacking (sending GET > request to formSubmitListener). I found other (are they better ?) > solutions: > 1)Use usual WebPage and in constructor of this page write code to execute > and then at the end call setRedirect(true) and setResponsePage(somePage) > 2)Use Statless page and statless link, write code in link onclick method. > > Both solutions assume that acces to this page is done through > 'bookmarkable' > URL. > > None of these two solutions satisfy me completly because each of them is > some kind of hacking for me. > In first aproach we use Page constructor to execute some code/action not to > display page, this page even doesnt need any markup file (it will never be > rendered), whats more, replacing responsePage in constructor of another > page > looks strange - for me it is breaking of contract(or maybe my > understanding) > of WebPage. > > In second solution we use statless page and statless link not to display > link to the user but just to allow call any code/action throught > 'bookmarkable url'. For me this is also breaking of statless page and > statless link contracts. > > Because both of this solutions work, I probably choose one of them but Im > curious why there is no support in wicket for such (simple in action based > framework) cases (or maybe there is but I cant find it ?). > > For me it will be great if I could create 'action' like class and call it > from wicket (inside request cycle) and forward/redirect to some page. I > think it could be done by extending RequestCycleProcessor (to accept > wicket:action url) and write new base class for ActionRequestTargets. > > I know that Wicket is page oriented framework but wouldnt be great if it > could also support some simple 'ations' ? As I said Im new to Wicket and > maybe it is impossible or its breaking some of wicket vision/assumptions ? > What do you think about such feature ? > > Of course when nature of web application is rather action then page > oriented > we should use some of existing action based frameworks, but I think (as > newbie) there are scenarios where in page oriented application such feature > (call some code inside request cycle and redirect to page) will be very > helpfull. > > Waiting for your opinions. > Reagrds, Daniel > > > Wayne Pope wrote: > > > > Hi, > > > > I've only been using Wicket a very short time, but why don;t you just > > create > > a simple login form page. > > Then look at the source and you'll see something like: > > > > action="?wicket:bookmarkablePage=:com.youpackage.LoginPage&wicket:interface=:0:signInPanel:signInForm::IFormSubmitListener::" > > wicket:id="signInForm" id="signInForm" method="post"> > > > > > > Then you need to just to POST the username and password parameters to the > > above URL , and it'll log you in. > > > > I not sure how you set to us GET in wicket which would be more easy for > > you. > > But I''m sure someone get tell you how to set that up for a form. > > > > cheers > > Wayne > > > > On Mon, Sep 8, 2008 at 9:59 PM, dlipski <[EMAIL PROTECTED]> > > wrote: > > > >> > >> Hi > >> > >> Im developing with Wicket for short time so forgive me if I > misanderstood > >> some Wicket concepts. > >> Recently I was asked for develop SSO-like feature for Wicket powered web > >> application. > >> Application uses wicket-auth-roles + Acegi for securing wicket pages. > >> What I have to do is to let authenticate users to this web app only by > >> typing URL in their web browsers (or clicking some prepared link). > >> This URL will contain username and password but user will not be forced > >> to > >> fill in any form or press any button - just typing url or cliciking some > >> prepared link. > >> Actual way of uthentication (via Wicket page) must remain, so there will > >> be > >> two ways to login to application: either by filling in form or typing > url > >> in > >> web browser. > >> Because this application is using wicket-auth-roles what
Re: Form values lost in combination of Forms plus ModalWindow
Hi Matej, Thanks for the answer. I have an AjaxSubmitLink both for opening and closing the modal window. Should that make any trouble? In both cases i have data to persist, so it must be a .*Submit.* component. Also, my problem happens when closing the window, not when opening it. I summarize it again: -the browser sends an ajax call with the values in the modal window -but on wicket side the main form of the page is the one that takes charge -the components on the page then receive the new input, but there's actually nothing coming from the browser for them -some components (text components) handle it well, some not (checkbox, dropdownchoice). -the misbehaving component get a rawinput of null instead of NO_RAW_INPUT, which then produces the side effect that the component does not get the value from the model on rendering. Please see the doubts section at the end of the original e-mail. Thanks again, German 2008/9/9 Matej Knopp <[EMAIL PROTECTED]> > The link that shows the modal window must be AjaxButton/SubmitLink. > > -Matej > > On Tue, Sep 9, 2008 at 11:20 PM, German Morales > <[EMAIL PROTECTED]> wrote: > > Hi all, > > > > I've a problem with Forms and ModalWindows. > > > > I have this stuff: > > -a page with a main Form (the only one that is rendered as an HTML form > tag) > > -this my only page, since all inside it is changed by replacing panels > using > > ajax. > > -inside some other levels of panels, i have a panel with my content (let > me > > call it myContentPanel), which has its own (sub) Form (which is rendered > as > > a div). > > -myContentPanel has some controls... TextFields, DropDownChoices, > > CheckBoxes. > > -myContentPanel has also a link that opens a ModalWindow. > > -the ModalWindow has its own Form with components, and an AjaxSubmitLink > to > > close it. > > > > Now the problem... > > 1- I enter to myContentPanel and enter some values in the components. > > 2- I press the link to open the ModalWindow. > > 3- I work with the ModalWindow, then press an AjaxSubmitLink to close it. > > 4- When refreshing myContentPanel, the values in some controls is lost: > > CheckBoxes, DropDownChoices, but NOT in TextFields. > > > > After some investigation, this is what i've discovered: > > -on step 3 (accept and close the ModalWindow), the AjaxSubmitLink calls > > (javascript) wicketSubmitFormById passing the ModalWindow's form as > > parameter. > > -this processes the ModalWindow's form and prepares the values to be sent > to > > wicket side. > > -but when i see the url, it mentions that the form that will be used for > the > > HTTP request is the page's form (because it's the only real form, i think > > this is normal). > > -on wicket side, the request processing calls Form#onFormSubmitted, which > > calls #inputChanged, which calls a visitor visiting all components... in > the > > main form! > > -this ends up calling FormComponent#inputChanged on the CheckBoxes, > > DropDownChoices, TextFields that where in myContentPanel (also for the > > controls in the ModalWindow, but that's no surprise). > > -given that the javascript only prepared the data for the ModalWindow's > > form, the values for the components in myContentPanel is empty. > > -looking deeper in #inputChanged, getInputAsArray() gives null for the > > components in myContentPanel. > > -then, since CheckBox and DropDownChoice answer true to isInputNullable() > > (default in FormComponent), the rawInput is set to null, even if i didn't > > touch the CheckBoxes/DropDownChoices at all in this call (then losing the > > previous value: NO_RAW_INPUT). > > -on step 4, when the CheckBox/DropDownChoice wants to get rendered again, > > onComponentTag calls FormComponent#getValue, which if > > (NO_RAW_INPUT.equals(rawInput)) uses the Model to get the value (what i > > would expect), but in my case returns the rawInput (null... ouch). > > > > I have fixed it temporaly by overriding isInputNullable in my > > CheckBoxes/DropDownChoice, but i understand that this is not a very good > > solution. > > > > Some doubts that remain: > > -is there anything wrong with my structure of forms and panels, which is > > actually producing these side effects? > > -if only the values for ModalWindow form are sent to the server, why the > is > > onFormSubmitted called on the main page form? > > -the javadoc in isInputNullable is not very clear for me... do i break > > something else if i override isInputNullable answering false? > > > > Thanks in advance, > > > > German > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
ajax & dropdowns
Possible bug in Wicket 1.3.4 JavaScript I am seeing a focus issue when an AjaxFormComponentUpdatingBehavior("onblur") is fired from a form component and the next form component is a drop down. When I then tab out of the drop down I go to the 1st item on the page rather than the next item on the form. This only occurs in IE6, and only if an element prior to the dropdown is updated. Here are the ajax logs from IE6 and Firefox3. I suspect that this behavior is related to the fact that I see details such as the following for FF3, but not for IE6. INFO: Calling focus on wicket-generated-id-2 INFO: focus removed from wicket-generated-id-2 INFO: focus set on wicket-generated-id-2 The logs.. IE6 INFO: Initiating Ajax POST request on ?wicket:interface=:3:billingForm:checkoutBillingInfoPanel:lNameBorder:lastName::IBehaviorListener:2:&random=0.03186744821668486 INFO: Invoking pre-call handler(s)... INFO: Channel busy - postponing... INFO: focus set on INFO: Received ajax response (69 characters) INFO: INFO: Response parsed. Now invoking steps... INFO: Response processed successfully. INFO: Invoking post-call handler(s)... INFO: Calling posponed function... INFO: INFO: Initiating Ajax POST request on ?wicket:interface=:3:billingForm:checkoutBillingInfoPanel:lNameBorder:lastName::IActivePageBehaviorListener:6:&wicket:ignoreIfNotActive=true&random=0.03611269598335831 INFO: Invoking pre-call handler(s)... INFO: last focus id was not set INFO: Received ajax response (986 characters) INFO: INFO: Response parsed. Now invoking steps... INFO: focus set on null from serverside INFO: Response processed successfully. INFO: Invoking post-call handler(s)... INFO: last focus id was not set INFO: focus set on address19c Firefox 3 INFO: Initiating Ajax POST request on ?wicket:interface=:3:billingForm:checkoutBillingInfoPanel:lNameBorder:lastName::IBehaviorListener:2:&random=0.3242582275093997 INFO: Invoking pre-call handler(s)... INFO: Channel busy - postponing... INFO: focus set on wicket-generated-id-2 INFO: Received ajax response (69 characters) INFO: INFO: Response parsed. Now invoking steps... INFO: Response processed successfully. INFO: Invoking post-call handler(s)... INFO: Calling posponed function... INFO: Calling focus on wicket-generated-id-2 INFO: focus removed from wicket-generated-id-2 INFO: focus set on wicket-generated-id-2 INFO: INFO: Initiating Ajax POST request on ?wicket:interface=:3:billingForm:checkoutBillingInfoPanel:lNameBorder:lastName::IActivePageBehaviorListener:6:&wicket:ignoreIfNotActive=true&random=0.2535805409469859 INFO: Invoking pre-call handler(s)... INFO: Received ajax response (986 characters) INFO: INFO: Response parsed. Now invoking steps... INFO: focus set on null from serverside INFO: Response processed successfully. INFO: Invoking post-call handler(s)... INFO: last focus id was not set INFO: focus set on country90 Thank you, Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
url-escaping is not undone for requestcodingstrategy
When a resourceUrl with special characters is invoked by Wicket. Wicket does not read it correctly. I've made a jira issue with an example: https://issues.apache.org/jira/browse/WICKET-1825 -- View this message in context: http://www.nabble.com/url-escaping-is-not-undone-for-requestcodingstrategy-tp19406715p19406715.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DateField throwing runtime error in IE only
cartina, nanotech, I had similar problem. (I will ask it when I have time to compose it well :) ) Try to use a page with the Modal and not a panel. The change should be pretty easy. Hope that will help On Tue, Sep 9, 2008 at 4:19 PM, cartina84 <[EMAIL PROTECTED]> wrote: > > I am having the same problem in IE7 on a ModalWindow with a Panel, with a > DateTextField and a DatePicker attached to it. if I set the date the > calendar does not appare. i try to use wicket 1.4m2-m3 but problem remain.. > If I remove date from the datetextfield and click on calendar again then > calendar appare. > Someone have the solution? > > > Michael Mehrle wrote: > > > > I have a DateField inside a modal and when clicking on the date icon > > it's throwing a 'unknown runtime error' in IE's JavaScript console. > > Works in Safari and Firefox. > > > > > > > > Is this a commonly known problem? > > > > > > > > Michael > > > > > > > > -- > View this message in context: > http://www.nabble.com/DateField-throwing-runtime-error-in-IE-only-tp17379574p19392243.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Eyal Golan [EMAIL PROTECTED] Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary
Re: Development/Deployment style attributes
On Tue, 09 Sep 2008, insom wrote: > Great, thanks. Is there a compiled list online somewhere of the differences > between development and deployment modes? My Google/Nabble skills don't seem > to be pulling anything up... Try surfing to Application class with your favourite IDE instead, and grepping for "development" and "deployment" you should see something like this http://fisheye6.atlassian.com/browse/wicket/trunk/wicket/src/main/java/org/apache/wicket/Application.java?r=672603#l341 Code does not lie :) Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations Oyhttp://www.ri.fi/ > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]