Re: Single inheritence in parts
Yes, this has been promised many times. And I am looking forward to it :) Regards, Erik. Op 06-07-10 07:53, Ernesto Reinaldo Barreiro wrote: Hi Jeremy, Wasn't this on the which list for 1.5? [1] and [2]? Cheers, Ernesto 1-https://cwiki.apache.org/WICKET/wicket-15-wish-list.html#Wicket1.5WishList-multiplychild%252Fextendinheritance 2-https://issues.apache.org/jira/browse/WICKET-1134 -- Sent from my SMTP compliant software Erik van Oosten http://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: TinyMCE Editor with AJAX
Hello. I have tried your suggestion but it doesn't seem to solve the issue. I use a OnChangeAjaxBehavior instead of a AjaxFormComponentUpdatingBehavior as the OP. Any other ideas how to get Ajax onchange events back? Regards, Manfred -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/TinyMCE-Editor-with-AJAX-tp1848394p2279368.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: Configure Wicket to detect some special HTML characters?
In Spring framework, there is a concept called "HTML escape". Does Wicket have sometihng similar? Thanks. --- On Tue, 7/6/10, Jeremy Thomerson wrote: > From: Jeremy Thomerson > Subject: Re: Configure Wicket to detect some special HTML characters? > To: users@wicket.apache.org > Date: Tuesday, July 6, 2010, 1:23 AM > Create a custom converter. > > Jeremy Thomerson > -- sent from my smartphone - please excuse formatting and > spelling errors > > On Jul 6, 2010 12:16 AM, "David Chang" > wrote: > > I dont want to save these characters into the database. > > > --- On Tue, 7/6/10, Martin Makundi > wrote: > > > From: Martin Makundi > > Subject: Re: Configure Wicket to detect some special > HTML characters? > > To: users@wicket.apache.org > > Date: Tuesday, July 6, 2010, 1:09 AM > > > Why would you want to do that? > > > > ** > > Martin > > > > 2010/7/6 David Chang - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Configure Wicket to detect some special HTML characters?
> In Spring framework, there is a concept called "HTML escape". Does Wicket > have sometihng similar? Strings.escape However, I suspect you are trying to solve wrong problem. Html should be escaped upon display not upon storage. ** Martin > > > --- On Tue, 7/6/10, Jeremy Thomerson wrote: > >> From: Jeremy Thomerson >> Subject: Re: Configure Wicket to detect some special HTML characters? >> To: users@wicket.apache.org >> Date: Tuesday, July 6, 2010, 1:23 AM >> Create a custom converter. >> >> Jeremy Thomerson >> -- sent from my smartphone - please excuse formatting and >> spelling errors >> >> On Jul 6, 2010 12:16 AM, "David Chang" >> wrote: >> >> I dont want to save these characters into the database. >> >> >> --- On Tue, 7/6/10, Martin Makundi >> wrote: >> >> > From: Martin Makundi >> > Subject: Re: Configure Wicket to detect some special >> HTML characters? >> > To: users@wicket.apache.org >> > Date: Tuesday, July 6, 2010, 1:09 AM >> >> > Why would you want to do that? >> > >> > ** >> > Martin >> > >> > 2010/7/6 David Chang > > > > > > - > 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: Configure Wicket to detect some special HTML characters?
Hi David, there are a lot of methods that escape the characters, for instance you can use org.apache.wicket.util.string.Strings.escapeMarkup method. But they make sense when you are writing an xml, like the page returned to browser. On Tue, Jul 6, 2010 at 9:08 AM, David Chang wrote: > In Spring framework, there is a concept called "HTML escape". Does Wicket > have sometihng similar? > > Thanks. > > > --- On Tue, 7/6/10, Jeremy Thomerson wrote: > > > From: Jeremy Thomerson > > Subject: Re: Configure Wicket to detect some special HTML characters? > > To: users@wicket.apache.org > > Date: Tuesday, July 6, 2010, 1:23 AM > > Create a custom converter. > > > > Jeremy Thomerson > > -- sent from my smartphone - please excuse formatting and > > spelling errors > > > > On Jul 6, 2010 12:16 AM, "David Chang" > > wrote: > > > > I dont want to save these characters into the database. > > > > > > --- On Tue, 7/6/10, Martin Makundi > > wrote: > > > > > From: Martin Makundi > > > Subject: Re: Configure Wicket to detect some special > > HTML characters? > > > To: users@wicket.apache.org > > > Date: Tuesday, July 6, 2010, 1:09 AM > > > > > Why would you want to do that? > > > > > > ** > > > Martin > > > > > > 2010/7/6 David Chang > > > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Pedro Henrique Oliveira dos Santos
Re: Configure Wicket to detect some special HTML characters?
Martin, thanks so much for your attention on this question. You are right, it is should be done on display, not on storage. Best, David --- On Tue, 7/6/10, Martin Makundi wrote: > From: Martin Makundi > Subject: Re: Configure Wicket to detect some special HTML characters? > To: users@wicket.apache.org > Date: Tuesday, July 6, 2010, 8:22 AM > > In Spring framework, there is a > concept called "HTML escape". Does Wicket have sometihng > similar? > > Strings.escape > > However, I suspect you are trying to solve wrong problem. > Html should > be escaped upon display not upon storage. > > ** > Martin > > > > > > > > --- On Tue, 7/6/10, Jeremy Thomerson > wrote: > > > >> From: Jeremy Thomerson > >> Subject: Re: Configure Wicket to detect some > special HTML characters? > >> To: users@wicket.apache.org > >> Date: Tuesday, July 6, 2010, 1:23 AM > >> Create a custom converter. > >> > >> Jeremy Thomerson > >> -- sent from my smartphone - please excuse > formatting and > >> spelling errors > >> > >> On Jul 6, 2010 12:16 AM, "David Chang" > >> wrote: > >> > >> I dont want to save these characters into the > database. > >> > >> > >> --- On Tue, 7/6/10, Martin Makundi > >> wrote: > >> > >> > From: Martin Makundi > >> > Subject: Re: Configure Wicket to detect some > special > >> HTML characters? > >> > To: users@wicket.apache.org > >> > Date: Tuesday, July 6, 2010, 1:09 AM > >> > >> > Why would you want to do that? > >> > > >> > ** > >> > Martin > >> > > >> > 2010/7/6 David Chang >> > > > > > > > > > > > - > > 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: Configure Wicket to detect some special HTML characters?
Can Wicket be configured to do this html escape without requiring a programmer to manually write calls to Strings#escapeMarkup? --- On Tue, 7/6/10, Pedro Santos wrote: > From: Pedro Santos > Subject: Re: Configure Wicket to detect some special HTML characters? > To: users@wicket.apache.org > Date: Tuesday, July 6, 2010, 8:25 AM > Hi David, there are a lot of methods > that escape the characters, for > instance you can use > org.apache.wicket.util.string.Strings.escapeMarkup > method. But they make sense when you are writing an xml, > like the page > returned to browser. > > On Tue, Jul 6, 2010 at 9:08 AM, David Chang > wrote: > > > In Spring framework, there is a concept called "HTML > escape". Does Wicket > > have sometihng similar? > > > > Thanks. > > > > > > --- On Tue, 7/6/10, Jeremy Thomerson > wrote: > > > > > From: Jeremy Thomerson > > > Subject: Re: Configure Wicket to detect some > special HTML characters? > > > To: users@wicket.apache.org > > > Date: Tuesday, July 6, 2010, 1:23 AM > > > Create a custom converter. > > > > > > Jeremy Thomerson > > > -- sent from my smartphone - please excuse > formatting and > > > spelling errors > > > > > > On Jul 6, 2010 12:16 AM, "David Chang" > > > wrote: > > > > > > I dont want to save these characters into the > database. > > > > > > > > > --- On Tue, 7/6/10, Martin Makundi > > > wrote: > > > > > > > From: Martin Makundi > > > > Subject: Re: Configure Wicket to detect some > special > > > HTML characters? > > > > To: users@wicket.apache.org > > > > Date: Tuesday, July 6, 2010, 1:09 AM > > > > > > > Why would you want to do that? > > > > > > > > ** > > > > Martin > > > > > > > > 2010/7/6 David Chang > > > > > > > > > > > > > - > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > > > > -- > Pedro Henrique Oliveira dos Santos > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Configure Wicket to detect some special HTML characters?
Have you tried it? Martijn On Tue, Jul 6, 2010 at 3:26 PM, David Chang wrote: > Can Wicket be configured to do this html escape without requiring a > programmer to manually write calls to Strings#escapeMarkup? > > > --- On Tue, 7/6/10, Pedro Santos wrote: > >> From: Pedro Santos >> Subject: Re: Configure Wicket to detect some special HTML characters? >> To: users@wicket.apache.org >> Date: Tuesday, July 6, 2010, 8:25 AM >> Hi David, there are a lot of methods >> that escape the characters, for >> instance you can use >> org.apache.wicket.util.string.Strings.escapeMarkup >> method. But they make sense when you are writing an xml, >> like the page >> returned to browser. >> >> On Tue, Jul 6, 2010 at 9:08 AM, David Chang >> wrote: >> >> > In Spring framework, there is a concept called "HTML >> escape". Does Wicket >> > have sometihng similar? >> > >> > Thanks. >> > >> > >> > --- On Tue, 7/6/10, Jeremy Thomerson >> wrote: >> > >> > > From: Jeremy Thomerson >> > > Subject: Re: Configure Wicket to detect some >> special HTML characters? >> > > To: users@wicket.apache.org >> > > Date: Tuesday, July 6, 2010, 1:23 AM >> > > Create a custom converter. >> > > >> > > Jeremy Thomerson >> > > -- sent from my smartphone - please excuse >> formatting and >> > > spelling errors >> > > >> > > On Jul 6, 2010 12:16 AM, "David Chang" >> > > wrote: >> > > >> > > I dont want to save these characters into the >> database. >> > > >> > > >> > > --- On Tue, 7/6/10, Martin Makundi >> > > wrote: >> > > >> > > > From: Martin Makundi >> > > > Subject: Re: Configure Wicket to detect some >> special >> > > HTML characters? >> > > > To: users@wicket.apache.org >> > > > Date: Tuesday, July 6, 2010, 1:09 AM >> > > >> > > > Why would you want to do that? >> > > > >> > > > ** >> > > > Martin >> > > > >> > > > 2010/7/6 David Chang > > > >> > >> > >> > >> > >> > >> - >> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> > For additional commands, e-mail: users-h...@wicket.apache.org >> > >> > >> >> >> -- >> Pedro Henrique Oliveira dos Santos >> > > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.4 increases type safety for web applications Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.8 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
non-bookmarkable pages with pageparameters?
Hi I have a page that is session based(nonbookmarkable) but at the same time i want to make sure a request parameter is shown in the url... How would i achieve that ? This is what i am trying to achieve, with example from my code: My page code constructors: public DeliverySecure() { this(new DeliveryInfo()); } public DeliverySecure(DeliveryInfo deliveryInfo) { ... } This page is called to separete ways: 1 - setResponsePage(DeliverySecure.class, new PageParameters("secure=on")); 2- setResponsePage(new DeliverySecure(deliveryInfo)); When i call the DeliverySecure page with approach 1, i get a url with the request parameter: ...&secure=on, surely because it treats the page as bookmarkable. But with the 2. approach i get a url like: ...wicket:interface=:7 Can i somehow force wicket to add the browser parameter &secure=on, when loading the nonbookmarkable page with approach 2 ? If so how would i achieve that, even though i want load the page with the session based deliveryInfo object i have...? Best Regards Muro
Re: Configure Wicket to detect some special HTML characters?
A label automatically escapes markup. It would take you about one minute to try this on an app you have. That would have saved you (and us) a lot of emails. Just give it a try. Jeremy Thomerson -- sent from my smartphone - please excuse formatting and spelling errors On Jul 6, 2010 8:27 AM, "David Chang" wrote: Can Wicket be configured to do this html escape without requiring a programmer to manually write calls to Strings#escapeMarkup? --- On Tue, 7/6/10, Pedro Santos wrote: > From: Pedro Santos > Subject: Re: Configure Wicket to detect some special HTML characters? > To: us...@wicket.apache.or... > Date: Tuesday, July 6, 2010, 8:25 AM > Hi David, there are a lot of methods > that escape the characters, for > instance you can use > or...
Re: non-bookmarkable pages with pageparameters?
Hi Muro, Mount your page with a HybridUrlCodingStrategy. For example the MixedParamHybridUrlCodingStrategy. Regards, Erik. Op 06-07-10 15:30, Muro Copenhagen wrote: Hi I have a page that is session based(nonbookmarkable) but at the same time i want to make sure a request parameter is shown in the url... How would i achieve that ? This is what i am trying to achieve, with example from my code: My page code constructors: public DeliverySecure() { this(new DeliveryInfo()); } public DeliverySecure(DeliveryInfo deliveryInfo) { ... } This page is called to separete ways: 1 - setResponsePage(DeliverySecure.class, new PageParameters("secure=on")); 2- setResponsePage(new DeliverySecure(deliveryInfo)); When i call the DeliverySecure page with approach 1, i get a url with the request parameter: ...&secure=on, surely because it treats the page as bookmarkable. But with the 2. approach i get a url like: ...wicket:interface=:7 Can i somehow force wicket to add the browser parameter&secure=on, when loading the nonbookmarkable page with approach 2 ? If so how would i achieve that, even though i want load the page with the session based deliveryInfo object i have...? Best Regards Muro -- Sent from my SMTP compliant software Erik van Oosten http://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: non-bookmarkable pages with pageparameters?
Hi Erik, I tried that with no luck... How would i do this: setResponsePage(new DeliverySecure(deliveryInfo)), and at the same time send pageparameters to the same page? Best Regards Muro On Tue, Jul 6, 2010 at 4:10 PM, Erik van Oosten wrote: > Hi Muro, > > Mount your page with a HybridUrlCodingStrategy. For example the > MixedParamHybridUrlCodingStrategy. > > Regards, >Erik. > > > > Op 06-07-10 15:30, Muro Copenhagen wrote: > >> Hi >> >> I have a page that is session based(nonbookmarkable) but at the same time >> i >> want to make sure >> a request parameter is shown in the url... How would i achieve that ? >> >> This is what i am trying to achieve, with example from my code: >> >> My page code constructors: >> >> public DeliverySecure() { >> this(new DeliveryInfo()); >> } >> public DeliverySecure(DeliveryInfo deliveryInfo) { >>... >> } >> >> This page is called to separete ways: >> >> 1 - setResponsePage(DeliverySecure.class, new >> PageParameters("secure=on")); >> >> 2- setResponsePage(new DeliverySecure(deliveryInfo)); >> >> >> When i call the DeliverySecure page with approach 1, i get a url with the >> request parameter: ...&secure=on, >> surely because it treats the page as bookmarkable. >> >> But with the 2. approach i get a url like: ...wicket:interface=:7 >> >> Can i somehow force wicket to add the browser parameter&secure=on, when >> loading the nonbookmarkable page with approach 2 ? >> >> If so how would i achieve that, even though i want load the page with the >> session based deliveryInfo object i have...? >> >> Best Regards >> Muro >> >> >> > > -- > Sent from my SMTP compliant software > Erik van Oosten > http://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: Refreshing DataView fails if it was initially empty
Hi vov, thanks for your reply. I discovered that function last week but nabble was not allowing me to reply at the time. It was a good idea to go back and read the API docs. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Refreshing-DataView-fails-if-it-was-initially-empty-tp2273568p2279663.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: TinyMCE Editor with AJAX
It looks like as if the 'blur' event never is called. When changed to 'keyup' the event handler is called. Further RichTextField_instance doesn't seem to have a 'formElement' anymore. Therefore according to the TinyMCE APIs the underlying textarea can be retrieved via RichTextField_instance.getElement(). But the textarea has no method called 'onchange'. Anyone knows how to manually trigger the onchange event of the textarea? Regards, Manfred -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/TinyMCE-Editor-with-AJAX-tp1848394p2279678.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
ModalWindow - Question
Hello! i´m done a ModalWindow the question, where it's show two button: yes / no. When the user do click the button, i done a close the ModalWindow and have a error. Help me! AjaxButton yesB= new AjaxButton("YesButton"){ public void onSubmit(AjaxRequestTarget target, Form form){ confirm.setAnswer(true); AjaxRequestTarget art = AjaxRequestTarget.get(); if (art != null) { dialog.close(target); } }; }; -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ModalWindow-Question-tp2279695p2279695.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: ModalWindow - Question
why not use close(target)? ** Martin 2010/7/6 Alis : > > > Hello! i´m done a ModalWindow the question, where it's show two button: yes > / no. When the user do click the button, i done a close the ModalWindow and > have a error. > > Help me! > > > AjaxButton yesB= new AjaxButton("YesButton"){ > public void onSubmit(AjaxRequestTarget target, Form form){ > confirm.setAnswer(true); > AjaxRequestTarget art = AjaxRequestTarget.get(); > if (art != null) { > dialog.close(target); > } > > }; > > > }; > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/ModalWindow-Question-tp2279695p2279695.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 > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Single inheritence in parts
cool ..something to look forward to (in response to other posts) FYI I tried panel it requires some code to be written, not very clean. (opposed pure markup based approach) On a last note; ..am confusedmultiple inheritance generally means MANY PARENT, ONE CHILD (child inherits from multiple parents). Here there is only ONE PARENT MARKUP required and ONE CHILD markup. Maybe my perspective is not right. I'll search more material on this and educate myself. thanks a lot -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Single-inheritence-in-parts-tp2278064p2279786.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: Single inheritence in parts
On Tue, Jul 6, 2010 at 4:38 AM, Erik van Oosten wrote: > Yes, this has been promised many times. And I am looking forward to it :) > > Regards, >Erik. > > > > Op 06-07-10 07:53, Ernesto Reinaldo Barreiro wrote: > >> Hi Jeremy, >> >> Wasn't this on the which list for 1.5? [1] and [2]? >> >> Cheers, >> >> Ernesto >> >> 1- >> https://cwiki.apache.org/WICKET/wicket-15-wish-list.html#Wicket1.5WishList-multiplychild%252Fextendinheritance >> 2-https://issues.apache.org/jira/browse/WICKET-1134 >> >> It has not been "promised". It has been "disCUSSed" at length. Here's the most relevant thread I remember. Look at some of the very valid points of why it would create problems from Johan / Igor. Personally, I'm against it. You can *very easily* accomplish the same thing with panels, without a whole mess of other issues. http://bit.ly/awiK6L -- Jeremy Thomerson http://www.wickettraining.com
Re: Page maps problem
Thanks, when i turned off automaticMultiWindow support and set page map name manually for modal window, page map for modal window was removed after modal window close. Now i am trying to figure out some way to removing page map after close page opened in new tab or in new browser window. After some experiments (ajax behavior with respond method, ajax link, link...) i think this is not possible using just wicket api (cause if i removed page map inajax request that page map will be recreated after request) It would be possible if i can add behavior to main page which user cannot close (because he/she willnow about this fact) and then on page in new window i will just use getCallBackScript() in onbefoureunload event or in some onclick event (it is not problem to have separate button for closing new window). Problem is that those main page could not be in stack anymore at the moment ( i think it's not problem to call some ajax on page that is not actual in page map). Maybe it is possible with use of some servlet that would be ignored by wicket filter. Anyway this is absolutely not critical, it would be just nice to know how many windows has user currently opened and to forbid open new window after some count. It would also prevent removing page map that could be possibly still in use. If you understand what i mean (cause i am still just beginner in wicket) i would appreciate any hints for this. On 07/05/2010 07:09 PM, Igor Vaynberg wrote: you should set all the popups to use the same pagemap, i think that should help. -igor On Sun, Jul 4, 2010 at 12:19 PM, Branislav Kalas wrote: Hi, sorry for my terrible english.I am trying to achieve this: I have webapp where i want to allow users open some links in new window. I want to create new page maps for those windows (cause i think , it's correct (page expired problem)). In some pages i use pickers that opens modal windows (and this modal windows runs also in new page maps). I have default setting of maximum page maps (which is 6) Wicket version is 1.4.1 (maybe i can upgrade if it solves the problem) My problem is that when i open link in new window and open modal window in old page for 5 times, new window returns to login page (which is IMHO caused by its removed page map from session). I tried to delete page map of modal window when it is closed but without success. I got this in init method of application class: getPageSettings().setAutomaticMultiWindowSupport(true); I got this in modal window close events : modal.setWindowClosedCallback(new ModalWindow.WindowClosedCallback() { public void onClose(AjaxRequestTarget target) { target.addComponent(ProductPicker.this); Session.get().removePageMap(modal.getPage().getPageMap()); } }); modal.setCloseButtonCallback(new ModalWindow.CloseButtonCallback() { public boolean onCloseButtonClicked(AjaxRequestTarget target) { target.addComponent(ProductPicker.this); Session.get().removePageMap(modal.getPage().getPageMap()); return true; } }); This is how i am creating modal window: modal.setCookieName("modal"); modal.setHeightUnit("px"); modal.setWidthUnit("px"); modal.setInitialWidth(900); modal.setInitialHeight(800); modal.setTitle(new StringResourceModel("productPickerModal.label", this, null)); modal.setVersioned(false); And this are links that opens in new pages (tabs) : //java part Link newWindowMenuItemLink = new Link("newWindowMenuItemLink") { @Override public void onClick() { setResponsePage(lItem.getPageClass().newInstance()); } //html part Click; Can you pls give me any hint what could be possibly wrong,or how can i delete modal window page map when it is closed? Ideally i would like also remove page maps when user closes browser window. Thanks. - 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: DiskPageStore - FileNotFoundException
I just noticed the same error in our production, did you find out what was the cause of the problem? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DiskPageStore-FileNotFoundException-tp1867585p2280260.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
how to distinguish browser's tab?
Hi all, I have a site which works in facebook, as an facebook ap, as well as "stand alone". the styling is the only thing that changes between these two versions. Some days ago, I found a bug that I don't know how to solve. If a user logins in facebook an uses my facebook app and later he adds a browser's tab and uses the stand alone version, the styling which remains is the one for facebook. This is because I stored in the session the info about how he had logged in and thus which styling should be applyed. I don't find a way to distinguish later between the two browser's tab - or any other kinds of solution. I was thinking of adding a cookie which could help me to distinguish between tabs, but I am not used to working with cookies. I have a plenty lack of ideas, any help would be really appreciate it. -- Fernando Wermus. www.linkedin.com/in/fernandowermus
Re: Configure Wicket to detect some special HTML characters?
Jeremy, thanks for the advice, which is indeed correct. I tried it and it the default behavior for labels. I do have annother related question. I read Component API, which Label and other components inherit, and notice that it has a method: public final Component setEscapeModelStrings(boolean escapeMarkup) I further traced its source code, and it seems to me that escaping HTML is true by default for Componnent and its decedents, correct? what if I want to the HTML escape is false by default for Components and all its decendents? Any elegant way? In Spring, it can be a system-wide configuration, which can be overriden on a particular page. Hope this is not too much asking. Regards. --- On Tue, 7/6/10, Jeremy Thomerson wrote: > From: Jeremy Thomerson > Subject: Re: Configure Wicket to detect some special HTML characters? > To: users@wicket.apache.org > Date: Tuesday, July 6, 2010, 9:41 AM > A label automatically escapes markup. > It would take you about one minute to > try this on an app you have. That would have saved you (and > us) a lot of > emails. Just give it a try. > > Jeremy Thomerson > -- sent from my smartphone - please excuse formatting and > spelling errors > > On Jul 6, 2010 8:27 AM, "David Chang" > wrote: > > Can Wicket be configured to do this html escape without > requiring a > programmer to manually write calls to > Strings#escapeMarkup? > > > --- On Tue, 7/6/10, Pedro Santos > wrote: > > > From: Pedro Santos > > > Subject: Re: Configure Wicket to detect some special > HTML characters? > > To: us...@wicket.apache.or... > > Date: Tuesday, July 6, 2010, 8:25 AM > > > Hi David, there are a lot of methods > > that escape the characters, for > > instance you can use > > or... > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Dropdownchoice selection to trigger change of form
Hi, I would of thought that this would be fairly basic to figure out but I just can't get it to work. I have a dropdownchoice in one form and then another form below it. Based on the selection of the dropdown I want the contents of the other form to change. I have an ajax listener that add the form to be rendered on a selection change. Anyone know what I am doing wrong or has any examples? Thanks! @Override protected void setup() { vehicleIndex = -1; user = new UserDetachableModel(); Fragment fragment = null; if (user.getObject().getVehicles() != null) { this.vehicleIndex = 0; } final AddVehicleFormPanel addVehicleFormPanel = new AddVehicleFormPanel("addVehiclePanel", new PropertyModel(this, "selectedVehicle")); addVehicleFormPanel.setOutputMarkupId(true); // final AddVehicleForm form = new AddVehicleForm("addVehicle", // getSelectedVehicle()); CompoundPropertyModel formModel = new CompoundPropertyModel( this); // form.setDefaultModel(formModel); setDefaultModel(formModel); // check if user has vehicles if (user.getObject().getVehicles() != null) { fragment = new Fragment("dropDown", "vehiclesExist", this); DropDownChoice vehiclesDropDown = new DropDownChoice( "vehicleSelect", new PropertyModel(this, "selectedVehicle"), new PropertyModel>(user, "vehicles"), new WebOptionStringChoiceRender()); vehiclesDropDown.add(new AjaxFormComponentUpdatingBehavior("onchange") { private static final long serialVersionUID = 1L; @Override protected void onUpdate(AjaxRequestTarget target) { target.addComponent(addVehicleFormPanel); } }); fragment.add(vehiclesDropDown); } else { fragment = new Fragment("dropDown", "noVehicles", this); } add(fragment); // addVehicleFormPanel.add(form); add(addVehicleFormPanel); } public void setSelectedVehicle(Vehicle selectedVehicle) { vehicleIndex = user.getObject().getVehicles().indexOf(selectedVehicle); } /** * * @return Vehicle The selected vehicle */ public Vehicle getSelectedVehicle() { Vehicle returned = null; if (vehicleIndex == -1) { List vehicles = this.user.getObject().getVehicles(); if (vehicles != null && vehicles.size() > 0) { vehicleIndex = 0; returned = vehicles.get(0); } } else { returned = user.getObject().getVehicles().get(vehicleIndex); } return returned; } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Dropdownchoice-selection-to-trigger-change-of-form-tp2280387p2280387.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: Dropdownchoice selection to trigger change of form
I think you are neglecting to do any changes in your "onupdate()" method. When onupdate is called, the user should have selected a vehicle, which would populate "selectedVehicle" - you need to then populate your other dropdown menu or whatever else you wanted to populate before you addOrReplace to your container and finally addComponent to the target. You made no changes before calling: target.addComponent(addVehicleFormPanel); I would think that if you tried: setup();target.addComponent(addVehicleFormPanel); You may get the results you are after. Also, given that you plan on refreshing elements, I think you should consider using addOrReplace(). Russ > Date: Tue, 6 Jul 2010 18:44:46 -0700 > From: matt...@spidertracks.co.nz > To: users@wicket.apache.org > Subject: Dropdownchoice selection to trigger change of form > > > Hi, I would of thought that this would be fairly basic to figure out but I > just can't get it to work. I have a dropdownchoice in one form and then > another form below it. Based on the selection of the dropdown I want the > contents of the other form to change. I have an ajax listener that add the > form to be rendered on a selection change. > Anyone know what I am doing wrong or has any examples? > > Thanks! > > > @Override > protected void setup() { > > vehicleIndex = -1; > user = new UserDetachableModel(); > > Fragment fragment = null; > > if (user.getObject().getVehicles() != null) { > this.vehicleIndex = 0; > } > final AddVehicleFormPanel addVehicleFormPanel = new > AddVehicleFormPanel("addVehiclePanel", new PropertyModel(this, > "selectedVehicle")); > addVehicleFormPanel.setOutputMarkupId(true); > > // final AddVehicleForm form = new AddVehicleForm("addVehicle", > // getSelectedVehicle()); > > CompoundPropertyModel formModel = new > CompoundPropertyModel( > this); > > // form.setDefaultModel(formModel); > > setDefaultModel(formModel); > > // check if user has vehicles > if (user.getObject().getVehicles() != null) { > fragment = new Fragment("dropDown", "vehiclesExist", > this); > > DropDownChoice vehiclesDropDown = new > DropDownChoice( > "vehicleSelect", new > PropertyModel(this, > "selectedVehicle"), > new PropertyModel>(user, > "vehicles"), > new > WebOptionStringChoiceRender()); > > vehiclesDropDown.add(new > AjaxFormComponentUpdatingBehavior("onchange") { > > private static final long serialVersionUID = 1L; > > @Override > protected void onUpdate(AjaxRequestTarget > target) { > > > target.addComponent(addVehicleFormPanel); > } > > }); > fragment.add(vehiclesDropDown); > > } else { > fragment = new Fragment("dropDown", "noVehicles", this); > } > > add(fragment); > // addVehicleFormPanel.add(form); > add(addVehicleFormPanel); > } > > public void setSelectedVehicle(Vehicle selectedVehicle) { > vehicleIndex = > user.getObject().getVehicles().indexOf(selectedVehicle); > } > > /** >* >* @return Vehicle The selected vehicle >*/ > public Vehicle getSelectedVehicle() { > > Vehicle returned = null; > > if (vehicleIndex == -1) { > > List vehicles = > this.user.getObject().getVehicles(); > > if (vehicles != null && vehicles.size() > 0) { > vehicleIndex = 0; > returned = vehicles.get(0); > } > } else { > returned = > user.getObject().getVehicles().get(vehicleIndex); > } > > return returned; > } > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Dropdownchoice-selection-to-trigger-change-of-form-tp2280387p2280387.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 > _ The New Busy is not the o
Re: Configure Wicket to detect some special HTML characters?
there is no system-wide setting to disable this because doing so opens a bunch of security holes. -igor On Tue, Jul 6, 2010 at 6:30 PM, David Chang wrote: > > Jeremy, thanks for the advice, which is indeed correct. I tried it and it the > default behavior for labels. > > I do have annother related question. I read Component API, which Label and > other components inherit, and notice that it has a method: > > public final Component setEscapeModelStrings(boolean escapeMarkup) > > I further traced its source code, and it seems to me that escaping HTML is > true by default for Componnent and its decedents, correct? > > what if I want to the HTML escape is false by default for Components and all > its decendents? Any elegant way? In Spring, it can be a system-wide > configuration, which can be overriden on a particular page. > > Hope this is not too much asking. > > Regards. > > > --- On Tue, 7/6/10, Jeremy Thomerson wrote: > >> From: Jeremy Thomerson >> Subject: Re: Configure Wicket to detect some special HTML characters? >> To: users@wicket.apache.org >> Date: Tuesday, July 6, 2010, 9:41 AM >> A label automatically escapes markup. >> It would take you about one minute to >> try this on an app you have. That would have saved you (and >> us) a lot of >> emails. Just give it a try. >> >> Jeremy Thomerson >> -- sent from my smartphone - please excuse formatting and >> spelling errors >> >> On Jul 6, 2010 8:27 AM, "David Chang" >> wrote: >> >> Can Wicket be configured to do this html escape without >> requiring a >> programmer to manually write calls to >> Strings#escapeMarkup? >> >> >> --- On Tue, 7/6/10, Pedro Santos >> wrote: >> >> > From: Pedro Santos >> >> > Subject: Re: Configure Wicket to detect some special >> HTML characters? >> > To: us...@wicket.apache.or... >> > Date: Tuesday, July 6, 2010, 8:25 AM >> >> > Hi David, there are a lot of methods >> > that escape the characters, for >> > instance you can use >> > or... >> > > > > > - > 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: Configure Wicket to detect some special HTML characters?
igor, thanks for chiming in. rgards. --- On Tue, 7/6/10, Igor Vaynberg wrote: > From: Igor Vaynberg > Subject: Re: Configure Wicket to detect some special HTML characters? > To: users@wicket.apache.org > Date: Tuesday, July 6, 2010, 10:18 PM > there is no system-wide setting to > disable this because doing so opens > a bunch of security holes. > > -igor > > On Tue, Jul 6, 2010 at 6:30 PM, David Chang > wrote: > > > > Jeremy, thanks for the advice, which is indeed > correct. I tried it and it the default behavior for labels. > > > > I do have annother related question. I read Component > API, which Label and other components inherit, and notice > that it has a method: > > > > public final Component setEscapeModelStrings(boolean > escapeMarkup) > > > > I further traced its source code, and it seems to me > that escaping HTML is true by default for Componnent and its > decedents, correct? > > > > what if I want to the HTML escape is false by default > for Components and all its decendents? Any elegant way? In > Spring, it can be a system-wide configuration, which can be > overriden on a particular page. > > > > Hope this is not too much asking. > > > > Regards. > > > > > > --- On Tue, 7/6/10, Jeremy Thomerson > wrote: > > > >> From: Jeremy Thomerson > >> Subject: Re: Configure Wicket to detect some > special HTML characters? > >> To: users@wicket.apache.org > >> Date: Tuesday, July 6, 2010, 9:41 AM > >> A label automatically escapes markup. > >> It would take you about one minute to > >> try this on an app you have. That would have saved > you (and > >> us) a lot of > >> emails. Just give it a try. > >> > >> Jeremy Thomerson > >> -- sent from my smartphone - please excuse > formatting and > >> spelling errors > >> > >> On Jul 6, 2010 8:27 AM, "David Chang" > >> wrote: > >> > >> Can Wicket be configured to do this html escape > without > >> requiring a > >> programmer to manually write calls to > >> Strings#escapeMarkup? > >> > >> > >> --- On Tue, 7/6/10, Pedro Santos > >> wrote: > >> > >> > From: Pedro Santos > >> > >> > Subject: Re: Configure Wicket to detect some > special > >> HTML characters? > >> > To: us...@wicket.apache.or... > >> > Date: Tuesday, July 6, 2010, 8:25 AM > >> > >> > Hi David, there are a lot of methods > >> > that escape the characters, for > >> > instance you can use > >> > or... > >> > > > > > > > > > > > - > > 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: Dropdownchoice selection to trigger change of form
Thanks for your reply. I tried what you said plus a lot of variation but haven't got it to work yet. Using the ajax debugger I noticed that the panel is getting rerendered but not with the new data. Could be a problem with my models. How would you do it if you had a child panel that has a nested form and you want to change the data of the form? Thanks for your help -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Dropdownchoice-selection-to-trigger-change-of-form-tp2280387p2280461.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: Dropdownchoice selection to trigger change of form
First of all.. I would not use vehicleIndex. Take that away. ** Martin 2010/7/7 goody44 : > > Thanks for your reply. > I tried what you said plus a lot of variation but haven't got it to work > yet. Using the ajax debugger I noticed that the panel is getting rerendered > but not with the new data. Could be a problem with my models. How would you > do it if you had a child panel that has a nested form and you want to change > the data of the form? > Thanks for your help > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Dropdownchoice-selection-to-trigger-change-of-form-tp2280387p2280461.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 > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org