Re: Wicket-Stuff Tinymce-Editor: No toolbars in IE6
Hi, has nobody an idea? Any help would be great! Thanks, Benjamin 2007/8/16, Benjamin Ernst [EMAIL PROTECTED]: Hi, I have a problem with the wicket-stuff Tinymce-Editor in the InternetExplorer: the first time the page is loaded, there are no tool-icons, just the text-area. And IE gives the following Error: Error: 'tinyMCE is undefined' It' s an Java-Script-Error and it might be, that the scripts are not loaded the right way. But I don´t know how to fix this. Here are the scripts from generated the HTML-Source: script type=text/javascript id=import!--/*--![CDATA[/*!--*/ var script = document.createElement('script'); script.id='tinyMCEScript '; script.src='resources/wicket.contrib.tinymce.TinyMCEPanel/tiny_mce/tiny_mce_src.js '; script.type='text/javascript'; document.getElementsByTagName ('head')[0].appendChild(script); /*--]]*//script script type=text/javascript id=init!--/*--![CDATA[/*!--*/ tinyMCE.init({ mode : specific_textareas, editor_selector : mceEditor, theme : advanced, language : en, plugins : contextmenu, save, paste, searchreplace, insertdatetime, preview, zoom, table, emotions, iespell, flash, print, directionality, fullscreen, spellchecker, theme_advanced_buttons1_add_before : save, newdocument, separator, theme_advanced_buttons1_add : fontselect, fontsizeselect, theme_advanced_buttons2_add_before: cut, copy, paste, pastetext, pasteword, separator, search, replace, separator, theme_advanced_buttons2_add : separator, inserttime, insertdate, separator, preview, zoom, separator, forecolor, backcolor, theme_advanced_buttons3_add_before : tablecontrols, theme_advanced_buttons3_add : emotions, iespell, flash, separator, print, separator, ltr, rtl, separator, fullscreen, theme_advanced_buttons4 : spellchecker, theme_advanced_toolbar_location : top, theme_advanced_statusbar_location : bottom, theme_advanced_toolbar_align : left, theme_advanced_resizing : true, theme_advanced_resize_horizontal : false, plugin_insertdate_timeFormat : Time: %H:%M, plugin_insertdate_dateFormat : Date: %m-%d-%Y, fullpage_default_xml_pi : false, spellchecker_languages : +English=en }); /*--]]*//script Sometimes when the page is loaded again, the tool-icons are there. In FireFox it works fine, but unfortunately I have to use IE for this project. Thanks in advance, Benjamin
Re: Editable DataTeble
Thanks, I think I will use AjaxEditableLabel more often;) Fero Eelco Hillenius wrote: On 8/19/07, fero [EMAIL PROTECTED] wrote: I see, but I don't know how to do editable labels. I could not find it among wicket/wicket-extensions classes. Plz tell me how to do them. See org.apache.wicket.extensions.ajax.markup.html.AjaxEditableLabel. You could use it like: item.add(new AjaxEditableLabel(componentId,new PropertyModel(rowModel, propertyExpression) )); Up to you what you like best though :) Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Editable-DataTableSOLVED-tf4293939.html#a12231482 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: Servlet spec 2.3 vs. 2.4
they should run fine on 2.4 (tomcat 5) or 2.5. (tomcat 6) as long as the 2.4/2.5 methods are not called. I guess they are just new methods that aren't implemented yet? johan On 8/20/07, David Leangen [EMAIL PROTECTED] wrote: Just out of curiosity... Is there a reason why Wicket is using 2.3 of the servlet spec? Would it be possible to move to 2.4? Or is that non-trivial? There are currently 2 classes that do not compile with 2.4: BufferedHttpServletResponse MockHttpServletResponse Should I send in a patch? Cheers, Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Servlet spec 2.3 vs. 2.4
There are currently 2 classes that do not compile with 2.4: BufferedHttpServletResponse MockHttpServletResponse they should run fine on 2.4 (tomcat 5) or 2.5. (tomcat 6) as long as the 2.4/2.5 methods are not called. I guess they are just new methods that aren't implemented yet? Yes, that's correct. So, you're saying that it should _run_ with 2.4/2.5, but it won't _compile_. Is that it? The fixes to the above classes are fairly simple, and it would allow wicket to compile against 2.4. Cheers, Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re[2]: Can we do straight print in a java web application?
Hello Igor, Or applet. Right now i've completed prototype project that prints labels on barcode printer under web application. It uses Java Print Service API on client side to submit appropriate print jobs. It works with some restrictions. Cheers, Oleg Saturday, August 18, 2007, 6:02:41 PM, you wrote: i think its a little out of scope of wicket :) prob what you would need is a browser plugin -igor On 8/18/07, Eko S.W. [EMAIL PROTECTED] wrote: Dear all, I would like to found out about something : can we do straight print in a java web application? That is, we do not rely on window.print(), because we rely on browser to print them. I have an idea, silly perhaps, that we build another daemon that listen to something. That daemon wait, and when printing request from java web application does occur, it will do the printing. Is it applicable? Because as a matter of moving from desktop to web, maybe printing is one aspect that as an application developer, will be of some challenge. Thanks in advance -- Best wishes, Eko SW http://swdev.blogs.friendster.com/my_blog/ -- Best regards, Olegmailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Loading global resources in test?
Hello, I have just moved some localized string resources to a myApplication.properties file, because they need to accessed by different panels and pages, and it works fine. However, when running my unit tests with WicketTester, it can't find the resources in myApplication.properties. I have been unsuccessful in finding a way to add the myApplication.properties file to the resource path of my WicketTester subclass. This is what I've tried, in my subclass of WicketTester: public void initialize() { getResourceSettings().addStringResourceLoader(new ClassStringResourceLoader(this, PolFotoApplication.class)); } So: How do I add myApplication.properties to the resource path of my WicketTester? Kind regards, Erik
AjaxEditableLabel
Hi, I use AjaxEditableLabel like this add(new AjaxEditableLabel(code, new PropertyModel(unit, typ.ecode))); But it doesn't show the value form PropertyModel, even, if the value in the model is set (i make sure with debugger). And of course I never get an input field. I used AjaxEditableLabel in a table recently and it was working perfectly there. Plz help Fero -- View this message in context: http://www.nabble.com/AjaxEditableLabel-tf4298011.html#a12233505 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: Editable DataTeble
One thing to keep in mind about AjaxEditableLabel in wicket 1.3 is that the cancel functionality doesn't work well in firefox. See this for details https://issues.apache.org/jira/browse/WICKET-520 in essence, once you are in edit mode in firefox, there is no way to cancel the edit, other than to navigate out of the page. thanks fero wrote: Thanks, I think I will use AjaxEditableLabel more often;) Fero Eelco Hillenius wrote: On 8/19/07, fero [EMAIL PROTECTED] wrote: I see, but I don't know how to do editable labels. I could not find it among wicket/wicket-extensions classes. Plz tell me how to do them. See org.apache.wicket.extensions.ajax.markup.html.AjaxEditableLabel. You could use it like: item.add(new AjaxEditableLabel(componentId,new PropertyModel(rowModel, propertyExpression) )); Up to you what you like best though :) Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Editable DataTeble
i found a solution for the problem with firefox. see the last comment from Al. but seeing that it is planned for 1.3.0-rc1, it's not going to happen in the very near future. you could vote for that issue, so it may get more attention... did you have any chance to look at it, Al? gerolf On 8/20/07, Gumnaam [EMAIL PROTECTED] wrote: One thing to keep in mind about AjaxEditableLabel in wicket 1.3 is that the cancel functionality doesn't work well in firefox. See this for details https://issues.apache.org/jira/browse/WICKET-520 in essence, once you are in edit mode in firefox, there is no way to cancel the edit, other than to navigate out of the page. thanks fero wrote: Thanks, I think I will use AjaxEditableLabel more often;) Fero Eelco Hillenius wrote: On 8/19/07, fero [EMAIL PROTECTED] wrote: I see, but I don't know how to do editable labels. I could not find it among wicket/wicket-extensions classes. Plz tell me how to do them. See org.apache.wicket.extensions.ajax.markup.html.AjaxEditableLabel. You could use it like: item.add(new AjaxEditableLabel(componentId,new PropertyModel(rowModel, propertyExpression) )); Up to you what you like best though :) Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket-Stuff Tinymce-Editor: No toolbars in IE6
He Benjamin, I have the same problem. I have opened a JIRA issue for it: http://wicketstuff.org/jira/browse/WCTINYMCE-2 But no response so far. I can't help you any further but lets hoop the maintainer of the tinymce project picks it up... Thijs Benjamin Ernst wrote: Hi, has nobody an idea? Any help would be great! Thanks, Benjamin 2007/8/16, Benjamin Ernst [EMAIL PROTECTED]: Hi, I have a problem with the wicket-stuff Tinymce-Editor in the InternetExplorer: the first time the page is loaded, there are no tool-icons, just the text-area. And IE gives the following Error: Error: 'tinyMCE is undefined' It' s an Java-Script-Error and it might be, that the scripts are not loaded the right way. But I don´t know how to fix this. Here are the scripts from generated the HTML-Source: script type=text/javascript id=import!--/*--![CDATA[/*!--*/ var script = document.createElement('script'); script.id='tinyMCEScript '; script.src='resources/wicket.contrib.tinymce.TinyMCEPanel/tiny_mce/tiny_mce_src.js '; script.type='text/javascript'; document.getElementsByTagName ('head')[0].appendChild(script); /*--]]*//script script type=text/javascript id=init!--/*--![CDATA[/*!--*/ tinyMCE.init({ mode : specific_textareas, editor_selector : mceEditor, theme : advanced, language : en, plugins : contextmenu, save, paste, searchreplace, insertdatetime, preview, zoom, table, emotions, iespell, flash, print, directionality, fullscreen, spellchecker, theme_advanced_buttons1_add_before : save, newdocument, separator, theme_advanced_buttons1_add : fontselect, fontsizeselect, theme_advanced_buttons2_add_before: cut, copy, paste, pastetext, pasteword, separator, search, replace, separator, theme_advanced_buttons2_add : separator, inserttime, insertdate, separator, preview, zoom, separator, forecolor, backcolor, theme_advanced_buttons3_add_before : tablecontrols, theme_advanced_buttons3_add : emotions, iespell, flash, separator, print, separator, ltr, rtl, separator, fullscreen, theme_advanced_buttons4 : spellchecker, theme_advanced_toolbar_location : top, theme_advanced_statusbar_location : bottom, theme_advanced_toolbar_align : left, theme_advanced_resizing : true, theme_advanced_resize_horizontal : false, plugin_insertdate_timeFormat : Time: %H:%M, plugin_insertdate_dateFormat : Date: %m-%d-%Y, fullpage_default_xml_pi : false, spellchecker_languages : +English=en }); /*--]]*//script Sometimes when the page is loaded again, the tool-icons are there. In FireFox it works fine, but unfortunately I have to use IE for this project. Thanks in advance, Benjamin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AjaxEditableLabel
Is the property expression correct? shouldn't that be type.code ? Martijn On 8/20/07, fero [EMAIL PROTECTED] wrote: Hi, I use AjaxEditableLabel like this add(new AjaxEditableLabel(code, new PropertyModel(unit, typ.ecode))); But it doesn't show the value form PropertyModel, even, if the value in the model is set (i make sure with debugger). And of course I never get an input field. I used AjaxEditableLabel in a table recently and it was working perfectly there. Plz help Fero -- View this message in context: http://www.nabble.com/AjaxEditableLabel-tf4298011.html#a12233505 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 joins the Apache Software Foundation as Apache Wicket Apache Wicket 1.3.0-beta2 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can we do straight print in a java web application?
Actually, this is available. It is possible to embed javascript inside a PDF. It depends on what you're using to generate the PDF however. I'm sure Acrobat can do it. There a library called iText which can. I think it can even go into an already created PDF and insert the necessary JS. We use a product called pdflib (not free). By inserting PDF javascript you can get a PDF document to print silently (no print dialog). The trick being you have to somehow open the PDF first. In our app we just have a print link that generates a PDF and spits it to the printer without the user having to even see the document first. We just load the PDF into a hidden IFRAME and on the document load the embedded javascript calls the print command. Do some research on JS for PDFs. It's been a while since I've dealt with that code, so I'm a bit rusty on it. Also it can be a bit cumbersome to get it working the way you want it, depending on your exact usecase. But it may be just what you're looking for. Good luck. Joel Martijn Dashorst wrote: Just think about it for 1 minute why this isn't available... (anwser below). Martijn Spam is of all ages, I figure that even in the clay tablet era people would create ads for enlargements of various body parts (just use a bigger nail!). So before e-mail was the prevalent means of spreading ads, the fax machine (documents sent through the phone line in an analog/copier type of fashion) was churning out forrests of (unwanted) ads. Now imagine a website hosted by Nigerian/Russian/Chinese/Dutch spammers. They would *love* a way to directly print documents without interventioni on the user's part. -- Wicket joins the Apache Software Foundation as Apache Wicket Apache Wicket 1.3.0-beta2 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Can-we-do-straight-print-in-a-java-web-application--tf4289452.html#a12235547 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: AjaxEditableLabel
It is ok now, I only misspelled wicket:id and could not find it for a long time:) Thanks Fero Martijn Dashorst wrote: Is the property expression correct? shouldn't that be type.code ? Martijn On 8/20/07, fero [EMAIL PROTECTED] wrote: Hi, I use AjaxEditableLabel like this add(new AjaxEditableLabel(code, new PropertyModel(unit, typ.ecode))); But it doesn't show the value form PropertyModel, even, if the value in the model is set (i make sure with debugger). And of course I never get an input field. I used AjaxEditableLabel in a table recently and it was working perfectly there. Plz help Fero -- View this message in context: http://www.nabble.com/AjaxEditableLabel-tf4298011.html#a12233505 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 joins the Apache Software Foundation as Apache Wicket Apache Wicket 1.3.0-beta2 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/AjaxEditableLabel-tf4298011.html#a12236394 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: Updates within Panels in datatable
If I want to update each row then I believe I will have to upgrade to 1.3beta which my company doesn't want to do yet. Updating the entire table looks fine to me though, not too much flicker or delay with that. Thanks so much for your help with this. igor.vaynberg wrote: use ajaxsubmitbutton or ajaxsubmitlink isntead, and add the table to the target. if you want per/row submissions you will have to figure out how to get the tr for that row and add that to the target instead. -igor On 8/17/07, salmas [EMAIL PROTECTED] wrote: Hi Igor: I found that there is no way to have a form per row in the datatable. So I changed things so that now I have one form wrapping the entire table and the buttons in the table are all SubmitLinks which have references to the main form. Now I get the updated values when the form is submitted and I know which row it was because the onSubmit() method of the SubmitLink clicked gets called. However, the issue is that the entire form submits and we'd like to use AJAX to update just the row that was submitted and if not then at least restrict the update to the table via AJAX. I get the updated values in the form when the form is submitted. Would it be possible to intercept the clicked event and instead of submitting, use an AJAXTarget to update the table or row? In this case I am concerned that I won't get the updated values from the form. Is there a method in the SubmitLink which I can override to get the onClicked event? I didn't see any such thing since the onLinkClicked method is final and even if I did intercept the event is there any way that I can get the updated form values without the actual form submit? salmas wrote: Yes that is the issue. I need to have all these in different columns for look feel reasons. Is there any way that I can wrap the entire table row in a form? SubmitLink won;t work for me since I have another column which will have a date picker and I will need tp pick up the value of that too. I originally had tried to use one form for the entire table but I had the same issue with not getting the updates. That was awhile ago, do you think I should try that again, perhaps the reuse strategy was the problem at that time? The best thing would be to have a form per row but I am not sure how to do this using the panels in the table columns. igor.vaynberg wrote: well, the problem is that you put your button outside the form. if you need to do this you can use submitlink and pass it the form instance you wish it to submit. you can still attach submitlink to input type=button if you want the button look. -igor On 8/16/07, salmas [EMAIL PROTECTED] wrote: Hi Igor: I have attached the source folder from the quickstart. The project has no additional dependencies so just replacing the source folder in the quickstart should do it. I tried attaching a zip of the entire thing but with the libraries and docs it's too big to attach here. Let me know if I am missing anything or if you need the entire project and I can ftp/email it to you. The basic issue is that for look/feel reasons I have a form in one column of a table and a submit button in the next column. However, edits to the form controls in the first panel are not detected. When you run the quickstart then edit the textfield and let me know how I can capture the input when submit is pressed in the submit panel. Regards igor.vaynberg wrote: set up a quickstart so there is something to play with and then someone might be able to help you. as it is right now there simply isnt enough information. -igor On 8/15/07, salmas [EMAIL PROTECTED] wrote: I hadn't but I just tried it and no difference. The issue is that when I type into the textfield the value of amount is not changed. Do you have any idea why this would be? I do resue the textfield twice setting it invisible once because if I don't add it to the second row I'll get an exception because the markup expects an object with that wicket id. I only need it to show along with the first choice in the radio group. Should I be doing this panel differently? igor.vaynberg wrote: did you call listview.setreuseitems(true)? -igor On 8/15/07, salmas [EMAIL PROTECTED] wrote: Hi Igor: Yes the button/Link works but it still does not solve my issue. I have a table where two of the columns have panels. One of the panels has a textField and a radio choice and the other panel has the submit button. When I hit submit I need the values in the textfield and in the choice. While the textfield has a propertymodel this model is never updated when I type in the field and I never get an updated value for it. I have tried
Double clicking on a table row
Hi everyone! I'm looking for a little help.. I need to add an ondblclick functionality to a DataTable, so that doubleclicking on a row would jump to another page (passing information about the clicked row).. I subclassed DataTable so that I could override newRowItem to let it return a modified Item, but I'd like to avoid hardcoding Javascript, so I'd like to ask, what is the Wicket way to do this? Many thanks in advance! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DownloadLink hanging
Hi, We are using Wicket 1.3 beta 2 running in Tomcat and have a couple of DownloadLinks on a page (created with 'new DownloadPage(parameters)') for larger files (a couple of MB). I open different tabs of the same page in Opera and click these download links, so the downloads should happen in parallel. Unfortunately, the web-application seems to hang until the previous files were completely downloaded. Even normal pages do not show up. This does not happen for other websites (so our internet connection couldn't be the reason) and not for the same project with old-JSP-/Servlet-technology at a different server running in the same version of Tomcat. Is this a known problem? How to work around? -- Best regards, Thomas Singer _ SyntEvo GmbH Brunnfeld 11 83404 Ainring Germany www.syntevo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: help script.aculo.us wicket
Is the wicketstuff-scriptaculous will work on wicket 1.2? Anyone know? Also if it is possible to combine with AjaxEditableLabel? On 8/7/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: look at the wiki? http://wicketstuff.org/confluence/display/STUFFWIKI/wicketstuff-scriptaculous anita nichols wrote: I download the jar, but how do I use script.aculo.us on wicket? Thanks, Anita - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
TreeTable...how to refect a label change on TreeNode
I am using the TreeTable in Wicket Extensions. When selecting on a node, a page allowing the user to edit the node value (and other useful info). Upon saving, I would like the associated TreeNode to show the new value. How would one go about having the TreeNode get its value again? Thanks -- View this message in context: http://www.nabble.com/TreeTable...how-to-refect-a-label-change-on-TreeNode-tf4300479.html#a12240766 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Bookmarkable link to a page in another WebApplication
Hi, What is the best way to create bookmarkable link to a page in another application in the same WAR file? I mount some pages to some urls, this way: mountBookmarkablePage(/navi, ProductCategoryPage.class); And it perfectly works. But later I want to create link to this page from a page in separate application (the same WAR file). add(new BookmarkablePageLink(menuItem, ProductCategoryPage.class)); The 2nd page does not know about the mount point defined above. It creates normal wicket link, with prefix of the 2nd app - not the 1st app. This has implications, because clicked link is processed by app2, not app1. Is there any nice way to use such bookmarkable link without any hardcoded strings? Regards Dariusz Wojtas -- View this message in context: http://www.nabble.com/Bookmarkable-link-to-a-page-in-another-WebApplication-tf4301106.html#a12242595 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: Can we do straight print in a java web application?
There's an onLoad event on a PDF (sounds vaguely familiar) in which you can initiate a print. I've done this on previous projects and works just fine. I can't recall if I autoclosed that PDF as well but it seems likely. On 8/20/07, hillj2 [EMAIL PROTECTED] wrote: Actually, this is available. It is possible to embed javascript inside a PDF. It depends on what you're using to generate the PDF however. I'm sure Acrobat can do it. There a library called iText which can. I think it can even go into an already created PDF and insert the necessary JS. We use a product called pdflib (not free). By inserting PDF javascript you can get a PDF document to print silently (no print dialog). The trick being you have to somehow open the PDF first. In our app we just have a print link that generates a PDF and spits it to the printer without the user having to even see the document first. We just load the PDF into a hidden IFRAME and on the document load the embedded javascript calls the print command. Do some research on JS for PDFs. It's been a while since I've dealt with that code, so I'm a bit rusty on it. Also it can be a bit cumbersome to get it working the way you want it, depending on your exact usecase. But it may be just what you're looking for. Good luck. Joel Martijn Dashorst wrote: Just think about it for 1 minute why this isn't available... (anwser below). Martijn Spam is of all ages, I figure that even in the clay tablet era people would create ads for enlargements of various body parts (just use a bigger nail!). So before e-mail was the prevalent means of spreading ads, the fax machine (documents sent through the phone line in an analog/copier type of fashion) was churning out forrests of (unwanted) ads. Now imagine a website hosted by Nigerian/Russian/Chinese/Dutch spammers. They would *love* a way to directly print documents without interventioni on the user's part. -- Wicket joins the Apache Software Foundation as Apache Wicket Apache Wicket 1.3.0-beta2 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Can-we-do-straight-print-in-a-java-web-application--tf4289452.html#a12235547 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: Loading global resources in test?
it should probably be MyApplication.properties unless you have myApplication.java -igor On 8/20/07, Erik Underbjerg [EMAIL PROTECTED] wrote: Hello, I have just moved some localized string resources to a myApplication.properties file, because they need to accessed by different panels and pages, and it works fine. However, when running my unit tests with WicketTester, it can't find the resources in myApplication.properties. I have been unsuccessful in finding a way to add the myApplication.properties file to the resource path of my WicketTester subclass. This is what I've tried, in my subclass of WicketTester: public void initialize() { getResourceSettings().addStringResourceLoader(new ClassStringResourceLoader(this, PolFotoApplication.class)); } So: How do I add myApplication.properties to the resource path of my WicketTester? Kind regards, Erik
Re: back button processing doesn't work in Opera
please file a jira issue. this was supposed to work. -igor On 8/20/07, Andrew Klochkov [EMAIL PROTECTED] wrote: Use case: 1) user loads page A 2) he goes to page B 3) he hits back button 4) he clicks an ajax link on the page A, but wicket thinks that page B is current page because Opera doesn't make any request when back button is presssed Is it supposed to work somehow? or back button processing is not supported in Opera? Opera 9.01 wicket 1.3 beta 2 BTW the same thing happens under safari for windows -- Andrew Klochkov - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Bookmarkable link to a page in another WebApplication
not across contexts, contexts in webapps are isolated. so you have to construct the url manually, which is easy since you know the mount point. so construct a url and give it to externallink component. -igor On 8/20/07, Dariusz Wojtas [EMAIL PROTECTED] wrote: Hi, What is the best way to create bookmarkable link to a page in another application in the same WAR file? I mount some pages to some urls, this way: mountBookmarkablePage(/navi, ProductCategoryPage.class); And it perfectly works. But later I want to create link to this page from a page in separate application (the same WAR file). add(new BookmarkablePageLink(menuItem, ProductCategoryPage.class)); The 2nd page does not know about the mount point defined above. It creates normal wicket link, with prefix of the 2nd app - not the 1st app. This has implications, because clicked link is processed by app2, not app1. Is there any nice way to use such bookmarkable link without any hardcoded strings? Regards Dariusz Wojtas -- View this message in context: http://www.nabble.com/Bookmarkable-link-to-a-page-in-another-WebApplication-tf4301106.html#a12242595 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Redirected after BrowserInfoPage and mounted Pages.
Short description :- When using mounted pages, wicket redirects to wrong URL, after BrowserInfoPage, which is called by Session.get().getClientInfo(), when gatherExtendedBrowserInfo is true in RequestCycleSettings. Long description :- I need to determine the Client's time zone in my webapplication. So I have set getRequestCycleSettings().setGaterExtendedBroserInfo(true) in my application class. And in my BasePage.java's (which is the super class for all my pages) constructor I have set getSession().getClientInfo(), to trigger the redirect to BrowserInfoPage as per the javadocs. My webapp context is /scheduler/ and my wicket application is mapped to /app/ (i.e. /scheduler/app/ ). I have kept all my pages in one package and mounted that package to /pages, ie. the pages are accessed via http://host/scheduler/app/pages/XYZPage etc. When I submit the request to http://host/scheduler/app/ This is what happens (I have recorded the HTTP traffic via wireshark). GET http://host/scheduler/app/ Temporary Redirect to http://host/scheduler/app/pages/HomePage (this is my home page). GET http://host/scheduler/app/pages/HomePage Temporary Redirect to http://host/scheduler/app/pages/../;jsessionID=.. (this is the BrowserInfo Page). GET http://host/scheduler/app/;JSESSIONID=. (get the browser info page). POST to browser info page. Temporary redirect to http://host/scheduler/app/pages/../../app/pages/HomePage (redirect from browser info page, after it has populated ClientProperties). The problem is that last redirect is wrong. The path http://host/scheduler/app/pages/../../app/pages/HomePage translates to http://host/app/pages/HomePage i.e. I lose the webapp context path (/scheduler/) because of the path being 2 levels up. and I get a 404 after that. I suspect the culprit is the throw new RestartResponseAtInterceptPageException(new BrowserInfoPage(getRequest().getRelativePathPrefixToContextRoot() + getRequest().getURL())); In WebRequestCycle.java. The getRelativePathPrefixToContextRoot() is computed wrongly as /scheduler/app/../.. instead of /scheduler/app/.. because the context root is /scheduler/ and not / Any thoughts on how to fix this ? thanks bhaskar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Question about using UploadWebRequest
The javadoc on org.apache.wicket.extensions.ajax.markup.html.form.upload.UploadWebRequest explains how to install it (Note: javadoc has problems with it...maybe the @ symbol?). class MyApplication extends WebApplication { ... @Override protected WebRequest newWebRequest(HttpServletRequest servletRequest) { return new UploadWebRequest(servletRequest); } ... } Does this not mean that _all_ requests handled by this application will be using UploadWebRequests? If so, is this fine? Is this how everyone does it? Overheads? Cheers Oli -- View this message in context: http://www.nabble.com/Question-about-using-UploadWebRequest-tf4301766.html#a12244655 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem following TextField example
Hi !! I'm following TextField example at http://wicketstuff.org/wicket13/compref/?wicket:bookmarkablePage=%3Aorg.apache.wicket.examples.compref.TextFieldPage (sorry long line) After failing for a while I've found these differences in the generated html code: In the Wicket example: form action=?wicket:interface=:1:form::IFormSubmitListener:: In my code: form action=/WicketTest/wicket/?wicket:interface=:0:form::IFormSubmitListener /WicketTest/wicket/ is most likely due to directory structure of the project (I'm using Netbeans with the Wicket Support Module). I'm curious about the :1: to :0: difference, and the trailing :: that my code lacks. Can soemebody shed some light on this ?? Thanks in advance !! Daniel PD: Alas, in my second day with Wicket I'm trying to build my first component, who would've dreamed of this with JSP/JSF ?? -- View this message in context: http://www.nabble.com/Problem-following-TextField-example-tf4302594.html#a12247118 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: Problem following TextField example
Hi !! I'm following TextField example at http://wicketstuff.org/wicket13/compref/?wicket:bookmarkablePage=%3Aorg.apache.wicket.examples.compref.TextFieldPage (sorry long line) After failing for a while I've found these differences in the generated html code: In the Wicket example: form action=?wicket:interface=:1:form::IFormSubmitListener:: In my code: form action=/WicketTest/wicket/?wicket:interface=:0:form::IFormSubmitListener /WicketTest/wicket/ is most likely due to directory structure of the project (I'm using Netbeans with the Wicket Support Module). Are you by any chance using Wicket 1.2 for your own project? I'm curious about the :1: to :0: difference, and the trailing :: that my code lacks. Can soemebody shed some light on this ?? The : are separators between Wicket identifiers which are for internal use, you should worry about them. If there is nothing in between :, it simply means it is null. Anyway, http://localhost:8080/wia/app/?wicket:interface=:0:discounts:modeLink:2:ILinkListener:: for instance means default pagemap, page with id 0, component path discounts.modeLink, page version 2, call interface ILinkListener. Something along those lines. Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem following TextField example
you should worry about them. Duh. You should *not* worry about them :) Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem following TextField example
Well, one thing more I've remembered, in one of the examples there is a POJO used as a backing model, which implements IClusterable, but it doesn't seems like that interface belongs to Wicket as of version 1.2.6, or even the extensions, perhaps all or part of the examples are built on Wickets 1.3 beta ?? Daniel dtoffe wrote: Just to add one more thing, in case it helps identify the problem: An the end of the form action line, there is an attribute in three parts, I'm at home roght now and I don't remember exactly what it says, but lets say it is something like formId_0_id, and in my code it appears with the same words but separated with : instead of _. I'll post the exact words tomorrow when at work, thanks !! Daniel dtoffe wrote: Hi !! I'm following TextField example at http://wicketstuff.org/wicket13/compref/?wicket:bookmarkablePage=%3Aorg.apache.wicket.examples.compref.TextFieldPage (sorry long line) After failing for a while I've found these differences in the generated html code: In the Wicket example: form action=?wicket:interface=:1:form::IFormSubmitListener:: In my code: form action=/WicketTest/wicket/?wicket:interface=:0:form::IFormSubmitListener /WicketTest/wicket/ is most likely due to directory structure of the project (I'm using Netbeans with the Wicket Support Module). I'm curious about the :1: to :0: difference, and the trailing :: that my code lacks. Can soemebody shed some light on this ?? Thanks in advance !! Daniel PD: Alas, in my second day with Wicket I'm trying to build my first component, who would've dreamed of this with JSP/JSF ?? -- View this message in context: http://www.nabble.com/Problem-following-TextField-example-tf4302594.html#a12247575 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: Problem following TextField example
Yes, as I said in my last post, I'm using 1.2.6, last stable version as of some two or three days ago. Thanks for your example !! Daniel Eelco Hillenius wrote: /WicketTest/wicket/ is most likely due to directory structure of the project (I'm using Netbeans with the Wicket Support Module). Are you by any chance using Wicket 1.2 for your own project? I'm curious about the :1: to :0: difference, and the trailing :: that my code lacks. Can soemebody shed some light on this ?? The : are separators between Wicket identifiers which are for internal use, you should worry about them. If there is nothing in between :, it simply means it is null. Anyway, -- View this message in context: http://www.nabble.com/Problem-following-TextField-example-tf4302594.html#a12247608 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: Problem following TextField example
Yes, as I said in my last post, I'm using 1.2.6, last stable version as of some two or three days ago. Thanks for your example !! That's why those two URLs are so different. What is not clear to me is what exactly goes wrong? Do you get exceptions? Or do your models not get upated right? Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]