Re: How to use session
hi Thomerson, Actually my page(RSSPage) this call sectorPanel class extends Panel like public class RSSPage extends WebPage { public RSSPage(){ add(new sectorGrid(sector); } } public class sectorGrid extends Panel { private String param=null; private TextField input; private Form form; private Button button; private ListView people; public sectorGrid(String id,String arg) { super(id); param = arg; input = new TextField(inputkey,new Model()); button = new Button(search); Form form = new Form(form) { public void onSubmit() { String key = (String)input.getModelObject(); //System.out.println(Key : +key); setResponsePage(RSSPage.class);--*here Iwant to pass key to this(RSSPage) class* } }; form.add(input); form.add(button); add(form); RSSReader p = new RSSReader(); add(new ListView(people, p.writeNews(param)) { @Override protected void populateItem(ListItem item) { RSSReader person = (RSSReader)item.getModelObject(); item.add(new ExternalLink(link,person.link, person.title)); item.add(new Label(description, person.description)); } } ); } } But in your code you passed argument to the calling class but in my RSSPage class i didnt declare contructor to receive variable. So your code is suitable for this case Give me quick Reply ThanksRegards, Gerald A On Fri, Aug 28, 2009 at 10:49 AM, Jeremy Thomerson jer...@wickettraining.com wrote: Why put the variable in the session at all? Do this in your onSubmit: onSubmit() { setResponsePage(new SomePage(this.someVariable)); } -- Jeremy Thomerson http://www.wickettraining.com On Fri, Aug 28, 2009 at 12:17 AM, Gerald Fernandogerald.anto.ferna...@gmail.com wrote: Hello Friends, I have page in which textField and button . when submit a form (onClick ) i need to call same page and pass argument to that page. so that page will take argument from session variable.How to store and how to get that value *for loading same page*,Shall i call the page using *setResponsePage* and *shall i get the argument* for that page from session variable? how can i achieve this. -- Thanksregards, Gerald A - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Thanksregards, Gerald A
Re: Wicket Google App Engine Compatible
Yes, Wicket is semi-compatible. - I have some trouble when I want to UploadFile, becase it write to temporary file and GAE not allowed you to do that. It solve but you have to re-code the wicket so is not save to temporary file, but write to DataStore. - Another is I can't use TabbedPanel http://groups.google.com/group/google-appengine-java/browse_thread/thread/b80648c126778ef5 Regards, uudashr On Fri, Aug 28, 2009 at 1:05 PM, Bert taser...@gmail.com wrote: On Fri, Aug 28, 2009 at 07:34, uud ashruuda...@gmail.com wrote: Hi, Is there any plan to make Wicket fully compatible to Google App Engine? Regards, uudashr I have not yet tested it myself. But from what i read people are running wicket there. as far as i remeber the problem is the default page store (file) is not working, so one has to configure a different store. wicket is named with links on the app engine site: http://groups.google.com/group/google-appengine-java/web/will-it-play-in-app-engine?pli=1 he describes on how to set it up: http://stronglytypedblog.blogspot.com/2009/04/wicket-on-google-app-engine.html also: http://www.danwalmsley.com/2009/04/08/apache-wicket-on-google-app-engine-for-java/ there are a few more hit when searching .. or did i misunderstood your question? regards, bert - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Male/Female messages
This might be helpful when translatiing between male - female :-) http://monster-island.org/tinashumor/humor/mflwebst.html Am 27.08.2009 um 17:35 schrieb Cserep Janos: use setStyle() and different styles for property files. That means you should have 2 files: MyApplication_male.properties MyApplication_female.properties j On Thu, Aug 27, 2009 at 5:32 PM, Arie Fishlerarie@gmail.com wrote: Hi, Assuming that I am localizing to a language that has different text required for male and female is there a generic way for hadling that. This is of course based on the fact that I can provide a user object that contains that property (if the user is a male or female) I can think of a convention that will add to all resource file keys a .female extension to handle female text if required and wrap the ResourceModel with an object that will get the user. Using the gender property of the user it will manipulate the key to add the .female extension if required, check if the female text exist at all (and if no default to the no extension version) etc. This may work. Are there any other suggestions? What about the wicket:message markup that goes directly to the resource files...how do I handle that? (I have lots of markup already so changing all of it to labels is not the easiest way) Thanks, Arie - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AjaxLink/Behaviour with shortcut
And I think EventType shouldn't be an enum but instead a class with several constants. So everybody could add own event types if necessary. Regards Johannes Johannes Schneider wrote: I made some progress: When using the (newly created) EventType onclick the behvious seems to be improved. The first time it works great, but if I add the link to the AjaxRequestTarget (so that the link is updated), the event is executed multiple times... Regards, Johannes Johannes Schneider wrote: That thing works great with normal links. But I have a problem with Ajax(Fallback)Links. The created JavaScript looks good but it does not work. Since I really don't understand JavaScript I don't have a clue what to do next. I have modified the example to reproduce the problem: Add to HomePage.html: hra href=# wicket:id=ajaxLinkAjax here!/a Added to HomePage.java: AjaxLinkObject ajaxLink = new AjaxLinkObject(ajaxLink) { @Override public void onClick( AjaxRequestTarget ajaxRequestTarget ) { System.out.println( # ); } }; ajaxLink.add( new InputBehavior( new KeyType[]{KeyType.n} ) ); add( ajaxLink ); Any ideas? Thanks, Johannes danisevsky wrote: look at https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/input-events-parent/ 2009/8/26 Johannes Schneider maili...@cedarsoft.com Hi, I have here several AjaxLinks that should be triggered using a shortcut (e.g. PageDown or Delete). Does anybody have some lines of code or a hint how that could be done? Alternatively a AjaxBehaviour could be used to start the action. Any ideas? Thanks, Johannes - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DataTable NavigationToolbar visibility problem
Using wicket+wicket-extensions 1.4.0. How do I ensure that the nav toolbar reappears properly when the number of results become pageable again? use wicket 1.4.1 as it's a bug in wicket 1.4.0 mm:) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Page redirect after POST
one question. why do you want that? On Fri, Aug 28, 2009 at 06:01, b...@actrix.gen.nz wrote: Hi, With forms on Wicket pages, it appears that on submit which is HTTP POST, Wicket redirects to the same page (the page from where the data was sent) ad this is how we show feedback on the form page. How is it possible to send the rendered form page back to the broser as a direct response to the POST, not via a redirect? Many thanks. Bernard - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket + Webservice
I would like to integrate a webservice callable by others into my existing Wicket application. The reason is that I'm integration a third-party payment provider and they provide a callback mechanism in the form of a WSDL I need to implement. Now I've taken a look at enunciate, which looks great btw, but it seems to operate next to wicket instead of integrated with wicket: as a separate filter. I'd like to be able to control the location where the webservice is mounted from wicket, and access my guice-injected services through wicket-guice integration. This way I have easy access to all the services and daos in my application The questions I have are: - is it possible to handle an incoming webservice request through a WebPage implementation? - if not, what would be a good alternative? (given the requirement that I'd like to be able to use the wicket-guice injector) Bas
Re: Wicket + Webservice
Going for the web page, you could in theory do REST... But how smooth it are i do not know.. regards Nino 2009/8/28 Bas Gooren b...@iswd.nl: I would like to integrate a webservice callable by others into my existing Wicket application. The reason is that I'm integration a third-party payment provider and they provide a callback mechanism in the form of a WSDL I need to implement. Now I've taken a look at enunciate, which looks great btw, but it seems to operate next to wicket instead of integrated with wicket: as a separate filter. I'd like to be able to control the location where the webservice is mounted from wicket, and access my guice-injected services through wicket-guice integration. This way I have easy access to all the services and daos in my application The questions I have are: - is it possible to handle an incoming webservice request through a WebPage implementation? - if not, what would be a good alternative? (given the requirement that I'd like to be able to use the wicket-guice injector) Bas - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket + Webservice
Nino, I read a blog post by Bruno borges on this (see http://code.google.com/p/wicket-rest/). But in my case I need to adhere to a WSDL provided by the payment provider. The WSDL specifies a SOAP binding, so that's what I need to implement. Bas - Original Message - From: nino martinez wael nino.martinez.w...@gmail.com To: users@wicket.apache.org Sent: Friday, August 28, 2009 1:16 PM Subject: Re: Wicket + Webservice Going for the web page, you could in theory do REST... But how smooth it are i do not know.. regards Nino 2009/8/28 Bas Gooren b...@iswd.nl: I would like to integrate a webservice callable by others into my existing Wicket application. The reason is that I'm integration a third-party payment provider and they provide a callback mechanism in the form of a WSDL I need to implement. Now I've taken a look at enunciate, which looks great btw, but it seems to operate next to wicket instead of integrated with wicket: as a separate filter. I'd like to be able to control the location where the webservice is mounted from wicket, and access my guice-injected services through wicket-guice integration. This way I have easy access to all the services and daos in my application The questions I have are: - is it possible to handle an incoming webservice request through a WebPage implementation? - if not, what would be a good alternative? (given the requirement that I'd like to be able to use the wicket-guice injector) Bas - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AjaxLink/Behaviour with shortcut
Thanks for the feedback, the quick solution would be to extend the inputevent class. Did you see the example project? 2009/8/28 Johannes Schneider maili...@cedarsoft.com: And I think EventType shouldn't be an enum but instead a class with several constants. So everybody could add own event types if necessary. Regards Johannes Johannes Schneider wrote: I made some progress: When using the (newly created) EventType onclick the behvious seems to be improved. The first time it works great, but if I add the link to the AjaxRequestTarget (so that the link is updated), the event is executed multiple times... Regards, Johannes Johannes Schneider wrote: That thing works great with normal links. But I have a problem with Ajax(Fallback)Links. The created JavaScript looks good but it does not work. Since I really don't understand JavaScript I don't have a clue what to do next. I have modified the example to reproduce the problem: Add to HomePage.html: hra href=# wicket:id=ajaxLinkAjax here!/a Added to HomePage.java: AjaxLinkObject ajaxLink = new AjaxLinkObject(ajaxLink) { @Override public void onClick( AjaxRequestTarget ajaxRequestTarget ) { System.out.println( # ); } }; ajaxLink.add( new InputBehavior( new KeyType[]{KeyType.n} ) ); add( ajaxLink ); Any ideas? Thanks, Johannes danisevsky wrote: look at https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/input-events-parent/ 2009/8/26 Johannes Schneider maili...@cedarsoft.com Hi, I have here several AjaxLinks that should be triggered using a shortcut (e.g. PageDown or Delete). Does anybody have some lines of code or a hint how that could be done? Alternatively a AjaxBehaviour could be used to start the action. Any ideas? Thanks, Johannes - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket + Webservice
Ahh ok, you can also make a web page return xml. Im not sure how SOAP communicates. But this might be the way for you... 2009/8/28 Bas Gooren b...@iswd.nl: Nino, I read a blog post by Bruno borges on this (see http://code.google.com/p/wicket-rest/). But in my case I need to adhere to a WSDL provided by the payment provider. The WSDL specifies a SOAP binding, so that's what I need to implement. Bas - Original Message - From: nino martinez wael nino.martinez.w...@gmail.com To: users@wicket.apache.org Sent: Friday, August 28, 2009 1:16 PM Subject: Re: Wicket + Webservice Going for the web page, you could in theory do REST... But how smooth it are i do not know.. regards Nino 2009/8/28 Bas Gooren b...@iswd.nl: I would like to integrate a webservice callable by others into my existing Wicket application. The reason is that I'm integration a third-party payment provider and they provide a callback mechanism in the form of a WSDL I need to implement. Now I've taken a look at enunciate, which looks great btw, but it seems to operate next to wicket instead of integrated with wicket: as a separate filter. I'd like to be able to control the location where the webservice is mounted from wicket, and access my guice-injected services through wicket-guice integration. This way I have easy access to all the services and daos in my application The questions I have are: - is it possible to handle an incoming webservice request through a WebPage implementation? - if not, what would be a good alternative? (given the requirement that I'd like to be able to use the wicket-guice injector) Bas - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket + Webservice
doh, took a closer look at the blog, it's already described there.. So you know that wicket can return XML 2009/8/28 nino martinez wael nino.martinez.w...@gmail.com: Ahh ok, you can also make a web page return xml. Im not sure how SOAP communicates. But this might be the way for you... 2009/8/28 Bas Gooren b...@iswd.nl: Nino, I read a blog post by Bruno borges on this (see http://code.google.com/p/wicket-rest/). But in my case I need to adhere to a WSDL provided by the payment provider. The WSDL specifies a SOAP binding, so that's what I need to implement. Bas - Original Message - From: nino martinez wael nino.martinez.w...@gmail.com To: users@wicket.apache.org Sent: Friday, August 28, 2009 1:16 PM Subject: Re: Wicket + Webservice Going for the web page, you could in theory do REST... But how smooth it are i do not know.. regards Nino 2009/8/28 Bas Gooren b...@iswd.nl: I would like to integrate a webservice callable by others into my existing Wicket application. The reason is that I'm integration a third-party payment provider and they provide a callback mechanism in the form of a WSDL I need to implement. Now I've taken a look at enunciate, which looks great btw, but it seems to operate next to wicket instead of integrated with wicket: as a separate filter. I'd like to be able to control the location where the webservice is mounted from wicket, and access my guice-injected services through wicket-guice integration. This way I have easy access to all the services and daos in my application The questions I have are: - is it possible to handle an incoming webservice request through a WebPage implementation? - if not, what would be a good alternative? (given the requirement that I'd like to be able to use the wicket-guice injector) Bas - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket + Webservice
Yeah, I've built Wicket pages which return XML responses before, so that's not the problem. But since I have to adhere to a certain WSDL and hand-constructing the SOAP response seems like the wrong thing to do, I was hoping that there might be a way to say class WebservicePage extends WebPage { public WebservicePage() { SoapService service = new SoapService( Impl.class ); // Possibly guice injected service.handle( HttpServletRequest ... ); // Get the servlet request through wicket } } But since that is wrapping a handler in a handler, it's not very clean either. Anyway, the main issue remains: since I have google guice nicely set up within Wicket, how do I build a webservice which has access to guice injection? I am not using spring, and switching this application to spring is not going to happen. I have found JAX-WS Guice integration (see https://jax-ws-commons.dev.java.net/guice/), so maybe I can find a way to make it use the wicket-guice injector. Bas - Original Message - From: nino martinez wael nino.martinez.w...@gmail.com To: users@wicket.apache.org Sent: Friday, August 28, 2009 2:04 PM Subject: Re: Wicket + Webservice doh, took a closer look at the blog, it's already described there.. So you know that wicket can return XML 2009/8/28 nino martinez wael nino.martinez.w...@gmail.com: Ahh ok, you can also make a web page return xml. Im not sure how SOAP communicates. But this might be the way for you... 2009/8/28 Bas Gooren b...@iswd.nl: Nino, I read a blog post by Bruno borges on this (see http://code.google.com/p/wicket-rest/). But in my case I need to adhere to a WSDL provided by the payment provider. The WSDL specifies a SOAP binding, so that's what I need to implement. Bas - Original Message - From: nino martinez wael nino.martinez.w...@gmail.com To: users@wicket.apache.org Sent: Friday, August 28, 2009 1:16 PM Subject: Re: Wicket + Webservice Going for the web page, you could in theory do REST... But how smooth it are i do not know.. regards Nino 2009/8/28 Bas Gooren b...@iswd.nl: I would like to integrate a webservice callable by others into my existing Wicket application. The reason is that I'm integration a third-party payment provider and they provide a callback mechanism in the form of a WSDL I need to implement. Now I've taken a look at enunciate, which looks great btw, but it seems to operate next to wicket instead of integrated with wicket: as a separate filter. I'd like to be able to control the location where the webservice is mounted from wicket, and access my guice-injected services through wicket-guice integration. This way I have easy access to all the services and daos in my application The questions I have are: - is it possible to handle an incoming webservice request through a WebPage implementation? - if not, what would be a good alternative? (given the requirement that I'd like to be able to use the wicket-guice injector) Bas - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket + Webservice
Hmm, good question. Are it some db services that you are accessing..? like warp? filter filter-nameguiceFilter/filter-name filter-classcom.wideplay.warp.servlet.WebFilter/filter-class /filter Then just map it to everything: filter-mapping filter-nameguiceFilter/filter-name url-pattern/*/url-pattern /filter-mapping 2009/8/28 Bas Gooren b...@iswd.nl: Yeah, I've built Wicket pages which return XML responses before, so that's not the problem. But since I have to adhere to a certain WSDL and hand-constructing the SOAP response seems like the wrong thing to do, I was hoping that there might be a way to say class WebservicePage extends WebPage { public WebservicePage() { SoapService service = new SoapService( Impl.class ); // Possibly guice injected service.handle( HttpServletRequest ... ); // Get the servlet request through wicket } } But since that is wrapping a handler in a handler, it's not very clean either. Anyway, the main issue remains: since I have google guice nicely set up within Wicket, how do I build a webservice which has access to guice injection? I am not using spring, and switching this application to spring is not going to happen. I have found JAX-WS Guice integration (see https://jax-ws-commons.dev.java.net/guice/), so maybe I can find a way to make it use the wicket-guice injector. Bas - Original Message - From: nino martinez wael nino.martinez.w...@gmail.com To: users@wicket.apache.org Sent: Friday, August 28, 2009 2:04 PM Subject: Re: Wicket + Webservice doh, took a closer look at the blog, it's already described there.. So you know that wicket can return XML 2009/8/28 nino martinez wael nino.martinez.w...@gmail.com: Ahh ok, you can also make a web page return xml. Im not sure how SOAP communicates. But this might be the way for you... 2009/8/28 Bas Gooren b...@iswd.nl: Nino, I read a blog post by Bruno borges on this (see http://code.google.com/p/wicket-rest/). But in my case I need to adhere to a WSDL provided by the payment provider. The WSDL specifies a SOAP binding, so that's what I need to implement. Bas - Original Message - From: nino martinez wael nino.martinez.w...@gmail.com To: users@wicket.apache.org Sent: Friday, August 28, 2009 1:16 PM Subject: Re: Wicket + Webservice Going for the web page, you could in theory do REST... But how smooth it are i do not know.. regards Nino 2009/8/28 Bas Gooren b...@iswd.nl: I would like to integrate a webservice callable by others into my existing Wicket application. The reason is that I'm integration a third-party payment provider and they provide a callback mechanism in the form of a WSDL I need to implement. Now I've taken a look at enunciate, which looks great btw, but it seems to operate next to wicket instead of integrated with wicket: as a separate filter. I'd like to be able to control the location where the webservice is mounted from wicket, and access my guice-injected services through wicket-guice integration. This way I have easy access to all the services and daos in my application The questions I have are: - is it possible to handle an incoming webservice request through a WebPage implementation? - if not, what would be a good alternative? (given the requirement that I'd like to be able to use the wicket-guice injector) Bas - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket + Webservice
Bas Gooren schrieb: to a WSDL provided by the payment provider. The WSDL specifies a SOAP binding, so that's what I need to implement. have the same requirements and we go for metro. it is a s easy as adding the dependency to pom and annotating @WebSerive. be sure to take at least version dependency groupIdcom.sun.xml.ws/groupId artifactIdjaxws-rt/artifactId version2.1.4/version /dependency as this one makes the tidious wsgen step obsolete! cu uwe ps: plays nicely with guice as well ;) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket + Webservice
Bas Gooren schrieb: I have found JAX-WS Guice integration (see https://jax-ws-commons.dev.java.net/guice/), so maybe I can find a way to make it use the wicket-guice injector. easy, done it. i´ll publish it on sunday and send you a private mail. cu uwe - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket + Webservice
Some are db services (yes, warp, another great project), but some are non-db-services which I setup when my wicket application initializes. My warp webfilter is already mapped to /* so I have access to the db. I'm using the com.wideplay.warp.hibernate.SessionPerRequestFilter But what I need is access to the wicket Injector instance, since it contains all my application-relevant mappings. Bas - Original Message - From: nino martinez wael nino.martinez.w...@gmail.com To: users@wicket.apache.org Sent: Friday, August 28, 2009 3:15 PM Subject: Re: Wicket + Webservice Hmm, good question. Are it some db services that you are accessing..? like warp? filter filter-nameguiceFilter/filter-name filter-classcom.wideplay.warp.servlet.WebFilter/filter-class /filter Then just map it to everything: filter-mapping filter-nameguiceFilter/filter-name url-pattern/*/url-pattern /filter-mapping 2009/8/28 Bas Gooren b...@iswd.nl: Yeah, I've built Wicket pages which return XML responses before, so that's not the problem. But since I have to adhere to a certain WSDL and hand-constructing the SOAP response seems like the wrong thing to do, I was hoping that there might be a way to say class WebservicePage extends WebPage { public WebservicePage() { SoapService service = new SoapService( Impl.class ); // Possibly guice injected service.handle( HttpServletRequest ... ); // Get the servlet request through wicket } } But since that is wrapping a handler in a handler, it's not very clean either. Anyway, the main issue remains: since I have google guice nicely set up within Wicket, how do I build a webservice which has access to guice injection? I am not using spring, and switching this application to spring is not going to happen. I have found JAX-WS Guice integration (see https://jax-ws-commons.dev.java.net/guice/), so maybe I can find a way to make it use the wicket-guice injector. Bas - Original Message - From: nino martinez wael nino.martinez.w...@gmail.com To: users@wicket.apache.org Sent: Friday, August 28, 2009 2:04 PM Subject: Re: Wicket + Webservice doh, took a closer look at the blog, it's already described there.. So you know that wicket can return XML 2009/8/28 nino martinez wael nino.martinez.w...@gmail.com: Ahh ok, you can also make a web page return xml. Im not sure how SOAP communicates. But this might be the way for you... 2009/8/28 Bas Gooren b...@iswd.nl: Nino, I read a blog post by Bruno borges on this (see http://code.google.com/p/wicket-rest/). But in my case I need to adhere to a WSDL provided by the payment provider. The WSDL specifies a SOAP binding, so that's what I need to implement. Bas - Original Message - From: nino martinez wael nino.martinez.w...@gmail.com To: users@wicket.apache.org Sent: Friday, August 28, 2009 1:16 PM Subject: Re: Wicket + Webservice Going for the web page, you could in theory do REST... But how smooth it are i do not know.. regards Nino 2009/8/28 Bas Gooren b...@iswd.nl: I would like to integrate a webservice callable by others into my existing Wicket application. The reason is that I'm integration a third-party payment provider and they provide a callback mechanism in the form of a WSDL I need to implement. Now I've taken a look at enunciate, which looks great btw, but it seems to operate next to wicket instead of integrated with wicket: as a separate filter. I'd like to be able to control the location where the webservice is mounted from wicket, and access my guice-injected services through wicket-guice integration. This way I have easy access to all the services and daos in my application The questions I have are: - is it possible to handle an incoming webservice request through a WebPage implementation? - if not, what would be a good alternative? (given the requirement that I'd like to be able to use the wicket-guice injector) Bas - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail:
Re: Wicket Google App Engine Compatible
It would be really great to have some accurate info in the wiki wicket. It is my thought to implement app engine in the next few weeks... On Fri, Aug 28, 2009 at 4:52 AM, uud ashr uuda...@gmail.com wrote: Yes, Wicket is semi-compatible. - I have some trouble when I want to UploadFile, becase it write to temporary file and GAE not allowed you to do that. It solve but you have to re-code the wicket so is not save to temporary file, but write to DataStore. - Another is I can't use TabbedPanel http://groups.google.com/group/google-appengine-java/browse_thread/thread/b80648c126778ef5 Regards, uudashr On Fri, Aug 28, 2009 at 1:05 PM, Bert taser...@gmail.com wrote: On Fri, Aug 28, 2009 at 07:34, uud ashruuda...@gmail.com wrote: Hi, Is there any plan to make Wicket fully compatible to Google App Engine? Regards, uudashr I have not yet tested it myself. But from what i read people are running wicket there. as far as i remeber the problem is the default page store (file) is not working, so one has to configure a different store. wicket is named with links on the app engine site: http://groups.google.com/group/google-appengine-java/web/will-it-play-in-app-engine?pli=1 he describes on how to set it up: http://stronglytypedblog.blogspot.com/2009/04/wicket-on-google-app-engine.html also: http://www.danwalmsley.com/2009/04/08/apache-wicket-on-google-app-engine-for-java/ there are a few more hit when searching .. or did i misunderstood your question? regards, bert - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Fernando Wermus. www.linkedin.com/in/fernandowermus
Re: Wicket + Webservice
Uwe, that would be amazing, thanks! I was about to hit send on a mail asking you if and how you integrated Guice, because that was missing. For the last couple of hours I've been reading up on Metro, and it seems like a good solution. Although the implementation becomes of less importance, as long as I can @Inject stuff. I've generated the webservice stub with wsimport so all I need to do is to hook it up so it can handle requests. Bas - Original Message - From: Uwe Schäfer schae...@thomas-daily.de To: users@wicket.apache.org Sent: Friday, August 28, 2009 3:12 PM Subject: Re: Wicket + Webservice Bas Gooren schrieb: I have found JAX-WS Guice integration (see https://jax-ws-commons.dev.java.net/guice/), so maybe I can find a way to make it use the wicket-guice injector. easy, done it. i´ll publish it on sunday and send you a private mail. cu uwe - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Have you ever run this example ?
Hi all ; I am trying to run Spring Security and Wicket-auth-roles example. Url : http://cwiki.apache.org/WICKET/spring-security-and-wicket-auth-roles.html I implemented what it writes step by step but it gives : java.lang.IllegalArgumentException: Argument [[ctx]] cannot be null at org.apache.wicket.spring.injection.annot.SpringComponentInjector.init(SpringComponentInjector.java:93) at com.example.web.Setup.setListeners(Setup.java:41) at com.exaple.web.Setup.init(Setup.java:32) at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:696) . Any idea ? Or simple simple simple Spring Security and Wicket integration example. Note : I remember my old commodore - 64 days. I wrote hundreds of basic code and then it gives : syntax error :) opps urghh ! But still love wicket and its examples -- Altuğ.
Session gc
Hi, I have an wicket application mantaing objects for the session, link consumer threads to background work. I want to make sure that these objects will to be garbage colected, finalized, etc. How can I listen the session timeout notice? I don't want to implements these rules on finally method of the session, because I'm afraid the serialization routine will cause the session gc sometimes, before its timeout
images in html or images in css
Hi all, There is something that I dont understand: If my css style has an image declared, it works: body { background:url(images/FondoGeneral.jpg); but if it is defined in the html, it doesnt img src=images/MarcoFoto.png width=177 height=107 why? -- Fernando Wermus. www.linkedin.com/in/fernandowermus
Wicket + Spring Security (PreAuthentication)
Hi, I refered to http://cwiki.apache.org/WICKET/spring-security-and-wicket-auth-roles.htmland wicket-spring example web application and it works. Now my company has a single-sign on web page already, like https:///login.cgi. This SSO web page will set cookies and return a token after login. I'd like to know how to use PreAuthentication of spring-security with my company's SSO web page? -- -- ~Mia は 最高!~ --
Re: images in html or images in css
Hi; Because your css file location and html file location are different. try to reach images via url way like background:url(*/images/FondoGeneral.jpg*); or img src=*/images/MarcoFoto.png* width=177 height=107 Cheers... 2009/8/28 Fernando Wermus fernando.wer...@gmail.com Hi all, There is something that I dont understand: If my css style has an image declared, it works: body { background:url(images/FondoGeneral.jpg); but if it is defined in the html, it doesnt img src=images/MarcoFoto.png width=177 height=107 why? -- Fernando Wermus. www.linkedin.com/in/fernandowermus -- Altuğ.
Re: Have you ever run this example ?
I don't see any ctx variable in that web page. On Fri, Aug 28, 2009 at 10:37 PM, Altuğ B. Altıntaş alt...@gmail.comwrote: Hi all ; I am trying to run Spring Security and Wicket-auth-roles example. Url : http://cwiki.apache.org/WICKET/spring-security-and-wicket-auth-roles.html I implemented what it writes step by step but it gives : java.lang.IllegalArgumentException: Argument [[ctx]] cannot be null at org.apache.wicket.spring.injection.annot.SpringComponentInjector.init(SpringComponentInjector.java:93) at com.example.web.Setup.setListeners(Setup.java:41) at com.exaple.web.Setup.init(Setup.java:32) at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:696) . Any idea ? Or simple simple simple Spring Security and Wicket integration example. Note : I remember my old commodore - 64 days. I wrote hundreds of basic code and then it gives : syntax error :) opps urghh ! But still love wicket and its examples -- Altuğ. -- -- ~Mia は 最高!~ --
Re: Have you ever run this example ?
How can i add ctx variable ? I am new in Spring Security Thanks... 2009/8/28 Anders innocentl...@gmail.com I don't see any ctx variable in that web page. On Fri, Aug 28, 2009 at 10:37 PM, Altuğ B. Altıntaş alt...@gmail.com wrote: Hi all ; I am trying to run Spring Security and Wicket-auth-roles example. Url : http://cwiki.apache.org/WICKET/spring-security-and-wicket-auth-roles.html I implemented what it writes step by step but it gives : java.lang.IllegalArgumentException: Argument [[ctx]] cannot be null at org.apache.wicket.spring.injection.annot.SpringComponentInjector.init(SpringComponentInjector.java:93) at com.example.web.Setup.setListeners(Setup.java:41) at com.exaple.web.Setup.init(Setup.java:32) at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:696) . Any idea ? Or simple simple simple Spring Security and Wicket integration example. Note : I remember my old commodore - 64 days. I wrote hundreds of basic code and then it gives : syntax error :) opps urghh ! But still love wicket and its examples -- Altuğ. -- -- ~Mia は 最高!~ -- -- Altuğ.
Re: How to use session
So, declare the constructor that you need to pass in the variable. It's okay to have multiple constructors. You're going to have to have some way of constructing the object and giving it the search term -- Jeremy Thomerson http://www.wickettraining.com On Fri, Aug 28, 2009 at 2:58 AM, Gerald Fernandogerald.anto.ferna...@gmail.com wrote: hi Thomerson, Actually my page(RSSPage) this call sectorPanel class extends Panel like public class RSSPage extends WebPage { public RSSPage(){ add(new sectorGrid(sector); } } public class sectorGrid extends Panel { private String param=null; private TextField input; private Form form; private Button button; private ListView people; public sectorGrid(String id,String arg) { super(id); param = arg; input = new TextField(inputkey,new Model()); button = new Button(search); Form form = new Form(form) { public void onSubmit() { String key = (String)input.getModelObject(); //System.out.println(Key : +key); setResponsePage(RSSPage.class);--*here Iwant to pass key to this(RSSPage) class* } }; form.add(input); form.add(button); add(form); RSSReader p = new RSSReader(); add(new ListView(people, p.writeNews(param)) { �...@override protected void populateItem(ListItem item) { RSSReader person = (RSSReader)item.getModelObject(); item.add(new ExternalLink(link,person.link, person.title)); item.add(new Label(description, person.description)); } } ); } } But in your code you passed argument to the calling class but in my RSSPage class i didnt declare contructor to receive variable. So your code is suitable for this case Give me quick Reply ThanksRegards, Gerald A On Fri, Aug 28, 2009 at 10:49 AM, Jeremy Thomerson jer...@wickettraining.com wrote: Why put the variable in the session at all? Do this in your onSubmit: onSubmit() { setResponsePage(new SomePage(this.someVariable)); } -- Jeremy Thomerson http://www.wickettraining.com On Fri, Aug 28, 2009 at 12:17 AM, Gerald Fernandogerald.anto.ferna...@gmail.com wrote: Hello Friends, I have page in which textField and button . when submit a form (onClick ) i need to call same page and pass argument to that page. so that page will take argument from session variable.How to store and how to get that value *for loading same page*,Shall i call the page using *setResponsePage* and *shall i get the argument* for that page from session variable? how can i achieve this. -- Thanksregards, Gerald A - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Thanksregards, Gerald A - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Session gc
see httpsessionlistener http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpSessionListener.html -- Jeremy Thomerson http://www.wickettraining.com On Fri, Aug 28, 2009 at 9:41 AM, Pedro Santospedros...@gmail.com wrote: Hi, I have an wicket application mantaing objects for the session, link consumer threads to background work. I want to make sure that these objects will to be garbage colected, finalized, etc. How can I listen the session timeout notice? I don't want to implements these rules on finally method of the session, because I'm afraid the serialization routine will cause the session gc sometimes, before its timeout - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Have you ever run this example ?
I'm new to Spring Security and Wicket, too. You said you implemented step by step, but no ctx variable in that web page. Can you recheck again? And do you succeed to implement http://cwiki.apache.org/WICKET/spring.html ? If you implemented Spring + Wicket, then you can implement Spring Security + Wicket easily. (I think) On Fri, Aug 28, 2009 at 11:33 PM, Altuğ B. Altıntaş alt...@gmail.comwrote: How can i add ctx variable ? I am new in Spring Security Thanks... 2009/8/28 Anders innocentl...@gmail.com I don't see any ctx variable in that web page. On Fri, Aug 28, 2009 at 10:37 PM, Altuğ B. Altıntaş alt...@gmail.com wrote: Hi all ; I am trying to run Spring Security and Wicket-auth-roles example. Url : http://cwiki.apache.org/WICKET/spring-security-and-wicket-auth-roles.html I implemented what it writes step by step but it gives : java.lang.IllegalArgumentException: Argument [[ctx]] cannot be null at org.apache.wicket.spring.injection.annot.SpringComponentInjector.init(SpringComponentInjector.java:93) at com.example.web.Setup.setListeners(Setup.java:41) at com.exaple.web.Setup.init(Setup.java:32) at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:696) . Any idea ? Or simple simple simple Spring Security and Wicket integration example. Note : I remember my old commodore - 64 days. I wrote hundreds of basic code and then it gives : syntax error :) opps urghh ! But still love wicket and its examples -- Altuğ. -- -- ~Mia は 最高!~ -- -- Altuğ. -- -- ~Mia は 最高!~ --
Re: Session gc
see httpsessionlistener http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpSessionListener.html Yep. You can use the session store hooks that Wicket provides, but I found HttpSessionListener to be the most reliable. Eelco - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: images in html or images in css
You can use wicket:link tag to convert the static reference see: http://cwiki.apache.org/WICKET/autolink.html On Fri, Aug 28, 2009 at 12:10 PM, Altuğ B. Altıntaş alt...@gmail.comwrote: Hi; Because your css file location and html file location are different. try to reach images via url way like background:url(*/images/FondoGeneral.jpg*); or img src=*/images/MarcoFoto.png* width=177 height=107 Cheers... 2009/8/28 Fernando Wermus fernando.wer...@gmail.com Hi all, There is something that I dont understand: If my css style has an image declared, it works: body { background:url(images/FondoGeneral.jpg); but if it is defined in the html, it doesnt img src=images/MarcoFoto.png width=177 height=107 why? -- Fernando Wermus. www.linkedin.com/in/fernandowermus -- Altuğ.
Re: Have you ever run this example ?
Altug, It sounds like there is no bean factory set on your servlet context. Did you add Spring's context listener in web.xml? Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development http://jWeekend.com Altuğ B. Altıntaş wrote: How can i add ctx variable ? I am new in Spring Security Thanks... 2009/8/28 Anders innocentl...@gmail.com I don't see any ctx variable in that web page. On Fri, Aug 28, 2009 at 10:37 PM, Altuğ B. Altıntaş alt...@gmail.com wrote: Hi all ; I am trying to run Spring Security and Wicket-auth-roles example. Url : http://cwiki.apache.org/WICKET/spring-security-and-wicket-auth-roles.html I implemented what it writes step by step but it gives : java.lang.IllegalArgumentException: Argument [[ctx]] cannot be null at org.apache.wicket.spring.injection.annot.SpringComponentInjector.init(SpringComponentInjector.java:93) at com.example.web.Setup.setListeners(Setup.java:41) at com.exaple.web.Setup.init(Setup.java:32) at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:696) . Any idea ? Or simple simple simple Spring Security and Wicket integration example. Note : I remember my old commodore - 64 days. I wrote hundreds of basic code and then it gives : syntax error :) opps urghh ! But still love wicket and its examples -- Altuğ. -- -- ~Mia は 最高!~ -- -- Altuğ. -- View this message in context: http://www.nabble.com/Have-you-ever-run-this-example---tp25191082p25193012.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: images in html or images in css
Thanks! It works On Fri, Aug 28, 2009 at 1:16 PM, Pedro Santos pedros...@gmail.com wrote: You can use wicket:link tag to convert the static reference see: http://cwiki.apache.org/WICKET/autolink.html On Fri, Aug 28, 2009 at 12:10 PM, Altuğ B. Altıntaş alt...@gmail.com wrote: Hi; Because your css file location and html file location are different. try to reach images via url way like background:url(*/images/FondoGeneral.jpg*); or img src=*/images/MarcoFoto.png* width=177 height=107 Cheers... 2009/8/28 Fernando Wermus fernando.wer...@gmail.com Hi all, There is something that I dont understand: If my css style has an image declared, it works: body { background:url(images/FondoGeneral.jpg); but if it is defined in the html, it doesnt img src=images/MarcoFoto.png width=177 height=107 why? -- Fernando Wermus. www.linkedin.com/in/fernandowermus -- Altuğ. -- Fernando Wermus. www.linkedin.com/in/fernandowermus
RE: Filter Toolbar and changing size of TextFilter input box
Here's a simple way to do it : new TextFilteredPropertyColumnCorbeille, Corbeille(new ModelString(longitude), pointCollecte.longitude, pointCollecte.longitude) { @Override public Component getFilter(final String varComponentId, final FilterForm varForm) { TextFilterCorbeille filter = (TextFilterCorbeille) super.getFilter(varComponentId, varForm); filter.getFilter().add(new AttributeModifier(size, true, new ModelString(7))); return filter; } } regards, Gabriel. -- View this message in context: http://www.nabble.com/Filter-Toolbar-and-changing-size-of-TextFilter-input-box-tp18973042p25194515.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Broken URLs when app packaged as WAR
Created a Wicket application and runs fine using mvn jetty:run and then created a WAR using mvn package. When the app is deployed in Tomcat, only the home page shows up correctly but all other links giving 404. For example http://localhost:8080/runner/newrun works fine with Jetty but http://localhost:8080/runner-1.0-SNAPSHOT/runner/newrun gives an error in Tomcat. Any idea ? -Arun -- Need Application Server ? - Download glassfish.org Blog: http://blog.arungupta.me - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Male/Female messages
Actually a good solution. I am already using styles for skin diffrentiation but can certainly combine the male/female to that. Simple and clean. Thanks On Thu, Aug 27, 2009 at 6:35 PM, Cserep Janos cser...@szeretgom.hu wrote: use setStyle() and different styles for property files. That means you should have 2 files: MyApplication_male.properties MyApplication_female.properties j On Thu, Aug 27, 2009 at 5:32 PM, Arie Fishlerarie@gmail.com wrote: Hi, Assuming that I am localizing to a language that has different text required for male and female is there a generic way for hadling that. This is of course based on the fact that I can provide a user object that contains that property (if the user is a male or female) I can think of a convention that will add to all resource file keys a .female extension to handle female text if required and wrap the ResourceModel with an object that will get the user. Using the gender property of the user it will manipulate the key to add the .female extension if required, check if the female text exist at all (and if no default to the no extension version) etc. This may work. Are there any other suggestions? What about the wicket:message markup that goes directly to the resource files...how do I handle that? (I have lots of markup already so changing all of it to labels is not the easiest way) Thanks, Arie - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Male/Female messages
This remember me an idea. Will to be very helpful if wicket worked with syles hierarchy. For example, I worked on a application that have 3 styles: style1_grayscale, style1_colored, style2. In some css files for example, would be useful to write just the somePanelCssFile_style1.css, that can to be reached by the 2 sessions styles: style1_grayscale, style1_colored Currently I have to copy the same css file in some cases, to be reached by the 2 styles: style1_grayscale, style1_colored On Fri, Aug 28, 2009 at 3:34 PM, Arie Fishler arie@gmail.com wrote: Actually a good solution. I am already using styles for skin diffrentiation but can certainly combine the male/female to that. Simple and clean. Thanks On Thu, Aug 27, 2009 at 6:35 PM, Cserep Janos cser...@szeretgom.hu wrote: use setStyle() and different styles for property files. That means you should have 2 files: MyApplication_male.properties MyApplication_female.properties j On Thu, Aug 27, 2009 at 5:32 PM, Arie Fishlerarie@gmail.com wrote: Hi, Assuming that I am localizing to a language that has different text required for male and female is there a generic way for hadling that. This is of course based on the fact that I can provide a user object that contains that property (if the user is a male or female) I can think of a convention that will add to all resource file keys a .female extension to handle female text if required and wrap the ResourceModel with an object that will get the user. Using the gender property of the user it will manipulate the key to add the .female extension if required, check if the female text exist at all (and if no default to the no extension version) etc. This may work. Are there any other suggestions? What about the wicket:message markup that goes directly to the resource files...how do I handle that? (I have lots of markup already so changing all of it to labels is not the easiest way) Thanks, Arie - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
[ANN] Wicket Guice Metro, was: Wicket + Webservice
Bas Gooren schrieb: Hi Bas I would like to integrate a webservice callable by others into my existing Wicket application. The reason is that I'm integration a third-party payment provider and they provide a callback mechanism in the form of a WSDL I need to implement. I'd like to be able to control the location where the webservice is mounted from wicket, and access my guice-injected services through wicket-guice integration. This way I have easy access to all the services and daos in my application just popped it out: http://code.google.com/p/wicket-guice-jaxws/ trivial code, please let me know if it works for you. cu uwe - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AjaxLink/Behaviour with shortcut
Yes, I have seen the example project - thanks for that. Great stuff btw. Extending inputevent class? I don't get it... One more thing: What about adding some sort of direct ajax callback to java without having to add a AjaxLink? In my case I have a delete link that opens a popup. But now I try to add a shortcut (e.g. ctrl+Delete) that shouldn't ask for confirmation. I have solved this with a second link that is not visible - but that seems to be a little bit strange.. Thanks, Johannes nino martinez wael wrote: Thanks for the feedback, the quick solution would be to extend the inputevent class. Did you see the example project? 2009/8/28 Johannes Schneider maili...@cedarsoft.com: And I think EventType shouldn't be an enum but instead a class with several constants. So everybody could add own event types if necessary. Regards Johannes Johannes Schneider wrote: I made some progress: When using the (newly created) EventType onclick the behvious seems to be improved. The first time it works great, but if I add the link to the AjaxRequestTarget (so that the link is updated), the event is executed multiple times... Regards, Johannes Johannes Schneider wrote: That thing works great with normal links. But I have a problem with Ajax(Fallback)Links. The created JavaScript looks good but it does not work. Since I really don't understand JavaScript I don't have a clue what to do next. I have modified the example to reproduce the problem: Add to HomePage.html: hra href=# wicket:id=ajaxLinkAjax here!/a Added to HomePage.java: AjaxLinkObject ajaxLink = new AjaxLinkObject(ajaxLink) { @Override public void onClick( AjaxRequestTarget ajaxRequestTarget ) { System.out.println( # ); } }; ajaxLink.add( new InputBehavior( new KeyType[]{KeyType.n} ) ); add( ajaxLink ); Any ideas? Thanks, Johannes danisevsky wrote: look at https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/input-events-parent/ 2009/8/26 Johannes Schneider maili...@cedarsoft.com Hi, I have here several AjaxLinks that should be triggered using a shortcut (e.g. PageDown or Delete). Does anybody have some lines of code or a hint how that could be done? Alternatively a AjaxBehaviour could be used to start the action. Any ideas? Thanks, Johannes - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Have you ever run this example ?
I solved the problem ! I added Spring context listener + cglib 2.2.jar I run my first Spring Security Framework + wicket application. Thanks everybody ! Some notes : - Wicket example page ( http://cwiki.apache.org/WICKET/spring-security-and-wicket-auth-roles.html) is not clear enough - I used apache Ki (new name is Apache Shiro) on my previous application, i can really say it is very very simple and powerful. But Apache Shiro is going quite slow, there is no alpha release yet but Apache Shiro is promising. Thanks. 2009/8/28 jWeekend jweekend_for...@cabouge.com Altug, It sounds like there is no bean factory set on your servlet context. Did you add Spring's context listener in web.xml? Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development http://jWeekend.com Altuğ B. Altıntaş wrote: How can i add ctx variable ? I am new in Spring Security Thanks... 2009/8/28 Anders innocentl...@gmail.com I don't see any ctx variable in that web page. On Fri, Aug 28, 2009 at 10:37 PM, Altuğ B. Altıntaş alt...@gmail.com wrote: Hi all ; I am trying to run Spring Security and Wicket-auth-roles example. Url : http://cwiki.apache.org/WICKET/spring-security-and-wicket-auth-roles.html I implemented what it writes step by step but it gives : java.lang.IllegalArgumentException: Argument [[ctx]] cannot be null at org.apache.wicket.spring.injection.annot.SpringComponentInjector.init(SpringComponentInjector.java:93) at com.example.web.Setup.setListeners(Setup.java:41) at com.exaple.web.Setup.init(Setup.java:32) at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:696) . Any idea ? Or simple simple simple Spring Security and Wicket integration example. Note : I remember my old commodore - 64 days. I wrote hundreds of basic code and then it gives : syntax error :) opps urghh ! But still love wicket and its examples -- Altuğ. -- -- ~Mia は 最高!~ -- -- Altuğ. -- View this message in context: http://www.nabble.com/Have-you-ever-run-this-example---tp25191082p25193012.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Altuğ.
About getSignInPageClass() in AuthenticatedWebApplication class
Hi, I'd like to ask what if the login page is external login web page? I have no idea which class should be returned in getSignInPageClass(), Please give me some advices. Thank you very much -- -- ~Mia は 最高!~ --
Re: Quick model/user/session question
filters are executed in the order they are defined, so put the osiv filter declaration before wicket. -igor On Thu, Aug 27, 2009 at 8:08 AM, Dane Lavertydanelave...@gmail.com wrote: Thanks for the suggestion. I've actually already got OpenSessionInViewFilter in my web.xml, like so: filter filter-namewicket.filter/filter-name filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class init-param param-nameapplicationFactoryClassName/param-name param-valueorg.apache.wicket.spring.SpringWebApplicationFactory/param-value /init-param /filter filter filter-nameopen.hibernate.session.in.view/filter-name filter-classorg.springframework.orm.hibernate3.support.OpenSessionInViewFilter/filter-class /filter !-- Important! This filter mapping must come before Wickets! -- filter-mapping filter-nameopen.hibernate.session.in.view/filter-name url-pattern/*/url-pattern /filter-mapping filter-mapping filter-namewicket.filter/filter-name url-pattern/*/url-pattern /filter-mapping Is there anything else I need to do in order to make OSIV work? Everything I've read says it just needs to be placed in the web.xml. Thanks, Dane On Wed, Aug 26, 2009 at 7:58 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: On Wed, Aug 26, 2009 at 6:30 PM, Dane Lavertydanelave...@gmail.com wrote: As I understand it, the LazyInitializationException is thrown because the Hibernate session closes after I call EntityDao.load(). But if that's the problem, then why should an LDM help? Won't the Hibernate session close again as soon as the LDM's load() is called? google OpenSessionInViewFilter, it keeps the hibernate session open for the entire request. -igor - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: label fails serializable check when i override model().getObject (wicket 1.3.6)
final _isgraph=isgraph; graphLink.add(new Label(graphLinkLabel, new Model() { @Override public Object getObject() { return _isgraph ? List : Graph; } })); -igor On Thu, Aug 27, 2009 at 12:19 PM, james o'brienjobr...@spinnphr.com wrote: I'm trying to change the text of label based on whether a flag is set for graph or not graph. graphLink.add(new Label(graphLinkLabel, new Model() { �...@override public Object getObject() { return isGraph ? List : Graph; } })); When I do this, I get a private org.apache.wicket.markup.html.link.PopupSettings org.apache.wicket.markup.html.link.Link.popupSettings[6] [class=com.spinn.ui.person.weight.ViewWeights$4, path=6:border:graphLink] final javax.servlet.http.HttpServletRequest com.spinn.ui.person.weight.ViewWeights$4.val$request [class=org.apache.catalina.connector.RequestFacade] - field that is not serializable at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:339) If I change it to a normal label I do not. Any ideas? -jim - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org