Re: Page Expired after WebResponse
No I didn't use ResourceStremRequestTarget because my aim is to dumped Listview component's content into excel so I used ComponentRequestTarget which works great. But WebResponse wr = (WebResponse) getResponse(); wr.setContentType(application/vnd.ms-excel; charset=windows-1254 ); wr.setCharacterEncoding(Constants.ENCODING); wr.setHeader(content-disposition, attachment;filename= + Constants.DEFAULT_EXCEL_FILE); causes Page Expired error if click : StatelessLink linkExcel = new StatelessLink(linkExcel) { private static final long serialVersionUID = 1L; @Override public void onClick() { getRequestCycle().setRequestTarget( new ComponentRequestTarget(tableContainer) { @Override public void respond(RequestCycle requestCycle) { Component actions = tableContainer.get(actions); actions.setVisible(false); Component navigator = tableContainer.get(navigator); navigator.setVisible(false); final int oldipp = listView.getRowsPerPage(); listView.setRowsPerPage(Integer.MAX_VALUE); isExcel = true; super.respond(requestCycle); /* Back to original. */ listView.setRowsPerPage(oldipp); actions.setVisible(true); navigator.setVisible(true); } }); WebResponse wr = (WebResponse) getResponse(); wr.setContentType(application/vnd.ms-excel; charset=windows-1254 ); wr.setCharacterEncoding(Constants.ENCODING); wr.setHeader(content-disposition, attachment;filename= + Constants.DEFAULT_EXCEL_FILE); } }; Any suggestions or samples ? . Thanks. 2010/9/22 Rodolfo Hansen kry...@gmail.com Have you thought about using simply using a ResourceStremRequestTarget ? On Wed, 2010-09-22 at 20:26 +0300, Altuğ Bilgin Altıntaş wrote: AjaxLink doesn't throw an Excel file to user. Also I changed the code like that : WebResponse wr = (WebResponse)*target.getHeaderResponse().getResponse() ;* wr.setContentType(application/vnd.ms-excel; charset=windows-1254 ); wr.setCharacterEncoding(Constants.ENCODING); wr.setHeader(content-disposition, attachment;filename= + Constants.DEFAULT_EXCEL_FILE); It sends the table via Ajax :) but no excel file download process begins Any suggestions ? Thanks. 2010/9/22 Rodolfo Hansen kry...@gmail.com Use an AjaxLink (or extends abstractlink), this way the page version is not expected to increment. On Wed, 2010-09-22 at 18:27 +0300, Altuğ Bilgin Altıntaş wrote: Hi, Here is code to export excel; Link linkExcel = new Link(linkExcel) { public void onClick() { getRequestCycle().setRequestTarget( new ComponentRequestTarget(tableContainer) { @Override public void respond(RequestCycle requestCycle) { . WebResponse wr = (WebResponse) getResponse(); wr.setContentType(application/vnd.ms-excel; charset=utf-8 ); wr.setCharacterEncoding(Constants.ENCODING); wr.setHeader(content-disposition, attachment;filename= + Constants.DEFAULT_EXCEL_FILE); } } It works great. *Problem steps *: 1. Click excel link and get the excel file - great ! 2. Click a modalwindow link (Ajax) gets *Page Expired* error. Any suggestions on *step 2* ? Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Modular XHTML DTD for Wicket?
Hello Ichiro, Bring it on! Find all xhtml tags here: https://cwiki.apache.org/WICKET/wickets-xhtml-tags.html. Here you will also find a link to the current DTDs. Regards, Erik. Op 28-09-10 04:53, Ichiro Furusato schreef: I brought this up previously under Wicket pages are invalid XHTML on Thu, 16 Sep 2010 13:11:06 +1200 but the conversation got sidetracked by a solution to a question I'd asked without addressing an offer I'd made. Would anyone be interested in replacing the misnamed and incomplete XHTML DTD used by the Wicket project with a modular XHTML DTD that had its own Wicket module? This could be used to validate Wicket-ised documents. I'm versed in building modular DTDs using the W3C toolkit. (I note WICKET-693 exists) and can also flatten the DTD to a single file using a tool I have. I'd be willing to supply that DTD if someone could provide documentation on the extant wicket elements and attributes, and where in the document model they are permitted. If this is something properly directed at the Wicket dev list let me know and I'll resend it there (I'm not currently a member of that list). Or if this isn't a priority for the project (it may not be if well-formed XML is sufficient during dev) I'll drop the issue. Thanks, Ichiro - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- 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: bookmarkablePage strategy change?
Try with HybridUrlCodingStrategy On Tue, Sep 28, 2010 at 7:54 AM, Alex Rass a...@itbsllc.com wrote: Ok, after reading and debugging, seems that bookmarkable page does indeed drop the source page. Is there a way to fix that? So that after I submit the form on that page, I get to keep my bob: site.com/bob?wickiet=::1:: ??? If there's a way to do that, I'd be a happy camper. Even if it requires going to 1.5M2 - Alex -Original Message- From: Alex Rass [mailto:a...@itbsllc.com] Sent: Monday, September 27, 2010 9:23 PM To: users@wicket.apache.org Subject: bookmarkablePage strategy change? I have been doing: webApplication.mountBookmarkablePage(/bob, pageClass); for quite some time. And when things got dynamic, it was: http://site.com/bob?wicket:interface=:0 Did something change in recent releases? Bug? Or did I nuke some important encoding strategy line some place by accident? Because now, once things get dynamic, I get: http://site.com/?wicket:interface=:0 and lose my bob (which helped me keep sanity before). Can anyone help? - Alex Rass - 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
StatelessLink
Hi ; I used StatelessLink but i still get Page Expired , is it normal ? Also this StatelessLink is in StatelessForm and Page is Bookmarkable but wicket - 1.4.9 still generates : http://localhost:8080/ac/customer?wicket:interface=:1:frmSearch:linkExcel::ILinkListener :: why ? Thanks.
Re: StatelessLink
You may use wicket-devutils. There is a stateless checker. It will tell you which component makes the page stateful. 2010/9/28 Altuğ Bilgin Altıntaş alt...@gmail.com Hi ; I used StatelessLink but i still get Page Expired , is it normal ? Also this StatelessLink is in StatelessForm and Page is Bookmarkable but wicket - 1.4.9 still generates : http://localhost:8080/ac/customer?wicket:interface=:1:frmSearch:linkExcel::ILinkListener :: why ? Thanks.
Rendering at constructor?
Hi! How is it possible that this error occurs at page constructor? Caused by: org.apache.wicket.WicketRuntimeException: Cannot modify component hierarchy after render phase has started (page version cant change then anymore) at org.apache.wicket.Component.checkHierarchyChange(Component.java:3512) at org.apache.wicket.MarkupContainer.remove(MarkupContainer.java:525) at org.apache.wicket.MarkupContainer.addedComponent(MarkupContainer.java:936) at org.apache.wicket.MarkupContainer.add(MarkupContainer.java:142) at com.view.AbstractStylePage.addStyleContainer(AbstractStylePage.java:111) at com.view.AbstractStylePage.init(AbstractStylePage.java:104) at com.view.AbstractStylePage.init(AbstractStylePage.java:96) at wicket.quickstart.AbstractAuthenticationPage.init(AbstractAuthenticationPage.java:29) at wicket.quickstart.LoginPage.init(LoginPage.java:82) ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Rendering at constructor?
Which version of Wicket ? Many apps/tests/examples use this and this is first time I see such problem. Can you create a ticket with a quickstart, please. On Tue, Sep 28, 2010 at 12:17 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Hi! How is it possible that this error occurs at page constructor? Caused by: org.apache.wicket.WicketRuntimeException: Cannot modify component hierarchy after render phase has started (page version cant change then anymore) at org.apache.wicket.Component.checkHierarchyChange(Component.java:3512) at org.apache.wicket.MarkupContainer.remove(MarkupContainer.java:525) at org.apache.wicket.MarkupContainer.addedComponent(MarkupContainer.java:936) at org.apache.wicket.MarkupContainer.add(MarkupContainer.java:142) at com.view.AbstractStylePage.addStyleContainer(AbstractStylePage.java:111) at com.view.AbstractStylePage.init(AbstractStylePage.java:104) at com.view.AbstractStylePage.init(AbstractStylePage.java:96) at wicket.quickstart.AbstractAuthenticationPage.init(AbstractAuthenticationPage.java:29) at wicket.quickstart.LoginPage.init(LoginPage.java:82) ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Rendering at constructor?
Hi! 1.4.8. Unfortunately I don't quite know how to reproduce, but it is somehow related to redirectrespose/intercept exceptions and possibly also some other exceptions I will post more info when I get some. ** Martin 2010/9/28 Martin Grigorov mgrigo...@apache.org: Which version of Wicket ? Many apps/tests/examples use this and this is first time I see such problem. Can you create a ticket with a quickstart, please. On Tue, Sep 28, 2010 at 12:17 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Hi! How is it possible that this error occurs at page constructor? Caused by: org.apache.wicket.WicketRuntimeException: Cannot modify component hierarchy after render phase has started (page version cant change then anymore) at org.apache.wicket.Component.checkHierarchyChange(Component.java:3512) at org.apache.wicket.MarkupContainer.remove(MarkupContainer.java:525) at org.apache.wicket.MarkupContainer.addedComponent(MarkupContainer.java:936) at org.apache.wicket.MarkupContainer.add(MarkupContainer.java:142) at com.view.AbstractStylePage.addStyleContainer(AbstractStylePage.java:111) at com.view.AbstractStylePage.init(AbstractStylePage.java:104) at com.view.AbstractStylePage.init(AbstractStylePage.java:96) at wicket.quickstart.AbstractAuthenticationPage.init(AbstractAuthenticationPage.java:29) at wicket.quickstart.LoginPage.init(LoginPage.java:82) ** Martin - 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: Rendering at constructor?
Hi! Here is the rest of the stacktrace: at wicket.quickstart.AbstractAuthenticationPage.init(AbstractAuthenticationPage.java:29) at wicket.quickstart.LoginPage.init(LoginPage.java:82) at wicket.quickstart.TakpApplication.getEffectiveLoginPage(TakpApplication.java:2573) at com.view.TakpAuthorizationStrategy.onUnauthorizedInstantiation(TakpAuthorizationStrategy.java:144) at org.apache.wicket.Application$1.onInstantiation(Application.java:292) at org.apache.wicket.Application.notifyComponentInstantiationListeners(Application.java:1039) at org.apache.wicket.Component.init(Component.java:920) at org.apache.wicket.MarkupContainer.init(MarkupContainer.java:113) at org.apache.wicket.MarkupContainer.init(MarkupContainer.java:105) at org.apache.wicket.Page.init(Page.java:297) at org.apache.wicket.markup.html.WebPage.init(WebPage.java:233) at com.view.TakpWebPage.init(TakpWebPage.java:64) at com.view.AbstractStylePage.init(AbstractStylePage.java:103) at com.view.AbstractStylePage.init(AbstractStylePage.java:96) at com.view.application.MainPage.init(MainPage.java:92) ... 36 more ** Martin 2010/9/28 Martin Makundi martin.maku...@koodaripalvelut.com: Hi! 1.4.8. Unfortunately I don't quite know how to reproduce, but it is somehow related to redirectrespose/intercept exceptions and possibly also some other exceptions I will post more info when I get some. ** Martin 2010/9/28 Martin Grigorov mgrigo...@apache.org: Which version of Wicket ? Many apps/tests/examples use this and this is first time I see such problem. Can you create a ticket with a quickstart, please. On Tue, Sep 28, 2010 at 12:17 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Hi! How is it possible that this error occurs at page constructor? Caused by: org.apache.wicket.WicketRuntimeException: Cannot modify component hierarchy after render phase has started (page version cant change then anymore) at org.apache.wicket.Component.checkHierarchyChange(Component.java:3512) at org.apache.wicket.MarkupContainer.remove(MarkupContainer.java:525) at org.apache.wicket.MarkupContainer.addedComponent(MarkupContainer.java:936) at org.apache.wicket.MarkupContainer.add(MarkupContainer.java:142) at com.view.AbstractStylePage.addStyleContainer(AbstractStylePage.java:111) at com.view.AbstractStylePage.init(AbstractStylePage.java:104) at com.view.AbstractStylePage.init(AbstractStylePage.java:96) at wicket.quickstart.AbstractAuthenticationPage.init(AbstractAuthenticationPage.java:29) at wicket.quickstart.LoginPage.init(LoginPage.java:82) ** Martin - 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
Bug in CharSetUtil/Map?
Hi, We are experiencing some problems in CharSetUtil.getEncoding(). When used, we see the following stacktrace appear: java.lang.IndexOutOfBoundsException: Index: 4, Size: 0 at java.util.ArrayList.add(ArrayList.java:367) at org.apache.wicket.extensions.util.encoding.CharSetMap.init(CharSetMap.java:238) at org.apache.wicket.extensions.util.encoding.CharSetUtil.initialize(CharSetUtil.java:72) at org.apache.wicket.extensions.util.encoding.CharSetUtil.getEncoding(CharSetUtil.java:102) As I understand the code in CharSetMap, it looks like the construction of the encodings array list fails. The paths it tries to load encoding map files from yield exceptions causing the array list to remain empty. We already tried adding (as suggested on the mailing list earlier): getMarkupSettings().setDefaultMarkupEncoding(UTF-8); to our WebApplication#init method, but the issue remains. Any ideas on how to resolve this, or should we create a JIRA issue? Regards, -- Jan Willem Janssen, M.Sc. software engineer, Development __ Planon B.V. Wijchenseweg 8 6537 TL Nijmegen P.O. Box 38074 6503 AB Nijmegen The Netherlands T: +31 (0) 24 648 7662 F: +31 (0) 24 642 2942 E: j.jans...@planon.nl W: www.planon-fm.com Deze email en alle bijlagen zijn slechts voor gebruik door de beoogde ontvanger. De email kan intellectueel eigendom en/of vertrouwelijke informatie bevatten. Het mag niet worden gekopieerd, openbaar gemaakt, bewaard of gebruikt worden door anderen dan waarvoor deze bestemd is. Bent u niet de beoogde ontvanger,verwijdert u dan deze email met alle bijlagen en kopieën onmiddellijk en informeer de afzender. This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. ``I want to create machines that do exactly what I want them to do...'' -- Strange Machines, The Gathering - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Putting HTML files in src/main/webapp
Could i change html resource folder, even if my project don't have a maven folder structure? I mean no resources folder, etc.? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Offline-Applications-tp1883788p2716953.html Sent from the Users forum 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: automatically sizing modal window
I think if the modal window is a panel, not a Page, then it auto sizes its height. On Mon, Sep 27, 2010 at 5:41 PM, Martin Grigorov mgrigo...@apache.org wrote: patches are welcome especially if they work cross-browser ;-) On Mon, Sep 27, 2010 at 11:23 PM, mzem...@osc.state.ny.us wrote: Sounds like a nice feature, however be careful, if the content is too large the close button may be off-screen and make it impossible to close. So maybe it should auto adjust within the bounds of the screen... From: andrea del bene andrea.on@libero.it To: users@wicket.apache.org Date: 09/27/2010 05:04 PM Subject: Re: automatically sizing modal window Hi Martin, what I'd like to have is a window that automatically adjusts its height and width in order to ensure that all its content it's always visible without scrollbars. I think it could be done with some JavaScript code. Do you think it's possible to implement such behavior? Thank you in advance! Can you give more information about this feature, please. Either here or in the ticket. What are the current obstacles? How do you want it to be? Etc. On Sun, Sep 26, 2010 at 3:49 PM, andrea del beneandrea.on@libero.itwrote: On 09/25/2010 02:30 PM, Fernando Wermus wrote: I would like so much this feature. It is so important to me! On Sat, Sep 25, 2010 at 5:51 AM, Josh Kamaujoshnet2...@gmail.com wrote: Hi guys, Is there are way to ensure that a modal window automatically sizes to fit the available content? the default size seems sometimes too big and sometimes too small for the contents. Regards. Josh - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org Notice: This communication, including any attachments, is intended solely for the use of the individual or entity to which it is addressed. This communication may contain information that is protected from disclosure under State and/or Federal law. Please notify the sender immediately if you have received this communication in error and delete this email from your system. If you are not the intended recipient, you are requested not to disclose, copy, distribute or take any action in reliance on the contents of this information. -- Anna Simbirtsev (416) 729-7331 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
pagemap and link
Hi, How can i open a link with a different pagemap so that i expect not to get page Expired error. Link link = new Link{ public void onClick() { // how can i set a new page map here ? } } Thanks.
ModalWindow with input type = submit
Hi all, In our ModalWindow, we have forms that have submit buttons (input type = submit /). We found that after a user closes a modal window, and then the user presses the Enter key, an exception is thrown saying that the submit button is not visible. Is there any solution for this other than setting the input type to button? Thanks! Regards, Ces
PDF generation
We need to generate some PDFs containing formatted text, tables, and images in a certain layout from Wicket application. What PDF library work best with Wicket? FOP, iText, something else? Alex
Re: pagemap and link
This will not save you. You need BookmarkableLink for this case. 2010/9/28 Altuğ Bilgin Altıntaş alt...@gmail.com Hi, How can i open a link with a different pagemap so that i expect not to get page Expired error. Link link = new Link{ public void onClick() { // how can i set a new page map here ? } } Thanks.
Re: PDF generation
You the library you like the most. Wicket don't care about that. Just stream the generated document to the browser - search in Google how to do that. It has been discussed many times. On Tue, Sep 28, 2010 at 2:49 PM, Alex Zeit zeita...@googlemail.com wrote: We need to generate some PDFs containing formatted text, tables, and images in a certain layout from Wicket application. What PDF library work best with Wicket? FOP, iText, something else? Alex
Re: PDF generation
I use iReport and JasperReport library. regards. On Tue, Sep 28, 2010 at 3:49 PM, Alex Zeit zeita...@googlemail.com wrote: We need to generate some PDFs containing formatted text, tables, and images in a certain layout from Wicket application. What PDF library work best with Wicket? FOP, iText, something else? Alex
RE: sanity check request for fix regarding the dreaded PageExpiredException
Thanks Igor and Alex for the feedback. It is very much appreciated! Joe -Original Message- From: Alex Rass [mailto:a...@itbsllc.com] Sent: Monday, September 27, 2010 11:47 AM To: users@wicket.apache.org Subject: RE: sanity check request for fix regarding the dreaded PageExpiredException Igor's is 100% right Plus you are forgetting that if you use the default page url constructor - it goes by interface number which will/may change after a redeploy. So your lost url bullet can be fixed if you use some url creation strategy that solidifies in it enough of the path that you can recreate your last page location Then maybe add the important parts of the user state to the same strategy and you are there. There are a bunch of examples on how to do this, but I am feeling too lazy to go search ;) - Alex -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Monday, September 27, 2010 11:28 AM To: users@wicket.apache.org Subject: Re: sanity check request for fix regarding the dreaded PageExpiredException you can try it and see if it works for your particular usecases. there may still be some edges that will break, like links you actually want to run against an older version of the page because they depend on the component hierarchy that existed then, etc. -igor On Fri, Sep 24, 2010 at 7:56 AM, Joe Hudson joe.hud...@clear2pay.com wrote: Hi, I know there have been several existing topics around this issue (http://apache-wicket.1842946.n4.nabble.com/debugging-PageExpiredExceptions- td1882040.html) for example. The reason that I am asking for a sanity check is because I plan to use an alternative approach to solving this issue and would like feedback to make sure there isn't a reason I shouldn't be doing this. The common approach is to catch the exception and return a new instance of the requested page. This seems to have some key drawbacks IMHO: 1) this only works with bookmarkable links 2) you lose any modifications to the model that happened after the page was originally loaded but before the exception occured 3) any data on the client may potentially be out of sync with the server state if not updated by the request that caused the exception (because the new page was loaded but that client representation is still a picture of the previous page with the previous model). Although this would be resolved by a form submit behavior - you would still have problems in the exceptional cases where the model is updated individually by input field ajax change events. It seems that the page version number is only necessary for a stateless application and in an ajax-oriented application you would always want to work with the latest page version. We seem to hit these issues when multiple ajax requests that target a particular page happen concurrently because the page version is incremented when the initial ajax request is made but all other ajax requests that are initiated before the initial ajax request response reference a now outdated page version number. So, after all that background - do you think this is a valid fix for an ajax-oriented application: Override the default SecondLevelCachePageMap and as long as the requested page id matches the page id of getLastPage() just return the last page. Your thoughts would be appreciated and sorry for the long email but I wanted to provide background to make sure that the fix was valid for my particular solution (because I know the fix would not be appropriate for a stateless application). Thanks Joe Hudson - 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: pagemap and link
BookmarkableLink ?? Do you mean BookmarkablePageLink 2010/9/28 Martin Grigorov mgrigo...@apache.org This will not save you. You need BookmarkableLink for this case. 2010/9/28 Altuğ Bilgin Altıntaş alt...@gmail.com Hi, How can i open a link with a different pagemap so that i expect not to get page Expired error. Link link = new Link{ public void onClick() { // how can i set a new page map here ? } } Thanks.
Re: pagemap and link
The same. 2010/9/28 Altuğ Bilgin Altıntaş alt...@gmail.com BookmarkableLink ?? Do you mean BookmarkablePageLink 2010/9/28 Martin Grigorov mgrigo...@apache.org This will not save you. You need BookmarkableLink for this case. 2010/9/28 Altuğ Bilgin Altıntaş alt...@gmail.com Hi, How can i open a link with a different pagemap so that i expect not to get page Expired error. Link link = new Link{ public void onClick() { // how can i set a new page map here ? } } Thanks.
Re: pagemap and link
I need onClick method so BookmarkablePageLink is not for me. Am i right ? Also i search inside BookmarkablePageLink and i think the key point is to generate Link - getURL but i couldn't achieve to generate the right Url which doesn't cause Page Expired . I read the mailing list and see Igor wrote that Use different PageMap to get rid of Page Expired but still couldn't find how to set a new pageMap into Link. Thanks. 2010/9/28 Martin Grigorov mgrigo...@apache.org The same. 2010/9/28 Altuğ Bilgin Altıntaş alt...@gmail.com BookmarkableLink ?? Do you mean BookmarkablePageLink 2010/9/28 Martin Grigorov mgrigo...@apache.org This will not save you. You need BookmarkableLink for this case. 2010/9/28 Altuğ Bilgin Altıntaş alt...@gmail.com Hi, How can i open a link with a different pagemap so that i expect not to get page Expired error. Link link = new Link{ public void onClick() { // how can i set a new page map here ? } } Thanks.
Re: PDF generation
Martin, Josh, Thank you very much for your answers. iReport using iText, that is obviously plus for iText. 2010/9/28 Josh Kamau joshnet2...@gmail.com I use iReport and JasperReport library. regards. On Tue, Sep 28, 2010 at 3:49 PM, Alex Zeit zeita...@googlemail.com wrote: We need to generate some PDFs containing formatted text, tables, and images in a certain layout from Wicket application. What PDF library work best with Wicket? FOP, iText, something else? Alex
RE: PDF generation
iText seems to work well, but I use it through JasperReports so most of the iText integration is hidden away. -Original Message- From: Alex Zeit [mailto:zeita...@googlemail.com] Sent: Tuesday, September 28, 2010 7:50 AM To: users@wicket.apache.org Subject: PDF generation We need to generate some PDFs containing formatted text, tables, and images in a certain layout from Wicket application. What PDF library work best with Wicket? FOP, iText, something else? Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: PDF generation
PD4ML -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/PDF-generation-tp2717158p2717265.html Sent from the Users forum 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
multiple html pages to 1 class
I know this has been raised tons of times, But has anyone ever figured out: how to do this and not screw up page versioning? Any sort of CMS would need this. I am ok with going to 1.5.M2 for this, btw, if that solves it. - Alex. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
how to get html resources in wicket
could anyone explain how wicket searches the context path for resources? i mean is it different from the local drive path that i use for non-web applications? because im having a hard time tracing the url of wicket pages, and trying to guess where my resources are... thanks in advance ciao, -elesi -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-get-html-resources-in-wicket-tp2717340p2717340.html Sent from the Users forum 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 get resource path of files in server to be used by wicket
could anyone explain how wicket searches the context path for resources? i mean is it different from the local drive path that i use for non-web applications? because im having a hard time tracing the url of wicket pages, and trying to guess where my resources are... thanks in advance ciao, -elesi -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-get-resource-path-of-files-in-server-to-be-used-by-wicket-tp2717381p2717381.html Sent from the Users forum 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: Possible to Set Multiple Columns in CheckGroup?
Thanks! -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Monday, September 27, 2010 12:21 PM To: users@wicket.apache.org Subject: Re: Possible to Set Multiple Columns in CheckGroup? since you control the markup of CheckGroup/Check components you can align them however you like, yourself. -igor On Mon, Sep 27, 2010 at 10:04 AM, Shelli Orton shelli.or...@sjrb.ca wrote: Hi, Is there a way to set the number of columns that a CheckGroup will render the checkboxes? I have a group with 13 boxes and I would like to render it in two columns (one of 7 and one of 6). Thanks! Shelli - 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: Setting Checked Boxes in CheckGroup
Just wondering if anyone has had a chance to look at the quickstart project and could tell me what I'm doing wrong... Shelli -Original Message- From: Shelli Orton Sent: Thursday, September 23, 2010 2:24 PM To: users@wicket.apache.org Subject: RE: Setting Checked Boxes in CheckGroup I have attached a sample Eclipse project that exhibits the behaviour. If someone can take the time to look at it and help me solve the problem, it would be greatly appreciated. Please let me know if you need anything else. Thanks again! Shelli -Original Message- From: Erik van Oosten [mailto:e.vanoos...@grons.nl] Sent: Thursday, September 23, 2010 12:13 PM To: users@wicket.apache.org Subject: Re: Setting Checked Boxes in CheckGroup See http://wicket.apache.org/start/quickstart.html Use this to create a small application that exhibits the bug. Regards, Erik. Op 23-09-10 19:26, Shelli Orton schreef: What do you mean by quickstart? Shelli -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Thursday, September 23, 2010 10:57 AM To: users@wicket.apache.org Subject: Re: Setting Checked Boxes in CheckGroup im going to guess something is wrong with your model. hard to tell without a quickstart. -igor -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Setting Checked Boxes in CheckGroup
your SelectOption class is missing equals and hashcode -igor On Tue, Sep 28, 2010 at 8:38 AM, Shelli Orton shelli.or...@sjrb.ca wrote: Just wondering if anyone has had a chance to look at the quickstart project and could tell me what I'm doing wrong... Shelli -Original Message- From: Shelli Orton Sent: Thursday, September 23, 2010 2:24 PM To: users@wicket.apache.org Subject: RE: Setting Checked Boxes in CheckGroup I have attached a sample Eclipse project that exhibits the behaviour. If someone can take the time to look at it and help me solve the problem, it would be greatly appreciated. Please let me know if you need anything else. Thanks again! Shelli -Original Message- From: Erik van Oosten [mailto:e.vanoos...@grons.nl] Sent: Thursday, September 23, 2010 12:13 PM To: users@wicket.apache.org Subject: Re: Setting Checked Boxes in CheckGroup See http://wicket.apache.org/start/quickstart.html Use this to create a small application that exhibits the bug. Regards, Erik. Op 23-09-10 19:26, Shelli Orton schreef: What do you mean by quickstart? Shelli -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Thursday, September 23, 2010 10:57 AM To: users@wicket.apache.org Subject: Re: Setting Checked Boxes in CheckGroup im going to guess something is wrong with your model. hard to tell without a quickstart. -igor -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: StatelessLink
even if the page is stateful, the url the stateless link generates should be stateless...got a quickstart? -igor On Tue, Sep 28, 2010 at 2:09 AM, Martin Grigorov mgrigo...@apache.org wrote: You may use wicket-devutils. There is a stateless checker. It will tell you which component makes the page stateful. 2010/9/28 Altuğ Bilgin Altıntaş alt...@gmail.com Hi ; I used StatelessLink but i still get Page Expired , is it normal ? Also this StatelessLink is in StatelessForm and Page is Bookmarkable but wicket - 1.4.9 still generates : http://localhost:8080/ac/customer?wicket:interface=:1:frmSearch:linkExcel::ILinkListener :: why ? Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Bug in CharSetUtil/Map?
file a jira with a quickstart -igor On Tue, Sep 28, 2010 at 4:16 AM, Jan Willem Janssen janwillem.jans...@planon.nl wrote: Hi, We are experiencing some problems in CharSetUtil.getEncoding(). When used, we see the following stacktrace appear: java.lang.IndexOutOfBoundsException: Index: 4, Size: 0 at java.util.ArrayList.add(ArrayList.java:367) at org.apache.wicket.extensions.util.encoding.CharSetMap.init(CharSetMap.java:238) at org.apache.wicket.extensions.util.encoding.CharSetUtil.initialize(CharSetUtil.java:72) at org.apache.wicket.extensions.util.encoding.CharSetUtil.getEncoding(CharSetUtil.java:102) As I understand the code in CharSetMap, it looks like the construction of the encodings array list fails. The paths it tries to load encoding map files from yield exceptions causing the array list to remain empty. We already tried adding (as suggested on the mailing list earlier): getMarkupSettings().setDefaultMarkupEncoding(UTF-8); to our WebApplication#init method, but the issue remains. Any ideas on how to resolve this, or should we create a JIRA issue? Regards, -- Jan Willem Janssen, M.Sc. software engineer, Development __ Planon B.V. Wijchenseweg 8 6537 TL Nijmegen P.O. Box 38074 6503 AB Nijmegen The Netherlands T: +31 (0) 24 648 7662 F: +31 (0) 24 642 2942 E: j.jans...@planon.nl W: www.planon-fm.com Deze email en alle bijlagen zijn slechts voor gebruik door de beoogde ontvanger. De email kan intellectueel eigendom en/of vertrouwelijke informatie bevatten. Het mag niet worden gekopieerd, openbaar gemaakt, bewaard of gebruikt worden door anderen dan waarvoor deze bestemd is. Bent u niet de beoogde ontvanger,verwijdert u dan deze email met alle bijlagen en kopieën onmiddellijk en informeer de afzender. This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. ``I want to create machines that do exactly what I want them to do...'' -- Strange Machines, The Gathering - 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: multiple html pages to 1 class
let your page implement IMarkupResourceStreamProvider and IMarkupCacheKeyProvider and return whatever html you want, anything will do it as long as it matches component hierarchy. -igor On Tue, Sep 28, 2010 at 7:40 AM, Alex Rass a...@itbsllc.com wrote: I know this has been raised tons of times, But has anyone ever figured out: how to do this and not screw up page versioning? Any sort of CMS would need this. I am ok with going to 1.5.M2 for this, btw, if that solves it. - Alex. - 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: Setting Checked Boxes in CheckGroup
I added the missing methods and the default selected options are now checked. Thanks! Shelli -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Tuesday, September 28, 2010 9:54 AM To: users@wicket.apache.org Subject: Re: Setting Checked Boxes in CheckGroup your SelectOption class is missing equals and hashcode -igor On Tue, Sep 28, 2010 at 8:38 AM, Shelli Orton shelli.or...@sjrb.ca wrote: Just wondering if anyone has had a chance to look at the quickstart project and could tell me what I'm doing wrong... Shelli -Original Message- From: Shelli Orton Sent: Thursday, September 23, 2010 2:24 PM To: users@wicket.apache.org Subject: RE: Setting Checked Boxes in CheckGroup I have attached a sample Eclipse project that exhibits the behaviour. If someone can take the time to look at it and help me solve the problem, it would be greatly appreciated. Please let me know if you need anything else. Thanks again! Shelli -Original Message- From: Erik van Oosten [mailto:e.vanoos...@grons.nl] Sent: Thursday, September 23, 2010 12:13 PM To: users@wicket.apache.org Subject: Re: Setting Checked Boxes in CheckGroup See http://wicket.apache.org/start/quickstart.html Use this to create a small application that exhibits the bug. Regards, Erik. Op 23-09-10 19:26, Shelli Orton schreef: What do you mean by quickstart? Shelli -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Thursday, September 23, 2010 10:57 AM To: users@wicket.apache.org Subject: Re: Setting Checked Boxes in CheckGroup im going to guess something is wrong with your model. hard to tell without a quickstart. -igor -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - 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: how to get resource path of files in server to be used by wicket
what resources are you having troubles with? On Tue, Sep 28, 2010 at 10:19 AM, elesi jsar...@gmail.com wrote: could anyone explain how wicket searches the context path for resources? i mean is it different from the local drive path that i use for non-web applications? because im having a hard time tracing the url of wicket pages, and trying to guess where my resources are... thanks in advance ciao, -elesi -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-get-resource-path-of-files-in-server-to-be-used-by-wicket-tp2717381p2717381.html Sent from the Users forum 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 -- Jeremy Thomerson http://www.wickettraining.com
RE: multiple html pages to 1 class
Thanks, Igor. That's what I did. BUT as soon as I hit form submit - it does a round-trip and loses the page part in the URL, and I am down to site.com/?wicket... from having a nice site.com/page.html (and using getRequest() to grab the page name). So I have no way to know which page I am actually on anymore :) - Alex -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Tuesday, September 28, 2010 11:46 AM To: users@wicket.apache.org Subject: Re: multiple html pages to 1 class let your page implement IMarkupResourceStreamProvider and IMarkupCacheKeyProvider and return whatever html you want, anything will do it as long as it matches component hierarchy. -igor On Tue, Sep 28, 2010 at 7:40 AM, Alex Rass a...@itbsllc.com wrote: I know this has been raised tons of times, But has anyone ever figured out: how to do this and not screw up page versioning? Any sort of CMS would need this. I am ok with going to 1.5.M2 for this, btw, if that solves it. - Alex. - 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: multiple html pages to 1 class
If you're getting what template to use from the PageParameters, and then submitting a form, save it in a field in the page when you pull it from the PageParameters. On Tue, Sep 28, 2010 at 11:53 AM, Alex Rass a...@itbsllc.com wrote: Thanks, Igor. That's what I did. BUT as soon as I hit form submit - it does a round-trip and loses the page part in the URL, and I am down to site.com/?wicket... from having a nice site.com/page.html (and using getRequest() to grab the page name). So I have no way to know which page I am actually on anymore :) - Alex -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Tuesday, September 28, 2010 11:46 AM To: users@wicket.apache.org Subject: Re: multiple html pages to 1 class let your page implement IMarkupResourceStreamProvider and IMarkupCacheKeyProvider and return whatever html you want, anything will do it as long as it matches component hierarchy. -igor On Tue, Sep 28, 2010 at 7:40 AM, Alex Rass a...@itbsllc.com wrote: I know this has been raised tons of times, But has anyone ever figured out: how to do this and not screw up page versioning? Any sort of CMS would need this. I am ok with going to 1.5.M2 for this, btw, if that solves it. - Alex. - 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 -- Jeremy Thomerson http://www.wickettraining.com
RE: multiple html pages to 1 class
Yeah, smart approach, and I thought about that... It's no good because the URL becomes unusable right after. And I would need custom handling inside each form (or having to sub-class every form I use). And hitting reload or moving the tab to another window will most likely break it in some browsers. I even tried applying the QueryStringUrlCodingStrategy but it loses the page name as soon as you submit the form. Seems like a bug to me. One that prevents me from having a nice 1-class handler :( HybridUrlCodingStrategy has been used in some hacky tutorials, but you get the version at the end or the page name which makes everything fall apart. So I suspect solution is to fix the post form refresh of the url for the BookmarkablePageRequestTargetUrlCodingStrategy and/or for the QueryStringUrlCodingStrategy Or I am open to other suggestions. - Alex Rass -Original Message- From: Jeremy Thomerson [mailto:jer...@wickettraining.com] Sent: Tuesday, September 28, 2010 1:00 PM To: users@wicket.apache.org Subject: Re: multiple html pages to 1 class If you're getting what template to use from the PageParameters, and then submitting a form, save it in a field in the page when you pull it from the PageParameters. On Tue, Sep 28, 2010 at 11:53 AM, Alex Rass a...@itbsllc.com wrote: Thanks, Igor. That's what I did. BUT as soon as I hit form submit - it does a round-trip and loses the page part in the URL, and I am down to site.com/?wicket... from having a nice site.com/page.html (and using getRequest() to grab the page name). So I have no way to know which page I am actually on anymore :) - Alex -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Tuesday, September 28, 2010 11:46 AM To: users@wicket.apache.org Subject: Re: multiple html pages to 1 class let your page implement IMarkupResourceStreamProvider and IMarkupCacheKeyProvider and return whatever html you want, anything will do it as long as it matches component hierarchy. -igor On Tue, Sep 28, 2010 at 7:40 AM, Alex Rass a...@itbsllc.com wrote: I know this has been raised tons of times, But has anyone ever figured out: how to do this and not screw up page versioning? Any sort of CMS would need this. I am ok with going to 1.5.M2 for this, btw, if that solves it. - Alex. - 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 -- Jeremy Thomerson http://www.wickettraining.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: multiple html pages to 1 class
Show us some code... What I suggested should work - you won't lose it after submitting a form, and no form will need to know about it. Something like this: class MyWackyMultiHtmlPage extends WebPage { private final String htmlTemplate; MyWackyMultiHtmlPage(PageParameters pp) { htmlTemplate = pp.getAsString(yourkey); add(new Form(...) { ...}); } } That htmlTemplate field will be serialized with the page. When the form is submitted, it will be returned to exactly the same instance of the page, with the htmlTemplate variable still in tact. So, if you can get it from the URL the first time (which is what you said you were trying to do), then you save it for all stateful changes of the page. Just use that field in the methods that resolve the markup and cache keys. On Tue, Sep 28, 2010 at 12:34 PM, Alex Rass a...@itbsllc.com wrote: Yeah, smart approach, and I thought about that... It's no good because the URL becomes unusable right after. And I would need custom handling inside each form (or having to sub-class every form I use). And hitting reload or moving the tab to another window will most likely break it in some browsers. I even tried applying the QueryStringUrlCodingStrategy but it loses the page name as soon as you submit the form. Seems like a bug to me. One that prevents me from having a nice 1-class handler :( HybridUrlCodingStrategy has been used in some hacky tutorials, but you get the version at the end or the page name which makes everything fall apart. So I suspect solution is to fix the post form refresh of the url for the BookmarkablePageRequestTargetUrlCodingStrategy and/or for the QueryStringUrlCodingStrategy Or I am open to other suggestions. - Alex Rass -Original Message- From: Jeremy Thomerson [mailto:jer...@wickettraining.com] Sent: Tuesday, September 28, 2010 1:00 PM To: users@wicket.apache.org Subject: Re: multiple html pages to 1 class If you're getting what template to use from the PageParameters, and then submitting a form, save it in a field in the page when you pull it from the PageParameters. On Tue, Sep 28, 2010 at 11:53 AM, Alex Rass a...@itbsllc.com wrote: Thanks, Igor. That's what I did. BUT as soon as I hit form submit - it does a round-trip and loses the page part in the URL, and I am down to site.com/?wicket... from having a nice site.com/page.html (and using getRequest() to grab the page name). So I have no way to know which page I am actually on anymore :) - Alex -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Tuesday, September 28, 2010 11:46 AM To: users@wicket.apache.org Subject: Re: multiple html pages to 1 class let your page implement IMarkupResourceStreamProvider and IMarkupCacheKeyProvider and return whatever html you want, anything will do it as long as it matches component hierarchy. -igor On Tue, Sep 28, 2010 at 7:40 AM, Alex Rass a...@itbsllc.com wrote: I know this has been raised tons of times, But has anyone ever figured out: how to do this and not screw up page versioning? Any sort of CMS would need this. I am ok with going to 1.5.M2 for this, btw, if that solves it. - Alex. - 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 -- Jeremy Thomerson http://www.wickettraining.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Jeremy Thomerson http://www.wickettraining.com
Cancelling ala AjaxLink vs AjaxButton
I am popping up a ModalWindow with a form - which has Cancel and Submit buttons. Unfortunately, I can't get the Cancel button to close the window. It keeps submitting to the validator, stays on the form and echos validation text to the feedback panel. I can get it to work with an AjaxLink. lt;a href=# wicket:id=cancel.linkgt;lt;wicket:message key=Application.cancelButton.label/gt;lt;/agt; lt;input wicket:id=cancel.button type=button wicket:message=value:Application.cancelButton.label/gt; final AjaxLink cancelLink = new AjaxLink(cancel.link) { private static final long serialVersionUID = 1L; @Override public void onClick(final AjaxRequestTarget target) { modal.close(target); } }; add(cancelLink); final AjaxButton cancel = new AjaxButton(cancel.button, AreaEditorForm.this) { private static final long serialVersionUID = 1L; @Override protected void onSubmit(final AjaxRequestTarget target, final Form? form) { modal.close(target); } }; cancel.setDefaultFormProcessing(false); add(cancel); I thought that I could set default form processing = false but that doesn't seem to be enough. Thoughts? -Luther -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Cancelling-ala-AjaxLink-vs-AjaxButton-tp2717635p2717635.html Sent from the Users forum 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: Cancelling ala AjaxLink vs AjaxButton
that should be enough, alternatively use AjaxLink instead -igor On Tue, Sep 28, 2010 at 10:49 AM, LutherBaker lutherba...@gmail.com wrote: I am popping up a ModalWindow with a form - which has Cancel and Submit buttons. Unfortunately, I can't get the Cancel button to close the window. It keeps submitting to the validator, stays on the form and echos validation text to the feedback panel. I can get it to work with an AjaxLink. lt;a href=# wicket:id=cancel.linkgt;lt;wicket:message key=Application.cancelButton.label/gt;lt;/agt; lt;input wicket:id=cancel.button type=button wicket:message=value:Application.cancelButton.label/gt; final AjaxLink cancelLink = new AjaxLink(cancel.link) { private static final long serialVersionUID = 1L; �...@override public void onClick(final AjaxRequestTarget target) { modal.close(target); } }; add(cancelLink); final AjaxButton cancel = new AjaxButton(cancel.button, AreaEditorForm.this) { private static final long serialVersionUID = 1L; �...@override protected void onSubmit(final AjaxRequestTarget target, final Form? form) { modal.close(target); } }; cancel.setDefaultFormProcessing(false); add(cancel); I thought that I could set default form processing = false but that doesn't seem to be enough. Thoughts? -Luther -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Cancelling-ala-AjaxLink-vs-AjaxButton-tp2717635p2717635.html Sent from the Users forum 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
Estimated number of developers in the Wicket community
Hi fellow Wicketers, I've been using Wicket for about 4 years now and, as predicted, I'm addicted to the productivity I get by being able to perform unconstrained object oriented design and development at both the model and user interface layers. My company has been contracted by a very large multinational company to build a website for a government body. Naturally I want to use Wicket as the code is so optimal and so development will be much more productive but some at the company are pushing for GWT even though they have zero Java experience and obviously no experience in either Wicket or GWT. To counter the problem of doing all the ugly RPC normally required by GWT to bind UI elements with domain objects they are proposing to use a third party tool that manages some of that 'object marshalling RPC madness through some XML configuration and some specific interface implementations. It sounds like the third party tool is there to 'workaround' the 'hack' that is normally required when binding UIs to models when coding with GWT. My philosophy is if you don't use a hack in the first place then you don't need to work around the hack. I showed them Wicket and I built a sample app and they were impressed with the small amount of code required to build UIs that interact with underlying domain models but they seem to be desiring the GWT + third party solution because they need to be able to satisfy unit test/verification and non specific 'popularity' criteria to their client. Given that a significant part of the third party tool is commercial/closed source, I'm not sure how they will perform the unit test/verification testing. The 'popularity' test is very vague but I understand it's purpose, they want to ensure that they use products that are widely used and have an active user community: which is very true of Wicket. Does anyone have some numbers on this? Like how many Wicket developers there are, or how many websites are Wicket driven? Is there a page on the wicket website that contains a list of the companies/products that use Wicket - if not, should we add one? Any other points I should bring to the customer's attention to help them in their decision?
Re: Estimated number of developers in the Wicket community
On Tue, Sep 28, 2010 at 2:41 PM, Chris Colman chr...@stepaheadsoftware.comwrote: The 'popularity' test is very vague but I understand it's purpose, they want to ensure that they use products that are widely used and have an active user community: which is very true of Wicket. Does anyone have some numbers on this? Like how many Wicket developers there are, or how many websites are Wicket driven? Is there a page on the wicket website that contains a list of the companies/products that use Wicket - if not, should we add one? There's no way to quantify this metric. And don't let them use the false job search *technique* to think that they know. There are too many reasons that you don't get accurate numbers from this. There is a page on the wiki that lists a fraction of the sites using Wicket. https://cwiki.apache.org/WICKET/websites-based-on-wicket.html Ultimately, I would direct them away from this. It doesn't *actually* matter. What matters is this (in roughly this order): 1. Pick a technology that fits your needs 2. Pick a technology that is productive 3. Pick a technology that, when you hit a stumbling block, you can get help with. You've already demonstrated one and two. Number three can be demonstrated by asking them to subscribe to the dev and users lists here for a week. Then dare them to find an open source web framework that has better community support. I haven't seen one. -- Jeremy Thomerson http://www.wickettraining.com
Re: Estimated number of developers in the Wicket community
A couple that come to mind, but aren't on that list are: www.springer.com - publisher mobile.walmart.com - retailer Scott On Tue, Sep 28, 2010 at 12:53 PM, Jeremy Thomerson jer...@wickettraining.com wrote: On Tue, Sep 28, 2010 at 2:41 PM, Chris Colman chr...@stepaheadsoftware.comwrote: The 'popularity' test is very vague but I understand it's purpose, they want to ensure that they use products that are widely used and have an active user community: which is very true of Wicket. Does anyone have some numbers on this? Like how many Wicket developers there are, or how many websites are Wicket driven? Is there a page on the wicket website that contains a list of the companies/products that use Wicket - if not, should we add one? There's no way to quantify this metric. And don't let them use the false job search *technique* to think that they know. There are too many reasons that you don't get accurate numbers from this. There is a page on the wiki that lists a fraction of the sites using Wicket. https://cwiki.apache.org/WICKET/websites-based-on-wicket.html Ultimately, I would direct them away from this. It doesn't *actually* matter. What matters is this (in roughly this order): 1. Pick a technology that fits your needs 2. Pick a technology that is productive 3. Pick a technology that, when you hit a stumbling block, you can get help with. You've already demonstrated one and two. Number three can be demonstrated by asking them to subscribe to the dev and users lists here for a week. Then dare them to find an open source web framework that has better community support. I haven't seen one. -- Jeremy Thomerson http://www.wickettraining.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Estimated number of developers in the Wicket community
Chris Colman chr...@stepaheadsoftware.com Tue, Sep 28, 2010 at 2:41 PM: The 'popularity' test is very vague but I understand it's purpose, they want to ensure that they use products that are widely used and have an active user community: which is very true of Wicket. Does anyone have some numbers on this? Like how many Wicket developers there are, or how many websites are Wicket driven? ... Jeremy Thomerson jer...@wickettraining.com Tue, Sep 28, 2010 at 2:53 PM: There's no way to quantify this metric. ... There is a page on the wiki that lists a fraction of the sites using Wicket. https://cwiki.apache.org/WICKET/websites-based-on-wicket.html That page would help, but a mere fraction of the sites might give the wrong idea. Jeremy: Ultimately, I would direct them away from this. It doesn't *actually* matter. What matters is this (in roughly this order): 1. Pick a technology that fits your needs 2. Pick a technology that is productive 3. Pick a technology that, when you hit a stumbling block, you can get help with. You've already demonstrated one and two. Not really. He has yet to demonstrated that Wicket meets their popularity needs. In lieu of having them subscribe to the message list, maybe he can direct them to the archived messages on Nabble. Is there a way a program could extract a count of the participants (i.e. distinct e-mail addresses) in the archived mailing list for a variety of time periods (to show growth in user base)? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Deploy Wicket App as Liferay Portlet
I am trying to deploy a Wicket application as a portlet in Liferay 5.2.3 bundled with Tomcat 6.0. I found this which has been very helpful: http://mail-archives.apache.org/mod_mbox/wicket-users/201001.mbox/browse r http://mail-archives.apache.org/mod_mbox/wicket-users/201001.mbox/brows er When I tried to add the application to my portal, this error was thrown: Sep 28, 2010 4:42:18 PM org.apache.catalina.core.ApplicationDispatcher invoke SEVERE: Servlet.service() for servlet MyApp threw exception java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1937) at org.apache.wicket.protocol.http.portlet.PortletServletRequestWrapper.mak eServletPath(PortletServletRequestWrapper.java:71) ... I thought this may have something to do with the url-pattern on my filter-mapping. Initially I set my web.xml to have this: filter-mapping filter-nameMyApp/filter-name url-pattern/myApp/url-pattern dispatcherREQUEST/dispatcher dispatcherINCLUDE/dispatcher dispatcherFORWARD/dispatcher /filter-mapping and my portlet.xml to have: portlet descriptionMy App/description portlet-nameMyApp/portlet-name display-nameMyApp/display-name portlet-classorg.apache.wicket.protocol.http.portlet.WicketPortlet/po rtlet-class init-param namewicketFilterPath/name value/myApp/value /init-param ... /portlet So, I changed my web.xml to: filter-mapping filter-nameMyApp/filter-name url-pattern/myApp/url-pattern dispatcherREQUEST/dispatcher dispatcherINCLUDE/dispatcher dispatcherFORWARD/dispatcher /filter-mapping and my portlet.xml to: portlet descriptionMy App/description portlet-nameMyApp/portlet-name display-nameMyApp/display-name portlet-classorg.apache.wicket.protocol.http.portlet.WicketPortlet/po rtlet-class init-param namewicketFilterPath/name value/myApp/value /init-param ... /portlet Unfortunately, that resulted in this error when trying to deploy the application (and then it gets undeployed): SEVERE: Exception starting filter MyApp java.lang.IllegalArgumentException: filter-mapping for WicketFilter MyApp must start with '/' and end with '*'. at org.apache.wicket.protocol.http.WicketFilter.getFilterPath(WicketFilter. java:944) at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:682) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFi lterConfig.java:275) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(Applicatio nFilterConfig.java:397) at org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilte rConfig.java:108) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.jav a:3709) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4363 ) at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:11 16) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1214) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:29 3) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu pport.java:117) at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.j ava:1337) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.proc essChildren(ContainerBase.java:1601) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.proc essChildren(ContainerBase.java:1610) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run( ContainerBase.java:1590) at java.lang.Thread.run(Thread.java:619) Does anyone know what could have caused the initial error assuming it wasn't caused by the url-pattern/wicketFilterPath? Any insight is great appreciated, Shelli
RE: Deploy Wicket App as Liferay Portlet
Of course, as soon as I send this, I find the solution... Apparently Wicket portlets require a URL pattern like this: url-pattern/myApp/*/url-pattern Shelli -Original Message- From: Shelli Orton Sent: Tuesday, September 28, 2010 4:50 PM To: users@wicket.apache.org Subject: Deploy Wicket App as Liferay Portlet I am trying to deploy a Wicket application as a portlet in Liferay 5.2.3 bundled with Tomcat 6.0. I found this which has been very helpful: http://mail-archives.apache.org/mod_mbox/wicket-users/201001.mbox/browse r http://mail-archives.apache.org/mod_mbox/wicket-users/201001.mbox/brows er When I tried to add the application to my portal, this error was thrown: Sep 28, 2010 4:42:18 PM org.apache.catalina.core.ApplicationDispatcher invoke SEVERE: Servlet.service() for servlet MyApp threw exception java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1937) at org.apache.wicket.protocol.http.portlet.PortletServletRequestWrapper.mak eServletPath(PortletServletRequestWrapper.java:71) ... I thought this may have something to do with the url-pattern on my filter-mapping. Initially I set my web.xml to have this: filter-mapping filter-nameMyApp/filter-name url-pattern/myApp/url-pattern dispatcherREQUEST/dispatcher dispatcherINCLUDE/dispatcher dispatcherFORWARD/dispatcher /filter-mapping and my portlet.xml to have: portlet descriptionMy App/description portlet-nameMyApp/portlet-name display-nameMyApp/display-name portlet-classorg.apache.wicket.protocol.http.portlet.WicketPortlet/po rtlet-class init-param namewicketFilterPath/name value/myApp/value /init-param ... /portlet So, I changed my web.xml to: filter-mapping filter-nameMyApp/filter-name url-pattern/myApp/url-pattern dispatcherREQUEST/dispatcher dispatcherINCLUDE/dispatcher dispatcherFORWARD/dispatcher /filter-mapping and my portlet.xml to: portlet descriptionMy App/description portlet-nameMyApp/portlet-name display-nameMyApp/display-name portlet-classorg.apache.wicket.protocol.http.portlet.WicketPortlet/po rtlet-class init-param namewicketFilterPath/name value/myApp/value /init-param ... /portlet Unfortunately, that resulted in this error when trying to deploy the application (and then it gets undeployed): SEVERE: Exception starting filter MyApp java.lang.IllegalArgumentException: filter-mapping for WicketFilter MyApp must start with '/' and end with '*'. at org.apache.wicket.protocol.http.WicketFilter.getFilterPath(WicketFilter. java:944) at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:682) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFi lterConfig.java:275) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(Applicatio nFilterConfig.java:397) at org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilte rConfig.java:108) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.jav a:3709) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4363 ) at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:11 16) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1214) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:29 3) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu pport.java:117) at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.j ava:1337) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.proc essChildren(ContainerBase.java:1601) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.proc essChildren(ContainerBase.java:1610) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run( ContainerBase.java:1590) at java.lang.Thread.run(Thread.java:619) Does anyone know what could have caused the initial error assuming it wasn't caused by the url-pattern/wicketFilterPath? Any insight is great appreciated, Shelli - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Cancelling ala AjaxLink vs AjaxButton
Thanks Igor, I've determined that something is not playing nicely here. The larger picture is this - user visits a page and clicks on Add to add a widget to the database. I pop up a ModalWindow with a form on it. User can (a) submit form, (b) cancel button (c) cancel link. I'd like to close the form on a successful submission or if the user clicks on either 'cancel' option. private static class AreaEditorForm extends FormArea { private static final long serialVersionUID = 1L; public AreaEditorForm(final String id, final Area area, final ModalWindow modal) { super(id, new CompoundPropertyModelArea(area)); final TextFieldString name = new TextFieldString(name); add(name); name.setRequired(true); name.add(new DefaultFocusBehavior()); final TextAreaString summary = new TextAreaString(summary); summary.setRequired(true); add(summary); add(new AjaxButton(submit.button, AreaEditorForm.this) { private static final long serialVersionUID = 1L; @Override protected void onSubmit(final AjaxRequestTarget target, final Form? form) { System.out.println(submit.button AjaxButton.onSubmit(target)); modal.close(target); } }); final AjaxButton cancel = new AjaxButton(cancel.button, AreaEditorForm.this) { private static final long serialVersionUID = 1L; @Override protected void onSubmit(final AjaxRequestTarget target, final Form? form) { System.out.println(cancel.button AjaxButton.onSubmit(target)); modal.close(target); } }; cancel.setDefaultFormProcessing(false); add(cancel); add(new AjaxLinkVoid(cancel.link) { private static final long serialVersionUID = 1L; @Override public void onClick(final AjaxRequestTarget target) { System.out.println(AjaxLink.onClick); modal.close(target); } }); } @Override protected void delegateSubmit(final IFormSubmittingComponent submittingComponent) { System.out.println(Form.delegateSubmit); super.delegateSubmit(submittingComponent); } @Override protected void onSubmit() { System.out.println(Form.onSubmit); super.onSubmit(); } } For some reason, neither AjaxButton for cancel or submit can close the window. The AjaxLink can - and that works in my situation for 'cancelling' but I have to be able to close the window after a successful submission and that code is not working in the onSubmit handlers (of either button). Am I missing a wire? One other anomaly - I can see the screen flicker on each submission or cancel (ie: I can tell a request is hitting the server). But, regardless of submission or canceling button, validation ALWAYS occurs. Per the required fields in the form - canceling does not seem to skip the validation eventhough I've included: cancel.setDefaultFormProcessing(false); Another anomaly, AjaxButton: A button that submits the form via ajax. Since this button takes the form as a constructor argument it does not need to be added to it unlike the Button component. but if I remove this line: add(cancel); wicket complains WicketMessage: Unable to find component with id 'cancel.button' ... If I place data in the two fields and then click on cancel, Form.delegateSubmit logs to the console followed by Form.onSubmit ... but I don't initially see cancel.button ... log to the console. In fact, I click the cancel button 4 more times before I actually see it echo it's println to the console. It is odd. Then I don't see that line for 4 more trys ... and then it happens again. If I vary the pace, I can get it to show up unpredictably at different times. The docs also mention: The default when there is a submitting IFormSubmittingComponent is to first call
Bookmarking, getting the url hash value
Hi, I've seen this topic mention a little bit around the place but I haven't seen any implementation of it so far. I'm looking into adding the ability to bookmark changes done by ajax in wicket. I'm planning on using the BBQ Jquery plugin and integration it with wicket. The hardest step is getting hash value from the url. The best way that I can see would be to get it passed into the page alongside with the page parameters. Is there anyway in wicket to access the hash value? I can add a bit of javscript to do a call back to wicket on page load but this isn't ideal. Or does anyone have any thoughts about this? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Bookmarking-getting-the-url-hash-value-tp2718131p2718131.html Sent from the Users forum 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: Cancelling ala AjaxLink vs AjaxButton
if onsubmit is not called most likely you have validation errors and to see them you have to add the feedback panel in the onerror handler of the button -igor On Tue, Sep 28, 2010 at 4:51 PM, LutherBaker lutherba...@gmail.com wrote: Thanks Igor, I've determined that something is not playing nicely here. The larger picture is this - user visits a page and clicks on Add to add a widget to the database. I pop up a ModalWindow with a form on it. User can (a) submit form, (b) cancel button (c) cancel link. I'd like to close the form on a successful submission or if the user clicks on either 'cancel' option. private static class AreaEditorForm extends FormArea { private static final long serialVersionUID = 1L; public AreaEditorForm(final String id, final Area area, final ModalWindow modal) { super(id, new CompoundPropertyModelArea(area)); final TextFieldString name = new TextFieldString(name); add(name); name.setRequired(true); name.add(new DefaultFocusBehavior()); final TextAreaString summary = new TextAreaString(summary); summary.setRequired(true); add(summary); add(new AjaxButton(submit.button, AreaEditorForm.this) { private static final long serialVersionUID = 1L; �...@override protected void onSubmit(final AjaxRequestTarget target, final Form? form) { System.out.println(submit.button AjaxButton.onSubmit(target)); modal.close(target); } }); final AjaxButton cancel = new AjaxButton(cancel.button, AreaEditorForm.this) { private static final long serialVersionUID = 1L; �...@override protected void onSubmit(final AjaxRequestTarget target, final Form? form) { System.out.println(cancel.button AjaxButton.onSubmit(target)); modal.close(target); } }; cancel.setDefaultFormProcessing(false); add(cancel); add(new AjaxLinkVoid(cancel.link) { private static final long serialVersionUID = 1L; �...@override public void onClick(final AjaxRequestTarget target) { System.out.println(AjaxLink.onClick); modal.close(target); } }); } �...@override protected void delegateSubmit(final IFormSubmittingComponent submittingComponent) { System.out.println(Form.delegateSubmit); super.delegateSubmit(submittingComponent); } �...@override protected void onSubmit() { System.out.println(Form.onSubmit); super.onSubmit(); } } For some reason, neither AjaxButton for cancel or submit can close the window. The AjaxLink can - and that works in my situation for 'cancelling' but I have to be able to close the window after a successful submission and that code is not working in the onSubmit handlers (of either button). Am I missing a wire? One other anomaly - I can see the screen flicker on each submission or cancel (ie: I can tell a request is hitting the server). But, regardless of submission or canceling button, validation ALWAYS occurs. Per the required fields in the form - canceling does not seem to skip the validation eventhough I've included: cancel.setDefaultFormProcessing(false); Another anomaly, AjaxButton: A button that submits the form via ajax. Since this button takes the form as a constructor argument it does not need to be added to it unlike the Button component. but if I remove this line: add(cancel); wicket complains WicketMessage: Unable to find component with id 'cancel.button' ... If I place data in the two fields and then click on cancel, Form.delegateSubmit logs to the console followed by Form.onSubmit ... but I don't initially see cancel.button ... log to the console. In fact, I click the cancel button 4 more times before I actually see it echo it's
Re: Cancelling ala AjaxLink vs AjaxButton
It turns out that it actually seems to work in IE. For what it's worth, the javascript isn't working correctly in a virtual install of Firefox 3.0.19. For all I know, could be related, in part, to our software packaging/management process. I'll try and test in a few different environments and confirm that this isn't a real problem. Thanks for staying with this thread. -Luther -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Cancelling-ala-AjaxLink-vs-AjaxButton-tp2717635p2718183.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: how to get resource path of files in server to be used by wicket
mp3 resources... i would like to put mp3 source paths in the header contribution of my panel, but im not sure what url will i feed to the script, i placed them together with html and java files and used a relative path, like /file.mp3, but like an absolute local path, my javascript still couldn't find it... i've also tried the one done by drobson, but still doesn't work... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-get-resource-path-of-files-in-server-to-be-used-by-wicket-tp2717381p2718216.html Sent from the Users forum 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: Modular XHTML DTD for Wicket?
Hi Erik, I'll begin working with this over the weekend, and will post a notice when I have something to show. If I have any specific questions I'll ask the list -- this will likely be an iterative process... Cheers, Ichiro On 9/28/10, Erik van Oosten e.vanoos...@grons.nl wrote: Hello Ichiro, Bring it on! Find all xhtml tags here: https://cwiki.apache.org/WICKET/wickets-xhtml-tags.html. Here you will also find a link to the current DTDs. Regards, Erik. Op 28-09-10 04:53, Ichiro Furusato schreef: I brought this up previously under Wicket pages are invalid XHTML on Thu, 16 Sep 2010 13:11:06 +1200 but the conversation got sidetracked by a solution to a question I'd asked without addressing an offer I'd made. Would anyone be interested in replacing the misnamed and incomplete XHTML DTD used by the Wicket project with a modular XHTML DTD that had its own Wicket module? This could be used to validate Wicket-ised documents. I'm versed in building modular DTDs using the W3C toolkit. (I note WICKET-693 exists) and can also flatten the DTD to a single file using a tool I have. I'd be willing to supply that DTD if someone could provide documentation on the extant wicket elements and attributes, and where in the document model they are permitted. If this is something properly directed at the Wicket dev list let me know and I'll resend it there (I'm not currently a member of that list). Or if this isn't a priority for the project (it may not be if well-formed XML is sufficient during dev) I'll drop the issue. Thanks, Ichiro - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Bookmarking, getting the url hash value
On Tue, Sep 28, 2010 at 6:53 PM, Matthew Goodson matt...@spidertracks.co.nz wrote: Hi, I've seen this topic mention a little bit around the place but I haven't seen any implementation of it so far. I'm looking into adding the ability to bookmark changes done by ajax in wicket. I'm planning on using the BBQ Jquery plugin and integration it with wicket. The hardest step is getting hash value from the url. The best way that I can see would be to get it passed into the page alongside with the page parameters. Is there anyway in wicket to access the hash value? I can add a bit of javscript to do a call back to wicket on page load but this isn't ideal. Or does anyone have any thoughts about this? The hash value is not sent to the server. You will have to either: 1 - use JS to catch every callback to the server and append the hash as a query string parameter 2 - use JS to call back to Wicket and send the hash manually -- Jeremy Thomerson http://www.wickettraining.com
Re: how to get resource path of files in server to be used by wicket
On Tue, Sep 28, 2010 at 9:04 PM, elesi jsar...@gmail.com wrote: mp3 resources... i would like to put mp3 source paths in the header contribution of my panel, but im not sure what url will i feed to the script, i placed them together with html and java files and used a relative path, like /file.mp3, but like an absolute local path, my javascript still couldn't find it... i've also tried the one done by drobson, but still doesn't work... Try using a PackageResourceReference and urlFor(...) -- Jeremy Thomerson http://www.wickettraining.com