about linkTree
hi,i have a problem , is there any way for changing the icon of the linkTree, is there any complete sample, thank you .
Re: Wicket archetype for hibernate 3.5 and spring 3
It seems nice. Could you please give me advice how to use it? I am not fimiliar with mavem. Thanks. 2010/7/25 Jochen Mader pflanzenmoer...@gmail.com I created a Maven archetype for wicket application containing the following things: - Everything is configured using Spring 3 - Hibernate 3.5 is used for persistence - Example classes using JPA-style annotations - Example DAOs and base classes for CRUD-operations - Everything runs on an InRam-HSQL I will add some better unit tests this week. I added the Apache License so it should be compatible with Wicket. It is somewhat based on the original Wicket-Archetype. I hope I did everything right and didn't break any licenses. Grab your copy from: http://github.com/pflanzenmoerder/wicket-hibernate-archetype CU Jochen - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
IVisitorT extends Component and IFormModelUpdateListener not extending Component
hello I wanted to do an Component.IVisitor for all children components implementing IFormModelUpdateListener. However, IVisitor requires something extending Component, which IFormModelUpdateListener can't do (it's an interface). As such, I had to dump all generics info and do instanceof to get it running. However, for wicket 1.5 I guess, shouldn't there be an IComponent interface that IFormModelUpdateListener would implement ? IVisitor would then be of T extends IComponent and I could do an IVisitorIFormModelUpdateListener. What's your pick on that ? ++ -- Joseph Pachod IT THOMAS DAILY GmbH Adlerstraße 19 79098 Freiburg Deutschland T + 49 761 3 85 59 506 F + 49 761 3 85 59 550 E joseph.pac...@thomas-daily.de www.thomas-daily.de Geschäftsführer/Managing Directors: Wendy Thomas, Susanne Larbig Handelsregister Freiburg i.Br., HRB 3947 Registrieren Sie sich unter https://www.thomas-daily.de/user/sign-in für die TD Morning News, eine kostenlose Auswahl aktueller Themen aus TD Premium, morgens ab 9:15 in Ihrer Mailbox. Aktuelle Presseinformationen für die TD Morning News und TD Premium nimmt unsere Redaktion unter redakt...@thomas-daily.de entgegen. Redaktionsschluss für die TD Morning News ist täglich um 8:45. Register free of charge at https://www.thomas-daily.de/user/sign-in to have the TD Morning News, a selection of the latest topics from TD Premium, delivered to your mailbox from 9:15 every morning. Our editorial department receives the latest press releases for the TD Morning News and TD Premium at redakt...@thomas-daily.de. The editorial deadline for the TD Morning News is 8.45am daily. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: IVisitorT extends Component and IFormModelUpdateListener not extending Component
You can still visit all components and manually check if it is an instanceof IFormModelUpdateListener On Mon, Jul 26, 2010 at 12:10 PM, Joseph Pachod [via Apache Wicket] ml-node+2302070-350349768-293...@n4.nabble.comml-node%2b2302070-350349768-293...@n4.nabble.com wrote: hello I wanted to do an Component.IVisitor for all children components implementing IFormModelUpdateListener. However, IVisitor requires something extending Component, which IFormModelUpdateListener can't do (it's an interface). As such, I had to dump all generics info and do instanceof to get it running. However, for wicket 1.5 I guess, shouldn't there be an IComponent interface that IFormModelUpdateListener would implement ? IVisitor would then be of T extends IComponent and I could do an IVisitorIFormModelUpdateListener. What's your pick on that ? ++ -- Joseph Pachod IT THOMAS DAILY GmbH Adlerstraße 19 79098 Freiburg Deutschland T + 49 761 3 85 59 506 F + 49 761 3 85 59 550 E [hidden email] http://user/SendEmail.jtp?type=nodenode=2302070i=0 www.thomas-daily.de Geschäftsführer/Managing Directors: Wendy Thomas, Susanne Larbig Handelsregister Freiburg i.Br., HRB 3947 Registrieren Sie sich unter https://www.thomas-daily.de/user/sign-in für die TD Morning News, eine kostenlose Auswahl aktueller Themen aus TD Premium, morgens ab 9:15 in Ihrer Mailbox. Aktuelle Presseinformationen für die TD Morning News und TD Premium nimmt unsere Redaktion unter [hidden email]http://user/SendEmail.jtp?type=nodenode=2302070i=1entgegen. Redaktionsschluss für die TD Morning News ist täglich um 8:45. Register free of charge at https://www.thomas-daily.de/user/sign-in to have the TD Morning News, a selection of the latest topics from TD Premium, delivered to your mailbox from 9:15 every morning. Our editorial department receives the latest press releases for the TD Morning News and TD Premium at [hidden email]http://user/SendEmail.jtp?type=nodenode=2302070i=2. The editorial deadline for the TD Morning News is 8.45am daily. - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=2302070i=3 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=2302070i=4 -- View message @ http://apache-wicket.1842946.n4.nabble.com/IVisitor-T-extends-Component-and-IFormModelUpdateListener-not-extending-Component-tp2302070p2302070.html To start a new topic under Wicket - User, email ml-node+1842947-1647783149-293...@n4.nabble.comml-node%2b1842947-1647783149-293...@n4.nabble.com To unsubscribe from Wicket - User, click herehttp://apache-wicket.1842946.n4.nabble.com/subscriptions/Unsubscribe.jtp?code=YXZyYWhhbXJAZ21haWwuY29tfDE4NDI5NDd8LTEwNzY0NzQ1ODc=. -- []'s Avraham Rosenzweig avrah...@gmail.com -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/IVisitor-T-extends-Component-and-IFormModelUpdateListener-not-extending-Component-tp2302070p2302075.html Sent from the Wicket - User mailing list archive at Nabble.com.
Re: IVisitorT extends Component and IFormModelUpdateListener not extending Component
you can use: public final S extends Component Object visitChildren(final Class? clazz, final IVisitorS visitor) then you have to cast yes, but you can cast safely. johan On Mon, Jul 26, 2010 at 11:09, Joseph Pachod j...@thomas-daily.de wrote: hello I wanted to do an Component.IVisitor for all children components implementing IFormModelUpdateListener. However, IVisitor requires something extending Component, which IFormModelUpdateListener can't do (it's an interface). As such, I had to dump all generics info and do instanceof to get it running. However, for wicket 1.5 I guess, shouldn't there be an IComponent interface that IFormModelUpdateListener would implement ? IVisitor would then be of T extends IComponent and I could do an IVisitorIFormModelUpdateListener. What's your pick on that ? ++ -- Joseph Pachod IT THOMAS DAILY GmbH Adlerstraße 19 79098 Freiburg Deutschland T + 49 761 3 85 59 506 F + 49 761 3 85 59 550 E joseph.pac...@thomas-daily.de www.thomas-daily.de Geschäftsführer/Managing Directors: Wendy Thomas, Susanne Larbig Handelsregister Freiburg i.Br., HRB 3947 Registrieren Sie sich unter https://www.thomas-daily.de/user/sign-in für die TD Morning News, eine kostenlose Auswahl aktueller Themen aus TD Premium, morgens ab 9:15 in Ihrer Mailbox. Aktuelle Presseinformationen für die TD Morning News und TD Premium nimmt unsere Redaktion unter redakt...@thomas-daily.de entgegen. Redaktionsschluss für die TD Morning News ist täglich um 8:45. Register free of charge at https://www.thomas-daily.de/user/sign-in to have the TD Morning News, a selection of the latest topics from TD Premium, delivered to your mailbox from 9:15 every morning. Our editorial department receives the latest press releases for the TD Morning News and TD Premium at redakt...@thomas-daily.de. The editorial deadline for the TD Morning News is 8.45am daily. - 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: Size of ListView
Hi Igor, Excellent suggestion! It took some experimenting, but we managed to get it to work. add(new PropertyListViewMonthAmount(month, new XListViewModel(x)) { { setReuseItems(false); setVersioned(false); } @Override protected void populateItem(final ListItemMonthAmount item) { // ... } @Override protected void onDetach() { removeAll(); super.onDetach(); } }); The gotcha's: - modifying the component tree AFTER rendering increments the page version, which is obviously unwanted and causes fatal errors (since the form action still points the old version of the page which is not stored in the session). - disabling versioning of the list view circumvents this. It seems pretty logical to me - since it is to be re-populated upon each request (it's pretty much stateless), it should not impact the version. I'm feeling pretty good about this approach - we'll probably make a separate ListView component out of it. Do you have any thoughts on it? Should I create a feature request in Jira to change the implementation of ListView to behave like I described? Regards, Vincent. On 22 July 2010 18:41, Igor Vaynberg igor.vaynb...@gmail.com wrote: what about onDetach() ? -igor On Thu, Jul 22, 2010 at 6:17 AM, Danny van Bruggen tsuih...@gmail.com wrote: No, we can't change the component tree in onAfterRender - Wicket complains that it cannot increase the page version after rendering. On 7/21/10, Vincent Lussenburg vincent.lussenb...@gmail.com wrote: I remember trying that, but getting slapped by wicket for trying to change the component tree after rendering.. Or am I missing something? We'll doublecheck it tomorrow. Groet, Vincent On Jul 21, 2010, at 18:37, Igor Vaynberg igor.vaynb...@gmail.com wrote: if the data is strictly read-only and does not contain any links you can try removing the list items in afterrender() -igor On Wed, Jul 21, 2010 at 7:50 AM, Danny van Bruggen tsuih...@gmail.com wrote: Hello all, We're developing a non-Ajax application that displays a bunch of big tables - about five columns, 300 rows. Since session size was increasing a lot, we looked into the cause of it, and (after making everything detachable and switching to PropertyListModel) found out that the ListItems of each ListView still accounted for about 100k. Since all the data in the tables is read only, we're wondering if we can skip serializing the ListItems. Is this possible? Is there another approach? Danny van Bruggen - 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: IVisitorT extends Component and IFormModelUpdateListener not extending Component
avrahamr wrote: You can still visit all components and manually check if it is an instanceof IFormModelUpdateListener that's what I did , dumping generics info on the way - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: IVisitorT extends Component and IFormModelUpdateListener not extending Component
Johan Compagner wrote: you can use: public final S extends Component Object visitChildren(final Class? clazz, final IVisitorS visitor) then you have to cast yes, but you can cast safely. johan I don't get it, sorry. How could I cast safely there ? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: IVisitorT extends Component and IFormModelUpdateListener not extending Component
Joseph Pachod wrote: Johan Compagner wrote: you can use: public final S extends Component Object visitChildren(final Class? clazz, final IVisitorS visitor) then you have to cast yes, but you can cast safely. johan I don't get it, sorry. How could I cast safely there ? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org I got it, sorry ! Yes indeed, feels already better :) ++ -- Joseph Pachod IT THOMAS DAILY GmbH Adlerstraße 19 79098 Freiburg Deutschland T + 49 761 3 85 59 506 F + 49 761 3 85 59 550 E joseph.pac...@thomas-daily.de www.thomas-daily.de Geschäftsführer/Managing Directors: Wendy Thomas, Susanne Larbig Handelsregister Freiburg i.Br., HRB 3947 Registrieren Sie sich unter https://www.thomas-daily.de/user/sign-in für die TD Morning News, eine kostenlose Auswahl aktueller Themen aus TD Premium, morgens ab 9:15 in Ihrer Mailbox. Aktuelle Presseinformationen für die TD Morning News und TD Premium nimmt unsere Redaktion unter redakt...@thomas-daily.de entgegen. Redaktionsschluss für die TD Morning News ist täglich um 8:45. Register free of charge at https://www.thomas-daily.de/user/sign-in to have the TD Morning News, a selection of the latest topics from TD Premium, delivered to your mailbox from 9:15 every morning. Our editorial department receives the latest press releases for the TD Morning News and TD Premium at redakt...@thomas-daily.de. The editorial deadline for the TD Morning News is 8.45am daily. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket Candy?
Hi! Has someone implemented Candy on Wicket as an extension to tabbed panels? http://vimeo.com/13560319 ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: TextFieldInteger
I just whipped up a test, this is working - at least on 1.4.1 FormVoid form = new FormVoid(form); add(form); final TextFieldInteger textInt = new TextFieldInteger(textInt, new ModelInteger()); textInt.setType(Integer.class); form.add(textInt); I did not get any errors casting to Long. I even added a feedback panel and put in alpha characters. It properly came back stated that ...'abc' is not a valid Integer. On Mon, Jul 26, 2010 at 1:21 AM, dferguson doug...@douglasferguson.us wrote: When I supply Integer as the type, i get an error cannot cast Long to Integer D/ On Jul 22, 2010, at 5:01 PM, Josh Glassman wrote: There is also a constructor that will take a Class type as a parameter. On Thu, Jul 22, 2010 at 3:11 PM, T Ames tamesw...@gmail.com wrote: I think you have to use the setType(Integer.class) method on the TextField object. setType public final FormComponent file:///C:/Downloads/Java/wicket/apache-wicket-1.4.1/apidocs/org/apache/wicket/markup/html/form/FormComponent.htmlT file:///C:/Downloads/Java/wicket/apache-wicket-1.4.1/apidocs/org/apache/wicket/markup/html/form/FormComponent.html *setType*(java.lang.Class? type) Sets the type that will be used when updating the model for this component. If no type is specified String type is assumed. *Parameters:*type - *Returns:*this for chaining On Thu, Jul 22, 2010 at 1:50 PM, Douglas Ferguson doug...@douglasferguson.us wrote: Has anybody succesfully used TextFieldInteger? I get an runtime exception trying to cast String to Integer. If supply (Integer.class) to the constructor then it is trying to case Long to Integer. D/ - 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: TextFieldInteger
If I take out the setType method, still no cast error, but the Integer checking is not done - feedback panel does not receive an error. On Mon, Jul 26, 2010 at 9:23 AM, T Ames tamesw...@gmail.com wrote: I just whipped up a test, this is working - at least on 1.4.1 FormVoid form = new FormVoid(form); add(form); final TextFieldInteger textInt = new TextFieldInteger(textInt, new ModelInteger()); textInt.setType(Integer.class); form.add(textInt); I did not get any errors casting to Long. I even added a feedback panel and put in alpha characters. It properly came back stated that ...'abc' is not a valid Integer. On Mon, Jul 26, 2010 at 1:21 AM, dferguson doug...@douglasferguson.us wrote: When I supply Integer as the type, i get an error cannot cast Long to Integer D/ On Jul 22, 2010, at 5:01 PM, Josh Glassman wrote: There is also a constructor that will take a Class type as a parameter. On Thu, Jul 22, 2010 at 3:11 PM, T Ames tamesw...@gmail.com wrote: I think you have to use the setType(Integer.class) method on the TextField object. setType public final FormComponent file:///C:/Downloads/Java/wicket/apache-wicket-1.4.1/apidocs/org/apache/wicket/markup/html/form/FormComponent.htmlT file:///C:/Downloads/Java/wicket/apache-wicket-1.4.1/apidocs/org/apache/wicket/markup/html/form/FormComponent.html *setType*(java.lang.Class? type) Sets the type that will be used when updating the model for this component. If no type is specified String type is assumed. *Parameters:*type - *Returns:*this for chaining On Thu, Jul 22, 2010 at 1:50 PM, Douglas Ferguson doug...@douglasferguson.us wrote: Has anybody succesfully used TextFieldInteger? I get an runtime exception trying to cast String to Integer. If supply (Integer.class) to the constructor then it is trying to case Long to Integer. D/ - 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
How to call javascript from panel constructor
Hi, I have a panel that sets some properties at its constructor. Then I want to use one of this properties to set a javascript slider, so I need to call javascript code like $('#slider').slider('option','value',+expLevVal+); I know how I can do this when I have some event, like link or button click, but how about the calling set method or after construction of the class. Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-call-javascript-from-panel-constructor-tp2302355p2302355.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: Forums tools ready-to-use?
Please check www.xaloon.org. This project contains some nice ready to use components for wicket including: - blog; - comments panel; - sports component; - plugin administration console; - registration and activation panel; Regards. Josh On Sun, Jul 25, 2010 at 7:30 PM, Paolo irresistible...@gmail.com wrote: I need a tool for a Forum in my web site. I don't want use the classic php based tools, like phpForum, bbCode ecc. But I would use WICKET! Do you suggest me some wicket examples o ready-to-use forum tool? Or if it doesn't exist, please suggest some guestbook or similar way to posting message in a webpage. thank you. Paolo
Re: How to call javascript from panel constructor
class MyPanel implements IHeaderContributor { // ctor public void renderHead(IHeaderResponse response) { response.renderJavascript( mySliderJavascript ); } } On Mon, Jul 26, 2010 at 3:39 PM, zoran jeremy...@gmail.com wrote: Hi, I have a panel that sets some properties at its constructor. Then I want to use one of this properties to set a javascript slider, so I need to call javascript code like $('#slider').slider('option','value',+expLevVal+); I know how I can do this when I have some event, like link or button click, but how about the calling set method or after construction of the class. Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-call-javascript-from-panel-constructor-tp2302355p2302355.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: How to call javascript from panel constructor
Hello, You need to use a behaviour in your panel to emit the javascript. panel.setOutputMarkupId (true); panel.setOutputMarkupIdPlaceholder(true); panel.add(new AbstractBehaviour () { public void renderHead(IHeaderResponse response) { // markupid is determined for this panel before it is rendered so it is available here // StringBuffer javascriptBuffer = new StringBuffer(); javascriptBuffer.append ($('+panel.getMarkupId()+').slider('option','value',+expLevVal+);); response.response.renderOnLoadJavascript(javascriptBuffer.toString()); } }); This will emit the action into the header of the page and it will run once the page is loaded and the DOM has been built. Regards, Mike Hi, I have a panel that sets some properties at its constructor. Then I want to use one of this properties to set a javascript slider, so I need to call javascript code like $('#slider').slider('option','value',+expLevVal+); I know how I can do this when I have some event, like link or button click, but how about the calling set method or after construction of the class. Thanks - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to call javascript from panel constructor
Thank you Mike, This works. Regards, Zoran -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-call-javascript-from-panel-constructor-tp2302355p2302432.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
don't find the html resource for a component
Hi all, I am rendering emails with wicket in two different ways: 1. Into an onclick's link. 2. Calling a back end that is implemented with Blazeds (Flex). In this case, when the page is rendering, it doesn't find the html resource associated to the component within cache. I got (cache) ...frontend.entidades.mensajes.paginas.evento.PaginaMensajeEventoen_UShtml=(unknown resource) I can't explain the differences in behavior between the two cases. Does somebody has experienced this situation? I am lack of ideas. The page which isnt associated to its corresponding html is a bookmarkable page. thanks in advance. -- Fernando Wermus. www.linkedin.com/in/fernandowermus
Re: don't find the html resource for a component
I wanna add that first case is working, however second not. On Mon, Jul 26, 2010 at 11:49 AM, Fernando Wermus fernando.wer...@gmail.com wrote: Hi all, I am rendering emails with wicket in two different ways: 1. Into an onclick's link. 2. Calling a back end that is implemented with Blazeds (Flex). In this case, when the page is rendering, it doesn't find the html resource associated to the component within cache. I got (cache) ...frontend.entidades.mensajes.paginas.evento.PaginaMensajeEventoen_UShtml=(unknown resource) I can't explain the differences in behavior between the two cases. Does somebody has experienced this situation? I am lack of ideas. The page which isnt associated to its corresponding html is a bookmarkable page. thanks in advance. -- Fernando Wermus. www.linkedin.com/in/fernandowermus -- Fernando Wermus. www.linkedin.com/in/fernandowermus
Re: Size of ListView
no, this will not work for the larger usecase. like i mentioned before, if you place links or textfields or anything but labels into listitems they will not work. -igor On Mon, Jul 26, 2010 at 3:41 AM, Vincent Lussenburg vincent.lussenb...@gmail.com wrote: Hi Igor, Excellent suggestion! It took some experimenting, but we managed to get it to work. add(new PropertyListViewMonthAmount(month, new XListViewModel(x)) { { setReuseItems(false); setVersioned(false); } �...@override protected void populateItem(final ListItemMonthAmount item) { // ... } �...@override protected void onDetach() { removeAll(); super.onDetach(); } }); The gotcha's: - modifying the component tree AFTER rendering increments the page version, which is obviously unwanted and causes fatal errors (since the form action still points the old version of the page which is not stored in the session). - disabling versioning of the list view circumvents this. It seems pretty logical to me - since it is to be re-populated upon each request (it's pretty much stateless), it should not impact the version. I'm feeling pretty good about this approach - we'll probably make a separate ListView component out of it. Do you have any thoughts on it? Should I create a feature request in Jira to change the implementation of ListView to behave like I described? Regards, Vincent. On 22 July 2010 18:41, Igor Vaynberg igor.vaynb...@gmail.com wrote: what about onDetach() ? -igor On Thu, Jul 22, 2010 at 6:17 AM, Danny van Bruggen tsuih...@gmail.com wrote: No, we can't change the component tree in onAfterRender - Wicket complains that it cannot increase the page version after rendering. On 7/21/10, Vincent Lussenburg vincent.lussenb...@gmail.com wrote: I remember trying that, but getting slapped by wicket for trying to change the component tree after rendering.. Or am I missing something? We'll doublecheck it tomorrow. Groet, Vincent On Jul 21, 2010, at 18:37, Igor Vaynberg igor.vaynb...@gmail.com wrote: if the data is strictly read-only and does not contain any links you can try removing the list items in afterrender() -igor On Wed, Jul 21, 2010 at 7:50 AM, Danny van Bruggen tsuih...@gmail.com wrote: Hello all, We're developing a non-Ajax application that displays a bunch of big tables - about five columns, 300 rows. Since session size was increasing a lot, we looked into the cause of it, and (after making everything detachable and switching to PropertyListModel) found out that the ListItems of each ListView still accounted for about 100k. Since all the data in the tables is read only, we're wondering if we can skip serializing the ListItems. Is this possible? Is there another approach? Danny van Bruggen - 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: Size of ListView
no, this will not work for the larger usecase. like i mentioned before, if you place links or textfields or anything but labels into listitems they will not work. -igor On Mon, Jul 26, 2010 at 3:41 AM, Vincent Lussenburg vincent.lussenb...@gmail.com wrote: Hi Igor, Excellent suggestion! It took some experimenting, but we managed to get it to work. add(new PropertyListViewMonthAmount(month, new XListViewModel(x)) { { setReuseItems(false); setVersioned(false); } �...@override protected void populateItem(final ListItemMonthAmount item) { // ... } �...@override protected void onDetach() { removeAll(); super.onDetach(); } }); The gotcha's: - modifying the component tree AFTER rendering increments the page version, which is obviously unwanted and causes fatal errors (since the form action still points the old version of the page which is not stored in the session). - disabling versioning of the list view circumvents this. It seems pretty logical to me - since it is to be re-populated upon each request (it's pretty much stateless), it should not impact the version. I'm feeling pretty good about this approach - we'll probably make a separate ListView component out of it. Do you have any thoughts on it? Should I create a feature request in Jira to change the implementation of ListView to behave like I described? Regards, Vincent. On 22 July 2010 18:41, Igor Vaynberg igor.vaynb...@gmail.com wrote: what about onDetach() ? -igor On Thu, Jul 22, 2010 at 6:17 AM, Danny van Bruggen tsuih...@gmail.com wrote: No, we can't change the component tree in onAfterRender - Wicket complains that it cannot increase the page version after rendering. On 7/21/10, Vincent Lussenburg vincent.lussenb...@gmail.com wrote: I remember trying that, but getting slapped by wicket for trying to change the component tree after rendering.. Or am I missing something? We'll doublecheck it tomorrow. Groet, Vincent On Jul 21, 2010, at 18:37, Igor Vaynberg igor.vaynb...@gmail.com wrote: if the data is strictly read-only and does not contain any links you can try removing the list items in afterrender() -igor On Wed, Jul 21, 2010 at 7:50 AM, Danny van Bruggen tsuih...@gmail.com wrote: Hello all, We're developing a non-Ajax application that displays a bunch of big tables - about five columns, 300 rows. Since session size was increasing a lot, we looked into the cause of it, and (after making everything detachable and switching to PropertyListModel) found out that the ListItems of each ListView still accounted for about 100k. Since all the data in the tables is read only, we're wondering if we can skip serializing the ListItems. Is this possible? Is there another approach? Danny van Bruggen - 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: Passing raw value to html
i think this was discussed already (for this exact usecase even), search the archives. -igor On Mon, Jul 26, 2010 at 8:42 AM, Sam Barrow s...@sambarrow.com wrote: Is there a way to pass a raw value to be displayed in a wicket markup file? I'm trying to create a google analytics panel that takes an id string and puts it directly in the markup with no tag. script type=text/javascript var _gaq = _gaq || []; _gaq.push(['_setAccount', ${MY_RAW_VALUE}]); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); /script - 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: Passing raw value to html
I'll look it up. I always search before asking, I just wasn't able to find this since it's kind of a difficult set of keywords to search google for. On Mon, 2010-07-26 at 08:45 -0700, Igor Vaynberg wrote: i think this was discussed already (for this exact usecase even), search the archives. -igor On Mon, Jul 26, 2010 at 8:42 AM, Sam Barrow s...@sambarrow.com wrote: Is there a way to pass a raw value to be displayed in a wicket markup file? I'm trying to create a google analytics panel that takes an id string and puts it directly in the markup with no tag. script type=text/javascript var _gaq = _gaq || []; _gaq.push(['_setAccount', ${MY_RAW_VALUE}]); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); /script - 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: Passing raw value to html
first result http://wicket.markmail.org/search/?q=analytics%20javascript -igor On Mon, Jul 26, 2010 at 8:49 AM, Sam Barrow s...@sambarrow.com wrote: I'll look it up. I always search before asking, I just wasn't able to find this since it's kind of a difficult set of keywords to search google for. On Mon, 2010-07-26 at 08:45 -0700, Igor Vaynberg wrote: i think this was discussed already (for this exact usecase even), search the archives. -igor On Mon, Jul 26, 2010 at 8:42 AM, Sam Barrow s...@sambarrow.com wrote: Is there a way to pass a raw value to be displayed in a wicket markup file? I'm trying to create a google analytics panel that takes an id string and puts it directly in the markup with no tag. script type=text/javascript var _gaq = _gaq || []; _gaq.push(['_setAccount', ${MY_RAW_VALUE}]); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); /script - 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: Passing raw value to html
My 2 cents : I think the problem is more of inserting javaScript into markup as key words perhaps ?! :) http://ninomartinez.wordpress.com/2008/09/09/apache-wicket-javascript-integration : Dont forget to check the video out if you have the time http://apache-wicket.1842946.n4.nabble.com/Best-way-to-insert-inline-Javascript-td1930869.html#a1930870 ..the first link + video is also a good explanation! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Passing-raw-value-to-html-tp2302502p2302555.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: Passing raw value to html
I'm not trying to insert javascript, I'm just trying to pass a few characters into a template. I just happen to be using it in a situation where javascript is involved. On Mon, 2010-07-26 at 09:24 -0700, Arjun Dhar wrote: My 2 cents : I think the problem is more of inserting javaScript into markup as key words perhaps ?! :) http://ninomartinez.wordpress.com/2008/09/09/apache-wicket-javascript-integration : Dont forget to check the video out if you have the time http://apache-wicket.1842946.n4.nabble.com/Best-way-to-insert-inline-Javascript-td1930869.html#a1930870 ..the first link + video is also a good explanation! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Passing raw value to html
Lots of dynamic stuff? If you have lots of dynamic stuff you can use a texttemplate to interpolate your variables with it works really smooth, heres an example: ... HashMap variables = new HashMap(); variables.put(alert, helloworld); TextTemplate textTemplate=new TextTemplate(); textTemplate.interpolate(variables); String js= textTemplate.asString(); … corrosponding java script, notice the template signature ${…} alert(${alert}); So above code will produce a javascript string ‘alert(“hello world”)’ very useful. Thats in the first link I showed you; helps you put variables in whatever markup you want. Am sure there are other approaches also, but have a look before you think its not meant for you. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Passing-raw-value-to-html-tp2302502p2302561.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: Passing raw value to html
Yes that's exactly what I was looking for, I found the example in the mailing list. Thanks! On Mon, 2010-07-26 at 09:30 -0700, Arjun Dhar wrote: Lots of dynamic stuff? If you have lots of dynamic stuff you can use a texttemplate to interpolate your variables with it works really smooth, heres an example: ... HashMap variables = new HashMap(); variables.put(alert, helloworld); TextTemplate textTemplate=new TextTemplate(); textTemplate.interpolate(variables); String js= textTemplate.asString(); … corrosponding java script, notice the template signature ${…} alert(${alert}); So above code will produce a javascript string ‘alert(“hello world”)’ very useful. Thats in the first link I showed you; helps you put variables in whatever markup you want. Am sure there are other approaches also, but have a look before you think its not meant for you. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Size of ListView
I suppose so.. Well, at least it's a loophole for big chucks of readonly data. Thanks for your replies! Groet, Vincent On Jul 26, 2010, at 17:22, Igor Vaynberg igor.vaynb...@gmail.com wrote: no, this will not work for the larger usecase. like i mentioned before, if you place links or textfields or anything but labels into listitems they will not work. -igor On Mon, Jul 26, 2010 at 3:41 AM, Vincent Lussenburg vincent.lussenb...@gmail.com wrote: Hi Igor, Excellent suggestion! It took some experimenting, but we managed to get it to work. add(new PropertyListViewMonthAmount(month, new XListViewModel(x)) { { setReuseItems(false); setVersioned(false); } @Override protected void populateItem(final ListItemMonthAmount item) { // ... } @Override protected void onDetach() { removeAll(); super.onDetach(); } }); The gotcha's: - modifying the component tree AFTER rendering increments the page version, which is obviously unwanted and causes fatal errors (since the form action still points the old version of the page which is not stored in the session). - disabling versioning of the list view circumvents this. It seems pretty logical to me - since it is to be re-populated upon each request (it's pretty much stateless), it should not impact the version. I'm feeling pretty good about this approach - we'll probably make a separate ListView component out of it. Do you have any thoughts on it? Should I create a feature request in Jira to change the implementation of ListView to behave like I described? Regards, Vincent. On 22 July 2010 18:41, Igor Vaynberg igor.vaynb...@gmail.com wrote: what about onDetach() ? -igor On Thu, Jul 22, 2010 at 6:17 AM, Danny van Bruggen tsuih...@gmail.com wrote: No, we can't change the component tree in onAfterRender - Wicket complains that it cannot increase the page version after rendering. On 7/21/10, Vincent Lussenburg vincent.lussenb...@gmail.com wrote: I remember trying that, but getting slapped by wicket for trying to change the component tree after rendering.. Or am I missing something? We'll doublecheck it tomorrow. Groet, Vincent On Jul 21, 2010, at 18:37, Igor Vaynberg igor.vaynb...@gmail.com wrote: if the data is strictly read-only and does not contain any links you can try removing the list items in afterrender() -igor On Wed, Jul 21, 2010 at 7:50 AM, Danny van Bruggen tsuih...@gmail.com wrote: Hello all, We're developing a non-Ajax application that displays a bunch of big tables - about five columns, 300 rows. Since session size was increasing a lot, we looked into the cause of it, and (after making everything detachable and switching to PropertyListModel) found out that the ListItems of each ListView still accounted for about 100k. Since all the data in the tables is read only, we're wondering if we can skip serializing the ListItems. Is this possible? Is there another approach? Danny van Bruggen - 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Works in Development Mode but not in Production Mode
Shortly after we discovered this issue we made the same modification to our application. While not absolutely fool proof (and what is anyway?) it does shorten the loop on discovering these issues. However, I have actually seen this create its own problems when developing with a heavy use of panels and custom components. A lot of times it is useful to see where those wicket: tags are in the fully rendered document so you can figure out what parts of the html belong where so as to allow your css ninja to create the correct layout for you because the designers don't think in terms of the same kind of components us wicket developers do. In any case your suggestion is an excellent one and I recommend it to anyone developing anything but the most trivial of applications. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Works-in-Development-Mode-but-not-in-Production-Mode-tp2300335p2302610.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: Passing raw value to html
Let me know if you find a solution for this... Sam Barrow s...@sambarrow.com 07/26/2010 11:43 AM Please respond to users@wicket.apache.org To users@wicket.apache.org cc Subject Passing raw value to html Is there a way to pass a raw value to be displayed in a wicket markup file? I'm trying to create a google analytics panel that takes an id string and puts it directly in the markup with no tag. script type=text/javascript var _gaq = _gaq || []; _gaq.push(['_setAccount', ${MY_RAW_VALUE}]); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); /script - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org Notice: This communication, including any attachments, is intended solely for the use of the individual or entity to which it is addressed. This communication may contain information that is protected from disclosure under State and/or Federal law. Please notify the sender immediately if you have received this communication in error and delete this email from your system. If you are not the intended recipient, you are requested not to disclose, copy, distribute or take any action in reliance on the contents of this information.
Re: Passing raw value to html
I saw the replies and the markmail link, thanks guys... mzem...@osc.state.ny.us 07/26/2010 01:51 PM Please respond to users@wicket.apache.org To users@wicket.apache.org cc Subject Re: Passing raw value to html Let me know if you find a solution for this... Sam Barrow s...@sambarrow.com 07/26/2010 11:43 AM Please respond to users@wicket.apache.org To users@wicket.apache.org cc Subject Passing raw value to html Is there a way to pass a raw value to be displayed in a wicket markup file? I'm trying to create a google analytics panel that takes an id string and puts it directly in the markup with no tag. script type=text/javascript var _gaq = _gaq || []; _gaq.push(['_setAccount', ${MY_RAW_VALUE}]); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); /script - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org Notice: This communication, including any attachments, is intended solely for the use of the individual or entity to which it is addressed. This communication may contain information that is protected from disclosure under State and/or Federal law. Please notify the sender immediately if you have received this communication in error and delete this email from your system. If you are not the intended recipient, you are requested not to disclose, copy, distribute or take any action in reliance on the contents of this information. Notice: This communication, including any attachments, is intended solely for the use of the individual or entity to which it is addressed. This communication may contain information that is protected from disclosure under State and/or Federal law. Please notify the sender immediately if you have received this communication in error and delete this email from your system. If you are not the intended recipient, you are requested not to disclose, copy, distribute or take any action in reliance on the contents of this information.
colocating wicket with servlets...
I would like to colocate a wicket application with a servlet. What I want is for the servlet to have access to the wicket session. Looking at the code I see that Session.get() uses thread-specific storage, so I want the wicket filter to intercept all requests. Next, I want to make sure that requests for the servlet are forwarded to the servlet and not handled by wicket. The wicket filter provides one way of doing this by specifying a number of ignored paths. But, how do I now which paths I can safely ignore? I can create mounts for all bookmarkable pages but how can I control the paths of non-bookmarkable URLs. Should I create a separate request coding strategy decorator (like CryptedUrlWebRequestCodingStrategy) or is there an easier way? Cheers Erik
Re: colocating wicket with servlets...
Hi Erik, Non-bookmarkable links either start with /resources or take the form /?wicket... You could indeed manage that by creating your own RequestCodingStrategy, but having done so a couple of times, I would like to warn you not to tweak too much. In Wicket 1.5 it is probably going to be a lot easier. Regards, Erik. Op 26-07-10 20:37, Erik Brakkee wrote: I would like to colocate a wicket application with a servlet. What I want is for the servlet to have access to the wicket session. Looking at the code I see that Session.get() uses thread-specific storage, so I want the wicket filter to intercept all requests. Next, I want to make sure that requests for the servlet are forwarded to the servlet and not handled by wicket. The wicket filter provides one way of doing this by specifying a number of ignored paths. But, how do I now which paths I can safely ignore? I can create mounts for all bookmarkable pages but how can I control the paths of non-bookmarkable URLs. Should I create a separate request coding strategy decorator (like CryptedUrlWebRequestCodingStrategy) or is there an easier way? Cheers Erik -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: colocating wicket with servlets...
see WicketSessionFilter -igor On Mon, Jul 26, 2010 at 11:37 AM, Erik Brakkee erik.brak...@gmail.com wrote: I would like to colocate a wicket application with a servlet. What I want is for the servlet to have access to the wicket session. Looking at the code I see that Session.get() uses thread-specific storage, so I want the wicket filter to intercept all requests. Next, I want to make sure that requests for the servlet are forwarded to the servlet and not handled by wicket. The wicket filter provides one way of doing this by specifying a number of ignored paths. But, how do I now which paths I can safely ignore? I can create mounts for all bookmarkable pages but how can I control the paths of non-bookmarkable URLs. Should I create a separate request coding strategy decorator (like CryptedUrlWebRequestCodingStrategy) or is there an easier way? Cheers Erik - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: colocating wicket with servlets...
On Mon, Jul 26, 2010 at 9:15 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: see WicketSessionFilter -igor Indeed, looking at the source code of WicketFilter, it does not seem to set the session for the current thread when one of the ignored paths is used.
Re: Forums tools ready-to-use?
Thanks Josh;) Forum support is in feature plans, but it is not currently implemented. -- Regards, Vytautas Racelis --- phone:+370-600-34389 www.xaloon.org www.leenle.com www.allcarindex.com On 07/26/2010 04:46 PM, Josh Kamau wrote: Please check www.xaloon.org. This project contains some nice ready to use components for wicket including: - blog; - comments panel; - sports component; - plugin administration console; - registration and activation panel; Regards. Josh On Sun, Jul 25, 2010 at 7:30 PM, Paoloirresistible...@gmail.com wrote: I need a tool for a Forum in my web site. I don't want use the classic php based tools, like phpForum, bbCode ecc. But I would use WICKET! Do you suggest me some wicket examples o ready-to-use forum tool? Or if it doesn't exist, please suggest some guestbook or similar way to posting message in a webpage. thank you. Paolo - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Expiring pages in form submit and onAfterRender...
Hi, I am experimenting a bit with page expiry. One solution that works is to remove the page from the pagemap in the submit of a form. However, removing the page from the pagemap in the onAfterRender() of a page does not seem to work. In fact, I see the same page id and version being rendered every time. Is this the way it should be? Is there another generic callback in a wicket page in which I could remove the page from the pagemap to expire it? What makes the form's onSubmit() special? Alternatively, I am considering to use a strategy whereby I set an expired flag on form submit and then in the onBeforeRender() use setResponsePage() to delegate to a specific page providing also a specific message. That would allow total control on form submit. Would that strategy work? Cheers Erik
RequiresHttps and Apache mod_ssl
Hi, Trying to get some pages of the application to be secured using SSL. But want SSL to be handled by Apache in the production env. Is there a way to Configure Pages to require the https:// url without having to handle ssl in the app. thanks, Ed _ The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail. http://www.windowslive.com/campaign/thenewbusy?tile=multiaccountocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4
Re: Expiring pages in form submit and onAfterRender...
Made some progress. Now I am removing the page from the page map in the onDetach() and now expiry is really successful. Even so successful that the form submit fails because the page has expired. This is of course logical because the page object is still needed to process the form submit and now I am apparently removing the page too early.
Error integrating with Hibernate and Spring
I'm sure I'm doing something incorrectly. For the most part, I copied the Spring config file from http://wicketinaction.com/2009/06/wicketspringhibernate-configuration/ but upon startup, I'm getting the following error. Specifically, I can't find where the listener type [wicketApplication] is implemented/exists/read ... Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [com/fuzzybearings/projx/config/spring.sb.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Unrecognized listener type [wicketApplication] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1412) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322) ... 51 more Both jetty:run and tomcat:run do this. Thanks in advance for any suggestions, -Luther Here is the actual config I am using: ?xml version=1.0 encoding=UTF-8? beans default-autowire=autodetect xmlns=http://www.springframework.org/schema/beans; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:aop=http://www.springframework.org/schema/aop; xmlns:tx=http://www.springframework.org/schema/tx; xmlns:context=http://www.springframework.org/schema/context; xsi:schemaLocation=http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd; bean id=wicketApplication class=com.fuzzybearings.projx.WicketApplication / bean id=placeholderConfigurer class=org.springframework.beans.factory.config.PropertyPlaceholderConfigurer property name=ignoreUnresolvablePlaceholders value=false / property name=systemPropertiesModeName value=SYSTEM_PROPERTIES_MODE_OVERRIDE / property name=ignoreResourceNotFound value=false / property name=locations list valueclasspath:/com/fuzzybearings/projx/config/application.properties/value /list /property /bean bean id=dataSource class=org.apache.commons.dbcp.BasicDataSource property name=driverClassName value${jdbc.driver}/value /property property name=url value${jdbc.url}/value /property property name=username value${jdbc.username}/value /property property name=password value${jdbc.password}/value /property /bean tx:annotation-driven transaction-manager=txManager / !-- hibernate session factory -- bean id=sessionFactory class=org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean property name=dataSource ref=dataSource / property name=hibernateProperties props prop key=hibernate.hbm2ddl.auto${hibernate.ddl}/prop prop key=hibernate.dialect${hibernate.dialect}/prop prop key=hibernate.connection.pool_size5/prop prop key=hibernate.current_session_context_classthread/prop prop key=hibernate.show_sqltrue/prop prop key=hibernate.cglib.use_reflection_optimizertrue/prop prop key=hibernate.cache.provider_classorg.hibernate.cache.EhCacheProvider/prop prop key=hibernate.hibernate.cache.use_query_cachetrue/prop /props /property property name=packagesToScan list valuecom.fuzzybearings.projx.model/value /list /property /bean context:component-scan base-package=com.fuzzybearings.projx.data.model / /beans - To unsubscribe, e-mail:
Re: Forums tools ready-to-use?
very good. I could use comments panel to let users to let messages on my web site. Does it need Spring integration? Where is stored comments info: texts,emails,authors? I need a database suppport? I saw also a interesting ReCaptcha plugin. But now I am interesting in ReCaptcha Mailhide ( http://www.google.com/recaptcha/mailhide/) wicket support. I saw that Recaptha plugin doesn't supportt Mailhide function. I need Mailhide, to hide email address of who write a comment on my web site to spammers. 2010/7/26 Vytautas Racelis turi...@gmail.com Thanks Josh;) Forum support is in feature plans, but it is not currently implemented. Thank you! -- Regards, Vytautas Racelis --- phone:+370-600-34389 www.xaloon.org www.leenle.com www.allcarindex.com On 07/26/2010 04:46 PM, Josh Kamau wrote: Please check www.xaloon.org. This project contains some nice ready to use components for wicket including: - blog; - comments panel; - sports component; - plugin administration console; - registration and activation panel; Regards. Josh On Sun, Jul 25, 2010 at 7:30 PM, Paoloirresistible...@gmail.com wrote: I need a tool for a Forum in my web site. I don't want use the classic php based tools, like phpForum, bbCode ecc. But I would use WICKET! Do you suggest me some wicket examples o ready-to-use forum tool? Or if it doesn't exist, please suggest some guestbook or similar way to posting message in a webpage. thank you. Paolo - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
HttpsRequestCycleProcessor Configuration
Hi, My problem is not specific to wicket but I'm hoping that someone in the community has fought this battle before and is willing to lend a helping hand. I am using the HttpsRequestCycleProcessor and I only have the @RequireHttps annotation on one page, the registration page. I have apache httpd and tomcat talking to each other with a virtual host using proxypass and proxypassreverse on port 80 and all that is working fine. The problem becomes when I try to configure everything for SSL. I'm unsure whether I need SSL to be configured in tomcat and apache httpd or just one of them and not the other. I have generated a self signed certificate and key file for apache httpd and tried it with just that. When that did not work I pointed tomcat to the same files. Still nothing. The problem I am seeing is that the browser just hangs when I try to hit the SSL page. In the apache httpd access.log file I see a request for the page come in and a http 302 status code is returned. I've read everything I can find on the topic but no one talks about how to configure it when you are using both tomcat and apache. Any and all help is much appreciated because I have looked everywhere. Thanks, Josh
[OT] CSS 3 border radius fallback script
Hi I know this is off topic. But has anyone knowledge of a javascript that will detect if the browser has support for css 3 border radius and if it does not, put in borders on appropriate elements? I might be able todo something with together with jquery and liquid canvas if such a script does not exist... regards Nino
Re: [OT] CSS 3 border radius fallback script
Hi Nino, take a look at curved-corner: http://www.htmlremix.com/css/curved-corner-border-radius-cross-browser http://code.google.com/p/curved-corner/ cheers, Witold Am Tue, 27 Jul 2010 07:27:36 +0200 schrieb nino martinez wael nino.martinez.w...@gmail.com: Hi I know this is off topic. But has anyone knowledge of a javascript that will detect if the browser has support for css 3 border radius and if it does not, put in borders on appropriate elements? I might be able todo something with together with jquery and liquid canvas if such a script does not exist... regards Nino - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org