Re: Simple CMS or Wiki
a cms always needs a wysiwyg-textarea. there is TinyMCE in wicket-contrib project. if this is to heavy-loaded and difficult to customize for you (as it was for me) then I invite you to work with me on my WysiwygTextarea-component which already is usable for bold, italic, underline, unorderedlist, orderedlist, subscript, superscript, indent, outdent, inserting table, undo, redo, align left, center, right functions I could put it online for download in a few days if you (or anyone else) want... I made it as apache-licensed alternative to tinymce, just for wicket (maybe for wicket-extension project) tauren wrote: > > I'd like to add some simple CMS and/or wiki features to a wicket > application. I don't need anything full featured by any means. I'm > looking for pointers to any resources, code, libraries, blogs, or > anything else that would help jump start adding these features to my > application. > > I'm aware of the wicketstuff kronos-cms project and am starting to > look into it now. Also, via kronos-cms, I learned about the apache > jackrabbit project, but know nothing about it at this time. It looks > like it may be pertinent. > > Any other advice and suggestions is appreciated! > > Tauren > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Simple-CMS-or-Wiki-tf4405034.html#a12567148 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Simple CMS or Wiki
I'd like to add some simple CMS and/or wiki features to a wicket application. I don't need anything full featured by any means. I'm looking for pointers to any resources, code, libraries, blogs, or anything else that would help jump start adding these features to my application. I'm aware of the wicketstuff kronos-cms project and am starting to look into it now. Also, via kronos-cms, I learned about the apache jackrabbit project, but know nothing about it at this time. It looks like it may be pertinent. Any other advice and suggestions is appreciated! Tauren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Kronos-cms installation
I just checked out kronos-cms to take a look at it. I could only find it under the wicket-1.2 branch in wicketstuff. Is that correct, or is there a 1.3 release? During mvn install, I got a build error that it was missing javax.jcr:jcr:jar:1.0.1. It suggested the following: Try downloading the file manually from: http://www.day.com/site/en/index/related/downloads/RI_download.html Then, install it using the command: mvn install:install-file -DgroupId=javax.jcr -DartifactId=jcr \ -Dversion=1.0.1 -Dpackaging=jar -Dfile=/path/to/file When I went to that download page, and filled out the form to get the download, I downloaded a file called jcr-ri-1.0.zip. There isn't a jar file included in it. Upon looking at the sources, it includes some org.apache.jackrabbit packages. Is that really the file I should be using, or is the kronos dependency out of date? On the apache jackrabbit site, there are downloads available as well. Would those work instead of the day.com download? I don't want to waste a bunch of time trying to get this working. If anyone else has messed with kronos-cms and has some tips, I'm all ears. If someone could share their jcr-1.0.1.jar, that would work too! Thanks! Tauren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Rendering a BoxBorder without the black line border
Hi Eelco, I realized that I haven't truly understood the Navomatic example... So I got back to the API JavaDoc. Now I clearly see that the NavomaticBorder in the example is a concrete subclass of Border composed of 2 instances of BoxBorder: the 1st holds the navigation menu while the 2nd holds the page contents itself. What I need, on the other hand, is just a concrete subclass of Border without any other instances of a Border subclass inside. I just removed the "empty" Border subclass I've previously included and the code looks clean now :-). Thank you, Cristina Eelco Hillenius wrote: > > On 8/31/07, Cristina <[EMAIL PROTECTED]> wrote: > >> Hi Eelco, >> >> thanks so much for your reply. Let me try to explain myself better... >> I've >> started with a BoxBorder mainly because the Navomatic example uses it >> around >> a navigation menu: actually, what I'm trying to build is something >> between 5 >> and 10 reusable navigation menus. >> >> I've already built a test navigation menu following the Navomatic example >> and it works just fine... Now, as I'm trying to use CSS-only styling, I >> first thought of using a BoxBorder with the black line set to not >> visible. >> Thies pointed out that I should extend Border and provide my own markup >> to >> get this kind of effect. But then, thanks to Igor's remarks, I realized >> that >> I may be using a Border where I should be using another container for the >> Links that make up the menu. >> >> Would you please recommend another navigation menu example, or suggest >> which >> container I should use in place of BoxBorder, if this is the case? > > Maybe looking at this: http://wicketstuff.org/wicket13/template/ helps? > > Eelco > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- View this message in context: http://www.nabble.com/Rendering-a-BoxBorder-without-the-black-line-border-tf4357178.html#a12566917 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to force a delete (from disk) of the session from the session store?
Hi, When a user logouts of the site, i want to kill the session and have it be removed from disk immediately. I have extended WebSession properly, but no methods on the WebSession class seem to do the trick for me. Is there a way to to trigger the removal of the session cleanly from disk via the SessionStore or some other approach? thanks -- View this message in context: http://www.nabble.com/How-to-force-a-delete-%28from-disk%29-of-the-session-from-the-session-store--tf4404925.html#a12566791 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: WebMarkupContainer without template markup
You can also make the components to hide implement some listener (or just marker) interface X and then do a visitChildren traversal from page.onBeforeRender as follows: visitChildren(X.class, new IVisitor() { public Object component(Component component) { comp.setVisible(your visibility logic here); } }); This is less centralized that keeping a list at the top level, if you care about this. Regards, Carlos On 9/7/07, Scott Swank <[EMAIL PROTECTED]> wrote: > Martijn, > > That certainly accomplishes what I want. Thank you. It was pushing > the logic to onBeforeRender() that I was missing. > > On 9/7/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > > What you want is a bag of components that are separate from the > > component hierarchy, afaiui? > > > > Why not keep a list of components that need to be made invisible, and > > add them to that list. call setvisible(false) on that list of > > components in onbeforerender. Remove them from that list when you want > > them visible again... > > > > public class MyPage { > > List hidden = new ArrayList(); > > > > public onBeforeRender() { > > for(Component comp : hidden) comp.setVisible(true); > > > > some arcane logic to mark them components... > > hidden.add(some component); > > > > for(Component comp : hidden) comp.setVisible(false); > > > > } > > > > Martijn > > > > On 9/7/07, Scott Swank <[EMAIL PROTECTED]> wrote: > > > I get what you're saying, but the images in question are scattered > > > across the page rather than in one place that could simply be > > > enclosed. Thank you none the less, I do appreciate the insight. > > > > > > Cheers, > > > Scott > > > > > > > > > On 9/7/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > > > well, thats kinda the point of the enclosure... > > > > > > > > it lets you group components together inside it, and let one of those > > > > components drive the visibility of the entire enclosure > > > > > > > > -igor > > > > > > > > > > > > On 9/7/07, Scott Swank <[EMAIL PROTECTED]> wrote: > > > > > > > > > > I could, but it's kind of the opposite of what I want. I want to > > > > > _not_ have to add an enclosing tag to the relevant portions of the > > > > > html template. So I don't mind coding a WebMarkupContainer -- I just > > > > > want to avoid having to change: > > > > > > > > > > > > > > > > > > > > to > > > > > > > > > > > > > > > > > > > > The basic problem is that sometimes we have a set of images for a > > > > > product (scattered across a few components) and sometimes we don't. > > > > > My thought is to wrap all of the relevant images in such a container > > > > > that knows how to determine isVisible(). > > > > > > > > > > Scott > > > > > > > > > > On 9/7/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > > > > > you can prob port enclosure to 1.2.6 yourself if you wanted it badly > > > > > > > > > > > > -igor > > > > > > > > > > > > > > > > > > On 9/7/07, Scott Swank <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > > Pity we're not on 1.3 yet. Thank you though. > > > > > > > > > > > > > > Scott > > > > > > > > > > > > > > On 9/7/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > > > > > > > no, but you can try wicket:enclosure tag. see javadoc on > > > > > Enclosure.java > > > > > > > > > > > > > > > > -igor > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 9/7/07, Scott Swank <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > > > > > > I want to make a few parts of my page visible or not in a > > > > > consistent > > > > > > > > > manner -- i.e. based on the same true/false result, which I > > > > > > > > > derive > > > > > > > > > from my model. Can I wrap the relevant components in > > > > > > > > > WebMarkupContainer without adding a matching tag to my > > > > > markup? > > > > > > > > > > > > > > > > > > Thank you, > > > > > > > > > Scott > > > > > > > > > > > > > > - > > > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > Scott Swank > > > > > reformed mathematician > > > > > > > > > > - > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > > > -- > > > Scott Swank > > > reformed mathematician > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > -- > > Buy Wicket in Action: http://manning.com/dashorst > > Apache Wicket 1.3.0-beta3 is released > > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/ > > > > --
AjaxRequestTarget null... in onClick of AjaxFallbackLink
I have set up a AjaxFallbackLink in a listview. In the populate item I define the fallback link and it's onclick method. The onclick method sets a container to visible. I get the following error output in the console when I click on the link on the actual page... INFO - uestTargetResolverStrategy - component not enabled or visible, redirecting to calling page, component: null What triggers this? Thanks In Advance. John
Re: Two small questions
On 9/8/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > Nope, add wicket-datetime. Hmm, memory needs reboot at 2:30 am. Martijn -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-beta3 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Two small questions
On 9/7/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > On 9/8/07, Sebastiaan van Erk <[EMAIL PROTECTED]> wrote: > > DateLabel component, however I cannot find it in my version of wicket. > > Add wicket-extensions to your project. Nope, add wicket-datetime. Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Two small questions
On 9/8/07, Sebastiaan van Erk <[EMAIL PROTECTED]> wrote: > DateLabel component, however I cannot find it in my version of wicket. Add wicket-extensions to your project. > Second question that I have is the following. I want to display a label > with a link around it (a href), but the link should only be active if > the href is not empty or null. Thus if there is anything in it, the link > should be active, otherwise not. The href is a property of a model > object (which can change on form submit, so choosing between a fragment > with the link and a fragment without the link at construction time would > not work). new Link("foo", model) { @override boolean isenabled() { Foo foo = getModelObject(); return foo.getUrl() != null; } } Should do the trick? Martijn -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-beta3 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Two small questions
Hi, I am trying to display a date in my own format in Wicket 1.3.0 beta 3, and the JavaDocs at http://people.apache.org/~tobrien/wicket/apidocs/index.html list a DateLabel component, however I cannot find it in my version of wicket. Is it removed, or is it going to be added to the next version? How can I make sure my Label formats the date model object the way I want it to appear? Second question that I have is the following. I want to display a label with a link around it (a href), but the link should only be active if the href is not empty or null. Thus if there is anything in it, the link should be active, otherwise not. The href is a property of a model object (which can change on form submit, so choosing between a fragment with the link and a fragment without the link at construction time would not work). Thanks in advance, Sebastiaan smime.p7s Description: S/MIME Cryptographic Signature
AjaxRequestTarget null... in onClick of AjaxFallbackLink
I have set up a AjaxFallbackLink in a listview. In the populate item I define the fallback link and it's onclick method. The onclick method sets a container to visible. I get the following error output when I click on the link on the actual page... INFO - uestTargetResolverStrategy - component not enabled or visible, redirecting to calling page, component: null What triggers this? Thanks In Advance. John
Re: Newbie - Help in setup of Wicket with Eclipse and Weblogic...
The same sort of info's also at http://wicket.apache.org/quickstart.html now, too! /Gwyn On Friday, September 7, 2007, 6:23:43 PM, Igor <[EMAIL PROTECTED]> wrote: > see this page > http://cwiki.apache.org/WICKET/documentation-index.html#DocumentationIndex-Codeasdocumentation > under archetype > use the archetype to create a new app > then cd into that app > "mvn eclipse:eclipse" will create an eclipse project which you can then > import into eclipse > "mvn war" will create a war file you can deploy into weblogic > -igor > On 9/7/07, schu777 <[EMAIL PROTECTED]> wrote: >> >> >> Hi Everyone, >> >> I'm very "new" to setting up a web app - I've only done bug fixes and a >> few >> enhancements to web apps that were already configured. So I'm trying to >> learn Wicket to see how easy it would be to replace an application at work >> that has over 500 data fields with business rules around nearly 300 of >> them, >> if not more. >> >> Anyway, what I'm needing is a sample or step-by-step process of creating a >> web application using wicket in Eclipse and then deploying it to Weblogic. >> Even if it's just the simple "Hello World" application... >> >> Here are the versions I'm running: >> >> Eclplise: 3.2.1 - build M20060921-0945 >> BEA Weblogic: 8.1 >> >> If I need to provide more info, then let me know... >> >> Thanks, Michael >> -- >> View this message in context: >> http://www.nabble.com/Newbie---Help-in-setup-of-Wicket-with-Eclipse-and-Weblogic...-tf4402688.html#a12559748 >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> /Gwyn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Any interest in a Wicket User Group meeting in The Netherlands?
depends on what is far :) Brussel -> Amersfoort: http://maps.google.com/maps?f=d&hl=en&geocode=&saddr=Amersfoort,+Netherlands&daddr=Brussel,+Belgium&sll=52.512794,6.091538&sspn=0.375674,1.082153&ie=UTF8&z=9&om=1 less then 2 hours On 9/7/07, Francis De Brabandere <[EMAIL PROTECTED]> wrote: > > any chance you could do this a bit more near belgium? :-) > > On 9/7/07, "C. Bergström" <[EMAIL PROTECTED]> wrote: > > Johan Compagner wrote: > > > hi, > > > > > > I can organize one if there is enough interest > > > Martijn and i will be there then. > > > > > > And for example if people are also interested in the wicket security i > will > > > also drag Maurice to the table. > > I can attend while I'm in the Netherlands and will probably drag > > (willingly) another colleague of mine. > > > > Did anyone have any ideas where it would be? (We're near Haarlem and if > > needed *maybe* could host it as well.) > > > > +2 > > > > ./C > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > http://www.somatik.be > Microsoft gives you windows, Linux gives you the whole house. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Disable the SecondLevelPageCache?
You can revert to httpsessionstore by changing Application.newSessionStore method. But that's not recommended. What are your performance problems? I doubt it is caused by the session store. -Matej On 9/7/07, jamieballing <[EMAIL PROTECTED]> wrote: > > We are trying to do some performance troubleshooting and want to disable the > second level page cache. > > Is there any way to do this? > > Thanks, > Jamie > -- > View this message in context: > http://www.nabble.com/Disable-the-SecondLevelPageCache--tf4403977.html#a12563895 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > 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: Bookmarkable page and session object problem? (1.3 beta3)
That worked. Thanks so much for your help. I am trying to find verbage on what exactly session.bind() actually does that fixed my problem. Matej Knopp-2 wrote: > > Well, just call session.bind() after set session attribute, and you'll > see if it helps. > > -Matej > > On 9/7/07, Chris Lintz <[EMAIL PROTECTED]> wrote: >> >> Actually i just realized it has something to do with a stateless form. >> Maybe >> you can tell me if this is a bug or not. I am pasting the code below, >> but >> let me first explain. I basically have a LoginPanel that is included on >> all >> non-bookmarkable and bookmarkable pages. My LoginPanel is using a >> StatelessForm. I want this stateless form because generating a Session >> for >> every request for simple login form is a crazy idea to me (especially in >> a >> clustered session environment). >> >> The problem is that it seems you cannot set objects in the session from >> within the Stateless form. Although i implemented a work around by >> getting >> the Page from within the stateless form and setting the User object on >> the >> session from the Page itself. When I do so this User object is not in >> the >> session on the non-bookmarkable pages I click on. >> >> Here are the snippets of code (LoginPanel.java and WebPageTemplate.java) >> >> public LoginPanel(String id) >> { >> Form f = new StatelessForm("lFrm") >>{ >> @Override >> protected void onSubmit() >> { >> try >> { >>User u = AuthenticationService.login(getUserName(), >> getPassword()); >>if (u == null) >>{ >> feedback.error("Invalid login"); >> return; >>} >>feedback.info("You are now logged in. Welcome."); >> ((WebPageTemplate) getPage()).setUserInSession(u); >> setResponsePage(getPage().getClass()); >> } >> catch (AuthenticationException ae) >> { >>error("There was a problem logging in. Please try again >> later"); >>se.printStackTrace(); >> } >> >> } >>}; >> >> WebPageTemplate.java snippet: >> >> public void setUserInSession(User u) >> { >> MediumSession session = (MediumSession) getSession(); >> session.setUser(u); >>} >> >> >> >> >> >> >> Matej Knopp-2 wrote: >> > >> > We can't help you with this if you don't post any code. The session >> > object should of course be available for bookmarkable and >> > non-bookmarkable objects. >> > >> > -Matej >> > >> > On 9/7/07, Chris Lintz <[EMAIL PROTECTED]> wrote: >> >> >> >> Hi all, >> >> This seems like a bug to me but I am hoping some one can lead me the >> >> right >> >> way to a solution. I basically have non-bookmarkable page that puts >> the >> >> a >> >> User object in the session. After this, if i click on a bookmarkable >> >> page >> >> link, that page does not have the user in the session. If I go back >> to >> >> my >> >> non-bookmarkable page, the user is there. >> >> >> >> How can i get this bookmarkable page to see the same session object? >> >> Maybe this has something to do with Pagemaps. But in any case, the >> same >> >> session object should be available to bookmarkable and >> non-bookmarkable >> >> pages correct? >> >> >> >> >> >> thanks in advance >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/Bookmarkable-page-and-session-object-problem--%281.3-beta3%29-tf4403473.html#a12562289 >> >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> >> >> >> - >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> > >> > - >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > For additional commands, e-mail: [EMAIL PROTECTED] >> > >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Bookmarkable-page-and-session-object-problem--%281.3-beta3%29-tf4403473.html#a12563267 >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Bookmarkable-page-and-session-object-problem--%281.3-beta3%29-tf4403473.html#a12564017 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Disable the SecondLevelPageCache?
We are trying to do some performance troubleshooting and want to disable the second level page cache. Is there any way to do this? Thanks, Jamie -- View this message in context: http://www.nabble.com/Disable-the-SecondLevelPageCache--tf4403977.html#a12563895 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using Include and placing pages under WEB-INF
Hello, I have followed the instructions on the wiki for placing HTML pages in an alternative location (http://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.html). The location I chose was at the context root. I.e., webapp/ +--- WEB-INF/ +--- css/ +--- img/ +--- js/ +--- help/ +--- Page1.html +--- Page2.html ... etc. When I locate the pages there and add the appropriate resource folder (using IResourceSettings.addResourceFolder(String) ), everything works fine in my wicket application. However, if I try to move my pages under WEB-INF, wicket has a problem loading resources that are bound via the org.apache.wicket.markup.html.include.Include class. In my case, I have several static pages that I want to load dynamically which are located in my 'help/' directory (see above). When the user loads Page1.html, I want to load HTML from a corresponding help page and place that HTML into a panel. When they load Page2.html, I want to load HTML from another help page, etc. This is all working great with the wicket Include mechanism ... until I move the pages under the WEB-INF dir. When I do that, I get messages like this... [ERROR] 09/07/07 12.49.11.011 org.apache.wicket.RequestCycle:1255 - Unable to read resource as String org.apache.wicket.WicketRuntimeException: Unable to read resource as String at org.apache.wicket.util.resource.AbstractResourceStream.asString(AbstractResourceStream.java:77) at org.apache.wicket.markup.html.include.Include.importUrl(Include.java:266) at org.apache.wicket.markup.html.include.Include.importAbsoluteUrl(Include.java:248) at org.apache.wicket.markup.html.include.Include.importRelativeUrl(Include.java:234) at org.apache.wicket.markup.html.include.Include.importAsString(Include.java:158) at org.apache.wicket.markup.html.include.Include.onComponentTagBody(Include.java:172) Is it possible to do what I'm attempting to do? Thanks in advance! (Thanks also to the wicket developers for creating such a great framework!) -- Jason -- View this message in context: http://www.nabble.com/Using-Include-and-placing-pages-under-WEB-INF-tf4403861.html#a12563577 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: Bookmarkable page and session object problem? (1.3 beta3)
Well, just call session.bind() after set session attribute, and you'll see if it helps. -Matej On 9/7/07, Chris Lintz <[EMAIL PROTECTED]> wrote: > > Actually i just realized it has something to do with a stateless form. Maybe > you can tell me if this is a bug or not. I am pasting the code below, but > let me first explain. I basically have a LoginPanel that is included on all > non-bookmarkable and bookmarkable pages. My LoginPanel is using a > StatelessForm. I want this stateless form because generating a Session for > every request for simple login form is a crazy idea to me (especially in a > clustered session environment). > > The problem is that it seems you cannot set objects in the session from > within the Stateless form. Although i implemented a work around by getting > the Page from within the stateless form and setting the User object on the > session from the Page itself. When I do so this User object is not in the > session on the non-bookmarkable pages I click on. > > Here are the snippets of code (LoginPanel.java and WebPageTemplate.java) > > public LoginPanel(String id) > { > Form f = new StatelessForm("lFrm") >{ > @Override > protected void onSubmit() > { > try > { >User u = AuthenticationService.login(getUserName(), getPassword()); >if (u == null) >{ > feedback.error("Invalid login"); > return; >} >feedback.info("You are now logged in. Welcome."); > ((WebPageTemplate) getPage()).setUserInSession(u); > setResponsePage(getPage().getClass()); > } > catch (AuthenticationException ae) > { >error("There was a problem logging in. Please try again later"); >se.printStackTrace(); > } > > } >}; > > WebPageTemplate.java snippet: > > public void setUserInSession(User u) > { > MediumSession session = (MediumSession) getSession(); > session.setUser(u); >} > > > > > > > Matej Knopp-2 wrote: > > > > We can't help you with this if you don't post any code. The session > > object should of course be available for bookmarkable and > > non-bookmarkable objects. > > > > -Matej > > > > On 9/7/07, Chris Lintz <[EMAIL PROTECTED]> wrote: > >> > >> Hi all, > >> This seems like a bug to me but I am hoping some one can lead me the > >> right > >> way to a solution. I basically have non-bookmarkable page that puts the > >> a > >> User object in the session. After this, if i click on a bookmarkable > >> page > >> link, that page does not have the user in the session. If I go back to > >> my > >> non-bookmarkable page, the user is there. > >> > >> How can i get this bookmarkable page to see the same session object? > >> Maybe this has something to do with Pagemaps. But in any case, the same > >> session object should be available to bookmarkable and non-bookmarkable > >> pages correct? > >> > >> > >> thanks in advance > >> -- > >> View this message in context: > >> http://www.nabble.com/Bookmarkable-page-and-session-object-problem--%281.3-beta3%29-tf4403473.html#a12562289 > >> Sent from the Wicket - User mailing list archive at Nabble.com. > >> > >> > >> - > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > -- > View this message in context: > http://www.nabble.com/Bookmarkable-page-and-session-object-problem--%281.3-beta3%29-tf4403473.html#a12563267 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > 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: Bookmarkable page and session object problem? (1.3 beta3)
Actually i just realized it has something to do with a stateless form. Maybe you can tell me if this is a bug or not. I am pasting the code below, but let me first explain. I basically have a LoginPanel that is included on all non-bookmarkable and bookmarkable pages. My LoginPanel is using a StatelessForm. I want this stateless form because generating a Session for every request for simple login form is a crazy idea to me (especially in a clustered session environment). The problem is that it seems you cannot set objects in the session from within the Stateless form. Although i implemented a work around by getting the Page from within the stateless form and setting the User object on the session from the Page itself. When I do so this User object is not in the session on the non-bookmarkable pages I click on. Here are the snippets of code (LoginPanel.java and WebPageTemplate.java) public LoginPanel(String id) { Form f = new StatelessForm("lFrm") { @Override protected void onSubmit() { try { User u = AuthenticationService.login(getUserName(), getPassword()); if (u == null) { feedback.error("Invalid login"); return; } feedback.info("You are now logged in. Welcome."); ((WebPageTemplate) getPage()).setUserInSession(u); setResponsePage(getPage().getClass()); } catch (AuthenticationException ae) { error("There was a problem logging in. Please try again later"); se.printStackTrace(); } } }; WebPageTemplate.java snippet: public void setUserInSession(User u) { MediumSession session = (MediumSession) getSession(); session.setUser(u); } Matej Knopp-2 wrote: > > We can't help you with this if you don't post any code. The session > object should of course be available for bookmarkable and > non-bookmarkable objects. > > -Matej > > On 9/7/07, Chris Lintz <[EMAIL PROTECTED]> wrote: >> >> Hi all, >> This seems like a bug to me but I am hoping some one can lead me the >> right >> way to a solution. I basically have non-bookmarkable page that puts the >> a >> User object in the session. After this, if i click on a bookmarkable >> page >> link, that page does not have the user in the session. If I go back to >> my >> non-bookmarkable page, the user is there. >> >> How can i get this bookmarkable page to see the same session object? >> Maybe this has something to do with Pagemaps. But in any case, the same >> session object should be available to bookmarkable and non-bookmarkable >> pages correct? >> >> >> thanks in advance >> -- >> View this message in context: >> http://www.nabble.com/Bookmarkable-page-and-session-object-problem--%281.3-beta3%29-tf4403473.html#a12562289 >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Bookmarkable-page-and-session-object-problem--%281.3-beta3%29-tf4403473.html#a12563267 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: WebMarkupContainer without template markup
Martijn, That certainly accomplishes what I want. Thank you. It was pushing the logic to onBeforeRender() that I was missing. On 9/7/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > What you want is a bag of components that are separate from the > component hierarchy, afaiui? > > Why not keep a list of components that need to be made invisible, and > add them to that list. call setvisible(false) on that list of > components in onbeforerender. Remove them from that list when you want > them visible again... > > public class MyPage { > List hidden = new ArrayList(); > > public onBeforeRender() { > for(Component comp : hidden) comp.setVisible(true); > > some arcane logic to mark them components... > hidden.add(some component); > > for(Component comp : hidden) comp.setVisible(false); > > } > > Martijn > > On 9/7/07, Scott Swank <[EMAIL PROTECTED]> wrote: > > I get what you're saying, but the images in question are scattered > > across the page rather than in one place that could simply be > > enclosed. Thank you none the less, I do appreciate the insight. > > > > Cheers, > > Scott > > > > > > On 9/7/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > > well, thats kinda the point of the enclosure... > > > > > > it lets you group components together inside it, and let one of those > > > components drive the visibility of the entire enclosure > > > > > > -igor > > > > > > > > > On 9/7/07, Scott Swank <[EMAIL PROTECTED]> wrote: > > > > > > > > I could, but it's kind of the opposite of what I want. I want to > > > > _not_ have to add an enclosing tag to the relevant portions of the > > > > html template. So I don't mind coding a WebMarkupContainer -- I just > > > > want to avoid having to change: > > > > > > > > > > > > > > > > to > > > > > > > > > > > > > > > > The basic problem is that sometimes we have a set of images for a > > > > product (scattered across a few components) and sometimes we don't. > > > > My thought is to wrap all of the relevant images in such a container > > > > that knows how to determine isVisible(). > > > > > > > > Scott > > > > > > > > On 9/7/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > > > > you can prob port enclosure to 1.2.6 yourself if you wanted it badly > > > > > > > > > > -igor > > > > > > > > > > > > > > > On 9/7/07, Scott Swank <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > Pity we're not on 1.3 yet. Thank you though. > > > > > > > > > > > > Scott > > > > > > > > > > > > On 9/7/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > > > > > > no, but you can try wicket:enclosure tag. see javadoc on > > > > Enclosure.java > > > > > > > > > > > > > > -igor > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 9/7/07, Scott Swank <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > > > > I want to make a few parts of my page visible or not in a > > > > consistent > > > > > > > > manner -- i.e. based on the same true/false result, which I > > > > > > > > derive > > > > > > > > from my model. Can I wrap the relevant components in > > > > > > > > WebMarkupContainer without adding a matching tag to my > > > > markup? > > > > > > > > > > > > > > > > Thank you, > > > > > > > > Scott > > > > > > > > > > > > - > > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > Scott Swank > > > > reformed mathematician > > > > > > > > - > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > -- > > Scott Swank > > reformed mathematician > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > Buy Wicket in Action: http://manning.com/dashorst > Apache Wicket 1.3.0-beta3 is released > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/ > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Scott Swank reformed mathematician - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WebMarkupContainer without template markup
Matej, My issue isn't that the div is rendered, but rather that I have to add it to the html file in the first place. I think that I could implement this as a Behavior, but for this problem I just went ahead and added div tags around the relevant components. Thanks again, Scott On 9/7/07, Matej Knopp <[EMAIL PROTECTED]> wrote: > Can't you just call webmarkupcontainer.setRenderBodyOnly(true) ? > > -Matej > > On 9/7/07, Scott Swank <[EMAIL PROTECTED]> wrote: > > I get what you're saying, but the images in question are scattered > > across the page rather than in one place that could simply be > > enclosed. Thank you none the less, I do appreciate the insight. > > > > Cheers, > > Scott > > > > > > On 9/7/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > > well, thats kinda the point of the enclosure... > > > > > > it lets you group components together inside it, and let one of those > > > components drive the visibility of the entire enclosure > > > > > > -igor > > > > > > > > > On 9/7/07, Scott Swank <[EMAIL PROTECTED]> wrote: > > > > > > > > I could, but it's kind of the opposite of what I want. I want to > > > > _not_ have to add an enclosing tag to the relevant portions of the > > > > html template. So I don't mind coding a WebMarkupContainer -- I just > > > > want to avoid having to change: > > > > > > > > > > > > > > > > to > > > > > > > > > > > > > > > > The basic problem is that sometimes we have a set of images for a > > > > product (scattered across a few components) and sometimes we don't. > > > > My thought is to wrap all of the relevant images in such a container > > > > that knows how to determine isVisible(). > > > > > > > > Scott > > > > > > > > On 9/7/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > > > > you can prob port enclosure to 1.2.6 yourself if you wanted it badly > > > > > > > > > > -igor > > > > > > > > > > > > > > > On 9/7/07, Scott Swank <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > Pity we're not on 1.3 yet. Thank you though. > > > > > > > > > > > > Scott > > > > > > > > > > > > On 9/7/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > > > > > > no, but you can try wicket:enclosure tag. see javadoc on > > > > Enclosure.java > > > > > > > > > > > > > > -igor > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 9/7/07, Scott Swank <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > > > > I want to make a few parts of my page visible or not in a > > > > consistent > > > > > > > > manner -- i.e. based on the same true/false result, which I > > > > > > > > derive > > > > > > > > from my model. Can I wrap the relevant components in > > > > > > > > WebMarkupContainer without adding a matching tag to my > > > > markup? > > > > > > > > > > > > > > > > Thank you, > > > > > > > > Scott > > > > > > > > > > > > - > > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > Scott Swank > > > > reformed mathematician > > > > > > > > - > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > -- > > Scott Swank > > reformed mathematician > > > > - > > 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] > > -- Scott Swank reformed mathematician - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WebMarkupContainer without template markup
What you want is a bag of components that are separate from the component hierarchy, afaiui? Why not keep a list of components that need to be made invisible, and add them to that list. call setvisible(false) on that list of components in onbeforerender. Remove them from that list when you want them visible again... public class MyPage { List hidden = new ArrayList(); public onBeforeRender() { for(Component comp : hidden) comp.setVisible(true); some arcane logic to mark them components... hidden.add(some component); for(Component comp : hidden) comp.setVisible(false); } Martijn On 9/7/07, Scott Swank <[EMAIL PROTECTED]> wrote: > I get what you're saying, but the images in question are scattered > across the page rather than in one place that could simply be > enclosed. Thank you none the less, I do appreciate the insight. > > Cheers, > Scott > > > On 9/7/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > well, thats kinda the point of the enclosure... > > > > it lets you group components together inside it, and let one of those > > components drive the visibility of the entire enclosure > > > > -igor > > > > > > On 9/7/07, Scott Swank <[EMAIL PROTECTED]> wrote: > > > > > > I could, but it's kind of the opposite of what I want. I want to > > > _not_ have to add an enclosing tag to the relevant portions of the > > > html template. So I don't mind coding a WebMarkupContainer -- I just > > > want to avoid having to change: > > > > > > > > > > > > to > > > > > > > > > > > > The basic problem is that sometimes we have a set of images for a > > > product (scattered across a few components) and sometimes we don't. > > > My thought is to wrap all of the relevant images in such a container > > > that knows how to determine isVisible(). > > > > > > Scott > > > > > > On 9/7/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > > > you can prob port enclosure to 1.2.6 yourself if you wanted it badly > > > > > > > > -igor > > > > > > > > > > > > On 9/7/07, Scott Swank <[EMAIL PROTECTED]> wrote: > > > > > > > > > > Pity we're not on 1.3 yet. Thank you though. > > > > > > > > > > Scott > > > > > > > > > > On 9/7/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > > > > > no, but you can try wicket:enclosure tag. see javadoc on > > > Enclosure.java > > > > > > > > > > > > -igor > > > > > > > > > > > > > > > > > > > > > > > > On 9/7/07, Scott Swank <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > > I want to make a few parts of my page visible or not in a > > > consistent > > > > > > > manner -- i.e. based on the same true/false result, which I derive > > > > > > > from my model. Can I wrap the relevant components in > > > > > > > WebMarkupContainer without adding a matching tag to my > > > markup? > > > > > > > > > > > > > > Thank you, > > > > > > > Scott > > > > > > > > > > - > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > > > -- > > > Scott Swank > > > reformed mathematician > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > -- > Scott Swank > reformed mathematician > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-beta3 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Calling all translators - UrlValidator translation
There is a small typo in: EmailAddressValidator='${input}' no es una direcion de correo electronico valida. Should be "direccion" instead of "direcion". There are also some missing accents, I'll post the correct Unicode chars when I figure out how. Daniel -- View this message in context: http://www.nabble.com/Calling-all-translators---UrlValidator-translation-tf4401987.html#a12562898 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: Bookmarkable page and session object problem? (1.3 beta3)
Can't this be a problem of not binding the session? i.e. he's not touched the session so is still in stateless mode? Martijn On 9/7/07, Matej Knopp <[EMAIL PROTECTED]> wrote: > We can't help you with this if you don't post any code. The session > object should of course be available for bookmarkable and > non-bookmarkable objects. > > -Matej > > On 9/7/07, Chris Lintz <[EMAIL PROTECTED]> wrote: > > > > Hi all, > > This seems like a bug to me but I am hoping some one can lead me the right > > way to a solution. I basically have non-bookmarkable page that puts the a > > User object in the session. After this, if i click on a bookmarkable page > > link, that page does not have the user in the session. If I go back to my > > non-bookmarkable page, the user is there. > > > > How can i get this bookmarkable page to see the same session object? > > Maybe this has something to do with Pagemaps. But in any case, the same > > session object should be available to bookmarkable and non-bookmarkable > > pages correct? > > > > > > thanks in advance > > -- > > View this message in context: > > http://www.nabble.com/Bookmarkable-page-and-session-object-problem--%281.3-beta3%29-tf4403473.html#a12562289 > > Sent from the Wicket - User mailing list archive at Nabble.com. > > > > > > - > > 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] > > -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-beta3 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WebMarkupContainer without template markup
Can't you just call webmarkupcontainer.setRenderBodyOnly(true) ? -Matej On 9/7/07, Scott Swank <[EMAIL PROTECTED]> wrote: > I get what you're saying, but the images in question are scattered > across the page rather than in one place that could simply be > enclosed. Thank you none the less, I do appreciate the insight. > > Cheers, > Scott > > > On 9/7/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > well, thats kinda the point of the enclosure... > > > > it lets you group components together inside it, and let one of those > > components drive the visibility of the entire enclosure > > > > -igor > > > > > > On 9/7/07, Scott Swank <[EMAIL PROTECTED]> wrote: > > > > > > I could, but it's kind of the opposite of what I want. I want to > > > _not_ have to add an enclosing tag to the relevant portions of the > > > html template. So I don't mind coding a WebMarkupContainer -- I just > > > want to avoid having to change: > > > > > > > > > > > > to > > > > > > > > > > > > The basic problem is that sometimes we have a set of images for a > > > product (scattered across a few components) and sometimes we don't. > > > My thought is to wrap all of the relevant images in such a container > > > that knows how to determine isVisible(). > > > > > > Scott > > > > > > On 9/7/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > > > you can prob port enclosure to 1.2.6 yourself if you wanted it badly > > > > > > > > -igor > > > > > > > > > > > > On 9/7/07, Scott Swank <[EMAIL PROTECTED]> wrote: > > > > > > > > > > Pity we're not on 1.3 yet. Thank you though. > > > > > > > > > > Scott > > > > > > > > > > On 9/7/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > > > > > no, but you can try wicket:enclosure tag. see javadoc on > > > Enclosure.java > > > > > > > > > > > > -igor > > > > > > > > > > > > > > > > > > > > > > > > On 9/7/07, Scott Swank <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > > I want to make a few parts of my page visible or not in a > > > consistent > > > > > > > manner -- i.e. based on the same true/false result, which I derive > > > > > > > from my model. Can I wrap the relevant components in > > > > > > > WebMarkupContainer without adding a matching tag to my > > > markup? > > > > > > > > > > > > > > Thank you, > > > > > > > Scott > > > > > > > > > > - > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > > > -- > > > Scott Swank > > > reformed mathematician > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > -- > Scott Swank > reformed mathematician > > - > 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: Bookmarkable page and session object problem? (1.3 beta3)
We can't help you with this if you don't post any code. The session object should of course be available for bookmarkable and non-bookmarkable objects. -Matej On 9/7/07, Chris Lintz <[EMAIL PROTECTED]> wrote: > > Hi all, > This seems like a bug to me but I am hoping some one can lead me the right > way to a solution. I basically have non-bookmarkable page that puts the a > User object in the session. After this, if i click on a bookmarkable page > link, that page does not have the user in the session. If I go back to my > non-bookmarkable page, the user is there. > > How can i get this bookmarkable page to see the same session object? > Maybe this has something to do with Pagemaps. But in any case, the same > session object should be available to bookmarkable and non-bookmarkable > pages correct? > > > thanks in advance > -- > View this message in context: > http://www.nabble.com/Bookmarkable-page-and-session-object-problem--%281.3-beta3%29-tf4403473.html#a12562289 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > 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: Calling all translators - UrlValidator translation
OK found it browsing 1.3 beta. The string you want for: The English in question is: '${input}' is not a valid URL. is '${input}' no es una URL válida. Daniel dtoffe wrote: > > As of v. 1.2.6, I see there is no spanish .properties translation > file, if it's not already done in 1.3 I can contribute it. > > Daniel > > > Alastair Maw-2 wrote: >> >> Hi folks, >> >> I've just added a UrlValidator into trunk (WICKET-832, thanks Vincent >> Demay!). >> >> We're unfortunately lacking translations for the default error message >> in most languages. If you can help out for any of our supported >> languages, please shout. Feel free to e-mail me them directly, or reply >> to this thread with them. (You needn't bother with a proper patch unless >> you want to.) >> >> The English in question is: >> '${input}' is not a valid URL. >> >> Best regards, >> >> Al >> > > -- View this message in context: http://www.nabble.com/Calling-all-translators---UrlValidator-translation-tf4401987.html#a12562776 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: WebMarkupContainer without template markup
I get what you're saying, but the images in question are scattered across the page rather than in one place that could simply be enclosed. Thank you none the less, I do appreciate the insight. Cheers, Scott On 9/7/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > well, thats kinda the point of the enclosure... > > it lets you group components together inside it, and let one of those > components drive the visibility of the entire enclosure > > -igor > > > On 9/7/07, Scott Swank <[EMAIL PROTECTED]> wrote: > > > > I could, but it's kind of the opposite of what I want. I want to > > _not_ have to add an enclosing tag to the relevant portions of the > > html template. So I don't mind coding a WebMarkupContainer -- I just > > want to avoid having to change: > > > > > > > > to > > > > > > > > The basic problem is that sometimes we have a set of images for a > > product (scattered across a few components) and sometimes we don't. > > My thought is to wrap all of the relevant images in such a container > > that knows how to determine isVisible(). > > > > Scott > > > > On 9/7/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > > you can prob port enclosure to 1.2.6 yourself if you wanted it badly > > > > > > -igor > > > > > > > > > On 9/7/07, Scott Swank <[EMAIL PROTECTED]> wrote: > > > > > > > > Pity we're not on 1.3 yet. Thank you though. > > > > > > > > Scott > > > > > > > > On 9/7/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > > > > no, but you can try wicket:enclosure tag. see javadoc on > > Enclosure.java > > > > > > > > > > -igor > > > > > > > > > > > > > > > > > > > > On 9/7/07, Scott Swank <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > I want to make a few parts of my page visible or not in a > > consistent > > > > > > manner -- i.e. based on the same true/false result, which I derive > > > > > > from my model. Can I wrap the relevant components in > > > > > > WebMarkupContainer without adding a matching tag to my > > markup? > > > > > > > > > > > > Thank you, > > > > > > Scott > > > > > > > > - > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > -- > > Scott Swank > > reformed mathematician > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > -- Scott Swank reformed mathematician - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
CompressedResourceReference: can't get resource-url of static html in package
I think this will be an easy problem for you all... I want to create a new component for wicket-extensions: it is a already working wysiwyg-textarea. I packaged it like this: wicket.extensions.markup.html.form.wysiwyg - WysiwygTextarea.java - WysiwygTextarea.html wicket.extensions.markup.html.form.wysiwyg.res - btnBold_off.gif - ... - btnUnorderedList_off.gif - dialogTable.html - wysiwygTextarea.js I made ResourceReferences for all GIFs and added them as Image to the component's panel. I added the wysiwygTextarea.js as CompressedResourceReference with HeaderContributor.forJavaScript. They all work fine. the same I wanted to do with dialogTable.html (a static html page containing no wicket stuff) like this: - I need the url to this page in WysiwygTextarea.html as javascript variable 'dialogTableUrl' (defined in head): function openTableDialog() { var dialog = window.open(dialogTableUrl, "Tabelle", "status=no,modal=yes,width=350,height=150"); } so I tried private static final CompressedResourceReference DIALOG_TABLE_HTML = new CompressedResourceReference( WysiwygTextarea.class, "res/dialogTable.html"); and in onAttach() method (beside other things needed to be here): StringBuffer js = new StringBuffer(); js.append(JavascriptUtils.SCRIPT_OPEN_TAG); CharSequence charSequence = RequestCycle.get().urlFor(DIALOG_TABLE_HTML); js.append("var dialogTableUrl='" + charSequence.toString() + "';"); js.append(JavascriptUtils.SCRIPT_CLOSE_TAG); add(new StringHeaderContributor(js.toString())); but I get: 07.09.2007 21:48:26 wicket.RequestCycle step SCHWERWIEGEND: package resource wicket/extensions/markup/html/form/wysiwyg/res/dialogTable.html may not be accessed wicket.markup.html.PackageResource$PackageResourceBlockedException: package resource wicket/extensions/markup/html/form/wysiwyg/res/dialogTable.html may not be accessed at wicket.markup.html.PackageResource.(PackageResource.java:489) at wicket.markup.html.CompressedPackageResource.(CompressedPackageResource.java:51) at wicket.markup.html.CompressedPackageResource.get(CompressedPackageResource.java:83) at wicket.markup.html.resources.CompressedResourceReference.newResource(CompressedResourceReference.java:49) at wicket.ResourceReference.bind(ResourceReference.java:149) at wicket.ResourceReference.getSharedResourceKey(ResourceReference.java:231) at wicket.RequestCycle.urlFor(RequestCycle.java:746) at wicket.RequestCycle.urlFor(RequestCycle.java:730) at wicket.extensions.markup.html.form.wysiwyg.WysiwygTextarea.onAttach(WysiwygTextarea.java:104) How to output the Url to the packaged html page in WysiwygTextarea.html without bothering (adding code to) the application using the new wysiwyg component? -- View this message in context: http://www.nabble.com/CompressedResourceReference%3A-can%27t-get-resource-url-of-static-html-in-package-tf4403564.html#a12562566 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 page and session object problem? (1.3 beta3)
Hi all, This seems like a bug to me but I am hoping some one can lead me the right way to a solution. I basically have non-bookmarkable page that puts the a User object in the session. After this, if i click on a bookmarkable page link, that page does not have the user in the session. If I go back to my non-bookmarkable page, the user is there. How can i get this bookmarkable page to see the same session object? Maybe this has something to do with Pagemaps. But in any case, the same session object should be available to bookmarkable and non-bookmarkable pages correct? thanks in advance -- View this message in context: http://www.nabble.com/Bookmarkable-page-and-session-object-problem--%281.3-beta3%29-tf4403473.html#a12562289 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: Any interest in a Wicket User Group meeting in The Netherlands?
+1 looking forward to it!! Thijs Johan Compagner wrote: hi, I can organize one if there is enough interest Martijn and i will be there then. And for example if people are also interested in the wicket security i will also drag Maurice to the table. johan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Calling all translators - UrlValidator translation
As of v. 1.2.6, I see there is no spanish .properties translation file, if it's not already done in 1.3 I can contribute it. Daniel Alastair Maw-2 wrote: > > Hi folks, > > I've just added a UrlValidator into trunk (WICKET-832, thanks Vincent > Demay!). > > We're unfortunately lacking translations for the default error message > in most languages. If you can help out for any of our supported > languages, please shout. Feel free to e-mail me them directly, or reply > to this thread with them. (You needn't bother with a proper patch unless > you want to.) > > The English in question is: > '${input}' is not a valid URL. > > Best regards, > > Al > -- View this message in context: http://www.nabble.com/Calling-all-translators---UrlValidator-translation-tf4401987.html#a12561837 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: WebMarkupContainer without template markup
well, thats kinda the point of the enclosure... it lets you group components together inside it, and let one of those components drive the visibility of the entire enclosure -igor On 9/7/07, Scott Swank <[EMAIL PROTECTED]> wrote: > > I could, but it's kind of the opposite of what I want. I want to > _not_ have to add an enclosing tag to the relevant portions of the > html template. So I don't mind coding a WebMarkupContainer -- I just > want to avoid having to change: > > > > to > > > > The basic problem is that sometimes we have a set of images for a > product (scattered across a few components) and sometimes we don't. > My thought is to wrap all of the relevant images in such a container > that knows how to determine isVisible(). > > Scott > > On 9/7/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > you can prob port enclosure to 1.2.6 yourself if you wanted it badly > > > > -igor > > > > > > On 9/7/07, Scott Swank <[EMAIL PROTECTED]> wrote: > > > > > > Pity we're not on 1.3 yet. Thank you though. > > > > > > Scott > > > > > > On 9/7/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > > > no, but you can try wicket:enclosure tag. see javadoc on > Enclosure.java > > > > > > > > -igor > > > > > > > > > > > > > > > > On 9/7/07, Scott Swank <[EMAIL PROTECTED]> wrote: > > > > > > > > > > I want to make a few parts of my page visible or not in a > consistent > > > > > manner -- i.e. based on the same true/false result, which I derive > > > > > from my model. Can I wrap the relevant components in > > > > > WebMarkupContainer without adding a matching tag to my > markup? > > > > > > > > > > Thank you, > > > > > Scott > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > -- > Scott Swank > reformed mathematician > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: WebMarkupContainer without template markup
I could, but it's kind of the opposite of what I want. I want to _not_ have to add an enclosing tag to the relevant portions of the html template. So I don't mind coding a WebMarkupContainer -- I just want to avoid having to change: to The basic problem is that sometimes we have a set of images for a product (scattered across a few components) and sometimes we don't. My thought is to wrap all of the relevant images in such a container that knows how to determine isVisible(). Scott On 9/7/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > you can prob port enclosure to 1.2.6 yourself if you wanted it badly > > -igor > > > On 9/7/07, Scott Swank <[EMAIL PROTECTED]> wrote: > > > > Pity we're not on 1.3 yet. Thank you though. > > > > Scott > > > > On 9/7/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > > no, but you can try wicket:enclosure tag. see javadoc on Enclosure.java > > > > > > -igor > > > > > > > > > > > > On 9/7/07, Scott Swank <[EMAIL PROTECTED]> wrote: > > > > > > > > I want to make a few parts of my page visible or not in a consistent > > > > manner -- i.e. based on the same true/false result, which I derive > > > > from my model. Can I wrap the relevant components in > > > > WebMarkupContainer without adding a matching tag to my markup? > > > > > > > > Thank you, > > > > Scott > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > -- Scott Swank reformed mathematician - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WebMarkupContainer without template markup
you can prob port enclosure to 1.2.6 yourself if you wanted it badly -igor On 9/7/07, Scott Swank <[EMAIL PROTECTED]> wrote: > > Pity we're not on 1.3 yet. Thank you though. > > Scott > > On 9/7/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > no, but you can try wicket:enclosure tag. see javadoc on Enclosure.java > > > > -igor > > > > > > > > On 9/7/07, Scott Swank <[EMAIL PROTECTED]> wrote: > > > > > > I want to make a few parts of my page visible or not in a consistent > > > manner -- i.e. based on the same true/false result, which I derive > > > from my model. Can I wrap the relevant components in > > > WebMarkupContainer without adding a matching tag to my markup? > > > > > > Thank you, > > > Scott > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: WebMarkupContainer without template markup
Pity we're not on 1.3 yet. Thank you though. Scott On 9/7/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > no, but you can try wicket:enclosure tag. see javadoc on Enclosure.java > > -igor > > > > On 9/7/07, Scott Swank <[EMAIL PROTECTED]> wrote: > > > > I want to make a few parts of my page visible or not in a consistent > > manner -- i.e. based on the same true/false result, which I derive > > from my model. Can I wrap the relevant components in > > WebMarkupContainer without adding a matching tag to my markup? > > > > Thank you, > > Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WebMarkupContainer without template markup
no, but you can try wicket:enclosure tag. see javadoc on Enclosure.java -igor On 9/7/07, Scott Swank <[EMAIL PROTECTED]> wrote: > > I want to make a few parts of my page visible or not in a consistent > manner -- i.e. based on the same true/false result, which I derive > from my model. Can I wrap the relevant components in > WebMarkupContainer without adding a matching tag to my markup? > > Thank you, > Scott > > -- > Scott Swank > reformed mathematician > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Any interest in a Wicket User Group meeting in The Netherlands?
ah, finally a reason to attend one of this jspring/jfall/javapolis things. Francis De Brabandere wrote: Would be great On 9/7/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote: I'll be presenting on JavaPolis this december, so we can easily plan a BoF in the evening. Martijn On 9/7/07, Francis De Brabandere <[EMAIL PROTECTED]> wrote: any chance you could do this a bit more near belgium? :-) On 9/7/07, "C. Bergström" <[EMAIL PROTECTED]> wrote: Johan Compagner wrote: hi, I can organize one if there is enough interest Martijn and i will be there then. And for example if people are also interested in the wicket security i will also drag Maurice to the table. I can attend while I'm in the Netherlands and will probably drag (willingly) another colleague of mine. Did anyone have any ideas where it would be? (We're near Haarlem and if needed *maybe* could host it as well.) +2 ./C - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- http://www.somatik.be Microsoft gives you windows, Linux gives you the whole house. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-beta3 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/ - 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: PageLink and markup inheritance problem
can you build a quickstart that reproduces it? -igor On 9/7/07, Carlos Pita <[EMAIL PROTECTED]> wrote: > > I'm getting the exception below when following a PageLink, but not > with a BookmarkablePageLink. This wasn't happening with previous 1.3 > snapshots (I updated my wicket copy this morning). The PageLink is > created by the (id,class) constructor this way: > > new PageLink(id, ChangePasswordPage.class) > > ChangePasswordPage is a MyAccountLayout, markup inheritance takes > place here. The markup is fine as I can open the page by the name it's > mounted or using the bookmarkable link, as I said before. > > Any ideas? > > Thank you in advance > Carlos > > --- > > Unexpected RuntimeException > > WicketMessage: Markup of type 'html' for component > 'com.livra.web.user.myaccount.ChangePasswordPage' not found. Enable > debug messages for org.apache.wicket.util.resource to get a list of > all filenames tried: > [Page class = com.livra.web.user.myaccount.ChangePasswordPage, id = 8, > version = 0] > > Root cause: > > org.apache.wicket.WicketRuntimeException: Parameter clazz must be an > instance of com.livra.web.user.myaccount.ChangePasswordPage, but is a > com.livra.web.user.myaccount.MyAccountLayout > at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:270) > at > org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.checkForMarkupInheritance > (InheritedMarkupMarkupLoader.java:99) > at org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.loadMarkup( > InheritedMarkupMarkupLoader.java:65) > at org.apache.wicket.markup.loader.DefaultMarkupLoader.loadMarkup( > DefaultMarkupLoader.java:56) > at org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:415) > at o > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Problem with DropDownChoice and AjaxFormComponentUpdatingBehavior
Thank you Carlos! This was exactly what I needed to do. Julian Carlos Pita-4 wrote: > > protected void onUpdate(AjaxRequestTarget target) { > dropDown2.clearInput(); <--- reset input !!! > dropDown2.setModelObject(null); > target.addComponent(dropDown2); > } > -- View this message in context: http://www.nabble.com/Problem-with-DropDownChoice-and-AjaxFormComponentUpdatingBehavior-tf4394596.html#a12561183 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
WebMarkupContainer without template markup
I want to make a few parts of my page visible or not in a consistent manner -- i.e. based on the same true/false result, which I derive from my model. Can I wrap the relevant components in WebMarkupContainer without adding a matching tag to my markup? Thank you, Scott -- Scott Swank reformed mathematician - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Disable loading image from browser cache
Thanks Igor. It is working! Fero igor.vaynberg wrote: > > extend NonCachingImage instead > > -igor > > > On 9/7/07, fero <[EMAIL PROTECTED]> wrote: >> >> >> Hi, >> I have a Panel with some images (charts generated with jfreechart) and a >> datatable. This Panel is in AjaxTabbedPanel and every time it is accessed >> data table is evaluated and charts renewed. But only table is updated and >> charts stay the same (they are loaded from cache), they are reloaded only >> by >> pressing CTRL-F5. How to make them update automatically? >> >> Code: >> ***Panel with charts and table*** >> >> public CelkoveEmisiePanel(String id, Collection celkoveEmisie) { >> super(id); >> add(emisieTable(celkoveEmisie)); >> >> JFreeChartImage poplatkyChart = new >> JFreeChartImage("chart1", >> pieChart(createDatasetPoplatky(celkoveEmisie),"Poplatky"), 300, 300); >> poplatkyChart.setOutputMarkupId(true); >> add(poplatkyChart); >> >> JFreeChartImage mnozstvoChart = new >> JFreeChartImage("chart2", >> pieChart(createDatasetMnozstvo(celkoveEmisie),"Vypúšťané množstvo"), 300, >> 300); >> mnozstvoChart.setOutputMarkupId(true); >> add(mnozstvoChart); >> } >> >> >> ***JFreeChartImage from >> http://cwiki.apache.org/WICKET/jfreechart-and-wicket-example.html* >> >> public class JFreeChartImage extends Image { >> >> private int width; >> private int height; >> >> public JFreeChartImage(String id, JFreeChart chart, int width, >> int >> height){ >> super(id, new Model(chart)); >> this.width = width; >> this.height = height; >> } >> >> protected Resource getImageResource() { >> return new DynamicImageResource(){ >> >> protected byte[] getImageData() { >> JFreeChart chart = (JFreeChart)getModelObject(); >> return >> toImageData(chart.createBufferedImage(width, >> height)); >> } >> >> protected void setHeaders(WebResponse response) { >> if (isCacheable()) { >> super.setHeaders(response); >> } else { >> response.setHeader("Pragma", "no-cache"); >> response.setHeader("Cache-Control", >> "no-cache"); >> response.setDateHeader("Expires", 0); >> } >> } >> }; >> } >> >> } >> -- >> View this message in context: >> http://www.nabble.com/Disable-loading-image-from-browser-cache-tf4402977.html#a12560615 >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > -- View this message in context: http://www.nabble.com/Disable-loading-image-from-browser-cache-tf4402977.html#a12560815 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: Disable loading image from browser cache
extend NonCachingImage instead -igor On 9/7/07, fero <[EMAIL PROTECTED]> wrote: > > > Hi, > I have a Panel with some images (charts generated with jfreechart) and a > datatable. This Panel is in AjaxTabbedPanel and every time it is accessed > data table is evaluated and charts renewed. But only table is updated and > charts stay the same (they are loaded from cache), they are reloaded only > by > pressing CTRL-F5. How to make them update automatically? > > Code: > ***Panel with charts and table*** > > public CelkoveEmisiePanel(String id, Collection celkoveEmisie) { > super(id); > add(emisieTable(celkoveEmisie)); > > JFreeChartImage poplatkyChart = new > JFreeChartImage("chart1", > pieChart(createDatasetPoplatky(celkoveEmisie),"Poplatky"), 300, 300); > poplatkyChart.setOutputMarkupId(true); > add(poplatkyChart); > > JFreeChartImage mnozstvoChart = new > JFreeChartImage("chart2", > pieChart(createDatasetMnozstvo(celkoveEmisie),"Vypúšťané množstvo"), 300, > 300); > mnozstvoChart.setOutputMarkupId(true); > add(mnozstvoChart); > } > > > ***JFreeChartImage from > http://cwiki.apache.org/WICKET/jfreechart-and-wicket-example.html* > > public class JFreeChartImage extends Image { > > private int width; > private int height; > > public JFreeChartImage(String id, JFreeChart chart, int width, int > height){ > super(id, new Model(chart)); > this.width = width; > this.height = height; > } > > protected Resource getImageResource() { > return new DynamicImageResource(){ > > protected byte[] getImageData() { > JFreeChart chart = (JFreeChart)getModelObject(); > return toImageData(chart.createBufferedImage(width, > height)); > } > > protected void setHeaders(WebResponse response) { > if (isCacheable()) { > super.setHeaders(response); > } else { > response.setHeader("Pragma", "no-cache"); > response.setHeader("Cache-Control", > "no-cache"); > response.setDateHeader("Expires", 0); > } > } > }; > } > > } > -- > View this message in context: > http://www.nabble.com/Disable-loading-image-from-browser-cache-tf4402977.html#a12560615 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Disable loading image from browser cache
Hi, I have a Panel with some images (charts generated with jfreechart) and a datatable. This Panel is in AjaxTabbedPanel and every time it is accessed data table is evaluated and charts renewed. But only table is updated and charts stay the same (they are loaded from cache), they are reloaded only by pressing CTRL-F5. How to make them update automatically? Code: ***Panel with charts and table*** public CelkoveEmisiePanel(String id, Collection celkoveEmisie) { super(id); add(emisieTable(celkoveEmisie)); JFreeChartImage poplatkyChart = new JFreeChartImage("chart1", pieChart(createDatasetPoplatky(celkoveEmisie),"Poplatky"), 300, 300); poplatkyChart.setOutputMarkupId(true); add(poplatkyChart); JFreeChartImage mnozstvoChart = new JFreeChartImage("chart2", pieChart(createDatasetMnozstvo(celkoveEmisie),"Vypúšťané množstvo"), 300, 300); mnozstvoChart.setOutputMarkupId(true); add(mnozstvoChart); } ***JFreeChartImage from http://cwiki.apache.org/WICKET/jfreechart-and-wicket-example.html* public class JFreeChartImage extends Image { private int width; private int height; public JFreeChartImage(String id, JFreeChart chart, int width, int height){ super(id, new Model(chart)); this.width = width; this.height = height; } protected Resource getImageResource() { return new DynamicImageResource(){ protected byte[] getImageData() { JFreeChart chart = (JFreeChart)getModelObject(); return toImageData(chart.createBufferedImage(width, height)); } protected void setHeaders(WebResponse response) { if (isCacheable()) { super.setHeaders(response); } else { response.setHeader("Pragma", "no-cache"); response.setHeader("Cache-Control", "no-cache"); response.setDateHeader("Expires", 0); } } }; } } -- View this message in context: http://www.nabble.com/Disable-loading-image-from-browser-cache-tf4402977.html#a12560615 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: Re: Wicket maven archetype
Works, Thanks - Originálna Správa - Od: Gwyn Evans Komu: Poslaná: 07.09.2007 11:00 Predmet: Re: Wicket maven archetype > On Friday, September 7, 2007, 9:38:53 AM, Al wrote: > > > Gwyn Evans wrote: > >> It\'s a bug in the Maven Surefire plugin V2.3 that shows up if there\'s > >> a src/test/java tree but neither JUnit or TestNG in the dependencies. > >> > >> Simplest fix is to add > >> > >> > >> junit > >> junit > >> 3.8.2 > >> provided > >> > >> > >> to the generated pom.xml\'s section. I\'ve added it to > >> the code for the archetype in SVN, but can\'t do anything about the > >> one already published in beta3. > > > That should surely be test? > > > Regards, > > > Al > > Well caught - must be more careful when I cut & paste! > > > /Gwyn > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > __ http://www.tahaj.sk - Stiahnite si najnovsie verzie vasich oblubenych programov - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Wicket Stuff Dojo Repository
Where did it move to? Aaron - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie - Help in setup of Wicket with Eclipse and Weblogic...
see this page http://cwiki.apache.org/WICKET/documentation-index.html#DocumentationIndex-Codeasdocumentation under archetype use the archetype to create a new app then cd into that app "mvn eclipse:eclipse" will create an eclipse project which you can then import into eclipse "mvn war" will create a war file you can deploy into weblogic -igor On 9/7/07, schu777 <[EMAIL PROTECTED]> wrote: > > > Hi Everyone, > > I'm very "new" to setting up a web app - I've only done bug fixes and a > few > enhancements to web apps that were already configured. So I'm trying to > learn Wicket to see how easy it would be to replace an application at work > that has over 500 data fields with business rules around nearly 300 of > them, > if not more. > > Anyway, what I'm needing is a sample or step-by-step process of creating a > web application using wicket in Eclipse and then deploying it to Weblogic. > Even if it's just the simple "Hello World" application... > > Here are the versions I'm running: > > Eclplise: 3.2.1 - build M20060921-0945 > BEA Weblogic: 8.1 > > If I need to provide more info, then let me know... > > Thanks, Michael > -- > View this message in context: > http://www.nabble.com/Newbie---Help-in-setup-of-Wicket-with-Eclipse-and-Weblogic...-tf4402688.html#a12559748 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Newbie - Help in setup of Wicket with Eclipse and Weblogic...
Hi Everyone, I'm very "new" to setting up a web app - I've only done bug fixes and a few enhancements to web apps that were already configured. So I'm trying to learn Wicket to see how easy it would be to replace an application at work that has over 500 data fields with business rules around nearly 300 of them, if not more. Anyway, what I'm needing is a sample or step-by-step process of creating a web application using wicket in Eclipse and then deploying it to Weblogic. Even if it's just the simple "Hello World" application... Here are the versions I'm running: Eclplise: 3.2.1 - build M20060921-0945 BEA Weblogic: 8.1 If I need to provide more info, then let me know... Thanks, Michael -- View this message in context: http://www.nabble.com/Newbie---Help-in-setup-of-Wicket-with-Eclipse-and-Weblogic...-tf4402688.html#a12559748 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: Calling all translators - UrlValidator translation
hi al, here are all missing german translations: StringValidator.exact='${input}' ist nicht exakt ${exact} Zeichen lang. CreditCardValidator=Die Kreditkartennummer ist ung\u00fcltig. UrlValidator='${input}' ist keine g\u00fcltige URL. i guess you could use that for the swiss translation too. gerolf On 9/7/07, Alastair Maw <[EMAIL PROTECTED]> wrote: > > Hi folks, > > I've just added a UrlValidator into trunk (WICKET-832, thanks Vincent > Demay!). > > We're unfortunately lacking translations for the default error message > in most languages. If you can help out for any of our supported > languages, please shout. Feel free to e-mail me them directly, or reply > to this thread with them. (You needn't bother with a proper patch unless > you want to.) > > The English in question is: > '${input}' is not a valid URL. > > Best regards, > > Al > > -- > Alastair Maw > MX Telecom > Tel: +44 (0) 845 666 7778 > http://www.mxtelecom.com > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Copenhagen wicket users meeting?
Hi Nino Well, I am from Denmark and I think the initiative is great. Even if I am from Skanderborg, I would definitely like to meet up with you guys some time. So keep me posted please. Best regards, Jan Nino Saturnino Martinez Vazquez Wael wrote: Some time has past since our last meeting. Perhaps it's time for a new one? We could focus this meeting on using basic wicket. In order to have more newcommers? Whats your opinion on this people? What would make you come to the meeting, and how many are we from denmark? regards Nino - 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 1.3 beta 3} Howto add keywords No cache etc?
Well, i guess with component path encoded in url, the milliseconds could do ;) -Matej On 9/7/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > Yes, but all those images will have a different url, or are they the > same? The milliseconds parameter is only used to distinguish between > requests, not within one. > > Martijn > > On 9/7/07, Matej Knopp <[EMAIL PROTECTED]> wrote: > > Really? What's so odd about it? Say you have a page with 100 images. > > How long do you think such page renders? It shouldn't take long than > > say 5 ms on a decent machine. > > > > -Matej > > > > On 9/7/07, Johan Compagner <[EMAIL PROTECTED]> wrote: > > > 2 tags generating the same milisecond for the same client/session? > > > that looks very very very odd to me. > > > > > > johan > > > > > > > > > On 9/7/07, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> > > > wrote: > > > > > > > > Actually we discussed that. > > > > > > > > I suggested it but as Matej wrote: > > > > don't think so. you can have two tags generated in same millisecond.. As > > > > for nano might be better, lesser chance for tags being generated in the > > > > same nanosec. But whats wrong with autoindex? > > > > > > > > Martijn Dashorst wrote: > > > > > Why not use System.currentTimeMillis()? Or if you are really concerned > > > > > use nanotime. > > > > > > > > > > Martijn > > > > > > > > > > On 9/7/07, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> > > > > wrote: > > > > > > > > > >> so no, talking to Matej on ##wicket, the fix was this: > > > > >> > > > > >> Resolutions are these two : > > > > >> protected void onComponentTag(ComponentTag tag) { > > > > >> super.onComponentTag(tag); > > > > >> tag.put("src", tag.getString("src") + "&rand=" + > > > > >> Math.random()); > > > > >> } > > > > >> > > > > >> or event better since random could give duplicate results: > > > > >> protected void onComponentTag(ComponentTag tag) { > > > > >> super.onComponentTag(tag); > > > > >> tag.put("src", tag.getString("src") + "&autoIndex=" + > > > > >> getPage().getAutoIndex()); > > > > >> } > > > > >> Although im not sure if its safe to use autoIndex?I've put up a > > > > >> feature > > > > >> request for it to be implemented. > > > > >> > > > > >> https://issues.apache.org/jira/browse/WICKET-939 > > > > >> > > > > >> > > > > >> -Nino > > > > >> > > > > >> > > > > >> Nino Saturnino Martinez Vazquez Wael wrote: > > > > >> > > > > >>> this is whats generated: > > > > >>> > > > > >>> > > > > http://localhost:8080/thirdparty-webapp/thirdParty/?wicket:interface=:4:form:phoneA:phoneThumb:image::IResourceListener > > > > :: > > > > >>> > > > > >>> > > > > >>> regards Nino > > > > >>> > > > > >>> Martijn Dashorst wrote: > > > > >>> > > > > The most failsafe solution to the update image using Ajax request > > > > to > > > > my mind is to add a random number to the url for the image (I > > > > thought > > > > we already did that?). > > > > > > > > Martijn > > > > > > > > On 9/7/07, Nino Saturnino Martinez Vazquez Wael > > > > <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > Hi > > > > > > > > > > How do I add keywords no-cache and etc, for a panel? Reason are > > > > > that > > > > > the > > > > > panel carries a image and that gets cached so when my ajax call > > > > > comes in > > > > > and updates the model then the old image are shown.. > > > > > > > > > > regards Nino > > > > > > > > > > > > > > > > > > > - > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >>> - > > > > >>> To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > >>> For additional commands, e-mail: [EMAIL PROTECTED] > > > > >>> > > > > >>> > > > > >>> > > > > >> - > > > > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > >> For additional commands, e-mail: [EMAIL PROTECTED] > > > > >> > > > > >> > > > > >> > > > > > > > > > > > > > > > > > > > > > > > - > > > > 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] > > > > > > > -- > Buy Wicket in Action: http://manning.com/dashorst > Apache Wicket 1.3.0-beta3 is released > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/ > > - > To unsu
Re: {wicket 1.3 beta 3} Howto add keywords No cache etc?
Yes, but all those images will have a different url, or are they the same? The milliseconds parameter is only used to distinguish between requests, not within one. Martijn On 9/7/07, Matej Knopp <[EMAIL PROTECTED]> wrote: > Really? What's so odd about it? Say you have a page with 100 images. > How long do you think such page renders? It shouldn't take long than > say 5 ms on a decent machine. > > -Matej > > On 9/7/07, Johan Compagner <[EMAIL PROTECTED]> wrote: > > 2 tags generating the same milisecond for the same client/session? > > that looks very very very odd to me. > > > > johan > > > > > > On 9/7/07, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> > > wrote: > > > > > > Actually we discussed that. > > > > > > I suggested it but as Matej wrote: > > > don't think so. you can have two tags generated in same millisecond.. As > > > for nano might be better, lesser chance for tags being generated in the > > > same nanosec. But whats wrong with autoindex? > > > > > > Martijn Dashorst wrote: > > > > Why not use System.currentTimeMillis()? Or if you are really concerned > > > > use nanotime. > > > > > > > > Martijn > > > > > > > > On 9/7/07, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> > > > wrote: > > > > > > > >> so no, talking to Matej on ##wicket, the fix was this: > > > >> > > > >> Resolutions are these two : > > > >> protected void onComponentTag(ComponentTag tag) { > > > >> super.onComponentTag(tag); > > > >> tag.put("src", tag.getString("src") + "&rand=" + > > > >> Math.random()); > > > >> } > > > >> > > > >> or event better since random could give duplicate results: > > > >> protected void onComponentTag(ComponentTag tag) { > > > >> super.onComponentTag(tag); > > > >> tag.put("src", tag.getString("src") + "&autoIndex=" + > > > >> getPage().getAutoIndex()); > > > >> } > > > >> Although im not sure if its safe to use autoIndex?I've put up a feature > > > >> request for it to be implemented. > > > >> > > > >> https://issues.apache.org/jira/browse/WICKET-939 > > > >> > > > >> > > > >> -Nino > > > >> > > > >> > > > >> Nino Saturnino Martinez Vazquez Wael wrote: > > > >> > > > >>> this is whats generated: > > > >>> > > > >>> > > > http://localhost:8080/thirdparty-webapp/thirdParty/?wicket:interface=:4:form:phoneA:phoneThumb:image::IResourceListener > > > :: > > > >>> > > > >>> > > > >>> regards Nino > > > >>> > > > >>> Martijn Dashorst wrote: > > > >>> > > > The most failsafe solution to the update image using Ajax request to > > > my mind is to add a random number to the url for the image (I thought > > > we already did that?). > > > > > > Martijn > > > > > > On 9/7/07, Nino Saturnino Martinez Vazquez Wael > > > <[EMAIL PROTECTED]> wrote: > > > > > > > > > > Hi > > > > > > > > How do I add keywords no-cache and etc, for a panel? Reason are that > > > > the > > > > panel carries a image and that gets cached so when my ajax call > > > > comes in > > > > and updates the model then the old image are shown.. > > > > > > > > regards Nino > > > > > > > > > > > > > > > - > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > > > > > >>> - > > > >>> To unsubscribe, e-mail: [EMAIL PROTECTED] > > > >>> For additional commands, e-mail: [EMAIL PROTECTED] > > > >>> > > > >>> > > > >>> > > > >> - > > > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > > > >> For additional commands, e-mail: [EMAIL PROTECTED] > > > >> > > > >> > > > >> > > > > > > > > > > > > > > > > > > - > > > 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] > > -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-beta3 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: {wicket 1.3 beta 3} Howto add keywords No cache etc?
Really? What's so odd about it? Say you have a page with 100 images. How long do you think such page renders? It shouldn't take long than say 5 ms on a decent machine. -Matej On 9/7/07, Johan Compagner <[EMAIL PROTECTED]> wrote: > 2 tags generating the same milisecond for the same client/session? > that looks very very very odd to me. > > johan > > > On 9/7/07, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> > wrote: > > > > Actually we discussed that. > > > > I suggested it but as Matej wrote: > > don't think so. you can have two tags generated in same millisecond.. As > > for nano might be better, lesser chance for tags being generated in the > > same nanosec. But whats wrong with autoindex? > > > > Martijn Dashorst wrote: > > > Why not use System.currentTimeMillis()? Or if you are really concerned > > > use nanotime. > > > > > > Martijn > > > > > > On 9/7/07, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> > > wrote: > > > > > >> so no, talking to Matej on ##wicket, the fix was this: > > >> > > >> Resolutions are these two : > > >> protected void onComponentTag(ComponentTag tag) { > > >> super.onComponentTag(tag); > > >> tag.put("src", tag.getString("src") + "&rand=" + > > >> Math.random()); > > >> } > > >> > > >> or event better since random could give duplicate results: > > >> protected void onComponentTag(ComponentTag tag) { > > >> super.onComponentTag(tag); > > >> tag.put("src", tag.getString("src") + "&autoIndex=" + > > >> getPage().getAutoIndex()); > > >> } > > >> Although im not sure if its safe to use autoIndex?I've put up a feature > > >> request for it to be implemented. > > >> > > >> https://issues.apache.org/jira/browse/WICKET-939 > > >> > > >> > > >> -Nino > > >> > > >> > > >> Nino Saturnino Martinez Vazquez Wael wrote: > > >> > > >>> this is whats generated: > > >>> > > >>> > > http://localhost:8080/thirdparty-webapp/thirdParty/?wicket:interface=:4:form:phoneA:phoneThumb:image::IResourceListener > > :: > > >>> > > >>> > > >>> regards Nino > > >>> > > >>> Martijn Dashorst wrote: > > >>> > > The most failsafe solution to the update image using Ajax request to > > my mind is to add a random number to the url for the image (I thought > > we already did that?). > > > > Martijn > > > > On 9/7/07, Nino Saturnino Martinez Vazquez Wael > > <[EMAIL PROTECTED]> wrote: > > > > > > > Hi > > > > > > How do I add keywords no-cache and etc, for a panel? Reason are that > > > the > > > panel carries a image and that gets cached so when my ajax call > > > comes in > > > and updates the model then the old image are shown.. > > > > > > regards Nino > > > > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > >>> - > > >>> To unsubscribe, e-mail: [EMAIL PROTECTED] > > >>> For additional commands, e-mail: [EMAIL PROTECTED] > > >>> > > >>> > > >>> > > >> - > > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > > >> For additional commands, e-mail: [EMAIL PROTECTED] > > >> > > >> > > >> > > > > > > > > > > > > > - > > 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]
Calling all translators - UrlValidator translation
Hi folks, I've just added a UrlValidator into trunk (WICKET-832, thanks Vincent Demay!). We're unfortunately lacking translations for the default error message in most languages. If you can help out for any of our supported languages, please shout. Feel free to e-mail me them directly, or reply to this thread with them. (You needn't bother with a proper patch unless you want to.) The English in question is: '${input}' is not a valid URL. Best regards, Al -- Alastair Maw MX Telecom Tel: +44 (0) 845 666 7778 http://www.mxtelecom.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Any interest in a Wicket User Group meeting in The Netherlands?
Would be great On 9/7/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > I'll be presenting on JavaPolis this december, so we can easily plan a > BoF in the evening. > > Martijn > > On 9/7/07, Francis De Brabandere <[EMAIL PROTECTED]> wrote: > > any chance you could do this a bit more near belgium? :-) > > > > On 9/7/07, "C. Bergström" <[EMAIL PROTECTED]> wrote: > > > Johan Compagner wrote: > > > > hi, > > > > > > > > I can organize one if there is enough interest > > > > Martijn and i will be there then. > > > > > > > > And for example if people are also interested in the wicket security i > > > > will > > > > also drag Maurice to the table. > > > I can attend while I'm in the Netherlands and will probably drag > > > (willingly) another colleague of mine. > > > > > > Did anyone have any ideas where it would be? (We're near Haarlem and if > > > needed *maybe* could host it as well.) > > > > > > +2 > > > > > > ./C > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > -- > > http://www.somatik.be > > Microsoft gives you windows, Linux gives you the whole house. > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > Buy Wicket in Action: http://manning.com/dashorst > Apache Wicket 1.3.0-beta3 is released > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/ > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- http://www.somatik.be Microsoft gives you windows, Linux gives you the whole house. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Any interest in a Wicket User Group meeting in The Netherlands?
I'll be presenting on JavaPolis this december, so we can easily plan a BoF in the evening. Martijn On 9/7/07, Francis De Brabandere <[EMAIL PROTECTED]> wrote: > any chance you could do this a bit more near belgium? :-) > > On 9/7/07, "C. Bergström" <[EMAIL PROTECTED]> wrote: > > Johan Compagner wrote: > > > hi, > > > > > > I can organize one if there is enough interest > > > Martijn and i will be there then. > > > > > > And for example if people are also interested in the wicket security i > > > will > > > also drag Maurice to the table. > > I can attend while I'm in the Netherlands and will probably drag > > (willingly) another colleague of mine. > > > > Did anyone have any ideas where it would be? (We're near Haarlem and if > > needed *maybe* could host it as well.) > > > > +2 > > > > ./C > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > http://www.somatik.be > Microsoft gives you windows, Linux gives you the whole house. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-beta3 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Any interest in a Wicket User Group meeting in The Netherlands?
any chance you could do this a bit more near belgium? :-) On 9/7/07, "C. Bergström" <[EMAIL PROTECTED]> wrote: > Johan Compagner wrote: > > hi, > > > > I can organize one if there is enough interest > > Martijn and i will be there then. > > > > And for example if people are also interested in the wicket security i will > > also drag Maurice to the table. > I can attend while I'm in the Netherlands and will probably drag > (willingly) another colleague of mine. > > Did anyone have any ideas where it would be? (We're near Haarlem and if > needed *maybe* could host it as well.) > > +2 > > ./C > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- http://www.somatik.be Microsoft gives you windows, Linux gives you the whole house. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DataTable header that spans multiple columns
if its _just_ the header, then simply create your own headerstoolbar -igor On 9/7/07, ChuckDeal <[EMAIL PROTECTED]> wrote: > > > The *content* of the datatable is tabular, it is just the heading that I > was > trying to render in a more elaborate layout. > > Would you still offer the same advice even if it is just the header? > > Chuck > > > igor.vaynberg wrote: > > > > datatable is really made for tabular data. if you have spans, etc, then > i > > suggest you go with a dataview > > > > -igor > > > > > > On 9/7/07, ChuckDeal <[EMAIL PROTECTED]> wrote: > >> > >> > >> When using the DataTable with HeadersToolbar you can display the Label > >> associated with the column as the column Header. Has anyone had a case > >> where they wanted a label to span columns? Specifically, something > where > >> row one is a category that spans three columns and then row two > contains > >> individual columns where the label represents a specific category. > >> > >> Has anyone done this or does anyone have a good idea how to solve this > in > >> a > >> "nice" way? > >> > >> Thanks > >> Chuck > > > > -- > View this message in context: > http://www.nabble.com/DataTable-header-that-spans-multiple-columns-tf4401243.html#a12557319 > 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: DataTable header that spans multiple columns
The *content* of the datatable is tabular, it is just the heading that I was trying to render in a more elaborate layout. Would you still offer the same advice even if it is just the header? Chuck igor.vaynberg wrote: > > datatable is really made for tabular data. if you have spans, etc, then i > suggest you go with a dataview > > -igor > > > On 9/7/07, ChuckDeal <[EMAIL PROTECTED]> wrote: >> >> >> When using the DataTable with HeadersToolbar you can display the Label >> associated with the column as the column Header. Has anyone had a case >> where they wanted a label to span columns? Specifically, something where >> row one is a category that spans three columns and then row two contains >> individual columns where the label represents a specific category. >> >> Has anyone done this or does anyone have a good idea how to solve this in >> a >> "nice" way? >> >> Thanks >> Chuck > -- View this message in context: http://www.nabble.com/DataTable-header-that-spans-multiple-columns-tf4401243.html#a12557319 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: DatePicker format?
Hi, i cant help you with the datepicker (im on 1.3) , but to have special-formated dates in an TextField you need sth like this: new Model() { @Override public Object getObject() { Date dt = new Date(getYourDate()); SimpleDateFormat sdf = new SimpleDateFormat("d.M."); return sdf.format(dt); } @Override public void setObject(Serializable object) { SimpleDateFormat sdf = new SimpleDateFormat("d.M."); Date date; try { date = sdf.parse((String) object); setYourDate(); } catch (ParseException ex) { ex.printStackTrace(); } } } meaning you need to implement the conversion yourself of the Date to any pattern you want - or you stick using the DateTextField but then need to set the Locale app-wide to the needed settings the way Francis De Brabandere posted yesterday at 18:23: " You can override newConverterLocator in your Application @Override protected IConverterLocator newConverterLocator() { ConverterLocator locator = new ConverterLocator(); locator.set(java.sql.Date.class, dateConverter); locator.set(Date.class, dateConverter); locator.set(Timestamp.class, dateConverter); return locator; } with dateConverter being something like this public final class DateTimeConverter extends DateConverter { @Override public DateFormat getDateFormat(Locale locale) { return DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.SHORT, locale); } } " Best Regards Korbinian Onno Scheffers schrieb: Hi, how can I get the wicket.extensions.markup.html.datepicker.DateFormat (Wicket 1.2.6) to use a custom DateFormat? I keep getting validation problems as soon as I try to switch to another DateFormat. HTML: wicket:id="datePicker" /> Java: TextField dateField = new TextField("date", Date.class); dateField.setRequired(true); add(dateField); DatePicker dp = new DatePicker("datePicker", dateField); dp.setDateConverter(new DateConverter() { public DateFormat getDateFormat(Locale locale) { return new SimpleDateFormat("d-M-"); } }); add(dp); When I leave out the call to setDateConverter, the default format seems to be MM/dd/ for me. When setting the DateConverter like I did in the above code, the format seems to switch from MM/dd/ to dd-MM- (instead of the expected d-M-?). So when I pick september 19th for example, it fills in 17-09-2007 into the TextField, but when I submit that value I get: '17-09-2007' is not a valid Date. Only '9/17/2007' or '09/17/2007' are accepted, which is weird since the DatePicker now puts a value into the textfield which is known to be invalid? I also tried providing a DatePickerSettings object that overrides the getIfFormat(Locale) method to always return "%d-%m-%Y", but that didn't help either. - Onno - 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: DatePicker format?
Hi, you should set the same date format for the text field. For example, you can use DateTextField from the wicket-extensions project: DateTextField dateField = new DateTextField("from", "d-M-"); Onno Scheffers wrote: Hi, how can I get the wicket.extensions.markup.html.datepicker.DateFormat (Wicket 1.2.6) to use a custom DateFormat? I keep getting validation problems as soon as I try to switch to another DateFormat. HTML: wicket:id="datePicker" /> Java: TextField dateField = new TextField("date", Date.class); dateField.setRequired(true); add(dateField); DatePicker dp = new DatePicker("datePicker", dateField); dp.setDateConverter(new DateConverter() { public DateFormat getDateFormat(Locale locale) { return new SimpleDateFormat("d-M-"); } }); add(dp); When I leave out the call to setDateConverter, the default format seems to be MM/dd/ for me. When setting the DateConverter like I did in the above code, the format seems to switch from MM/dd/ to dd-MM- (instead of the expected d-M-?). So when I pick september 19th for example, it fills in 17-09-2007 into the TextField, but when I submit that value I get: '17-09-2007' is not a valid Date. Only '9/17/2007' or '09/17/2007' are accepted, which is weird since the DatePicker now puts a value into the textfield which is known to be invalid? I also tried providing a DatePickerSettings object that overrides the getIfFormat(Locale) method to always return "%d-%m-%Y", but that didn't help either. - Onno - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Andrew Klochkov - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AjaxSubmitLink does nothing in IE
On 9/7/07, Anthony J Webster <[EMAIL PROTECTED]> wrote: > > That works fine. Thanks > However I've just noticed that this AjaxSubmitLink doesn't do anything in > IE > whereas in Firefox it works. > I check the Ajax debug window and the server *is* contacted and everything > however after recieving the response I get an "ERROR: Error while parsing > response: Unknown runtime error" in IE. > > Any Ideas? well clearly according to the message there is an unknown error! -igor Many Thanks > > Anthony > > - Original Message - > From: "Matej Knopp" <[EMAIL PROTECTED]> > To: > Sent: Thursday, September 06, 2007 11:35 PM > Subject: Re: Creating a disableable AjaxSubmitLink > > > > Something like the following should work: > > > > decorateScript: > > "this.onclick_=this.onclick; this.onclick=function() { return false; > > };" + script; > > > > onSuccess,onFailureScript: > > this.onclick=this.onclick_; + script; > > > > -Matej > > > > On 9/6/07, Anthony J Webster <[EMAIL PROTECTED]> wrote: > >> Hi, > >> > >> I'm trying to create a disableable AjaxSubmitLink. When a user clicks > on > >> the link further clicks must not result in anything until the > >> 'submission' is complete. This call be achieved by adding "return > false;" > >> in a call decorator. However I'm stuggling with the re-enabling. I need > >> to strip the "return false" and put the original destination back. > >> > >> form.add(new AjaxSubmitLink("randomise", form) { > >> > >> protected void onSubmit(AjaxRequestTarget target, Form > form) > >> { > >>somethingLong(); > >> } > >> protected IAjaxCallDecorator getAjaxCallDecorator() { > >> return new AjaxCallDecorator() { > >> > >> public CharSequence decorateScript(CharSequence > >> script) { > >> return "return false;" + script; > >> } > >> public CharSequence > >> decorateOnSuccessScript(CharSequence script) { > >> // NEED TO RESET TO PREVIOUS STATE > >> } > >> public CharSequence > >> decorateOnFailureScript(CharSequence script) { > >> // NEED TO RESET TO PREVIOUS STATE > >> } > >> }; > >> } > >> }); > >> > >> Any help would be most appreciated. > >> > >> Thanks in advance > >> > >> Anthony > > > > - > > 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: Any interest in a Wicket User Group meeting in The Netherlands?
Johan Compagner wrote: > hi, > > I can organize one if there is enough interest > Martijn and i will be there then. > > And for example if people are also interested in the wicket security i will > also drag Maurice to the table. I can attend while I'm in the Netherlands and will probably drag (willingly) another colleague of mine. Did anyone have any ideas where it would be? (We're near Haarlem and if needed *maybe* could host it as well.) +2 ./C - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
PageLink and markup inheritance problem
I'm getting the exception below when following a PageLink, but not with a BookmarkablePageLink. This wasn't happening with previous 1.3 snapshots (I updated my wicket copy this morning). The PageLink is created by the (id,class) constructor this way: new PageLink(id, ChangePasswordPage.class) ChangePasswordPage is a MyAccountLayout, markup inheritance takes place here. The markup is fine as I can open the page by the name it's mounted or using the bookmarkable link, as I said before. Any ideas? Thank you in advance Carlos --- Unexpected RuntimeException WicketMessage: Markup of type 'html' for component 'com.livra.web.user.myaccount.ChangePasswordPage' not found. Enable debug messages for org.apache.wicket.util.resource to get a list of all filenames tried: [Page class = com.livra.web.user.myaccount.ChangePasswordPage, id = 8, version = 0] Root cause: org.apache.wicket.WicketRuntimeException: Parameter clazz must be an instance of com.livra.web.user.myaccount.ChangePasswordPage, but is a com.livra.web.user.myaccount.MyAccountLayout at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:270) at org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.checkForMarkupInheritance(InheritedMarkupMarkupLoader.java:99) at org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.loadMarkup(InheritedMarkupMarkupLoader.java:65) at org.apache.wicket.markup.loader.DefaultMarkupLoader.loadMarkup(DefaultMarkupLoader.java:56) at org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:415) at o - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DataTable header that spans multiple columns
datatable is really made for tabular data. if you have spans, etc, then i suggest you go with a dataview -igor On 9/7/07, ChuckDeal <[EMAIL PROTECTED]> wrote: > > > When using the DataTable with HeadersToolbar you can display the Label > associated with the column as the column Header. Has anyone had a case > where they wanted a label to span columns? Specifically, something where > row one is a category that spans three columns and then row two contains > individual columns where the label represents a specific category. > > Has anyone done this or does anyone have a good idea how to solve this in > a > "nice" way? > > Thanks > Chuck > -- > View this message in context: > http://www.nabble.com/DataTable-header-that-spans-multiple-columns-tf4401243.html#a12554956 > 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: Any interest in a Wicket User Group meeting in The Netherlands?
On 9/7/07, Johan Compagner <[EMAIL PROTECTED]> wrote: > I can organize one if there is enough interest > Martijn and i will be there then. > > And for example if people are also interested in the wicket security i will > also drag Maurice to the table. +1 And we can play the videos from London as well :) We can organize it in Deventer, but I think Johan's company is more central (Amersfoort). Martijn -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-beta3 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Any interest in a Wicket User Group meeting in The Netherlands?
hi, I can organize one if there is enough interest Martijn and i will be there then. And for example if people are also interested in the wicket security i will also drag Maurice to the table. johan
Re: {wicket 1.3 beta 3} Howto add keywords No cache etc?
2 tags generating the same milisecond for the same client/session? that looks very very very odd to me. johan On 9/7/07, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: > > Actually we discussed that. > > I suggested it but as Matej wrote: > don't think so. you can have two tags generated in same millisecond.. As > for nano might be better, lesser chance for tags being generated in the > same nanosec. But whats wrong with autoindex? > > Martijn Dashorst wrote: > > Why not use System.currentTimeMillis()? Or if you are really concerned > > use nanotime. > > > > Martijn > > > > On 9/7/07, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> > wrote: > > > >> so no, talking to Matej on ##wicket, the fix was this: > >> > >> Resolutions are these two : > >> protected void onComponentTag(ComponentTag tag) { > >> super.onComponentTag(tag); > >> tag.put("src", tag.getString("src") + "&rand=" + > >> Math.random()); > >> } > >> > >> or event better since random could give duplicate results: > >> protected void onComponentTag(ComponentTag tag) { > >> super.onComponentTag(tag); > >> tag.put("src", tag.getString("src") + "&autoIndex=" + > >> getPage().getAutoIndex()); > >> } > >> Although im not sure if its safe to use autoIndex?I've put up a feature > >> request for it to be implemented. > >> > >> https://issues.apache.org/jira/browse/WICKET-939 > >> > >> > >> -Nino > >> > >> > >> Nino Saturnino Martinez Vazquez Wael wrote: > >> > >>> this is whats generated: > >>> > >>> > http://localhost:8080/thirdparty-webapp/thirdParty/?wicket:interface=:4:form:phoneA:phoneThumb:image::IResourceListener > :: > >>> > >>> > >>> regards Nino > >>> > >>> Martijn Dashorst wrote: > >>> > The most failsafe solution to the update image using Ajax request to > my mind is to add a random number to the url for the image (I thought > we already did that?). > > Martijn > > On 9/7/07, Nino Saturnino Martinez Vazquez Wael > <[EMAIL PROTECTED]> wrote: > > > > Hi > > > > How do I add keywords no-cache and etc, for a panel? Reason are that > > the > > panel carries a image and that gets cached so when my ajax call > > comes in > > and updates the model then the old image are shown.. > > > > regards Nino > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > >>> - > >>> To unsubscribe, e-mail: [EMAIL PROTECTED] > >>> For additional commands, e-mail: [EMAIL PROTECTED] > >>> > >>> > >>> > >> - > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > >> > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: AjaxSubmitLink does nothing in IE
Could be related to markup, or parsing the response. Jira issue and quickstart would help here. -Matej On 9/7/07, Anthony J Webster <[EMAIL PROTECTED]> wrote: > That works fine. Thanks > However I've just noticed that this AjaxSubmitLink doesn't do anything in IE > whereas in Firefox it works. > I check the Ajax debug window and the server *is* contacted and everything > however after recieving the response I get an "ERROR: Error while parsing > response: Unknown runtime error" in IE. > > Any Ideas? > > Many Thanks > > Anthony > > - Original Message - > From: "Matej Knopp" <[EMAIL PROTECTED]> > To: > Sent: Thursday, September 06, 2007 11:35 PM > Subject: Re: Creating a disableable AjaxSubmitLink > > > > Something like the following should work: > > > > decorateScript: > > "this.onclick_=this.onclick; this.onclick=function() { return false; > > };" + script; > > > > onSuccess,onFailureScript: > > this.onclick=this.onclick_; + script; > > > > -Matej > > > > On 9/6/07, Anthony J Webster <[EMAIL PROTECTED]> wrote: > >> Hi, > >> > >> I'm trying to create a disableable AjaxSubmitLink. When a user clicks on > >> the link further clicks must not result in anything until the > >> 'submission' is complete. This call be achieved by adding "return false;" > >> in a call decorator. However I'm stuggling with the re-enabling. I need > >> to strip the "return false" and put the original destination back. > >> > >> form.add(new AjaxSubmitLink("randomise", form) { > >> > >> protected void onSubmit(AjaxRequestTarget target, Form form) > >> { > >>somethingLong(); > >> } > >> protected IAjaxCallDecorator getAjaxCallDecorator() { > >> return new AjaxCallDecorator() { > >> > >> public CharSequence decorateScript(CharSequence > >> script) { > >> return "return false;" + script; > >> } > >> public CharSequence > >> decorateOnSuccessScript(CharSequence script) { > >> // NEED TO RESET TO PREVIOUS STATE > >> } > >> public CharSequence > >> decorateOnFailureScript(CharSequence script) { > >> // NEED TO RESET TO PREVIOUS STATE > >> } > >> }; > >> } > >> }); > >> > >> Any help would be most appreciated. > >> > >> Thanks in advance > >> > >> Anthony > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to set wicket's locale?
I'm planing to have a little celebration in our office when our webapp is officially released to customers. I was thinking about ordering pizza to be delivered to the wicket developers who have helped us so much here on the list, so they can share our joy, not just our problems. How hard can it be to order pizza online in any language, I thought. But sushi is probably a bit more tricky, and you miss all the atmosphere if you just have it delivered, so I might have to ask you guys to go out to have some, and send us the bill :-) Gabor On 9/6/07, Johan Compagner <[EMAIL PROTECTED]> wrote: > can you send some over? > > On 9/6/07, Evan Chooly <[EMAIL PROTECTED]> wrote: > > > > T-37 minutes until sushi time! > > > > On 9/6/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > > > > > sushi > > > > > > > > > -igor > > > > > > > > > On 9/6/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > > > > > > > > new PropertyModel(Page.this, "session.foo.sushi.bar"); > > > > > > > > ? > > > > > > > > > > > > On 9/6/07, Gabor Szokoli <[EMAIL PROTECTED]> wrote: > > > > > On 9/5/07, Johan Compagner <[EMAIL PROTECTED]> wrote: > > > > > > can you make an jira issue for this? > > > > > > > > > > https://issues.apache.org/jira/browse/WICKET-936 > > > > > > > > > > Any ideas on encapsulating the session as a propertymodel for > > > components > > > > in 1.2? > > > > > > > > > > > > > > > Gabor > > > > > > > > > > > > - > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > > -- > > > > Buy Wicket in Action: http://manning.com/dashorst > > > > Apache Wicket 1.3.0-beta3 is released > > > > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/ > > > > > > > > - > > > > 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: threading issues - continued
I must be slowing down or Sun is speeding up. Huge amounts of stuff in 1.5 that I've not played with. From 1.1 to 1.2 it didn't seem that much to keep up with!? Not sure we have really slow tasks (like classic booking ticket) but we are using Alfresco for some calls and that can be slow... Thread per sluggish request is heavy duty maybe would be better with messaging... Even if within same JVM. I'm having one of those "isn't Wicket wonderful weeks" ;) Somebody hits a problem and I just hunt through JavaDoc to find the correct Component to plugin. Not like struts 2 where I tried to do something simple only, a few hours later, finding something in the docs about "yes this sucks but only way to do it". Martijn Dashorst wrote: > > On 9/7/07, Sam Hough <[EMAIL PROTECTED]> wrote: >> Create a thread from within a servlet container...? Tut tut ;) > > Yeah, not the most elegant way since they are not monitored by the > container, but it sure does get the work done. And we have really nice > users that would never try to flood our server. :) > > And of course if you're on Java 5, you can create worker pools really > easy to limit the number of concurrent threads. > > Martijn > > -- > Buy Wicket in Action: http://manning.com/dashorst > Apache Wicket 1.3.0-beta3 is released > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/ > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/threading-issues---continued-tf4400569.html#a1239 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DatePicker format?
Hi, how can I get the wicket.extensions.markup.html.datepicker.DateFormat (Wicket 1.2.6) to use a custom DateFormat? I keep getting validation problems as soon as I try to switch to another DateFormat. HTML: wicket:id="datePicker" /> Java: TextField dateField = new TextField("date", Date.class); dateField.setRequired(true); add(dateField); DatePicker dp = new DatePicker("datePicker", dateField); dp.setDateConverter(new DateConverter() { public DateFormat getDateFormat(Locale locale) { return new SimpleDateFormat("d-M-"); } }); add(dp); When I leave out the call to setDateConverter, the default format seems to be MM/dd/ for me. When setting the DateConverter like I did in the above code, the format seems to switch from MM/dd/ to dd-MM- (instead of the expected d-M-?). So when I pick september 19th for example, it fills in 17-09-2007 into the TextField, but when I submit that value I get: '17-09-2007' is not a valid Date. Only '9/17/2007' or '09/17/2007' are accepted, which is weird since the DatePicker now puts a value into the textfield which is known to be invalid? I also tried providing a DatePickerSettings object that overrides the getIfFormat(Locale) method to always return "%d-%m-%Y", but that didn't help either. - Onno - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: {wicket 1.3 beta 3} Howto add keywords No cache etc?
This was how it was supposed to have written like: Actually we discussed that. I suggested it but as Matej wrote: "don't think so. you can have two tags generated in same millisecond." As for nano might be better, lesser chance for tags being generated in the same nanosec. But whats wrong with autoindex? -Nino Nino Saturnino Martinez Vazquez Wael wrote: Actually we discussed that. I suggested it but as Matej wrote: don't think so. you can have two tags generated in same millisecond.. As for nano might be better, lesser chance for tags being generated in the same nanosec. But whats wrong with autoindex? Martijn Dashorst wrote: Why not use System.currentTimeMillis()? Or if you are really concerned use nanotime. Martijn On 9/7/07, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: so no, talking to Matej on ##wicket, the fix was this: Resolutions are these two : protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); tag.put("src", tag.getString("src") + "&rand=" + Math.random()); } or event better since random could give duplicate results: protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); tag.put("src", tag.getString("src") + "&autoIndex=" + getPage().getAutoIndex()); } Although im not sure if its safe to use autoIndex?I've put up a feature request for it to be implemented. https://issues.apache.org/jira/browse/WICKET-939 -Nino Nino Saturnino Martinez Vazquez Wael wrote: this is whats generated: http://localhost:8080/thirdparty-webapp/thirdParty/?wicket:interface=:4:form:phoneA:phoneThumb:image::IResourceListener:: regards Nino Martijn Dashorst wrote: The most failsafe solution to the update image using Ajax request to my mind is to add a random number to the url for the image (I thought we already did that?). Martijn On 9/7/07, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: Hi How do I add keywords no-cache and etc, for a panel? Reason are that the panel carries a image and that gets cached so when my ajax call comes in and updates the model then the old image are shown.. regards Nino - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: threading issues - continued
On 9/7/07, Sam Hough <[EMAIL PROTECTED]> wrote: > Create a thread from within a servlet container...? Tut tut ;) Yeah, not the most elegant way since they are not monitored by the container, but it sure does get the work done. And we have really nice users that would never try to flood our server. :) And of course if you're on Java 5, you can create worker pools really easy to limit the number of concurrent threads. Martijn -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-beta3 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DataTable header that spans multiple columns
When using the DataTable with HeadersToolbar you can display the Label associated with the column as the column Header. Has anyone had a case where they wanted a label to span columns? Specifically, something where row one is a category that spans three columns and then row two contains individual columns where the label represents a specific category. Has anyone done this or does anyone have a good idea how to solve this in a "nice" way? Thanks Chuck -- View this message in context: http://www.nabble.com/DataTable-header-that-spans-multiple-columns-tf4401243.html#a12554956 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: threading issues - continued
Create a thread from within a servlet container...? Tut tut ;) I don't think we have any messaging or timing framework at the mo so may come to that. Martijn Dashorst wrote: > > On 9/7/07, Sam Hough <[EMAIL PROTECTED]> wrote: >> OK. Should give me fewer nightmares even if it doesn't explain current >> problem. >> >> Many thanks. It is probably just my dodgy code. >> >> What pattern do you use for long running Ajax requests? > > Create a worker thread in the background. If it really lasts long, > craete a feedback mechanism that polls the worker thread and gives a > progress indication. > > Martijn > -- > Buy Wicket in Action: http://manning.com/dashorst > Apache Wicket 1.3.0-beta3 is released > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/ > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/threading-issues---continued-tf4400569.html#a12554945 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AjaxSubmitLink does nothing in IE
That works fine. Thanks However I've just noticed that this AjaxSubmitLink doesn't do anything in IE whereas in Firefox it works. I check the Ajax debug window and the server *is* contacted and everything however after recieving the response I get an "ERROR: Error while parsing response: Unknown runtime error" in IE. Any Ideas? Many Thanks Anthony - Original Message - From: "Matej Knopp" <[EMAIL PROTECTED]> To: Sent: Thursday, September 06, 2007 11:35 PM Subject: Re: Creating a disableable AjaxSubmitLink Something like the following should work: decorateScript: "this.onclick_=this.onclick; this.onclick=function() { return false; };" + script; onSuccess,onFailureScript: this.onclick=this.onclick_; + script; -Matej On 9/6/07, Anthony J Webster <[EMAIL PROTECTED]> wrote: Hi, I'm trying to create a disableable AjaxSubmitLink. When a user clicks on the link further clicks must not result in anything until the 'submission' is complete. This call be achieved by adding "return false;" in a call decorator. However I'm stuggling with the re-enabling. I need to strip the "return false" and put the original destination back. form.add(new AjaxSubmitLink("randomise", form) { protected void onSubmit(AjaxRequestTarget target, Form form) { somethingLong(); } protected IAjaxCallDecorator getAjaxCallDecorator() { return new AjaxCallDecorator() { public CharSequence decorateScript(CharSequence script) { return "return false;" + script; } public CharSequence decorateOnSuccessScript(CharSequence script) { // NEED TO RESET TO PREVIOUS STATE } public CharSequence decorateOnFailureScript(CharSequence script) { // NEED TO RESET TO PREVIOUS STATE } }; } }); Any help would be most appreciated. Thanks in advance Anthony - 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 1.3 beta 3} Howto add keywords No cache etc?
Actually we discussed that. I suggested it but as Matej wrote: don't think so. you can have two tags generated in same millisecond.. As for nano might be better, lesser chance for tags being generated in the same nanosec. But whats wrong with autoindex? Martijn Dashorst wrote: Why not use System.currentTimeMillis()? Or if you are really concerned use nanotime. Martijn On 9/7/07, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: so no, talking to Matej on ##wicket, the fix was this: Resolutions are these two : protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); tag.put("src", tag.getString("src") + "&rand=" + Math.random()); } or event better since random could give duplicate results: protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); tag.put("src", tag.getString("src") + "&autoIndex=" + getPage().getAutoIndex()); } Although im not sure if its safe to use autoIndex?I've put up a feature request for it to be implemented. https://issues.apache.org/jira/browse/WICKET-939 -Nino Nino Saturnino Martinez Vazquez Wael wrote: this is whats generated: http://localhost:8080/thirdparty-webapp/thirdParty/?wicket:interface=:4:form:phoneA:phoneThumb:image::IResourceListener:: regards Nino Martijn Dashorst wrote: The most failsafe solution to the update image using Ajax request to my mind is to add a random number to the url for the image (I thought we already did that?). Martijn On 9/7/07, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: Hi How do I add keywords no-cache and etc, for a panel? Reason are that the panel carries a image and that gets cached so when my ajax call comes in and updates the model then the old image are shown.. regards Nino - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: {wicket 1.3 beta 3} Howto add keywords No cache etc?
Why not use System.currentTimeMillis()? Or if you are really concerned use nanotime. Martijn On 9/7/07, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: > so no, talking to Matej on ##wicket, the fix was this: > > Resolutions are these two : > protected void onComponentTag(ComponentTag tag) { > super.onComponentTag(tag); > tag.put("src", tag.getString("src") + "&rand=" + > Math.random()); > } > > or event better since random could give duplicate results: > protected void onComponentTag(ComponentTag tag) { > super.onComponentTag(tag); > tag.put("src", tag.getString("src") + "&autoIndex=" + > getPage().getAutoIndex()); > } > Although im not sure if its safe to use autoIndex?I've put up a feature > request for it to be implemented. > > https://issues.apache.org/jira/browse/WICKET-939 > > > -Nino > > > Nino Saturnino Martinez Vazquez Wael wrote: > > this is whats generated: > > > > http://localhost:8080/thirdparty-webapp/thirdParty/?wicket:interface=:4:form:phoneA:phoneThumb:image::IResourceListener:: > > > > > > regards Nino > > > > Martijn Dashorst wrote: > >> The most failsafe solution to the update image using Ajax request to > >> my mind is to add a random number to the url for the image (I thought > >> we already did that?). > >> > >> Martijn > >> > >> On 9/7/07, Nino Saturnino Martinez Vazquez Wael > >> <[EMAIL PROTECTED]> wrote: > >> > >>> Hi > >>> > >>> How do I add keywords no-cache and etc, for a panel? Reason are that > >>> the > >>> panel carries a image and that gets cached so when my ajax call > >>> comes in > >>> and updates the model then the old image are shown.. > >>> > >>> regards Nino > >>> > >>> > >>> - > >>> To unsubscribe, e-mail: [EMAIL PROTECTED] > >>> For additional commands, e-mail: [EMAIL PROTECTED] > >>> > >>> > >>> > >> > >> > >> > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-beta3 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: applicationwide datePattern
Hi Korbinian, my mistake, sorry. Regards Dipu On 9/6/07, Korbinian Bachl <[EMAIL PROTECTED]> wrote: > > Hi Dipu, > > well, the problem is that i have here the Locale("de","DE") which has > default pattern "dd.MM.yy" while I need "dd.MM." - so how can this > be changed? (so MEDIUM instead of SHORT is used) > > Regards > Korbinian > > > Dipu Seminlal schrieb: > > try using session.setLocale() > > thats how i do it. > > > > Regards > > Dipu > > > > On 9/6/07, Korbinian Bachl <[EMAIL PROTECTED]> wrote: > >> > >> Hi, > >> > >> can anyone tell me how to change the default date pattern wicket should > >> use in the whole app? > >> > >> I mean i can do: > >> > >> add(new DatePicker() { > >> protected String getDatePattern() { > >> return "dd.MM."; > >> } > >> > >> on each component manually, but that doesnt seem to be the right way. > >> > >> Regards, > >> > >> Korbinian > >> > >> > >> - > >> 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 1.3 beta 3} Howto add keywords No cache etc?
so no, talking to Matej on ##wicket, the fix was this: Resolutions are these two : protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); tag.put("src", tag.getString("src") + "&rand=" + Math.random()); } or event better since random could give duplicate results: protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); tag.put("src", tag.getString("src") + "&autoIndex=" + getPage().getAutoIndex()); } Although im not sure if its safe to use autoIndex?I've put up a feature request for it to be implemented. https://issues.apache.org/jira/browse/WICKET-939 -Nino Nino Saturnino Martinez Vazquez Wael wrote: this is whats generated: http://localhost:8080/thirdparty-webapp/thirdParty/?wicket:interface=:4:form:phoneA:phoneThumb:image::IResourceListener:: regards Nino Martijn Dashorst wrote: The most failsafe solution to the update image using Ajax request to my mind is to add a random number to the url for the image (I thought we already did that?). Martijn On 9/7/07, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: Hi How do I add keywords no-cache and etc, for a panel? Reason are that the panel carries a image and that gets cached so when my ajax call comes in and updates the model then the old image are shown.. regards Nino - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: threading issues - continued
On 9/7/07, Sam Hough <[EMAIL PROTECTED]> wrote: > OK. Should give me fewer nightmares even if it doesn't explain current > problem. > > Many thanks. It is probably just my dodgy code. > > What pattern do you use for long running Ajax requests? Create a worker thread in the background. If it really lasts long, craete a feedback mechanism that polls the worker thread and gives a progress indication. Martijn -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-beta3 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: threading issues - continued
In our application, for long running ajax request we block the screen, so the user is unable to click somewhere else. Alex. Sam Hough wrote: > > OK. Should give me fewer nightmares even if it doesn't explain current > problem. > > Many thanks. It is probably just my dodgy code. > > What pattern do you use for long running Ajax requests? > > > > > Matej Knopp-2 wrote: >> >> There is no way that ajax requests can be processed without blocking. >> a) ajax requests are ordered on client into queues >> b) requests are blocked on target page (not session) on server side >> >> -Matej >> >> On 9/7/07, Sam Hough <[EMAIL PROTECTED]> wrote: >>> >>> A bit of the application lets you add items to a list using >>> AjaxFallbackButton. All works fine if you click the buttons slowly but >>> if I >>> click quickly I get exceptions that look like my code is running >>> concurrently (nullpointer where it can't happen if running in a single >>> thread). >>> >>> What behaviour is Wicket aiming to implement for Ajax and threading? >>> >>> >>> >>> Matej Knopp-2 wrote: >>> > >>> > Can you be more specific? What kind of concurrency issues? >>> > >>> > -Matej >>> > >>> > On 9/7/07, Sam Hough <[EMAIL PROTECTED]> wrote: >>> >> >>> >> oops, I posted on old forum... >>> >> >>> >> http://www.nabble.com/threading-question-tf841003.html >>> >> >>> >> [all request serialised on Session object] >>> >> >>> >> Is this true even for Ajax requests? Is whole life cycle effectively >>> >> single >>> >> threaded for a single session? >>> >> >>> >> I think I'm seeing a concurrency issue in my website (Wicket >>> 1.3-beta3 >>> >> and >>> >> lots of AjaxFallbackButton, I did listen to Igor)... >>> >> >>> >> Obviously would be tempting to sync on the Session but might break >>> lot of >>> >> the usability advantages of Ajax... >>> >> >>> >> Anybody got any top tips? >>> >> -- >>> >> View this message in context: >>> >> >>> http://www.nabble.com/threading-issues---continued-tf4400569.html#a12552735 >>> >> Sent from the Wicket - User mailing list archive at Nabble.com. >>> >> >>> >> >>> >> - >>> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> >> For additional commands, e-mail: [EMAIL PROTECTED] >>> >> >>> >> >>> > >>> > - >>> > To unsubscribe, e-mail: [EMAIL PROTECTED] >>> > For additional commands, e-mail: [EMAIL PROTECTED] >>> > >>> > >>> > >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/threading-issues---continued-tf4400569.html#a12553207 >>> Sent from the Wicket - User mailing list archive at Nabble.com. >>> >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > -- View this message in context: http://www.nabble.com/threading-issues---continued-tf4400569.html#a12553980 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: {wicket 1.3 beta 3} Howto add keywords No cache etc?
The most failsafe solution to the update image using Ajax request to my mind is to add a random number to the url for the image (I thought we already did that?). Martijn On 9/7/07, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: > Hi > > How do I add keywords no-cache and etc, for a panel? Reason are that the > panel carries a image and that gets cached so when my ajax call comes in > and updates the model then the old image are shown.. > > regards Nino > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-beta3 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: {wicket 1.3 beta 3} Howto add keywords No cache etc?
this is whats generated: http://localhost:8080/thirdparty-webapp/thirdParty/?wicket:interface=:4:form:phoneA:phoneThumb:image::IResourceListener:: regards Nino Martijn Dashorst wrote: The most failsafe solution to the update image using Ajax request to my mind is to add a random number to the url for the image (I thought we already did that?). Martijn On 9/7/07, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: Hi How do I add keywords no-cache and etc, for a panel? Reason are that the panel carries a image and that gets cached so when my ajax call comes in and updates the model then the old image are shown.. regards Nino - 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: threading issues - continued
OK. Should give me fewer nightmares even if it doesn't explain current problem. Many thanks. It is probably just my dodgy code. What pattern do you use for long running Ajax requests? Matej Knopp-2 wrote: > > There is no way that ajax requests can be processed without blocking. > a) ajax requests are ordered on client into queues > b) requests are blocked on target page (not session) on server side > > -Matej > > On 9/7/07, Sam Hough <[EMAIL PROTECTED]> wrote: >> >> A bit of the application lets you add items to a list using >> AjaxFallbackButton. All works fine if you click the buttons slowly but if >> I >> click quickly I get exceptions that look like my code is running >> concurrently (nullpointer where it can't happen if running in a single >> thread). >> >> What behaviour is Wicket aiming to implement for Ajax and threading? >> >> >> >> Matej Knopp-2 wrote: >> > >> > Can you be more specific? What kind of concurrency issues? >> > >> > -Matej >> > >> > On 9/7/07, Sam Hough <[EMAIL PROTECTED]> wrote: >> >> >> >> oops, I posted on old forum... >> >> >> >> http://www.nabble.com/threading-question-tf841003.html >> >> >> >> [all request serialised on Session object] >> >> >> >> Is this true even for Ajax requests? Is whole life cycle effectively >> >> single >> >> threaded for a single session? >> >> >> >> I think I'm seeing a concurrency issue in my website (Wicket 1.3-beta3 >> >> and >> >> lots of AjaxFallbackButton, I did listen to Igor)... >> >> >> >> Obviously would be tempting to sync on the Session but might break lot >> of >> >> the usability advantages of Ajax... >> >> >> >> Anybody got any top tips? >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/threading-issues---continued-tf4400569.html#a12552735 >> >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> >> >> >> - >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> > >> > - >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > For additional commands, e-mail: [EMAIL PROTECTED] >> > >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/threading-issues---continued-tf4400569.html#a12553207 >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/threading-issues---continued-tf4400569.html#a12553815 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: {wicket 1.3 beta 3} Howto add keywords No cache etc?
Why not use NonCachingImage? regards Ernesto Nino Saturnino Martinez Vazquez Wael wrote: Hi How do I add keywords no-cache and etc, for a panel? Reason are that the panel carries a image and that gets cached so when my ajax call comes in and updates the model then the old image are shown.. regards Nino - 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: threading issues - continued
There is no way that ajax requests can be processed without blocking. a) ajax requests are ordered on client into queues b) requests are blocked on target page (not session) on server side -Matej On 9/7/07, Sam Hough <[EMAIL PROTECTED]> wrote: > > A bit of the application lets you add items to a list using > AjaxFallbackButton. All works fine if you click the buttons slowly but if I > click quickly I get exceptions that look like my code is running > concurrently (nullpointer where it can't happen if running in a single > thread). > > What behaviour is Wicket aiming to implement for Ajax and threading? > > > > Matej Knopp-2 wrote: > > > > Can you be more specific? What kind of concurrency issues? > > > > -Matej > > > > On 9/7/07, Sam Hough <[EMAIL PROTECTED]> wrote: > >> > >> oops, I posted on old forum... > >> > >> http://www.nabble.com/threading-question-tf841003.html > >> > >> [all request serialised on Session object] > >> > >> Is this true even for Ajax requests? Is whole life cycle effectively > >> single > >> threaded for a single session? > >> > >> I think I'm seeing a concurrency issue in my website (Wicket 1.3-beta3 > >> and > >> lots of AjaxFallbackButton, I did listen to Igor)... > >> > >> Obviously would be tempting to sync on the Session but might break lot of > >> the usability advantages of Ajax... > >> > >> Anybody got any top tips? > >> -- > >> View this message in context: > >> http://www.nabble.com/threading-issues---continued-tf4400569.html#a12552735 > >> Sent from the Wicket - User mailing list archive at Nabble.com. > >> > >> > >> - > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > -- > View this message in context: > http://www.nabble.com/threading-issues---continued-tf4400569.html#a12553207 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > 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]
{wicket 1.3 beta 3} Howto add keywords No cache etc?
Hi How do I add keywords no-cache and etc, for a panel? Reason are that the panel carries a image and that gets cached so when my ajax call comes in and updates the model then the old image are shown.. regards Nino - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: threading issues - continued
A bit of the application lets you add items to a list using AjaxFallbackButton. All works fine if you click the buttons slowly but if I click quickly I get exceptions that look like my code is running concurrently (nullpointer where it can't happen if running in a single thread). What behaviour is Wicket aiming to implement for Ajax and threading? Matej Knopp-2 wrote: > > Can you be more specific? What kind of concurrency issues? > > -Matej > > On 9/7/07, Sam Hough <[EMAIL PROTECTED]> wrote: >> >> oops, I posted on old forum... >> >> http://www.nabble.com/threading-question-tf841003.html >> >> [all request serialised on Session object] >> >> Is this true even for Ajax requests? Is whole life cycle effectively >> single >> threaded for a single session? >> >> I think I'm seeing a concurrency issue in my website (Wicket 1.3-beta3 >> and >> lots of AjaxFallbackButton, I did listen to Igor)... >> >> Obviously would be tempting to sync on the Session but might break lot of >> the usability advantages of Ajax... >> >> Anybody got any top tips? >> -- >> View this message in context: >> http://www.nabble.com/threading-issues---continued-tf4400569.html#a12552735 >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/threading-issues---continued-tf4400569.html#a12553207 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: Upcoming jWeekend Wicket training courses
I'd be arriving from Paris but I know my way around London having been born there! Something tells me the boss isn't going to pick up the check though (he's got struts suck in his head) grrr :( - Original Message - From: "jweekend" <[EMAIL PROTECTED]> To: Sent: Friday, September 07, 2007 12:52 PM Subject: Re: Upcoming jWeekend Wicket training courses (there's a link below if you'd like to see a presentation Al gave at one of our London Wicket User Groups and at the last Java Web users Group) That's interesting Anthony; our first 2 Wicket-course students also found us from continental Europe, in fact, both from Belgium (is this where the next wave of the popularist Wicket revolution will start to gather pace? ;-), with at least one arriving on Eurostar; from Waterloo Station (where Eurostar stops in London) it's a direct, 17 minute underground ride. I think it's like a "weekend break" for some people; but beware that the Wicket courses are pretty intensive. All the details are at http://jWeekend.co.uk jWeekend.co.uk . We have helped people from out of town with accommodation (for the Saturday night or, Friday and Saturday nights) as well, so let us know if you're looking at this. We have had excellent feedback about our last Wicket course (2 day), and we believe we have further improved the material for our 2 new 1 day Wicket courses and our original 2 day course (all now based on 1.3), with Al deserving all the credit here as well. If we continue to get interest and such good and satisfying feedback we will continue delivering these courses beyond the dates already scheduled. Regards - Cemal http://jWeekend.co.uk jWeekend.co.uk PS If you'd like to get a taste of how Al presents Wicket material, you can enjoy an example http://talks.londonwicket.org/BeanEditor.mov here ; a presentation he gave at one of our London Wicket User Groups and at the last Java Web users Group. Of course, our course material is even more thoughtfully put together and pedagogically delivered. Anthony J Webster wrote: Hmm nice. I'd hop on a Eurostar if I weren't submerged with work and totally exhausted! A - Original Message - From: "Al Maw" <[EMAIL PROTECTED]> To: Sent: Friday, September 07, 2007 11:02 AM Subject: Upcoming jWeekend Wicket training courses Hi folks, Cemal and I have been working hard refining jWeekend's upcoming "Getting Started With Apache Wicket 1.3" [1] and "Apache Wicket 1.3" [2] courses. The next ones are scheduled for September 22nd and September 29th-30th respectively. They're an excellent way to get up to speed with Wicket and develop an in-depth understanding of Models, Behaviors, the AJAX functionality, advanced validation, etc., etc. As such, they will be useful to you whether you're a beginner or a fairly seasoned Wicket programmer, so I'd encourage you to visit the jWeekend site [3] for more information and to see just what you'll be getting (and hopefully to book your place ;-) ). Hope to see some of you there! Best regards, Al [1] http://jweekend.co.uk/dev/JW7031 [2] http://jweekend.co.uk/dev/JW703 [3] http://jweekend.co.uk/ -- Alastair Maw Wicket-biased blog at http://herebebeasties.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Upcoming-jWeekend-Wicket-training-courses-tf4400269.html#a12553097 Sent from the Wicket - User mailing list archive at Nabble.com. - 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: Upcoming jWeekend Wicket training courses
(there's a link below if you'd like to see a presentation Al gave at one of our London Wicket User Groups and at the last Java Web users Group) That's interesting Anthony; our first 2 Wicket-course students also found us from continental Europe, in fact, both from Belgium (is this where the next wave of the popularist Wicket revolution will start to gather pace? ;-), with at least one arriving on Eurostar; from Waterloo Station (where Eurostar stops in London) it's a direct, 17 minute underground ride. I think it's like a "weekend break" for some people; but beware that the Wicket courses are pretty intensive. All the details are at http://jWeekend.co.uk jWeekend.co.uk . We have helped people from out of town with accommodation (for the Saturday night or, Friday and Saturday nights) as well, so let us know if you're looking at this. We have had excellent feedback about our last Wicket course (2 day), and we believe we have further improved the material for our 2 new 1 day Wicket courses and our original 2 day course (all now based on 1.3), with Al deserving all the credit here as well. If we continue to get interest and such good and satisfying feedback we will continue delivering these courses beyond the dates already scheduled. Regards - Cemal http://jWeekend.co.uk jWeekend.co.uk PS If you'd like to get a taste of how Al presents Wicket material, you can enjoy an example http://talks.londonwicket.org/BeanEditor.mov here ; a presentation he gave at one of our London Wicket User Groups and at the last Java Web users Group. Of course, our course material is even more thoughtfully put together and pedagogically delivered. Anthony J Webster wrote: > > Hmm nice. I'd hop on a Eurostar if I weren't submerged with work and > totally > exhausted! > A > > - Original Message - > From: "Al Maw" <[EMAIL PROTECTED]> > To: > Sent: Friday, September 07, 2007 11:02 AM > Subject: Upcoming jWeekend Wicket training courses > > >> Hi folks, >> >> Cemal and I have been working hard refining jWeekend's upcoming "Getting >> Started With Apache Wicket 1.3" [1] and "Apache Wicket 1.3" [2] courses. >> The next ones are scheduled for September 22nd and September 29th-30th >> respectively. >> >> They're an excellent way to get up to speed with Wicket and develop an >> in-depth understanding of Models, Behaviors, the AJAX functionality, >> advanced validation, etc., etc. As such, they will be useful to you >> whether you're a beginner or a fairly seasoned Wicket programmer, so I'd >> encourage you to visit the jWeekend site [3] for more information and to >> see just what you'll be getting (and hopefully to book your place ;-) ). >> >> Hope to see some of you there! >> >> Best regards, >> >> Al >> >> [1] http://jweekend.co.uk/dev/JW7031 >> [2] http://jweekend.co.uk/dev/JW703 >> [3] http://jweekend.co.uk/ >> >> -- >> Alastair Maw >> Wicket-biased blog at http://herebebeasties.com >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Upcoming-jWeekend-Wicket-training-courses-tf4400269.html#a12553097 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: threading issues - continued
Can you be more specific? What kind of concurrency issues? -Matej On 9/7/07, Sam Hough <[EMAIL PROTECTED]> wrote: > > oops, I posted on old forum... > > http://www.nabble.com/threading-question-tf841003.html > > [all request serialised on Session object] > > Is this true even for Ajax requests? Is whole life cycle effectively single > threaded for a single session? > > I think I'm seeing a concurrency issue in my website (Wicket 1.3-beta3 and > lots of AjaxFallbackButton, I did listen to Igor)... > > Obviously would be tempting to sync on the Session but might break lot of > the usability advantages of Ajax... > > Anybody got any top tips? > -- > View this message in context: > http://www.nabble.com/threading-issues---continued-tf4400569.html#a12552735 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > 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]
threading issues - continued
oops, I posted on old forum... http://www.nabble.com/threading-question-tf841003.html [all request serialised on Session object] Is this true even for Ajax requests? Is whole life cycle effectively single threaded for a single session? I think I'm seeing a concurrency issue in my website (Wicket 1.3-beta3 and lots of AjaxFallbackButton, I did listen to Igor)... Obviously would be tempting to sync on the Session but might break lot of the usability advantages of Ajax... Anybody got any top tips? -- View this message in context: http://www.nabble.com/threading-issues---continued-tf4400569.html#a12552735 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: Upcoming jWeekend Wicket training courses
Oh I agree. I'll definitely try and go if I'm up to it. - Original Message - From: "Nino Saturnino Martinez Vazquez Wael" <[EMAIL PROTECTED]> To: Sent: Friday, September 07, 2007 11:58 AM Subject: Re: Upcoming jWeekend Wicket training courses ahh but going to the weeekend might make it easier for you to get the load of work off your shoulders:) I've been hearing the phrase "we haven't got time to education, because we are too busy" too much, that itself are oxymoron. That could easily be translate into : we havent got time to make ourselfs faster, because we are too busy my 2 dry cents. regards Nino Anthony J Webster wrote: Hmm nice. I'd hop on a Eurostar if I weren't submerged with work and totally exhausted! A - Original Message - From: "Al Maw" <[EMAIL PROTECTED]> To: Sent: Friday, September 07, 2007 11:02 AM Subject: Upcoming jWeekend Wicket training courses Hi folks, Cemal and I have been working hard refining jWeekend's upcoming "Getting Started With Apache Wicket 1.3" [1] and "Apache Wicket 1.3" [2] courses. The next ones are scheduled for September 22nd and September 29th-30th respectively. They're an excellent way to get up to speed with Wicket and develop an in-depth understanding of Models, Behaviors, the AJAX functionality, advanced validation, etc., etc. As such, they will be useful to you whether you're a beginner or a fairly seasoned Wicket programmer, so I'd encourage you to visit the jWeekend site [3] for more information and to see just what you'll be getting (and hopefully to book your place ;-) ). Hope to see some of you there! Best regards, Al [1] http://jweekend.co.uk/dev/JW7031 [2] http://jweekend.co.uk/dev/JW703 [3] http://jweekend.co.uk/ -- Alastair Maw Wicket-biased blog at http://herebebeasties.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Copenhagen wicket users meeting?
Some time has past since our last meeting. Perhaps it's time for a new one? We could focus this meeting on using basic wicket. In order to have more newcommers? Whats your opinion on this people? What would make you come to the meeting, and how many are we from denmark? regards Nino - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Upcoming jWeekend Wicket training courses
ahh but going to the weeekend might make it easier for you to get the load of work off your shoulders:) I've been hearing the phrase "we haven't got time to education, because we are too busy" too much, that itself are oxymoron. That could easily be translate into : we havent got time to make ourselfs faster, because we are too busy my 2 dry cents. regards Nino Anthony J Webster wrote: Hmm nice. I'd hop on a Eurostar if I weren't submerged with work and totally exhausted! A - Original Message - From: "Al Maw" <[EMAIL PROTECTED]> To: Sent: Friday, September 07, 2007 11:02 AM Subject: Upcoming jWeekend Wicket training courses Hi folks, Cemal and I have been working hard refining jWeekend's upcoming "Getting Started With Apache Wicket 1.3" [1] and "Apache Wicket 1.3" [2] courses. The next ones are scheduled for September 22nd and September 29th-30th respectively. They're an excellent way to get up to speed with Wicket and develop an in-depth understanding of Models, Behaviors, the AJAX functionality, advanced validation, etc., etc. As such, they will be useful to you whether you're a beginner or a fairly seasoned Wicket programmer, so I'd encourage you to visit the jWeekend site [3] for more information and to see just what you'll be getting (and hopefully to book your place ;-) ). Hope to see some of you there! Best regards, Al [1] http://jweekend.co.uk/dev/JW7031 [2] http://jweekend.co.uk/dev/JW703 [3] http://jweekend.co.uk/ -- Alastair Maw Wicket-biased blog at http://herebebeasties.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Upcoming jWeekend Wicket training courses
Hmm nice. I'd hop on a Eurostar if I weren't submerged with work and totally exhausted! A - Original Message - From: "Al Maw" <[EMAIL PROTECTED]> To: Sent: Friday, September 07, 2007 11:02 AM Subject: Upcoming jWeekend Wicket training courses Hi folks, Cemal and I have been working hard refining jWeekend's upcoming "Getting Started With Apache Wicket 1.3" [1] and "Apache Wicket 1.3" [2] courses. The next ones are scheduled for September 22nd and September 29th-30th respectively. They're an excellent way to get up to speed with Wicket and develop an in-depth understanding of Models, Behaviors, the AJAX functionality, advanced validation, etc., etc. As such, they will be useful to you whether you're a beginner or a fairly seasoned Wicket programmer, so I'd encourage you to visit the jWeekend site [3] for more information and to see just what you'll be getting (and hopefully to book your place ;-) ). Hope to see some of you there! Best regards, Al [1] http://jweekend.co.uk/dev/JW7031 [2] http://jweekend.co.uk/dev/JW703 [3] http://jweekend.co.uk/ -- Alastair Maw Wicket-biased blog at http://herebebeasties.com - 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]
Upcoming jWeekend Wicket training courses
Hi folks, Cemal and I have been working hard refining jWeekend's upcoming "Getting Started With Apache Wicket 1.3" [1] and "Apache Wicket 1.3" [2] courses. The next ones are scheduled for September 22nd and September 29th-30th respectively. They're an excellent way to get up to speed with Wicket and develop an in-depth understanding of Models, Behaviors, the AJAX functionality, advanced validation, etc., etc. As such, they will be useful to you whether you're a beginner or a fairly seasoned Wicket programmer, so I'd encourage you to visit the jWeekend site [3] for more information and to see just what you'll be getting (and hopefully to book your place ;-) ). Hope to see some of you there! Best regards, Al [1] http://jweekend.co.uk/dev/JW7031 [2] http://jweekend.co.uk/dev/JW703 [3] http://jweekend.co.uk/ -- Alastair Maw Wicket-biased blog at http://herebebeasties.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]