RE: root context, IE, home page is not found
Hi, I use Glassfish v 2.1.1 with wicket 1.4.6 and in this version is redirect to root changed form ./ to . (BookmarkablePageRequestTarget.respond(RequestCycle requestCycle)). But I have still problem with this in IE(See attached picture). When I send redirect with location finishing with . IE will generate new request with url also finishing with . than IE receives redirect response (it is not generated from wicket) with location ./ and we are at the same point like in version wicket 1.4.3 where root context was represented by ./ Result is the same 404 Page not found. I used / for context root and it works fine in all browser. Why we are using . in wicket 1.4.6 or ./ in 1.4.3? Thanks Dave. http://old.nabble.com/file/p28151694/ContextRootRedirect.png http://old.nabble.com/file/p28151694/ContextRootRedirect.png ContextRootRedirect.png vadikt wrote: looks like BookmarkablePageRequestTarget.respond(RequestCycle requestCycle) has code to strip ./ if url starts with it. can it be changed to strip . as well? will it be the right fix? From: vad...@hotmail.com To: users@wicket.apache.org Subject: root context, IE, home page is not found Date: Mon, 18 Jan 2010 20:36:55 + all, my wicket 1.4.5 application is configured to run in root context. for some reason, when it sets response page to the home page (which is not mounted), the webserver produces error: The requested resource () is not available. here's the code: formFooter.add(new LinkVoid(ID_LINK_HOME) { private static final long serialVersionUID = 1L; @Override public void onClick() { setResponsePage(getApplication().getHomePage()); } }); it happens only with IE (6, 7), only with root context, with Tomcat 6 and Sun's Glassfish servers. looks like URL generated in that case has '.' appended to it: http://localhost/.;. if i simply hit F5 in the browser after the error shows up, it opens home page just fine. if i use bookmarkable link, it works fine: formFooter.add(new BookmarkablePageLinkHomePage(ID_LINK_HOME, getApplication().getHomePage()).setAutoEnable(true)); the issue looks very similar to http://issues.apache.org/jira/browse/WICKET-1449 is there a workaround? Thanks, Vadim _ Hotmail: Trusted email with powerful SPAM protection. http://clk.atdmt.com/GBL/go/196390707/direct/01/ _ Hotmail: Trusted email with powerful SPAM protection. http://clk.atdmt.com/GBL/go/196390707/direct/01/ -- View this message in context: http://old.nabble.com/root-context%2C-IE%2C-home-page-is-not-found-tp27216383p28151694.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: OnlyTargetActivePage param
Hi, I understand the usege of this two methods. But what I really don't understand is that one of them create callback adress which can be process also on non-active page, but second not. In my app I had to switch off multi window support. So now I have only one page map for all my pages (also opened in other tabs or window.) Problem is that my page is composed from several component especially AjaxLink and AjaxButton. So when I open some other page in new tab and then return to first page some components do nothing (AjaxButton - resolve EmptyRequestTarget) and other works fine (AjaxLink). I tried to find what's the prob and found that reason is differece between set onlyTargetActivePage param (see my first question in this thread). Dave. Pedro H. O. dos Santos wrote: One method will return an url that address the behavior, the another one will to return an script that send an ajax request to that behaviour. the usage in javascript looks like: document.location = generatedUrlReturnedByBehaviour; eval( generatedScriptGeneratedByBehaviour); On Thu, Mar 4, 2010 at 6:12 PM, David Skuben david.sku...@gmail.com wrote: Hi everybody, I'm now looking in classes AbstractAjaxBehavior and AbstractDefaultAjaxBehavior. There are two similar methods: getCallbackUrl() and getCallbackScript() and I don't understand why first set onlyTargetActivePage to true and second to false. Is it right ? If someone know about that, please let me know. Thanks a lot. Dave AbstractAjaxBehavior: public CharSequence getCallbackUrl() { return getCallbackUrl(true); } AbstractDefaultAjaxBehavior: protected CharSequence getCallbackScript() { return getCallbackScript(false); } -- Pedro Henrique Oliveira dos Santos -- View this message in context: http://old.nabble.com/OnlyTargetActivePage-param-tp27786617p27806850.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: HTTP Status 400 - There are some problems in the request: invalid URLPatternSpec
I checked http://docs.huihoo.com/javadoc/jboss/4.0.2/javax/security/jacc/URLPatternSpec.java.html. I need change url to this : http://xyz.sk/mymount?wicket:interface=:0:form::IFormSubmitListener:: and everything work fine. Strange thing is that I developed app on Jetty and Tomcat and everything works fine. Now I have more info a I need to expect some complication when i will be migrating to other web container. Dave igor.vaynberg wrote: there should be a way for you to relax your server's checks, that is a little crazy. -igor On Tue, Nov 10, 2009 at 2:02 PM, David Skuben david.sku...@gmail.com wrote: Hellou everyone, I use StatelessForm on GlassFish Ent Server 2.1 and I have this prob. When I submit form with method POST and Action url: http://xyz.sk/mymount/wicket:interface/:0:form::IFormSubmitListener:: server send me back status code 400 (There are some problems in the request: invalid URLPatternSpec). When I deploy same app in jetty or tomcat everything works fine. But my production enviroment is GlassFish. I think that prob is in character : in URL, but i dont understand because i debug that all params are decoded thrue WicketURLEncoder.PATH_INSTANCE.encode(string). Do you have some ideas ? Thanks a lot. Dave - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/HTTP-Status-400---There-are-some-problems-in-the-request%3A-invalid--URLPatternSpec-tp26292073p26299985.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: AW: Simple GET based stateless form
Hi, I have also some problem with stateless form in wicket 1.4-m3. I still don't know where is the problem. My prob is described in http://www.nabble.com/StatelessForm-in-Bookmarkable-Page-problem-to19430608.html#a19430608 Dave Vinayak Borkar wrote: Stefan, What I see on your site is exactly the behaviour I wish to have. However, using the code you pasted, still gives me this as the end of my URL, the second time. searchForm1_hf_0=..%2F..%2F..%2Fsearch%2Fwicket%3Ainterface%2F%3A0%3Asearch-bar%3AsearchForm%3A%3AIFormSubmitListener%3A%3A%2F=query=jboss%3Asubmit=Submit+Query I wonder what I am doing wrong. Thanks, Vinayak Stefan Lindner wrote: In the onSubmit method of your form place something like PageParameters p = new PageParameters(); // add your search parameters here getRequestCycle().setRequestTarget(new RedirectRequestTarget(urlFor(MySearchResults.class, p).toString())); Try out http://www.ai-online.info/abstracts/RefresherCourse, search for something and see the url to decide if you are looking for my solution. Thanks to Igor for the initial hint. -Ursprüngliche Nachricht- Von: Vinayak Borkar [mailto:[EMAIL PROTECTED] Gesendet: Montag, 17. November 2008 08:47 An: users@wicket.apache.org Betreff: Simple GET based stateless form Hi, I am trying to create a simple GET based stateless form to implement search. My code is broken up into two parts 1. A SearchPanel component that renders the form containing the text field 2. A SearchPage that renders the search results. The search page also has the SearchPanel component embedded in it so it would show a text field for the user to search again. The SearchPage page is mounted using the mountBookmarkablePage() call, so the URL for the search page is great the first time someone does a search. However, if a search is performed a second time from the form on the SearchPage, the URL for the new serach page has a bunch of extra wicket specific attributes. How do I make the URL seen in the second search as clean as the first? I am using wicket 1.4-m3 Thanks, Vinayak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Simple-GET-based-stateless-form-tp20535056p20536810.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Wicket 1.4 m3 StatelessForm
Hi everyone, I try to work with StatelessForm, but I have strange problem. When I fill in form fields first time everything works good. But If I have some validation in some field (in my example field: first name is required) and if the walidation failed, and i try to click submit button some strange character (;,:) appear in form fields and it is not possible to submit form. I thing that problem is in URL, because it looks strange and i can see a lot of duplicated values for the same field. I discovered , if I didnt call super constructor with page parameters it works fine. (bu there are other problems with page parameters) public StatelessFormPage(PageParameters pageParameters) { //PROBLEM - when I delete this everything works but if not it works strange super(pageParameters); //FEEDBACK PANEL FeedbackPanel feedbackPanel = new FeedbackPanel(feedbackPanel); add(feedbackPanel); //STATELESS FORM StatelessFormVoid form = new StatelessFormVoid(form); add(form); //FORMS FIELDS form.add(new TextFieldString(firstName, new PropertyModelString(this, firstName)).setRequired(true)); form.add(new TextFieldString(lastName, new PropertyModelString(this, lastName))); //SUBMIT BUTTON Button submit = new Button(submit) { @Override public void onSubmit() { System.out.println(Button:onSubmit()); System.out.println(First name: + firstName); System.out.println(Last name: + lastName); } }; form.add(submit); } Wicket version: 1.4 m3 Source code: java - http://www.nabble.com/file/p19441542/StatelessFormPage.java StatelessFormPage.java html - http://www.nabble.com/file/p19441542/StatelessFormPage.html StatelessFormPage.html Thanks a lot, Dave -- View this message in context: http://www.nabble.com/Wicket-1.4-m3-StatelessForm-tp19441542p19441542.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Wicket No-Serializable objects Web application
Hello all, I am thinking about the best design architecture for public web project. I used to work with classic 3 tier architecture: 1. tier - tier of business logic (business domain obejcts) 2. tier - middle service tier or API to business logic (EJB, Spring, =convert business object to DTO - Data Transfer Object) 3. tier - client tier (Wicket) A used to make distributed application where client side was not on the same virtual machine as middle tier, so copying from business model to DTO and back had purpose (reduce complexity of business obejct with many relationships, reduce traffic and it also solved the problem with serialization of business obejct - RMI). But now I am programming web application in which all these 3 layers will be placed in the same Virtual machine. So now It seems to be pointless to convert/copy business obejct to DTO and back. So I would like to use business objects directly in client layer. Middle layer will be still in my app, but all service method will be return business objects directly instead of DTO. Now I am thinking abou problems that I will face to. 1. Some business object are not serializable - I tried to made some simple examples (ListPage, FormPage), and some little problem I overcome, but I must made my custom Model = TransientModel, PropertyModel = TransientPropertyModel etc. Can you help me to define some others problems that can make me a lot of troubles or try to give me your ideas and experiences with this issue. Thanks a lot once again. Dave -- View this message in context: http://www.nabble.com/Wicket---No-Serializable-objects-Web-application-tp19351608p19351608.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Stripping Javascript problem
Hello all, I have some problem with using my app in DEPLOYMENT mode. I have special component, which use jQuery.js and one jQuery plugin for some js functionality. In DEVELOPMENT mode everything works fine, but when i switch to DEPLOYMENT mode it stops and I see some js exceptions in Firebug console. I tried to localize problem , and It looks that problem is in stripping javascript. I looked for some articles about javascript stripping problem with jQuery in Nabble, but I found nothing only with scriptaculous. I uploaded Js whit which I have trouble. 1. jquery-1.2.6.min.js = http://www.nabble.com/file/p19309024/jquery-1.2.6.min.js jquery-1.2.6.min.js 2. jquery.center.js (http://plugins.jquery.com/project/elementcenter) = http://www.nabble.com/file/p19309024/jquery.center.js jquery.center.js If You find something, please let me know. I know that I can switch off stripping JS, but I don't know if It is necessary. Thanks -- View this message in context: http://www.nabble.com/Stripping-Javascript-problem-tp19309024p19309024.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Palette bind to attribute with value NULL
I have some problem with usin Palette, because my backend bean collection attributes sometimes is null. I have some client logic bind to this attribute a I need that it will be null. I understand that is not so good when Pallete creates some List impl. But I thought about it and I see solution in Palette's method for example called: protected List getDefaultList(). Everyone who need to have bean attribute null and if also need use this attribute for Palette component can override this method a return default the List impl, which need. Can you please think about it? Thanks you very much! Dave -- View this message in context: http://www.nabble.com/Palette-bind-to-attribute-with-value-NULL-tp19207763p19207763.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: No get method defined for expression recorder when using Palette and CompoundPropertyModel
I have also the same problem, because my backend bean collection attributes sometimes is null. I have some client logic bind to this attribute a I need that it will be null. I understand that is not so good when Pallete creates some List impl. But I thought about it and I see solution in Palette's method for example called: protected List getDefaultList(). Everyone who need to have bean attribute null and if also need use this attribute for Palette component can override this method a return default the List impl, which need. Can you please think about it? It's my wrong ? Thanks you very much! Dave igor.vaynberg wrote: i dont know if it is by design or not. it makes sense to me that you pass in a model with at least an empty collection, otherwise palette has to create an instance of some collection which isnt as clean. -igor On 8/23/07, Federico Fanton [EMAIL PROTECTED] wrote: On Fri, 6 Jul 2007 08:48:56 -0700 Igor Vaynberg [EMAIL PROTECTED] wrote: Thanks for the tip but I absolutly need a compoundPropertyModel. https://issues.apache.org/jira/browse/WICKET-723 I had the same issue, thanks! Now I'm using beta3.. Another question though: I see that Recorder.initIds() assumes that getPalette().getModelCollection() is never null.. Is this by design? Should I check my backing bean for null collections before passing it to the CompoundPropertyModel? (Or maybe I could override CompoundPropertyModel.AttachedCompoundPropertyModel.getObject() so that it creates the empty collection when needed.. X-) ) Many thanks in advance! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Re%3A-No-get-method-defined-for-expression-recorder---when-using-Palette-and-CompoundPropertyModel-tp12293607p19160596.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Wicket 1.4m3 ModalWindow close problem in Opera
Hi, I would like to ask you about my problem with modal modal window in Opera. When i close modal window everything works good in java (all listeners ale correctly called). But in browser window i still see some parts of modal window in background of my page. It dispappears only when i refresh page or invoke show modal window again. I try open modal window example (http://www.wicket-library.com/wicket-examples/ajax/modal-window.1) in opera and result is in attachment. Can somebody help me to fix this problem? Thanks Dave http://www.nabble.com/file/p19002461/operaModalWindow.PNG operaModalWindow.PNG -- View this message in context: http://www.nabble.com/Wicket-1.4m3-ModalWindow-close-problem-in-Opera-tp19002461p19002461.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket 1.4m3 - AjaxButton, AjaxSubmitLink in ModalWindow in IE 7 Problem ?
Thanks for your interest :) I tried to isolate problem, because I use it in some context of my application. I made small fake startup project only with only necessary classes and this problem hasn't occured. So everything works fine. But I made only simple dummy modal window with no listeners and other features. Now I will try make it more complex step by step and I will try recognize, when it will stop working. If I detect something, let you know. Thanks one more for your help ;) Dave kag1526 wrote: I just tested my app in IE 7 since I also have a ModalWindow with an AjaxSubmitLink that submits my form and closes the window and mine worked fine. sorry I can't help with a solution but I can tell you that it is possible to make work. FakeBoy wrote: Hi, I tried to submit form from ModalWindow with AjaxButton or AjaxSubmitLink. In Firefox, Opera, Safari everything works fine, but in IE 7 doesn't. No onSubmit or onError method is fired after button or link cliked in IE 7. I used WICKET DEBUG console and after clik on Button or Link i see message: INFO: Ajax POST stopped because of precondition check, url:?wicket:interface=modal-dialog-pagemap:0:form:testLink1::IActivePageBehaviorListener:0:wicket:ignoreIfNotActive=true What doe's it mean? It's wicket problem or I did something wrong? Thanks a lot for your soon reply. -- View this message in context: http://www.nabble.com/Wicket-1.4m3---AjaxButton%2C-AjaxSubmitLink-in-ModalWindow-in-IE-7-Problem---tp18912755p18931673.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket 1.4m3 - AjaxButton, AjaxSubmitLink in ModalWindow in IE 7 Problem ?
Hi, I GOT IT I found the problem. The Problem was in the TextField with wicket id id. When you want to safetly use ajax submit components (AjaxButton, AjaxSubmitLink) your form components (TextFiels etc.) CAN NOT have wicket id id, because ajax submit stop work in IE. For example: form.add(new TextField(id,...)) - cause in IE Ajax Submit Problem I hope that it helps you, if you will have same problems like I had :thinking: Dave FakeBoy wrote: Thanks for your interest :) I tried to isolate problem, because I use it in some context of my application. I made small fake startup project only with only necessary classes and this problem hasn't occured. So everything works fine. But I made only simple dummy modal window with no listeners and other features. Now I will try make it more complex step by step and I will try recognize, when it will stop working. If I detect something, let you know. Thanks one more for your help ;) Dave kag1526 wrote: I just tested my app in IE 7 since I also have a ModalWindow with an AjaxSubmitLink that submits my form and closes the window and mine worked fine. sorry I can't help with a solution but I can tell you that it is possible to make work. FakeBoy wrote: Hi, I tried to submit form from ModalWindow with AjaxButton or AjaxSubmitLink. In Firefox, Opera, Safari everything works fine, but in IE 7 doesn't. No onSubmit or onError method is fired after button or link cliked in IE 7. I used WICKET DEBUG console and after clik on Button or Link i see message: INFO: Ajax POST stopped because of precondition check, url:?wicket:interface=modal-dialog-pagemap:0:form:testLink1::IActivePageBehaviorListener:0:wicket:ignoreIfNotActive=true What doe's it mean? It's wicket problem or I did something wrong? Thanks a lot for your soon reply. -- View this message in context: http://www.nabble.com/Wicket-1.4m3---AjaxButton%2C-AjaxSubmitLink-in-ModalWindow-in-IE-7-Problem---tp18912755p18932529.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Wicket 1.4m3 - AjaxButton, AjaxSubmitLink in ModalWindow in IE 7 Problem ?
Hi, I tried to submit form from ModalWindow with AjaxButton or AjaxSubmitLink. In Firefox, Opera, Safari everything works fine, but in IE 7 doesn't. No onSubmit or onError method is fired after button or link cliked in IE 7. I used WICKET DEBUG console and after clik on Button or Link i see message: INFO: Ajax POST stopped because of precondition check, url:?wicket:interface=modal-dialog-pagemap:0:form:testLink1::IActivePageBehaviorListener:0:wicket:ignoreIfNotActive=true What doe's it mean? It's wicket problem or I did something wrong? Thanks a lot for your soon reply. -- View this message in context: http://www.nabble.com/Wicket-1.4m3---AjaxButton%2C-AjaxSubmitLink-in-ModalWindow-in-IE-7-Problem---tp18912755p18912755.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
wicket 1.4 - Localizer getCacheKey BUG
Hi, I migrate my app from wicket 1.3 to wicket 1.4. Everything works fine, but one thing behaves strange. I have BasePage and all others pages in my app extends this page. BasePage have some responsibilities and one of them is set correct page title. Example: public class BasePage ext WebPage { public BasePage() { add(new Label(title, getTitle())); } protected IModel getTitle() { return new ResourceModel(pageTitle); } } All pages, which extends BasePage need to define properties file with key pageTitle if want to declare own page title. In Wicket 1.3 everythigs works correct, but in Wicket 1.4 NOT. The problem is in constructing CacheKey for localizer's properties cache. In Wicket 1.3 CacheKey containts: 1. component.getPageRelativePath() 2. component.findPage() - page.getClass().getName() There is all suffcient information for correct cashing properties. But in Wicket 1.4 it changed and page class name missed in constructing CacheKey. CacheKey containts: 1. resourceKey 2. component class name 3. component id 4. locale 5. style Result : If page identifier missed, title on my pages are still same, they are cached. Reason is that CacheKey is same for all my pages, although they contains properties file with own declared pageTitle. CacheKey is: pageTitle-org.apache.wicket.markup.html.basic.Label:title-en_EN-null This CacheKey is same for Page1, Page2, Page3 because it don't care about page. What are you think about it? Thanks -- View this message in context: http://www.nabble.com/wicket-1.4---Localizer-getCacheKey-BUG-tp18421093p18421093.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]