Re: Two small questions
sebastiaan, sorry for not saying that in my first post: thank you for your contribution. could you also attach this file to the issue WICKET-949? as you said, you'd probably subclass the behavior anyway to provide an application wide implementation. it's just that it seems to be the wicketier way with overriding the methods. anyway, again thanks... gerolf On 9/13/07, Sebastiaan van Erk <[EMAIL PROTECTED]> wrote: > > Hi, > > Thanks for you constructive comments. Silly of me to not see the > AbstractBehavior class, though I'm new to Wicket so I'm not too familiar > with the API yet. :-) Thanks for the tip. > > As for returning the string constants in the > get(Before|After)DisabledLink, I'm wondering if memory is that big an > issue? AbstractLink also has these member fields. Futhermore, a one liner: > > externalLink.add(new DisableLinkBehavior("", "")); > > suddenly becomes much more verbose: > > externalLink.add(new DisableLinkBehavior() { > @Override > public String getBeforeLinkDisabled() { > return ""; > } > @Override > public String getAfterLinkDisabled() { > return ""; > } > } > > And it only saves 4 bytes of memory in the latter case because it > contains a hidden (unnecessary) reference to the outer class due to the > fact it isn't a static inner class. > > Of course the obvious solution is to just create a subclass of > DisableLinkBehavior with the (before|afterLinkDisable) fields and call > it something like CustomLinkDisableBehavior or some such (especially > since you would probably would use such a customization over an entire > site). I'm still split on the issue though. :-) > > Anyway, I decided for now to take your approach. > > Here's the new class. > > Regards, and thanks again for the comments! > Sebastiaan > > Gerolf Seitz wrote: > > hi sebastiaan, > > > > what you could do instead of having the beforeDisabledLink and > > afterDisabledLink properties as members of the class, > > let the methods get(Before|After)DisabledLink return "" and "". > > in case the user wants to provide different before/after tags, they just > > override the methods and let them return something else. > > to quote eelco (see WICKET-661): "It's a bit cheaper on memory like > that." > > > > you might also want to extend AbstractBehavior instead of implementing > > IBehavior from scratch. saves a few "// do nothing" methods. > > > > any objections to that? > > > > cheers, > > gerolf > > > > On 9/13/07, Sebastiaan van Erk <[EMAIL PROTECTED]> wrote: > >> Hi, > >> > >> I decided to wrote a behavior to do what I want. Just in case anybody > is > >> interested, I will attach it to this email. You can use it like so: > >> > >> ExternalLink externalLink = new ExternalLink("externalLink", > >> "http://www.google.com";); > >> externalLink.add(new DisableLinkBehavior()); > >> externalLink.setEnabled(enabled); > >> add(externalLink); > >> > >> The output is exactly the same as with Link. You can also specify > >> "beforeDisabledLink" and "afterDisabledLink" strings in the constructor > >> of DisableLinkBehavior if you don't like the default . > >> > >> Regards, > >> Sebastiaan > >> > >> > >> > >> Sebastiaan van Erk wrote: > >>> Hi, > >>> > >>> It indeed looks more like an omission than a bug. I'll make a feature > >>> request out of it. :-) > >>> > >>> Regards, > >>> Sebastiaan > >>> > >>> Jonathan Locke wrote: > yeah, more like an omission, but this is definitely a problem so far > as > >> i > recall. > > > Kent Tong wrote: > > > > Sebastiaan van Erk wrote: > >> Ok, to answer my own question, it seems that ExternalLink does not > >> have the ability to be disabled like Link. > >> > > Looks like a bug to me. I'd suggest that you submit a JIRA issue at > > http://issues.apache.org/jira/browse/WICKET > > > >> > > > >
Re: Two small questions
Hi, Thanks for you constructive comments. Silly of me to not see the AbstractBehavior class, though I'm new to Wicket so I'm not too familiar with the API yet. :-) Thanks for the tip. As for returning the string constants in the get(Before|After)DisabledLink, I'm wondering if memory is that big an issue? AbstractLink also has these member fields. Futhermore, a one liner: externalLink.add(new DisableLinkBehavior("", "")); suddenly becomes much more verbose: externalLink.add(new DisableLinkBehavior() { @Override public String getBeforeLinkDisabled() { return ""; } @Override public String getAfterLinkDisabled() { return ""; } } And it only saves 4 bytes of memory in the latter case because it contains a hidden (unnecessary) reference to the outer class due to the fact it isn't a static inner class. Of course the obvious solution is to just create a subclass of DisableLinkBehavior with the (before|afterLinkDisable) fields and call it something like CustomLinkDisableBehavior or some such (especially since you would probably would use such a customization over an entire site). I'm still split on the issue though. :-) Anyway, I decided for now to take your approach. Here's the new class. Regards, and thanks again for the comments! Sebastiaan Gerolf Seitz wrote: hi sebastiaan, what you could do instead of having the beforeDisabledLink and afterDisabledLink properties as members of the class, let the methods get(Before|After)DisabledLink return "" and "". in case the user wants to provide different before/after tags, they just override the methods and let them return something else. to quote eelco (see WICKET-661): "It's a bit cheaper on memory like that." you might also want to extend AbstractBehavior instead of implementing IBehavior from scratch. saves a few "// do nothing" methods. any objections to that? cheers, gerolf On 9/13/07, Sebastiaan van Erk <[EMAIL PROTECTED]> wrote: Hi, I decided to wrote a behavior to do what I want. Just in case anybody is interested, I will attach it to this email. You can use it like so: ExternalLink externalLink = new ExternalLink("externalLink", "http://www.google.com";); externalLink.add(new DisableLinkBehavior()); externalLink.setEnabled(enabled); add(externalLink); The output is exactly the same as with Link. You can also specify "beforeDisabledLink" and "afterDisabledLink" strings in the constructor of DisableLinkBehavior if you don't like the default . Regards, Sebastiaan Sebastiaan van Erk wrote: Hi, It indeed looks more like an omission than a bug. I'll make a feature request out of it. :-) Regards, Sebastiaan Jonathan Locke wrote: yeah, more like an omission, but this is definitely a problem so far as i recall. Kent Tong wrote: Sebastiaan van Erk wrote: Ok, to answer my own question, it seems that ExternalLink does not have the ability to be disabled like Link. Looks like a bug to me. I'd suggest that you submit a JIRA issue at http://issues.apache.org/jira/browse/WICKET package com.sebster.util.wicket; import org.apache.wicket.Component; import org.apache.wicket.behavior.AbstractBehavior; import org.apache.wicket.markup.ComponentTag; @SuppressWarnings("nls") public class LinkDisableBehavior extends AbstractBehavior { private static final long serialVersionUID = 1L; public String getBeforeDisabledLink() { return ""; } public String getAfterDisabledLink() { return ""; } @Override public void onRendered(final Component component) { if (!isLinkEnabled(component) && getAfterDisabledLink() != null) { component.getResponse().write(getAfterDisabledLink()); } } @Override public void beforeRender(final Component component) { if (!isLinkEnabled(component) && getBeforeDisabledLink() != null) { component.getResponse().write(getBeforeDisabledLink()); } } @Override public boolean isEnabled(final Component component) { return true; } @Override public void onComponentTag(final Component component, final ComponentTag tag) { if (!isLinkEnabled(component)) { // if the tag is an anchor proper if (tag.getName().equalsIgnoreCase("a") || tag.getName().equalsIgnoreCase("link") || tag.getName().equalsIgnoreCase("area")) { // Change anchor link to span tag tag.setName("span"); // Remove any href from the old link tag.remove("href"); tag.remove("onclick"); } // if the tag is a button or input else if ("button".equalsIgnoreCase(tag.getName()) || "input".equalsIgnoreCase(tag.getName())) { tag.put("disabled", "disabled"); } } } protected boolean isLinkEnabled(final Component component) { return component.isEnabled() && component.isEnableAllowed(); } } smime.p7s Description: S/MIME Cryptographic Signature
Re: wicket authentication override
Hmm, how can this be done without breaking existing stuff? I think an easy solution would be to create your own subclass of AuthenticatedWebSession and override isSignedIn(). That isSignedIn() can check the application mode. Regards, Erik. Eelco Hillenius wrote: I would like to bypass the sign-in screen during development, but AuthenticatedWebSession provides no setSignedIn() method. So as far as I can tell, there is no way to skip the sign-in screen... Am I missing something? If not, can it be changed? I think we can add that. Can you provide a patch please? Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ajax - Long process indicator ?
Besides showing a progress indicator, you could also disable mouse interaction by overlaying a div that has the height and width of the entire page. Add a bit of javascript to the button to show/display such a div. Erik. Mael Sicsic wrote: In fact I my problem is the following : a form is submitted with an ajaxbutton, and processing of this form takes a long time (many server side DB checkings), and within this computing time, I would like to prevent the user to continue editing the form being processed... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PageLink and markup inheritance problem
Mh... my checkout is less than a week old, but I will update it tomorrow and try the example again. Maybe it was fixed these days. Regards, Carlos On 9/12/07, Gerolf Seitz <[EMAIL PROTECTED]> wrote: > i tried the example you attached to the issue, but there is no exception > thrown. > i tried it with beta3 and latest trunk. both work as expected. > > gerolf > > On 9/13/07, Carlos Pita <[EMAIL PROTECTED]> wrote: > > > > Sorry for the delay Igor, not exactly what you asked for but I have > > filed a new bug with an attached example that is probably closely > > related to this issue. > > > > https://issues.apache.org/jira/browse/WICKET-965 > > > > Regards, > > Carlos > > > > On 9/7/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > > 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] > > > > > > > > > > > > > > > - > > 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 render character entities such as nbsp
You could use CSS positioning. Place an absolute positioned on the page, put the table in it positioned relative to the div, place the AjaxPagingNavigator in a below the positioned absolutely to the bottom of the . The following example will place the navigator 300px from the bottom of the first a col heada col head a columna columna columna column NAVIGATOR Jason Mihalick wrote: > > Is it possible to render a character entity such as nbsp; in a Label? > I've tried a few things, but I can't seem to get it to happen. > > I am working with the PageableListView and AjaxPagingNavigator and trying > to get the AjaxPagingNavigator to render in a fixed location at the bottom > of the HTML rows that are bound to the PageableListView. The way it seems > to work by default is that the AjaxPagingNavigator renders at the bottom > of the table and when there are less rows on the last page than the > rowsPerPage given to the PageableListView constructor, the > AjaxPagingNavigator renders higher on the page since there aren't enough > rows on the page to meet the rowsPerPage count specified. My quick fix > for this was going to be to render blank rows using nbsp; in order to fill > out the table and keep a consistent size for the table, but I haven't seen > a way to do this yet. > > If there's another approach to achieving my above desired result, please > feel free to offer your suggestion. > > Thanks in advance, > Jason > -- View this message in context: http://www.nabble.com/How-to-render-character-entities-such-as-nbsp-tf4433127.html#a12648534 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: HOWTO create a new ResourceReference
Thanks for the help. I think I'm on the right track now. I just published a new version of the wicketstuff-rome project which uses a Resource to serve up RSS/Atom feeds instead of using a WebPage. Getting through the ResourceReference concept was my last hurdle. Please take a look and let me know if there are any suggestions! http://www.jroller.com/wireframe/entry/wicket_feedresource On 9/11/07, Nathan Hamblen <[EMAIL PROTECTED]> wrote: > > Ryan Sonnek wrote: > > Okay folks, I think I'm stuck. After releasing my wicketstuff project > that > > creates RSS feeds [1], it was suggested to use a WebResource instead of > a > > WebPage to create RSS/Atom feeds [2]. Makes sense to me, but I'm really > > getting stuck on how to create a new ResourceReference for my new > > FeedResource [3]? > > --page template-- > title="RSS" href="#" /> > --page class-- > add(new ResourceLink("rss", new ResourceReference(MyApplication.class, > resource_name))); > --application class-- > getSharedResources().add(MyApplication.class, resource_name, null, null, > new FeedResource()); > > Nathan > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: How to render character entities such as nbsp
> Is it possible to render a character entity such as in a Label? I've > tried a few things, but I can't seem to get it to happen. setEscapeModelStrings(false) Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket Web Beans 1.0-rc1 Released
Hi Kent: Thank you for your kind comments! It's nice to see several months of work be useful to others. I've heard the "why not Java instead of beanprops" comment before. I may even do something about it ;-). Seriously, that may be offered as an alternative to the beanprops file. I chose the beanprops file for simplicity. It is declarative rather than procedural (e.g., Java). I believe that the exceptions can be specified in a more concise form than if they were to be written in Java. Plus, WWB contexts/use cases can override the default context by just specifying what's different. In fact, that's the whole WWB philosophy - programming by exception. I guess it similar to why you don't specify localization in Java - you use property files. It also why in Wicket you don't code HTML tags in Java to be output to the browser - HTML itself is more concise and direct. I actually worked with an in-house web framework that made you code the HTML tags in Java. No HTML, no JSP, just Java. It wasn't pretty ;-). -Dan Syrstad http://wicketwebbeans.sourceforge.com On 9/12/07, Kent Tong <[EMAIL PROTECTED]> wrote: > > > Hi Dan, > > It looks very powerful! BTW, why chose to use a config file (beanprops) > instead of Java code? > I think doing in Java for everything other than the standard web stuff > (HTML/CSS/js) is a > basic principle of Wicket. > > -- > View this message in context: > http://www.nabble.com/Re%3A-Wicket-Web-Beans-1.0-rc1-Released-tf4431603.html#a12647439 > 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: Tracking down an elusive error during migration to 1.3
Is there a possibility that this issue could be related to a classloading issue that I'm having? On Fri, 2007-09-07 at 07:21 +0900, David Leangen wrote: > Johan, > > Anything I can do to help isolate the problem? > > I'm using trunk, btw... > > > > not the case that David has.. > > If i write a test case for the ValueMap and i get and put username > > in it everything works. > > Ofcourse if i set the debug logging level then i get a debug > > warning because we do log there when we couldn't find a > > get or a is property method.. > I managed to find the class of the source of the problem, and it seems > to be internal to Wicket. > > org.apache.wicket.authentication.panel.SignInPanel > > The form in this class (in wicket-auth-roles) uses this: > > /** El-cheapo model for form. */ > private final ValueMap properties = new ValueMap(); > > And declares the property like this: > > add(username = > new TextField("username", new PropertyModel(properties, "username"))); > > > I'm guessing that the Exception is due to either some kind of change in > ValueMap, or a change in the property resolver... > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to render character entities such as nbsp
Is it possible to render a character entity such as in a Label? I've tried a few things, but I can't seem to get it to happen. I am working with the PageableListView and AjaxPagingNavigator and trying to get the AjaxPagingNavigator to render in a fixed location at the bottom of the HTML rows that are bound to the PageableListView. The way it seems to work by default is that the AjaxPagingNavigator renders at the bottom of the table and when there are less rows on the last page than the rowsPerPage given to the PageableListView constructor, the AjaxPagingNavigator renders higher on the page since there aren't enough rows on the page to meet the rowsPerPage count specified. My quick fix for this was going to be to render blank rows using in order to fill out the table and keep a consistent size for the table, but I haven't seen a way to do this yet. If there's another approach to achieving my above desired result, please feel free to offer your suggestion. Thanks in advance, Jason -- View this message in context: http://www.nabble.com/How-to-render-character-entities-such-as-nbsp-tf4433127.html#a12647458 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 Web Beans 1.0-rc1 Released
Hi Dan, It looks very powerful! BTW, why chose to use a config file (beanprops) instead of Java code? I think doing in Java for everything other than the standard web stuff (HTML/CSS/js) is a basic principle of Wicket. -- View this message in context: http://www.nabble.com/Re%3A-Wicket-Web-Beans-1.0-rc1-Released-tf4431603.html#a12647439 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
I'm giving a Wicket Lunch 'n Learn at my company on the 27th
I finally got a confirmation from my manager to go ahead with the presentation. I'm far from a Wicket expert, but I really like the framework and hopefully I will do a good enough job to do the framework some justice. I'll probably be on this board often to get assistance while I build my demo so please excuse any rookie questions I may ask. If the presentation goes well, the company is willing to build its flagship web application using Wicket. If not, we (developers) are stuck going with JSF/Seam . Let's hope for the best! - rm3 -- View this message in context: http://www.nabble.com/I%27m-giving-a-Wicket-Lunch-%27n-Learn-at-my-company-on-the-27th-tf4433047.html#a12647254 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
London Wicket Users Group - Tuesday October 2nd.
The next London Wicket Users Group meeting will take place on Tuesday, 2nd October, 2007. These events have proven to be quite popular and a great, free way to learn more about the this fantastic (but mildly addictive) framework. If interested you can see details of planned presentations (including http://herebebeasties.com Al Maw 's most highly regarded regular talks and detailed Q&A sessions) and the most up to date schedule at http://jWeekend.co.uk jWeekend.co.uk (built on Wicket). We refresh the site regularly with the latest schedule (use the "Our Free London Wicket Events" link) and you can also book your place on the same page if you'd like to join us. Please remember to confirm (or cancel) your place, using the link in our automated email response to your registration request, as space is limited. Regards - Cemal http://jWeekend.co.uk jWeekend.co.uk -- View this message in context: http://www.nabble.com/London-Wicket-Users-Group---Tuesday-October-2nd.-tf4432735.html#a12646399 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: PageLink and markup inheritance problem
i tried the example you attached to the issue, but there is no exception thrown. i tried it with beta3 and latest trunk. both work as expected. gerolf On 9/13/07, Carlos Pita <[EMAIL PROTECTED]> wrote: > > Sorry for the delay Igor, not exactly what you asked for but I have > filed a new bug with an attached example that is probably closely > related to this issue. > > https://issues.apache.org/jira/browse/WICKET-965 > > Regards, > Carlos > > On 9/7/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > 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] > > > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: PageLink and markup inheritance problem
Sorry for the delay Igor, not exactly what you asked for but I have filed a new bug with an attached example that is probably closely related to this issue. https://issues.apache.org/jira/browse/WICKET-965 Regards, Carlos On 9/7/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > 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] > > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Finishing wizard by pressing Enter
> It works perfect now. The only last thing I would do when accessing form > is to either use in both cases getForm() or form Right, fixed that. Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Two small questions
hi sebastiaan, what you could do instead of having the beforeDisabledLink and afterDisabledLink properties as members of the class, let the methods get(Before|After)DisabledLink return "" and "". in case the user wants to provide different before/after tags, they just override the methods and let them return something else. to quote eelco (see WICKET-661): "It's a bit cheaper on memory like that." you might also want to extend AbstractBehavior instead of implementing IBehavior from scratch. saves a few "// do nothing" methods. any objections to that? cheers, gerolf On 9/13/07, Sebastiaan van Erk <[EMAIL PROTECTED]> wrote: > > Hi, > > I decided to wrote a behavior to do what I want. Just in case anybody is > interested, I will attach it to this email. You can use it like so: > > ExternalLink externalLink = new ExternalLink("externalLink", > "http://www.google.com";); > externalLink.add(new DisableLinkBehavior()); > externalLink.setEnabled(enabled); > add(externalLink); > > The output is exactly the same as with Link. You can also specify > "beforeDisabledLink" and "afterDisabledLink" strings in the constructor > of DisableLinkBehavior if you don't like the default . > > Regards, > Sebastiaan > > > > Sebastiaan van Erk wrote: > > Hi, > > > > It indeed looks more like an omission than a bug. I'll make a feature > > request out of it. :-) > > > > Regards, > > Sebastiaan > > > > Jonathan Locke wrote: > >> > >> yeah, more like an omission, but this is definitely a problem so far as > i > >> recall. > >> > >> > >> Kent Tong wrote: > >>> > >>> > >>> Sebastiaan van Erk wrote: > Ok, to answer my own question, it seems that ExternalLink does not > have the ability to be disabled like Link. > > >>> Looks like a bug to me. I'd suggest that you submit a JIRA issue at > >>> http://issues.apache.org/jira/browse/WICKET > >>> > >> > >
Re: Finishing wizard by pressing Enter
Eelco Hillenius wrote: As I said earlier, in Wizard.java's method protected void onBeforeRender() { super.onBeforeRender(); Component buttonBar = get(BUTTONS_ID); if (buttonBar instanceof IDefaultButtonProvider) { IFormSubmittingComponent defaultButton = ((IDefaultButtonProvider)buttonBar) .getDefaultButton(wizardModel); form.setDefaultButton(defaultButton); } } Ugh. That get call should have been done on form of course. Sorry for the oversight. It is fixed now. Eelco It works perfect now. The only last thing I would do when accessing form is to either use in both cases getForm() or form, but maybe I am too pedant :) Vitek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Two small questions
Hi, I decided to wrote a behavior to do what I want. Just in case anybody is interested, I will attach it to this email. You can use it like so: ExternalLink externalLink = new ExternalLink("externalLink", "http://www.google.com";); externalLink.add(new DisableLinkBehavior()); externalLink.setEnabled(enabled); add(externalLink); The output is exactly the same as with Link. You can also specify "beforeDisabledLink" and "afterDisabledLink" strings in the constructor of DisableLinkBehavior if you don't like the default . Regards, Sebastiaan Sebastiaan van Erk wrote: Hi, It indeed looks more like an omission than a bug. I'll make a feature request out of it. :-) Regards, Sebastiaan Jonathan Locke wrote: yeah, more like an omission, but this is definitely a problem so far as i recall. Kent Tong wrote: Sebastiaan van Erk wrote: Ok, to answer my own question, it seems that ExternalLink does not have the ability to be disabled like Link. Looks like a bug to me. I'd suggest that you submit a JIRA issue at http://issues.apache.org/jira/browse/WICKET package com.sebster.util.wicket; import org.apache.wicket.Component; import org.apache.wicket.behavior.IBehavior; import org.apache.wicket.markup.ComponentTag; @SuppressWarnings("nls") public class LinkDisableBehavior implements IBehavior { private static final long serialVersionUID = 1L; private final String beforeDisabledLink; private final String afterDisabledLink; public LinkDisableBehavior() { this("", ""); } public LinkDisableBehavior(final String beforeDisabledLink, final String afterDisabledLink) { this.beforeDisabledLink = beforeDisabledLink; this.afterDisabledLink = afterDisabledLink; } public String getBeforeDisabledLink() { return beforeDisabledLink; } public String getAfterDisabledLink() { return afterDisabledLink; } public void afterRender(final Component component) { if (!isLinkEnabled(component) && getAfterDisabledLink() != null) { component.getResponse().write(getAfterDisabledLink()); } } public void beforeRender(final Component component) { if (!isLinkEnabled(component) && getBeforeDisabledLink() != null) { component.getResponse().write(getBeforeDisabledLink()); } } public void bind(final Component component) { // Do nothing. } public void detach(final Component component) { // Do nothing. } public void exception(final Component component, final RuntimeException exception) { // Do nothing. } public boolean getStatelessHint(final Component component) { return true; } public boolean isEnabled(final Component component) { return true; } public boolean isTemporary() { return false; } public void onComponentTag(final Component component, final ComponentTag tag) { if (!isLinkEnabled(component)) { // if the tag is an anchor proper if (tag.getName().equalsIgnoreCase("a") || tag.getName().equalsIgnoreCase("link") || tag.getName().equalsIgnoreCase("area")) { // Change anchor link to span tag tag.setName("span"); // Remove any href from the old link tag.remove("href"); tag.remove("onclick"); } // if the tag is a button or input else if ("button".equalsIgnoreCase(tag.getName()) || "input".equalsIgnoreCase(tag.getName())) { tag.put("disabled", "disabled"); } } } protected boolean isLinkEnabled(final Component component) { return component.isEnabled() && component.isEnableAllowed(); } } smime.p7s Description: S/MIME Cryptographic Signature
Re: How to get a list of the connected users ?
> If you don't want to tread on the lower-level servlet API, maybe you > could do something with WebApplication.sessionDestroyed or > ISessionStore.unbind. Although I'm not exactly sure when they are called > (just browsing javadoc, that's all). Yep. You can override onBind (if you extend either HttpSessionStore or SecondLevelCacheSessionStore, which is recommended) and onUnbind to register/ deregister sessions. Do note however that this doesn't work in a cluster unless you do some extra work (though I think that with e.g. Terracotta it should be easy to cluster the list you keep with the sessions). Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: wicket authentication override
> I would like to bypass the sign-in screen during development, but > AuthenticatedWebSession provides no setSignedIn() method. So as far > as I can tell, there is no way to skip the sign-in screen... > > Am I missing something? If not, can it be changed? I think we can add that. Can you provide a patch please? Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Finishing wizard by pressing Enter
> > As I said earlier, in Wizard.java's method > > protected void onBeforeRender() > { > super.onBeforeRender(); > Component buttonBar = get(BUTTONS_ID); > if (buttonBar instanceof IDefaultButtonProvider) > { > IFormSubmittingComponent defaultButton = > ((IDefaultButtonProvider)buttonBar) > .getDefaultButton(wizardModel); > form.setDefaultButton(defaultButton); > } > } Ugh. That get call should have been done on form of course. Sorry for the oversight. It is fixed now. Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: wicket authentication override
I'm no expert on wicket-auth-roles but coming from the similar swarm securityframework i think a simple flag if a user is logged in is not going to work. Since the framework still needs to know what permissions the user has. Perhaps you could automatically login a user at the session when the session is created? You could do this in the constructor of your custom session or overwrite the newSession() method from Application. And offcourse then you need a direct link to a page behind the login page, but if you have setup the framework properly the homepage should already be a securepage or contain direct links to secure pages, so this should not be a problem. Maurice On 9/12/07, Michael Day <[EMAIL PROTECTED]> wrote: > Hi, > > I would like to bypass the sign-in screen during development, but > AuthenticatedWebSession provides no setSignedIn() method. So as far > as I can tell, there is no way to skip the sign-in screen... > > Am I missing something? If not, can it be changed? > > Thanks! > > > > > > - > 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: Finishing wizard by pressing Enter
Eelco Hillenius wrote: On 9/12/07, Vit Rozkovec <[EMAIL PROTECTED]> wrote: Eelco Hillenius wrote: On 9/12/07, Vit Rozkovec <[EMAIL PROTECTED]> wrote: I checked the code out with svn, and run my project with last revision, however the behavior is still the same. In the Wizard.java method onBeforeRender() there is a condition if (buttonBar instanceof IDefaultButtonProvider){} which in my case never evaluates to true and so the form never gets set the default button. Am I correct that you provide your own button bar then? Please take a look at how WizardButtonBar is implemented. In fact no, I use standard WizardButtonBar. I checked the implementation and I understand what it should do, but it does not. At the moment I solved the problem a bit dirty way - inerhited WizardButtonBar and in the template changed Finish button to be the first one, so on the last step Enter is catched correctly by Finish button. I'm sorry I didn't mention this, but this https://issues.apache.org/jira/browse/WICKET-954 was a related bug I fixed two days ago. So for the update to work you also need the latest snapshot of wicket, not just wicket-extensions. If it still doesn't work, that's a bug. Could you try please? Eelco Yes, I checked out all trunk and did mvn install in parent directory. To be sure, I checked content of the Form.class in included jar and there is the patched code. The behavior is the same. But I do not think it is the problem, if I understand it well. As I said earlier, in Wizard.java's method protected void onBeforeRender() { super.onBeforeRender(); Component buttonBar = get(BUTTONS_ID); if (buttonBar instanceof IDefaultButtonProvider) { IFormSubmittingComponent defaultButton = ((IDefaultButtonProvider)buttonBar) .getDefaultButton(wizardModel); form.setDefaultButton(defaultButton); } } in Component buttonBar = get(BUTTONS_ID); the buttonBar variable is assigned null, so we do not even reach form.setDefaultButton(defaultButton); Vitek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wasp/Swarm Questions was Re: Component parent null after replace
I realize i did not give any directions about how to use this class but i was hoping the javadoc would speak for itself. Anyway the getReplacementFor is a factory method for creating the panel that will replace the current panel. Looking at your original class i think it should do something like protected MarkupContainer getReplacementFor(Component current, String id, Class replacementClass) { return getPanelFactory().newPanel(id, replacementClass,current.getModel()); //not sure where getPanelFactory is accessible from, but you get the drift. } This will cause a onetime replacement of the panel, any next click will just replace the panel again with a new instance of the same class. If you do not want any further clicks on the link you could do a setVisible(false); to hide the link. Or if you want the link to alternate between these two panels (or any number really) you could do this protected MarkupContainer getReplacementFor(Component current, String id, Class replacementClass) { setReplacementClass(current.getClass()); return getPanelFactory().newPanel(id, replacementClass,current.getModel()); } Note that in this last example you need to grant permission for all the panelclasses you want to alternate between or the link will disappear. Also the link does not care about permissions for the currently showing panel, the panel itself should do that, but only about the panel you are going to replace it with. I hope this clarifies things enough. Keep me posted. Maurice On 9/12/07, Anthony Schexnaildre <[EMAIL PROTECTED]> wrote: > Sitting down with the SecureContainerLink now. I may be slow but I am > a little confused by it's intended use. I am not sure what the > implementation of getReplacementFor(.) is meant to look like. > > -Anthony > > On Sep 11, 2007, at 11:24 PM, Maurice Marrink wrote: > > > Ok, i just finished a SecureContainerLink that should do what your > > SecurePanelLink does, but it is a bit less complex. I haven't checked > > it in yet or tested it for that matter but hope to hear from you if > > this is what you meant. If so i will make it a part of wasp. > > > > Maurice > > > > /* > > * Licensed to the Apache Software Foundation (ASF) under one or more > > * contributor license agreements. See the NOTICE file distributed > > with > > * this work for additional information regarding copyright ownership. > > * The ASF licenses this file to You under the Apache License, > > Version 2.0 > > * (the "License"); you may not use this file except in compliance > > with > > * the License. You may obtain a copy of the License at > > * > > * http://www.apache.org/licenses/LICENSE-2.0 > > * > > * Unless required by applicable law or agreed to in writing, software > > * distributed under the License is distributed on an "AS IS" BASIS, > > * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or > > implied. > > * See the License for the specific language governing permissions and > > * limitations under the License. > > */ > > package org.apache.wicket.security.components.markup.html.links; > > > > import org.apache.wicket.Component; > > import org.apache.wicket.MarkupContainer; > > import org.apache.wicket.WicketRuntimeException; > > import org.apache.wicket.markup.html.link.Link; > > import org.apache.wicket.model.IModel; > > import org.apache.wicket.security.actions.AbstractWaspAction; > > import org.apache.wicket.security.checks.ISecurityCheck; > > import org.apache.wicket.security.checks.LinkSecurityCheck; > > import org.apache.wicket.security.components.ISecureComponent; > > import org.apache.wicket.security.components.SecureComponentHelper; > > > > /** > > * A secure link to handle panel replacements or any other type of > > * [EMAIL PROTECTED] MarkupContainer}s. It is also usable as a link to > > switch > > between 2 or > > * more panels. Security is enforced on the replacing class. > > * > > * @author marrink > > */ > > public abstract class SecureContainerLink extends Link implements > > ISecureComponent > > { > > /** > >* > >*/ > > private static final long serialVersionUID = 1L; > > > > private Class replacementClass; > > private MarkupContainer containerParent; > > private String containerId; > > > > /** > >* Constructs a new replacement link. > >* > >* @param id > >*id of the link > >* @param replacementPanel > >*the class of the container replacing the component > > on the > >*supplied parent > >* @param parentOfReplaceablePanel > >*the parent component where the replacement needs to > > take place > >* @param panelId > >*the id of the component to be replaced > >*/ > > public SecureContainerLink(String id, Class replacementPanel, > > MarkupContainer parentOfRepl
Re: Finishing wizard by pressing Enter
On 9/12/07, Vit Rozkovec <[EMAIL PROTECTED]> wrote: > Eelco Hillenius wrote: > > On 9/12/07, Vit Rozkovec <[EMAIL PROTECTED]> wrote: > > > >> I checked the code out with svn, and run my project with last revision, > >> however the behavior is still the same. > >> In the Wizard.java method onBeforeRender() there is a condition > >> if (buttonBar instanceof IDefaultButtonProvider){} > >> which in my case never evaluates to true and so the form never gets set > >> the default button. > >> > > > > Am I correct that you provide your own button bar then? Please take a > > look at how WizardButtonBar is implemented. > > > > > In fact no, I use standard WizardButtonBar. I checked the implementation > and I understand what it should do, but it does not. At the moment I > solved the problem a bit dirty way - inerhited WizardButtonBar and in > the template changed Finish button to be the first one, so on the last > step Enter is catched correctly by Finish button. I'm sorry I didn't mention this, but this https://issues.apache.org/jira/browse/WICKET-954 was a related bug I fixed two days ago. So for the update to work you also need the latest snapshot of wicket, not just wicket-extensions. If it still doesn't work, that's a bug. Could you try please? Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Finishing wizard by pressing Enter
Eelco Hillenius wrote: On 9/12/07, Vit Rozkovec <[EMAIL PROTECTED]> wrote: I checked the code out with svn, and run my project with last revision, however the behavior is still the same. In the Wizard.java method onBeforeRender() there is a condition if (buttonBar instanceof IDefaultButtonProvider){} which in my case never evaluates to true and so the form never gets set the default button. Am I correct that you provide your own button bar then? Please take a look at how WizardButtonBar is implemented. In fact no, I use standard WizardButtonBar. I checked the implementation and I understand what it should do, but it does not. At the moment I solved the problem a bit dirty way - inerhited WizardButtonBar and in the template changed Finish button to be the first one, so on the last step Enter is catched correctly by Finish button. Do you want a code of my class? I do not do there something special, I copied the class from wicket examples. Sure. Eelco Here it is (full source with imports at http://rafb.net/p/sjz60X77.html ) public class NewRecordWizardPanel extends Wizard { /** * file from UploadPanel */ private Soubor soubor; /** * Step for uploading file */ private final class UploadFileStep extends WizardStep { UploadPanel uploadPanel; /** * Construct. */ public UploadFileStep() { setTitleModel(new ResourceModel("upload.title")); setSummaryModel(new ResourceModel("upload.summary")); // where to upload files // TODO move to .properties Folder uploadFolder = new Folder("data/", "ds-upload"); add(this.uploadPanel = new UploadPanel("uploadPanel", uploadFolder)); } @Override protected void onInit(IWizardModel wizardModel) { // form settings Form form = NewRecordWizardPanel.this.getForm(); form.setMultiPart(true); form.setMaxSize(this.uploadPanel.getMaxUploadSize()); super.onInit(wizardModel); } @Override public void applyState() { // after submitting step make appropriate actions in panel this.uploadPanel.submitActions(); // get uploaded file soubor = this.uploadPanel.getSoubor(); super.applyState(); } } /** * Dublin Core input form */ private final class EditDCStep extends WizardStep { private NewDCPanel panel; public EditDCStep() { setTitleModel(new ResourceModel("dublinCore.title")); add(panel = new NewDCPanel("editDC")); } @Override public void applyState() { panel.submitActions(soubor); super.applyState(); } } private Class responsePage = WizardPage.class; /** * Construct. * * @param id *The component id * @param responsePage *page where cancel and finish go */ public NewRecordWizardPanel(String id, Class responsePage) { this(id); this.responsePage = responsePage; } /** * Construct. * * @param id *The component id */ public NewRecordWizardPanel(String id) { super(id, false); add(Shorthand.getCssForClass(NewRecordWizardPanel.class)); setModel(new CompoundPropertyModel(this)); WizardModel model = new WizardModel(); model.add(new UploadFileStep()); model.add(new EditDCStep()); // initialize the wizard with the wizard model we just built init(model); } /** * @see org.apache.wicket.extensions.wizard.Wizard#onCancel() */ public void onCancel() { File file = new File(soubor.getFilePath()); if (file.exists()) { file.delete(); } // in case of Cancel button, delete already persisted data in database Session session = DataStaticService.getHibernateSession(); session.createQuery("delete Soubor as s where s.id=:id").setParameter( "id", soubor.getId()).executeUpdate(); setResponsePage(this.responsePage); } /** * @see org.apache.wicket.extensions.wizard.Wizard#onFinish() */ public void onFinish() { setResponsePage(this.responsePage); } } Vitek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ajax - Long process indicator ?
In fact I my problem is the following : a form is submitted with an ajaxbutton, and processing of this form takes a long time (many server side DB checkings), and within this computing time, I would like to prevent the user to continue editing the form being processed... We have coded a "IndicatingAjaxButton" that is a mix between a IndicatingAjaxLink and an AjaxButton, so the user has a feedback, but this doesnt prevent the user to continue modifying the form while the processing is running. So I think a modal popup would be the ideal solution to do this. Is it possible to modify the behaviour of the IndicatingLink so that instead of displaying a animated gif when clicked, a modal popup is displayed ? _ From: Francis De Brabandere [mailto:[EMAIL PROTECTED] To: users@wicket.apache.org Sent: Wed, 12 Sep 2007 21:40:16 +0200 Subject: Re: Ajax - Long process indicator ? IndicatingAjaxLink might be what you need On 9/12/07, Mael Sicsic <[EMAIL PROTECTED]> wrote: > Hello, > > I dont find in the available components one that would allow to display a little pop up while a long ajax process is running. > In a form with an Ajax button, the browser doesnt display any feedback (as the full page isnt re-rendered, there is no browser loading indicator). If the process associated with the button action takes somes times (a few seconds), the user as the feeling that his click has not been taken in account... > > Is there a allready a component that allow to display some feedback to the user when a button or link is clicked ? If not what is the most straightforward way to implement this fonctionality ? -- 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]
wicket authentication override
Hi, I would like to bypass the sign-in screen during development, but AuthenticatedWebSession provides no setSignedIn() method. So as far as I can tell, there is no way to skip the sign-in screen... Am I missing something? If not, can it be changed? Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JavaZone presentation follow up
Congrats! 47 slides! how long was the talk? In the past i have had trouble running through all of them in little less than an hour. I have mine coming up late october in India and i have only 50 minutes to sell Wicket!. I like the reference to "Pro JSF & Ajax" - I had the exact same feeling reading that book sometime back and i even pinged Eelco and told him. How I wish I had learnt JSF before coming to wicket - Am supposed to do a session comparing both. So in my spare time am forced to try out exercises in JSF - its so painful to go backwards in life ! :-( Also this - http://chillenious.wordpress.com/2006/05/12/a-word-about-custom-components/ Btw, do you mind if i "re-use" some of your slide contents ? ;-) thanks, Karthik On 9/12/07, Xavier Hanin <[EMAIL PROTECTED]> wrote: > > Hi Wicket community, > > I've just finished my presentation on Wicket at JavaZone! Presentation > outline: > * What is Wicket > * Wicket core concepts > * Creating a custom component with Wicket > > The slides I've used are available here: > http://people.apache.org/~xavier/wicket/wicket-javazone-07.ppt > > The source code (as an eclipse project, with all required libs, no ant nor > maven build, sorry) is available here: > http://people.apache.org/~xavier/wicket/wicket-javazone-07.zip > > From my point of view the presentation went pretty well, the room was > almost > packed, if only I had a better spoken english level maybe I would have > wake > up a few tired attendees in the back :-) > > Thanks to all of you who helped me prepare the presentation, and special > thanks to Eelco and the JavaZone committee to have trust me to replace him > for this talk. > > Xavier > -- > Xavier Hanin - Independent Java Consultant > http://xhab.blogspot.com/ > http://incubator.apache.org/ivy/ > http://www.xoocode.org/ > -- -- karthik --
Re: Ajax - Long process indicator ?
IndicatingAjaxLink might be what you need On 9/12/07, Mael Sicsic <[EMAIL PROTECTED]> wrote: > Hello, > > I dont find in the available components one that would allow to display a > little pop up while a long ajax process is running. > In a form with an Ajax button, the browser doesnt display any feedback (as > the full page isnt re-rendered, there is no browser loading indicator). If > the process associated with the button action takes somes times (a few > seconds), the user as the feeling that his click has not been taken in > account... > > Is there a allready a component that allow to display some feedback to the > user when a button or link is clicked ? If not what is the most > straightforward way to implement this fonctionality ? -- 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]
Ajax - Long process indicator ?
Hello, I dont find in the available components one that would allow to display a little pop up while a long ajax process is running. In a form with an Ajax button, the browser doesnt display any feedback (as the full page isnt re-rendered, there is no browser loading indicator). If the process associated with the button action takes somes times (a few seconds), the user as the feeling that his click has not been taken in account... Is there a allready a component that allow to display some feedback to the user when a button or link is clicked ? If not what is the most straightforward way to implement this fonctionality ?
Re: Wicket Web Beans 1.0-rc1 Released
Hey Dan, that looks very nice! Thanks for sharing. Eelco On 9/12/07, Dan Syrstad <[EMAIL PROTECTED]> wrote: > In response to Jonathan Locke's blog entry entitled "Wicket on Wheels" ( > http://web.mac.com/jonathan.locke/iWeb/JonathanLocke/Blog/6B9496DF-4AF1-455E-B94C-652709275041.html), > I have released Wicket Web Beans 1.0-rc1. Although this project does not > cover all of the functionality Jonathan spoke of, I believe it covers a good > chunk of it. The project is hosted on Sourceforge at: > http://wicketwebbeans.sourceforge.net . > > Summary: > Wicket Web Beans (WWB) is a Wicket component toolkit for displaying and > editing POJOs that conform to the JavaBeans specification. Web pages are > automatically generated based on bean properties and certain conventions. If > necessary, the layout, editability, and actions of these pages can be > customized on an exception basis. In other words, the toolkit normally does > what you'd expect, but when it doesn't, you can override its behavior. > > At the highest-level, WWB's BeanForm component provides rich AJAX form > functionality. The Page design that the form is embedded on is left to you, > this allows for customized page designs. Also, this allows multiple > BeanForms may be incorporated on a single page. At your choosing, other > lower-level components may be used independently of BeanForm (e.g., > BeanGridPanel). WWB does not try to force you into a certain way of doing > things, but BeanForm makes it very convenient to implement a bean-based form > if you don't want to go to a lot of extra work. You focus on the model > (beans), WWB handles the user interface. > I welcome any feedback you may have. Please post feedback to the project > forums at Sourceforge. > > -Dan > - 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 am definitely interested in joining a conference-esque / user-groupish meeting about Wicket. Count me in! Cheers, Kees de Kooter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wasp/Swarm Questions was Re: Component parent null after replace
Sitting down with the SecureContainerLink now. I may be slow but I am a little confused by it's intended use. I am not sure what the implementation of getReplacementFor(.) is meant to look like. -Anthony On Sep 11, 2007, at 11:24 PM, Maurice Marrink wrote: Ok, i just finished a SecureContainerLink that should do what your SecurePanelLink does, but it is a bit less complex. I haven't checked it in yet or tested it for that matter but hope to hear from you if this is what you meant. If so i will make it a part of wasp. Maurice /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.wicket.security.components.markup.html.links; import org.apache.wicket.Component; import org.apache.wicket.MarkupContainer; import org.apache.wicket.WicketRuntimeException; import org.apache.wicket.markup.html.link.Link; import org.apache.wicket.model.IModel; import org.apache.wicket.security.actions.AbstractWaspAction; import org.apache.wicket.security.checks.ISecurityCheck; import org.apache.wicket.security.checks.LinkSecurityCheck; import org.apache.wicket.security.components.ISecureComponent; import org.apache.wicket.security.components.SecureComponentHelper; /** * A secure link to handle panel replacements or any other type of * [EMAIL PROTECTED] MarkupContainer}s. It is also usable as a link to switch between 2 or * more panels. Security is enforced on the replacing class. * * @author marrink */ public abstract class SecureContainerLink extends Link implements ISecureComponent { /** * */ private static final long serialVersionUID = 1L; private Class replacementClass; private MarkupContainer containerParent; private String containerId; /** * Constructs a new replacement link. * * @param id *id of the link * @param replacementPanel *the class of the container replacing the component on the *supplied parent * @param parentOfReplaceablePanel *the parent component where the replacement needs to take place * @param panelId *the id of the component to be replaced */ public SecureContainerLink(String id, Class replacementPanel, MarkupContainer parentOfReplaceablePanel, String panelId) { this(id, null, replacementPanel, parentOfReplaceablePanel, panelId); } /** * Constructs a new replacement link. * * @param id *id of the link * @param object *model of the link * @param replacementPanel *the class of the container replacing the component on the *supplied parent * @param parentOfReplaceablePanel *the parent component where the replacement needs to take place * @param panelId *the id of the component to be replaced */ public SecureContainerLink(String id, IModel object, Class replacementPanel, MarkupContainer parentOfReplaceablePanel, String panelId) { super(id, object); setReplacementClass(replacementPanel); if (parentOfReplaceablePanel == null) throw new WicketRuntimeException("Parent required for replacing components."); containerParent = parentOfReplaceablePanel; if (panelId == null) throw new WicketRuntimeException("Id required from component to be replaced."); containerId = panelId; } /** * Performs the replacement, only if an actual replacement was constructed. * * @see org.apache.wicket.markup.html.link.Link#onClick() * @see #getReplacementFor(Component, String, Class) * @throws WicketRuntimeException * if a problem occurs in replacing the container. */ public final void onClick() { Component replaceMe = containerParent.get(containerId); if (r
BookmarkablePageLink doesn't take advantage of pretty url for previously mounted pages when generating the URL
Is there a reason for this? The wicket:link will generate the pretty url when it encounters pages that have been mounted. Just trying to understand if I am missing something in my understanding of the framework or if this is an oversight. Mike -- View this message in context: http://www.nabble.com/BookmarkablePageLink-doesn%27t-take-advantage-of-pretty-url-for-previously-mounted-pages-when-generating-the-URL-tf4430990.html#a12640694 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: JavaZone presentation follow up
On 9/12/07, Xavier Hanin <[EMAIL PROTECTED]> wrote: > > It went pretty well, people seemed interested, well, at least those who > were > awake :-) It's difficult to say how many attendees there was, I'd say > about > 150 or 200, but I'm not very good to evaluate an audience size. The room > was > almost packed anyway, with even a few people standing up. At the end I had > a > few people asking questions (5 or 6), including people who told me they > were > very interested by Wicket and impressed by the ease of use of what they've > seen during the talk. The talk was recorded, so hopefully you'll be able > to > ear my horrible accent in a near future :-) > > Xavier cool, sounds awesome. i'm looking forward to the recording ;) btw: have you seen the trailer for javazone07? it fits the heavy metal opening concert pretty well ;) gerolf hf at javazone, > > gerolf > > > > On 9/12/07, Jan Kriesten <[EMAIL PROTECTED]> wrote: > > > > > > > > > hi xavier, > > > > > > > I've just finished my presentation on Wicket at JavaZone! > > > > > > congrats! and thanks for providing the ppt - i'll take it as > inspiration > > > for my > > > presentation in october. :-) > > > > > > regards, --- jan. > > > > > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > -- > Xavier Hanin - Independent Java Consultant > http://xhab.blogspot.com/ > http://incubator.apache.org/ivy/ > http://www.xoocode.org/ >
Re: auto dirty and widget factory
looks reasonable. -igor On 9/12/07, Sam Hough <[EMAIL PROTECTED]> wrote: > > > Would RequestCycle be the place to keep track of dirty widgets? > > Presumably Session can be shared by more than one session and my be used > by > multiple threads at the same time? > > > > Sam Hough wrote: > > > > Apologies in advance as I'm a newbie harking on about my pet topic again > > but... > > > > Taking the example of TabbedPanel and AjaxTabbedPanel (only in > extensions > > but a common UI concept) I think it shows why it would be good to use > the > > factory pattern to generate elemental widgets (like button, panel etc > > assuming people want AjaxFallbackButton or Button) and automatically > track > > dirty components. > > > > I first got this bee in my bonnet about higher level application code > > because I didn't think I should be messing about working out which > > components were dirty when I just want the result of pressing a button > to > > fiddle with the model and change the ui state a bit. However looking at > > *TabbedPanel I think it would also make sense for pure UI components. > > Using inheritance to add Ajax to TabbedPanel means any other variations > > also have to be doubled (e.g. AjaxFancyTabbedPanel and FancyTabbedPanel > > etc). Perhaps the bigger problem is that if a Panel that is meant to be > > inside a TabbedPanel and needs to alter another component (e.g. update > > navigation component) the TabbedPanel has to ask it for changes. > > Presumably a component should be self contained as possible so it > doesn't > > matter what other component it is contained within. > > > > Factory pattern is a pain but presumably many people don't want the > > overhead of AjaxFallbackXXX. It would also make it possible to program > > against interfaces which might give more power to Igor, Eelco etc > > > > Please don't get me wrong GWT is still my true love but Wicket is a > > fabulous framework taking us out of the dark ages of struts. > > > > > > > > -- > View this message in context: > http://www.nabble.com/auto-dirty-and-widget-factory-tf4421187.html#a12640270 > 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: (Matej?) Re: How to remove a page from Wicket's back button memory?
It should be fixed in svn already. https://issues.apache.org/jira/browse/WICKET-942 -Matej On 9/12/07, Justin Morgan (Logic Sector) <[EMAIL PROTECTED]> wrote: > Hi Matej, > > > i think matej did fix that today or is fixing it > > Any word on whether this bug is fixed? (see stack trace below) > > Or should I file a JIRA issue if there's not one already? > > Many thanks, > > Justin > > On Sep 12, 2007, at 5:50 AM, Johan Compagner wrote: > > > yes thats a know bug, i think matej did fix that today or is fixing > > it right > > now. > > > > johan > > > > On 9/12/07, Justin Morgan (Logic Sector) <[EMAIL PROTECTED]> > > wrote: > >> > >> Thanks, I tried that but I get an exception in the Wicket 1.3 > >> snapshot I'm using. Is there a known bug in the remove(Page) > >> method? Or maybe I'm simply using it wrong? (after logging in, my > >> secured page is attempting to invoke loginpage.getpagemap().remove > >> (loginpage) in the secured page's constructor). > >> > >> [01:39:54,832 ERROR org.apache.wicket.RequestCycle]: Can't > >> instantiate page using constructor public > >> com.logicsector.web.page.SecuredExamplePage > >> (org.apache.wicket.PageParameters) and argument exampleId = "100" > >> org.apache.wicket.WicketRuntimeException: Can't instantiate page > >> using constructor public com.logicsector.web.page.SecuredExamplePage > >> (org.apache.wicket.PageParameters) and argument exampleId = "100" > >> at org.apache.wicket.session.DefaultPageFactory.newPage > >> (DefaultPageFactory.java:175) > >> at org.apache.wicket.session.DefaultPageFactory.newPage > >> (DefaultPageFactory.java:96) > >> at > >> org.apache.wicket.request.target.component.BookmarkablePageRequestTar > >> get > >> .newPage(BookmarkablePageRequestTarget.java:262) > >> at > >> org.apache.wicket.request.target.component.BookmarkablePageRequestTar > >> get > >> .getPage(BookmarkablePageRequestTarget.java:277) > >> at > >> org.apache.wicket.request.target.component.BookmarkablePageRequestTar > >> get > >> .processEvents(BookmarkablePageRequestTarget.java:205) > >> at > >> org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents > >> (AbstractRequestCycleProcessor.java:90) > >> at org.apache.wicket.RequestCycle.processEventsAndRespond > >> (RequestCycle.java:1018) > >> at org.apache.wicket.RequestCycle.step(RequestCycle.java: > >> 1093) > >> at org.apache.wicket.RequestCycle.steps(RequestCycle.java: > >> 1162) > >> at org.apache.wicket.RequestCycle.request(RequestCycle.java: > >> 485) > >> at org.apache.wicket.protocol.http.WicketFilter.doGet > >> (WicketFilter.java:261) > >> at org.apache.wicket.protocol.http.WicketServlet.doGet > >> (WicketServlet.java:126) > >> at javax.servlet.http.HttpServlet.service > >> (HttpServlet.java:690) > >> at javax.servlet.http.HttpServlet.service > >> (HttpServlet.java:803) > >> at > >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter > >> (ApplicationFilterChain.java:290) > >> at org.apache.catalina.core.ApplicationFilterChain.doFilter > >> (ApplicationFilterChain.java:206) > >> at org.apache.catalina.core.StandardWrapperValve.invoke > >> (StandardWrapperValve.java:228) > >> at org.apache.catalina.core.StandardContextValve.invoke > >> (StandardContextValve.java:175) > >> at org.apache.catalina.core.StandardHostValve.invoke > >> (StandardHostValve.java:128) > >> at org.apache.catalina.valves.ErrorReportValve.invoke > >> (ErrorReportValve.java:104) > >> at org.apache.catalina.core.StandardEngineValve.invoke > >> (StandardEngineValve.java:109) > >> at org.apache.catalina.connector.CoyoteAdapter.service > >> (CoyoteAdapter.java:216) > >> at org.apache.coyote.http11.Http11Processor.process > >> (Http11Processor.java:844) > >> at org.apache.coyote.http11.Http11Protocol > >> $Http11ConnectionHandler.process(Http11Protocol.java:634) > >> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run > >> (JIoEndpoint.java:445) > >> at java.lang.Thread.run(Thread.java:613) > >> Caused by: java.lang.reflect.InvocationTargetException > >> at sun.reflect.NativeConstructorAccessorImpl.newInstance0 > >> (Native Method) > >> at sun.reflect.NativeConstructorAccessorImpl.newInstance > >> (NativeConstructorAccessorImpl.java:39) > >> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance > >> (DelegatingConstructorAccessorImpl.java:27) > >> at java.lang.reflect.Constructor.newInstance > >> (Constructor.java:494) > >> at org.apache.wicket.session.DefaultPageFactory.newPage > >> (DefaultPageFactory.java:154) > >> ... 25 more > >> Caused by: java.lang.ClassCastException: java.lang.Integer > >> at > >> org.apache.wicket.protocol.http.pagestore.PageWindowManager.removePag > >> e > >> (PageWindowManager.java:544) > >>
Re: auto dirty and widget factory
Would RequestCycle be the place to keep track of dirty widgets? Presumably Session can be shared by more than one session and my be used by multiple threads at the same time? Sam Hough wrote: > > Apologies in advance as I'm a newbie harking on about my pet topic again > but... > > Taking the example of TabbedPanel and AjaxTabbedPanel (only in extensions > but a common UI concept) I think it shows why it would be good to use the > factory pattern to generate elemental widgets (like button, panel etc > assuming people want AjaxFallbackButton or Button) and automatically track > dirty components. > > I first got this bee in my bonnet about higher level application code > because I didn't think I should be messing about working out which > components were dirty when I just want the result of pressing a button to > fiddle with the model and change the ui state a bit. However looking at > *TabbedPanel I think it would also make sense for pure UI components. > Using inheritance to add Ajax to TabbedPanel means any other variations > also have to be doubled (e.g. AjaxFancyTabbedPanel and FancyTabbedPanel > etc). Perhaps the bigger problem is that if a Panel that is meant to be > inside a TabbedPanel and needs to alter another component (e.g. update > navigation component) the TabbedPanel has to ask it for changes. > Presumably a component should be self contained as possible so it doesn't > matter what other component it is contained within. > > Factory pattern is a pain but presumably many people don't want the > overhead of AjaxFallbackXXX. It would also make it possible to program > against interfaces which might give more power to Igor, Eelco etc > > Please don't get me wrong GWT is still my true love but Wicket is a > fabulous framework taking us out of the dark ages of struts. > > > -- View this message in context: http://www.nabble.com/auto-dirty-and-widget-factory-tf4421187.html#a12640270 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
(Matej?) Re: How to remove a page from Wicket's back button memory?
Hi Matej, i think matej did fix that today or is fixing it Any word on whether this bug is fixed? (see stack trace below) Or should I file a JIRA issue if there's not one already? Many thanks, Justin On Sep 12, 2007, at 5:50 AM, Johan Compagner wrote: yes thats a know bug, i think matej did fix that today or is fixing it right now. johan On 9/12/07, Justin Morgan (Logic Sector) <[EMAIL PROTECTED]> wrote: Thanks, I tried that but I get an exception in the Wicket 1.3 snapshot I'm using. Is there a known bug in the remove(Page) method? Or maybe I'm simply using it wrong? (after logging in, my secured page is attempting to invoke loginpage.getpagemap().remove (loginpage) in the secured page's constructor). [01:39:54,832 ERROR org.apache.wicket.RequestCycle]: Can't instantiate page using constructor public com.logicsector.web.page.SecuredExamplePage (org.apache.wicket.PageParameters) and argument exampleId = "100" org.apache.wicket.WicketRuntimeException: Can't instantiate page using constructor public com.logicsector.web.page.SecuredExamplePage (org.apache.wicket.PageParameters) and argument exampleId = "100" at org.apache.wicket.session.DefaultPageFactory.newPage (DefaultPageFactory.java:175) at org.apache.wicket.session.DefaultPageFactory.newPage (DefaultPageFactory.java:96) at org.apache.wicket.request.target.component.BookmarkablePageRequestTar get .newPage(BookmarkablePageRequestTarget.java:262) at org.apache.wicket.request.target.component.BookmarkablePageRequestTar get .getPage(BookmarkablePageRequestTarget.java:277) at org.apache.wicket.request.target.component.BookmarkablePageRequestTar get .processEvents(BookmarkablePageRequestTarget.java:205) at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents (AbstractRequestCycleProcessor.java:90) at org.apache.wicket.RequestCycle.processEventsAndRespond (RequestCycle.java:1018) at org.apache.wicket.RequestCycle.step(RequestCycle.java: 1093) at org.apache.wicket.RequestCycle.steps(RequestCycle.java: 1162) at org.apache.wicket.RequestCycle.request(RequestCycle.java: 485) at org.apache.wicket.protocol.http.WicketFilter.doGet (WicketFilter.java:261) at org.apache.wicket.protocol.http.WicketServlet.doGet (WicketServlet.java:126) at javax.servlet.http.HttpServlet.service (HttpServlet.java:690) at javax.servlet.http.HttpServlet.service (HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:228) at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:104) at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:216) at org.apache.coyote.http11.Http11Processor.process (Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.process(Http11Protocol.java:634) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run (JIoEndpoint.java:445) at java.lang.Thread.run(Thread.java:613) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance (NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance (DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance (Constructor.java:494) at org.apache.wicket.session.DefaultPageFactory.newPage (DefaultPageFactory.java:154) ... 25 more Caused by: java.lang.ClassCastException: java.lang.Integer at org.apache.wicket.protocol.http.pagestore.PageWindowManager.removePag e (PageWindowManager.java:544) at org.apache.wicket.protocol.http.pagestore.DiskPageStore $SessionEntry.removePage(DiskPageStore.java:252) at org.apache.wicket.protocol.http.pagestore.DiskPageStore.removePage (DiskPageStore.java:616) at org.apache.wicket.protocol.http.pagestore.DiskPageStore.removePage (DiskPageStore.java:645) at org.apache.wicket.protocol.http.SecondLevelCacheSessionStore $SecondLevelCachePageMap.removeEntry (SecondLevelCacheSessionStore.java:368) at org.apache.wicket.PageMap.remove(PageMap.java:289) at com.logicsector.web.page.SecuredExamplePage. (SecuredExamplePage.java:64) ... 30 more On
Re: RepeatingView id
Hope it makes sense: https://issues.apache.org/jira/browse/WICKET-962 Presumably my functional tests are meant to catch me being stupid and using the same markupId twice. btw I'm slowly catching onto the wicket way. Starting to appreciate IModel. igor.vaynberg wrote: > > please add a jira issue. > > -igor > > > On 9/12/07, Sam Hough <[EMAIL PROTECTED]> wrote: >> >> >> OK. Any nice way to warn developers if they put components with >> non-numeric >> wicket ids in a RepeatingView? >> >> This bites us as I'm doing: >> super(id, t); >> setMarkupId(id); >> setOutputMarkupId(true); >> for all our components so Ajax updates will work and the HTML monkey >> doesn't >> scream that he can't set the id of an element. >> >> Maybe I can add a kludge to not setMarkupId(id) if id matches \d+ >> >> >> >> >> >> >> igor.vaynberg wrote: >> > >> > this is a requirement for WICKET ids only, afaik we already make MARKUP >> > ids >> > start with a letter if it is numeric only >> > >> > -igor >> > >> > >> > On 9/12/07, Sam Hough <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> Our HTML monkey got me to make the ids of a RepeatingView valid (ie >> not >> >> just >> >> a number) but I >> >> think we got caught by this (from org.apache.wicket.markup.Markup): >> >> >> >> // TODO Post 1.2: A component path e.g. "panel:label" >> >> does >> >> not match 1:1 >> >> // with the markup in case of ListView, where the path >> >> contains a number >> >> // for each list item. E.g. list:0:label. What we >> >> currently do is simply >> >> // remove the number from the path and hope that no >> user >> >> uses an integer >> >> // for a component id. This is a hack only. A much >> better >> >> solution would >> >> // delegate to the various components recursivly to >> >> search >> >> within there >> >> // realm only for the components markup. ListItems >> could >> >> then simply >> >> // do nothing and delegate to their parents. >> >> >> >> Maybe a logger warning or assert if the developer tries to use an id >> that >> >> is >> >> not \d+ and fix the comment in RepeatingView that says newChildId >> starts >> >> with "id"? >> >> >> >> Cheers >> >> >> >> Sam >> >> -- >> >> View this message in context: >> >> http://www.nabble.com/RepeatingView-id-tf4427681.html#a12630767 >> >> 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/RepeatingView-id-tf4427681.html#a12638365 >> 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/RepeatingView-id-tf4427681.html#a12640217 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: Flash object still visible underneath a ModalWindow
Solved it. It turns out that a flash object is always rendered on the topmost layer of a page regardless of the z-index order. To be able to place the flash object underneath a popup you need to add a param to the SWFObject : swfObj.addParam("wmode", "opaque"); I've added this in SWFObject.java class (I'm using the SWFObject.java attached here https://issues.apache.org/jira/browse/WICKET-309). Just add response.write(swfVar + ".addParam('wmode', 'opaque');"); before line response.write(swfVar + ".write('" + id + "');"); so the flash object will become blocked by the popup dialog as expected. I got the idea from here (check the last section): http://pipwerks.com/lab/swfobject/ florin Al Maw wrote: > > bebetu wrote: >> Hi, >> I am experiencing a strange issue with a ModalWindow behavior (I'm using >> wicket 1.3 beta3). The main page content contains a flash object (I'm >> using >> a SWFObject to render it) and when a ModalWindow pops-up over this >> content, >> the flash object is still visible below. in Firefox the flash content >> becomes clickable once I drag the ModalWindow clear from the flash object >> rendered below. In IE the flash object is visible and clickable the whole >> time after the ModalWindow is displayed. >> >> Has anyone experienced this issue? Any advice is appreciated. > > Yeah. :-( > > It's a bug in Internet Explorer. You could probably work around it by > hiding the whole of the Flash object while the window is popped up. We > already have JS code that does this for drop-down boxes (which > exhibit the same problem in IE). You might be able to crib the code from > that. Patches are welcome. ;) > > Regards, > > Al > > -- > Alastair Maw > Wicket-biased blog at http://herebebeasties.com > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Flash-object-still-visible-underneath-a-ModalWindow-tf4409822.html#a12640052 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: JavaZone presentation follow up
On 9/12/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > On 9/12/07, Xavier Hanin <[EMAIL PROTECTED]> wrote: > > Hi Wicket community, > > > > I've just finished my presentation on Wicket at JavaZone! Presentation > > outline: > > * What is Wicket > > * Wicket core concepts > > * Creating a custom component with Wicket > > > > The slides I've used are available here: > > http://people.apache.org/~xavier/wicket/wicket-javazone-07.ppt > > > > The source code (as an eclipse project, with all required libs, no ant > nor > > maven build, sorry) is available here: > > http://people.apache.org/~xavier/wicket/wicket-javazone-07.zip > > > > From my point of view the presentation went pretty well, the room was > almost > > packed, if only I had a better spoken english level maybe I would have > wake > > up a few tired attendees in the back :-) > > > > Thanks to all of you who helped me prepare the presentation, and special > > thanks to Eelco and the JavaZone committee to have trust me to replace > him > > for this talk. > > Thanks a lot for talking Xavier! I hope you have fun over there :-) Oslo is a very beautilful city and we are lucky enough to have sunny days. And javazone is a very nice conference, somewhat weird by some aspects (I'm not used to see a heavy metal concert for the opening show of a conference :-)). So yes I have fun! Xavier Eelco > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Xavier Hanin - Independent Java Consultant http://xhab.blogspot.com/ http://incubator.apache.org/ivy/ http://www.xoocode.org/
Re: JavaZone presentation follow up
On 9/12/07, Gerolf Seitz <[EMAIL PROTECTED]> wrote: > > hi xavier, > > nice presentation. > plz let us know how it went, how many attendees, etc... It went pretty well, people seemed interested, well, at least those who were awake :-) It's difficult to say how many attendees there was, I'd say about 150 or 200, but I'm not very good to evaluate an audience size. The room was almost packed anyway, with even a few people standing up. At the end I had a few people asking questions (5 or 6), including people who told me they were very interested by Wicket and impressed by the ease of use of what they've seen during the talk. The talk was recorded, so hopefully you'll be able to ear my horrible accent in a near future :-) Xavier hf at javazone, > gerolf > > On 9/12/07, Jan Kriesten <[EMAIL PROTECTED]> wrote: > > > > > > hi xavier, > > > > > I've just finished my presentation on Wicket at JavaZone! > > > > congrats! and thanks for providing the ppt - i'll take it as inspiration > > for my > > presentation in october. :-) > > > > regards, --- jan. > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > -- Xavier Hanin - Independent Java Consultant http://xhab.blogspot.com/ http://incubator.apache.org/ivy/ http://www.xoocode.org/
Re: JavaZone presentation follow up
On 9/12/07, Xavier Hanin <[EMAIL PROTECTED]> wrote: > Hi Wicket community, > > I've just finished my presentation on Wicket at JavaZone! Presentation > outline: > * What is Wicket > * Wicket core concepts > * Creating a custom component with Wicket > > The slides I've used are available here: > http://people.apache.org/~xavier/wicket/wicket-javazone-07.ppt > > The source code (as an eclipse project, with all required libs, no ant nor > maven build, sorry) is available here: > http://people.apache.org/~xavier/wicket/wicket-javazone-07.zip > > From my point of view the presentation went pretty well, the room was almost > packed, if only I had a better spoken english level maybe I would have wake > up a few tired attendees in the back :-) > > Thanks to all of you who helped me prepare the presentation, and special > thanks to Eelco and the JavaZone committee to have trust me to replace him > for this talk. Thanks a lot for talking Xavier! I hope you have fun over there :-) Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JavaZone presentation follow up
hi xavier, nice presentation. plz let us know how it went, how many attendees, etc... hf at javazone, gerolf On 9/12/07, Jan Kriesten <[EMAIL PROTECTED]> wrote: > > > hi xavier, > > > I've just finished my presentation on Wicket at JavaZone! > > congrats! and thanks for providing the ppt - i'll take it as inspiration > for my > presentation in october. :-) > > regards, --- jan. > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: How to retrieve previous path when page expires through Ajax call
> Do you mean to store the user's current URL path in his/her cookie every > time and retrieve it for restoring the path after the session expiration? Something along those lines. Or maybe you can cut it down to just a few important URLs that you set as a kind of save point/ just URLs to bookmarkable pages. Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WicketTester and Page parameters & Wicket Example Unit tests?
No I hadn't! . but I have now! Thanks so much. If I had made a constructor that took PageParameters parameter I would have obviously tried that but I never thought to look at the WebPage class and see that there is a contructor: WebPage(PageParameters ) which you can override. Man that's made my testing a lot more simple now. Thanks again Simon On 12/09/2007, cwilkes <[EMAIL PROTECTED]> wrote: > > > > wicket user wrote: > > > > 1) I've got a page that gets hit by an outside credit card merchant once > > they have validated the card, they post me my transaction ID along with > a > > whole host of other parameters. Getting them from the request is easy in > > the > > page itself but trying to unit test it is driving me nuts. Basically I > > want > > to start the page with parameters already loaded, it has to be staring > me > > in > > the face but I haven't had any luck. > > > > Have you tried someething like this? > > PageParameters pageParameters = new PageParameters(); > pageParameters.add("userId", "1234"); > wicketTester.startPage(new ITestPageSource() { > public Page getTestPage() { > return new MyPage(pageParameters); > }); > } > -- > View this message in context: > http://www.nabble.com/WicketTester-and-Page-parameters---Wicket-Example-Unit-tests--tf4424879.html#a12638428 > 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.2.6} Datepicker no popup?
On 9/12/07, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: > Hi > > How can I make the datepicker not popping? Eg just always shown? I think the backing js widget was never designed to do that. Looking at YUI's calendar for instance might be a better way. You can use 1.3's wicket-datetime project to rip code. Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TinyMCE Editor with AJAX
Try something like this to call onchange on the textarea: function RichTextField_newInstance(instance){ RichTextField_instance = instance; } function RichTextField_onEvent(e){ if (e.type == 'blur') { var value = RichTextField_instance.getBody().innerHTML; var textArea = RichTextField_instance.formElement; if (textArea.value != value) { textArea.value = value; textArea.onchange(); } } return true; } tinyMCE.init({ ... init_instance_callback : "RichTextField_newInstance", handle_event_callback : "RichTextField_onEvent", ... }); Regards, Carlos On 9/12/07, ximego <[EMAIL PROTECTED]> wrote: > > I use a textarea on my page, and it works well with ajax to get the value of > textarea. please see my code: > >textareaComp.add(new AjaxFormComponentUpdatingBehavior("onchange"){ > protected void onUpdate(AjaxRequestTarget target) { > . >} > } > ); > > But when I use TinyMCE instead of textarea, the above code doesn't > workAny hint? Thanks in advance. > -- > View this message in context: > http://www.nabble.com/TinyMCE-Editor-with-AJAX-tf4430222.html#a12638380 > 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: Finishing wizard by pressing Enter
On 9/12/07, Vit Rozkovec <[EMAIL PROTECTED]> wrote: > I checked the code out with svn, and run my project with last revision, > however the behavior is still the same. > In the Wizard.java method onBeforeRender() there is a condition > if (buttonBar instanceof IDefaultButtonProvider){} > which in my case never evaluates to true and so the form never gets set > the default button. Am I correct that you provide your own button bar then? Please take a look at how WizardButtonBar is implemented. > Do you want a code of my class? I do not do there something special, I > copied the class from wicket examples. Sure. Eelco - 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?
Hi Martijn, > Hmm, it starts to sound like a conference. No, no, absolutely.. That would be way too much. But it sounds like you could easily get 40 people in a room with a very simple 5 talks schedule. It really doesn't have to be a *conference*, it could be anything from a hackaton to a Barcamp or anything in between. If you stick to 2 hour sessions with only a very local audience, you're missing out on a lot of the Apache power! I apologize if I sound like a know-it-all, it's certainly not my intention to do so. But I'd be very much against a scattered set of 3-people meetups all across the globe if there's enough interest to bring all (or some) of them together in one room. But that's just my 2 cents. Again, I just like the idea of having a meetup and I'd really love to be there. So please sign me up. I promise I'll speak Dutch if you want me to :) Maybe it's an idea to setup a Wiki page where people can add their name so we really get some insight in how many people would actually be interested in joining such a meetup? Maybe it's just 10 and then I'll shut up anyway 8-) Arjé - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JavaZone presentation follow up
hi xavier, > I've just finished my presentation on Wicket at JavaZone! congrats! and thanks for providing the ppt - i'll take it as inspiration for my presentation in october. :-) regards, --- jan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JavaZone presentation follow up
Congrats! And thank you for finally getting Wicket a presentation at JavaZone. Third time is a charm ('05 and '06 we had to pass, and if not for you '07 would also be a JavaZone without Wicket) So thanks! Martijn On 9/12/07, Xavier Hanin <[EMAIL PROTECTED]> wrote: > Hi Wicket community, > > I've just finished my presentation on Wicket at JavaZone! Presentation > outline: > * What is Wicket > * Wicket core concepts > * Creating a custom component with Wicket > > The slides I've used are available here: > http://people.apache.org/~xavier/wicket/wicket-javazone-07.ppt > > The source code (as an eclipse project, with all required libs, no ant nor > maven build, sorry) is available here: > http://people.apache.org/~xavier/wicket/wicket-javazone-07.zip > > From my point of view the presentation went pretty well, the room was almost > packed, if only I had a better spoken english level maybe I would have wake > up a few tired attendees in the back :-) > > Thanks to all of you who helped me prepare the presentation, and special > thanks to Eelco and the JavaZone committee to have trust me to replace him > for this talk. > > Xavier > -- > Xavier Hanin - Independent Java Consultant > http://xhab.blogspot.com/ > http://incubator.apache.org/ivy/ > http://www.xoocode.org/ > -- 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: WicketTester and Page parameters & Wicket Example Unit tests?
wicket user wrote: > > 1) I've got a page that gets hit by an outside credit card merchant once > they have validated the card, they post me my transaction ID along with a > whole host of other parameters. Getting them from the request is easy in > the > page itself but trying to unit test it is driving me nuts. Basically I > want > to start the page with parameters already loaded, it has to be staring me > in > the face but I haven't had any luck. > Have you tried someething like this? PageParameters pageParameters = new PageParameters(); pageParameters.add("userId", "1234"); wicketTester.startPage(new ITestPageSource() { public Page getTestPage() { return new MyPage(pageParameters); }); } -- View this message in context: http://www.nabble.com/WicketTester-and-Page-parameters---Wicket-Example-Unit-tests--tf4424879.html#a12638428 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: RepeatingView id
please add a jira issue. -igor On 9/12/07, Sam Hough <[EMAIL PROTECTED]> wrote: > > > OK. Any nice way to warn developers if they put components with > non-numeric > wicket ids in a RepeatingView? > > This bites us as I'm doing: > super(id, t); > setMarkupId(id); > setOutputMarkupId(true); > for all our components so Ajax updates will work and the HTML monkey > doesn't > scream that he can't set the id of an element. > > Maybe I can add a kludge to not setMarkupId(id) if id matches \d+ > > > > > > > igor.vaynberg wrote: > > > > this is a requirement for WICKET ids only, afaik we already make MARKUP > > ids > > start with a letter if it is numeric only > > > > -igor > > > > > > On 9/12/07, Sam Hough <[EMAIL PROTECTED]> wrote: > >> > >> > >> Our HTML monkey got me to make the ids of a RepeatingView valid (ie not > >> just > >> a number) but I > >> think we got caught by this (from org.apache.wicket.markup.Markup): > >> > >> // TODO Post 1.2: A component path e.g. "panel:label" > >> does > >> not match 1:1 > >> // with the markup in case of ListView, where the path > >> contains a number > >> // for each list item. E.g. list:0:label. What we > >> currently do is simply > >> // remove the number from the path and hope that no > user > >> uses an integer > >> // for a component id. This is a hack only. A much > better > >> solution would > >> // delegate to the various components recursivly to > >> search > >> within there > >> // realm only for the components markup. ListItems > could > >> then simply > >> // do nothing and delegate to their parents. > >> > >> Maybe a logger warning or assert if the developer tries to use an id > that > >> is > >> not \d+ and fix the comment in RepeatingView that says newChildId > starts > >> with "id"? > >> > >> Cheers > >> > >> Sam > >> -- > >> View this message in context: > >> http://www.nabble.com/RepeatingView-id-tf4427681.html#a12630767 > >> 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/RepeatingView-id-tf4427681.html#a12638365 > 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: How to save page values between AjaxTabbedPanel tab change?
if you are talking about form values then override newtablink and return a submitlink instead. if you are talking about state in general then see PanelCachingTab -igor On 9/12/07, JohnSmith333 <[EMAIL PROTECTED]> wrote: > > > Could anyone teach me how to save page values and status between > AjaxTabbedPanel tab change? > I find only ajax like components could save their status,others could not. > Maybe I should save their values and status in session. > Or could I have any good suggestion to follow? > Thanks! > -- > View this message in context: > http://www.nabble.com/How-to-save-page-values-between-AjaxTabbedPanel-tab-change--tf4430105.html#a12638034 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
TinyMCE Editor with AJAX
I use a textarea on my page, and it works well with ajax to get the value of textarea. please see my code: textareaComp.add(new AjaxFormComponentUpdatingBehavior("onchange"){ protected void onUpdate(AjaxRequestTarget target) { . } } ); But when I use TinyMCE instead of textarea, the above code doesn't workAny hint? Thanks in advance. -- View this message in context: http://www.nabble.com/TinyMCE-Editor-with-AJAX-tf4430222.html#a12638380 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: RepeatingView id
OK. Any nice way to warn developers if they put components with non-numeric wicket ids in a RepeatingView? This bites us as I'm doing: super(id, t); setMarkupId(id); setOutputMarkupId(true); for all our components so Ajax updates will work and the HTML monkey doesn't scream that he can't set the id of an element. Maybe I can add a kludge to not setMarkupId(id) if id matches \d+ igor.vaynberg wrote: > > this is a requirement for WICKET ids only, afaik we already make MARKUP > ids > start with a letter if it is numeric only > > -igor > > > On 9/12/07, Sam Hough <[EMAIL PROTECTED]> wrote: >> >> >> Our HTML monkey got me to make the ids of a RepeatingView valid (ie not >> just >> a number) but I >> think we got caught by this (from org.apache.wicket.markup.Markup): >> >> // TODO Post 1.2: A component path e.g. "panel:label" >> does >> not match 1:1 >> // with the markup in case of ListView, where the path >> contains a number >> // for each list item. E.g. list:0:label. What we >> currently do is simply >> // remove the number from the path and hope that no user >> uses an integer >> // for a component id. This is a hack only. A much better >> solution would >> // delegate to the various components recursivly to >> search >> within there >> // realm only for the components markup. ListItems could >> then simply >> // do nothing and delegate to their parents. >> >> Maybe a logger warning or assert if the developer tries to use an id that >> is >> not \d+ and fix the comment in RepeatingView that says newChildId starts >> with "id"? >> >> Cheers >> >> Sam >> -- >> View this message in context: >> http://www.nabble.com/RepeatingView-id-tf4427681.html#a12630767 >> 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/RepeatingView-id-tf4427681.html#a12638365 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: How do i drag and drop using wicket 1.2.6
don't forget the wicketstuff-scriptaculous project! it supports drag/drop as well! http://wicketstuff.org/confluence/display/STUFFWIKI/wicketstuff-scriptaculous On 9/12/07, Scott Swank <[EMAIL PROTECTED]> wrote: > > They have that in an example in the wicket-dojo extension -- though > I've never dug into wicket-dojo. > > http://wicketstuff.org/confluence/display/STUFFWIKI/WicketStuff+Dojo > > http://www.demay-fr.net:8080/Wicket-start/app > > - Scott > > > On 9/12/07, bhupat parmar <[EMAIL PROTECTED]> wrote: > > hi > > > > > > i want to add drag drop feature in my app. i am using wicket 1.2.6, can > it > > be done .What to do? > > > > > > thanks > > > > > -- > Scott Swank > reformed mathematician > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: RepeatingView id
this is a requirement for WICKET ids only, afaik we already make MARKUP ids start with a letter if it is numeric only -igor On 9/12/07, Sam Hough <[EMAIL PROTECTED]> wrote: > > > Our HTML monkey got me to make the ids of a RepeatingView valid (ie not > just > a number) but I > think we got caught by this (from org.apache.wicket.markup.Markup): > > // TODO Post 1.2: A component path e.g. "panel:label" does > not match 1:1 > // with the markup in case of ListView, where the path > contains a number > // for each list item. E.g. list:0:label. What we > currently do is simply > // remove the number from the path and hope that no user > uses an integer > // for a component id. This is a hack only. A much better > solution would > // delegate to the various components recursivly to search > within there > // realm only for the components markup. ListItems could > then simply > // do nothing and delegate to their parents. > > Maybe a logger warning or assert if the developer tries to use an id that > is > not \d+ and fix the comment in RepeatingView that says newChildId starts > with "id"? > > Cheers > > Sam > -- > View this message in context: > http://www.nabble.com/RepeatingView-id-tf4427681.html#a12630767 > 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: DataView paging
it would be trivial to write a jdbc dao impl for the phonebook as well. -igor On 9/11/07, Holda, Dariusz <[EMAIL PROTECTED]> wrote: > > > Sorry for late response. I was dragged to another task. > Thanks for pointing me to the svn repository, it helped a lot. Shame I > can't use Hibernate or Ibatis as you do in your project. > > Thanks again, > Dariusz > > > -Original Message- > From: Igor Vaynberg [mailto:[EMAIL PROTECTED] > Sent: 31 August 2007 16:50 > To: users@wicket.apache.org > Subject: Re: DataView paging > > you are holding on to the entire list in your data provider, this is > bad. > you should only load the pieces of your list you need. > > further your loadabledetachablemodel is broken since you hold on to the > actual object itself. loadabel detachable models are meant to hold on to > the > id, and in load() load the object from the database based on that id > > makes sense? see wicket-phonebook example in wicket-stuff svn. > > -igor > > > On 8/31/07, Holda, Dariusz <[EMAIL PROTECTED]> wrote: > > > > > > Hi, > > I'm using my implementation of a DataView to display list of objects > > that are own by another object. > > I wrote my IDataProvider and LoadableDetachableModel so I can page > > through the list - the list is quite long it can even have 5000, 6000 > > objects. > > I'm displaying 10 rows on each page. > > When I run application locally from my eclipse, everything is fine but > > when I run it on a server the delay during page changing is > significant > > e.g. 3 or more seconds. > > Could someone advise me on this issue? > > I'm attaching code snippets. > > > > class MyObjectDataProvider implements IDataProvider { > > > > private static final long serialVersionUID = > > -254289478999293765L; > > private List myObjects; > > > > public MyObjectDataProvider(List myObjects){ > > this.myObjects = myObjects; > > } > > > > public Iterator iterator(int first, int count) { > > return new > ArrayList(myObjects.subList(first, > > first+count)).iterator(); > > } > > > > public IModel model(Object arg0) { > > return new MyObjectModel((MyObject)arg0); > > } > > > > public int size() { > > return myObjects.size(); > > } > > > > public void setMyObjects( > > List myObjects) { > > this.myObjects = myObjects; > > } > > > > private final class MyObjectModel extends > > LoadableDetachableModel{ > > > > private static final long serialVersionUID = > > 8575601860619558208L; > > private MyObject psc; > > > > public MyObjectModel(MyObject psc){ > > this.psc = psc; > > } > > > > @Override > > protected Object load() { > > return psc; > > } > > > > @Override > > public int hashCode(){ > > return psc.hashCode(); > > } > > > > @Override > > public boolean equals(Object o){ > > if(this == o){ > > return true; > > } > > if(o instanceof MyObjectModel){ > > MyObjectModel that = (MyObjectModel)o; > > if(this.psc == null ? that.psc==null: > > this.psc.equals(that.psc)){ > > return true; > > } > > } > > return false; > > } > > } > > } > > > > class MyObjectDataView extends DataView { > > > > private static final long serialVersionUID = > > -5679706549137629007L; > > > > > > /** > > * Constructor. > > * > > * @param name of this Component > > * @param myObjectModel model containing list of MyObject > > objects > > */ > > public MyObjectDataView(String name, IDataProvider > > myObjectDataProvider) { > > super(name, myObjectDataProvider); > > } > > > > @Override > > protected void populateItem(Item item) { > > MyObject psc = (MyObject)item.getModelObject(); > > TextField field1 = new TextField("field1",new > > PropertyModel(psc,"field1")); > > site.setEnabled(false); > > > > TextField field2 = new TextField("field2",new > > PropertyModel(psc,"field2")); > > currency.setEnabled(false); > > > > item.add(field1); > > item.add(field2); > > item.add(new TextField("field3",new > > PropertyModel(psc,"field3"; > > item.add(new TextField("field4",new > > PropertyModel(psc,"field4"; > >
JavaZone presentation follow up
Hi Wicket community, I've just finished my presentation on Wicket at JavaZone! Presentation outline: * What is Wicket * Wicket core concepts * Creating a custom component with Wicket The slides I've used are available here: http://people.apache.org/~xavier/wicket/wicket-javazone-07.ppt The source code (as an eclipse project, with all required libs, no ant nor maven build, sorry) is available here: http://people.apache.org/~xavier/wicket/wicket-javazone-07.zip >From my point of view the presentation went pretty well, the room was almost packed, if only I had a better spoken english level maybe I would have wake up a few tired attendees in the back :-) Thanks to all of you who helped me prepare the presentation, and special thanks to Eelco and the JavaZone committee to have trust me to replace him for this talk. Xavier -- Xavier Hanin - Independent Java Consultant http://xhab.blogspot.com/ http://incubator.apache.org/ivy/ http://www.xoocode.org/
How to save page values between AjaxTabbedPanel tab change?
Could anyone teach me how to save page values and status between AjaxTabbedPanel tab change? I find only ajax like components could save their status,others could not. Maybe I should save their values and status in session. Or could I have any good suggestion to follow? Thanks! -- View this message in context: http://www.nabble.com/How-to-save-page-values-between-AjaxTabbedPanel-tab-change--tf4430105.html#a12638034 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: Auto refreshing GridView ?
I added a link to the faq. Martijn On 9/12/07, Al Maw <[EMAIL PROTECTED]> wrote: > Al Maw wrote: > > landry soules wrote: > >> I display a list in a GridView. > >> I need that list to update automatically every x seconds. > >> I thought that adding an AjaxSelfUpdatingTimerBehavior to my GridView > >> would > >> do the trick, but it doesn't work. > > > > Doesn't work how? > > > > Make sure you have called setOutputMarkupId(true) on the GridView. > > Sorry, I haven't woken up yet today, evidently. ;) > > See this page: > http://cwiki.apache.org/WICKET/how-to-repaint-a-listview-via-ajax.html > > It equally well applies for GridView. > > Regards, > > Al > -- > Alastair Maw > Wicket-biased blog at http://herebebeasties.com > > - > 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: How does one escape HTML in forum posts?
I think this question is better targeted to nabble support. As I don't use nabble for posting, I wouldn't know. Martijn On 9/12/07, mchack <[EMAIL PROTECTED]> wrote: > > Could someone educate me/others as the best way to include markup in posts so > that it is properly rendered? > > Mike > -- > View this message in context: > http://www.nabble.com/How-does-one-escape-HTML-in-forum-posts--tf4429935.html#a12637571 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > 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?
Hmm, it starts to sound like a conference. I think we should temper the expectations a bit. This is our first get to gether, so having low expectations on what we will be doing is a good starting point. For the record, I have the idea of making this a (two/three)-monthly recurring event. This way we can build a local community and network of Wicket enthousiasts located in the vicinity of the Netherlands. Though if you don't mind to drive a couple of hours for a 2? hour event, I'm not holding you back :) Martijn On 9/12/07, Tom Desmet <[EMAIL PROTECTED]> wrote: > > Hi, > > This would be a real great opportunity to gain some extra knowledge on the > framework, and to learn about the wicket plans for the future. > We are currently using wicket in our company, and wicket development is done > by 3 developers (Marieke Vandamme, Ann Baert) and myself, which post on this > list from time to time. > We are from the Dutch-speaking part of Belgium, and coming to the > Netherlands to attend this event would certainly be no problem. > We would very much like to attend this event when and if it should occur. > > > 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 > > > > > > -- > View this message in context: > http://www.nabble.com/Any-interest-in-a-Wicket-User-Group-meeting-in-The-Netherlands--tf4401648.html#a12637398 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > 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]
How does one escape HTML in forum posts?
Could someone educate me/others as the best way to include markup in posts so that it is properly rendered? Mike -- View this message in context: http://www.nabble.com/How-does-one-escape-HTML-in-forum-posts--tf4429935.html#a12637571 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: Auto refreshing GridView ?
Al Maw wrote: landry soules wrote: I display a list in a GridView. I need that list to update automatically every x seconds. I thought that adding an AjaxSelfUpdatingTimerBehavior to my GridView would do the trick, but it doesn't work. Doesn't work how? Make sure you have called setOutputMarkupId(true) on the GridView. Sorry, I haven't woken up yet today, evidently. ;) See this page: http://cwiki.apache.org/WICKET/how-to-repaint-a-listview-via-ajax.html It equally well applies for GridView. Regards, Al -- Alastair Maw Wicket-biased blog at http://herebebeasties.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Auto refreshing GridView ?
landry soules wrote: I display a list in a GridView. I need that list to update automatically every x seconds. I thought that adding an AjaxSelfUpdatingTimerBehavior to my GridView would do the trick, but it doesn't work. Doesn't work how? Make sure you have called setOutputMarkupId(true) on the GridView. Regards, Al -- Alastair Maw Wicket-biased blog at http://herebebeasties.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?
Hi, This would be a real great opportunity to gain some extra knowledge on the framework, and to learn about the wicket plans for the future. We are currently using wicket in our company, and wicket development is done by 3 developers (Marieke Vandamme, Ann Baert) and myself, which post on this list from time to time. We are from the Dutch-speaking part of Belgium, and coming to the Netherlands to attend this event would certainly be no problem. We would very much like to attend this event when and if it should occur. 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 > > -- View this message in context: http://www.nabble.com/Any-interest-in-a-Wicket-User-Group-meeting-in-The-Netherlands--tf4401648.html#a12637398 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?
Hi Johan, No problem. A slightly broader audience (not just Dutchies) might be good to open up the community (even further). Of course, this is exactly what ApacheCons are meant for, but the drawback is that it's hard to attract people from outside the Apache community that are simply interested in Wicket to attend the ApacheCon. I guess the low barrier for attending the Cocoon GetTogethers has helped growing the community quite a bit. OTOH, I might be getting a little too excited over here :) Anyway, sign me up for the event! :) Arjé > -Original Message- > From: Johan Compagner [mailto:[EMAIL PROTECTED] > Sent: woensdag 12 september 2007 14:50 > To: users@wicket.apache.org > Subject: Re: Any interest in a Wicket User Group meeting in > The Netherlands? > > i think that will be a bit to much for a first time user > group meeting that is more or less for dutch people (but > ofcourse everybody is welcome) > > johan > > > On 9/12/07, Arje Cahn <[EMAIL PROTECTED]> wrote: > > > > Hi there, > > > > Great to see that there's so much interest in a Wicket > meeting in The > > Netherlands! I'll definitely be there! > > > > The Apache Cocoon community has been organizing its (very) > succesful > > annual Cocoon GetTogether in Amsterdam for the last 2 > years. I've been > > booking the rooms, wireless, lunch, etc, at the Felix > Meritis building > > (Keizersgracht) for that. It's a really nice, scalable, inspiring, > > cheap and independent environment. > > See http://www.cocoongt.org/archive/2006/index.html for last year's > > edition. > > > > They have rooms from 10 to 200 people. With chairs, etc. > > Amsterdam has been a huge benefit since it's really cheap to fly to > > from all around the world. > > > > Any interest? > > > > > > > > > > Arjé Cahn > > > > Hippo > > > > Oosteinde 11 > > 1017WT Amsterdam > > The Netherlands > > Tel +31 (0)20 5224466 > > > > [EMAIL PROTECTED] / [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]
Auto refreshing GridView ?
Hello, I display a list in a GridView. I need that list to update automatically every x seconds. I thought that adding an AjaxSelfUpdatingTimerBehavior to my GridView would do the trick, but it doesn't work. Any suggestion ? Thanks for your answers. Landry
Re: How do i drag and drop using wicket 1.2.6
They have that in an example in the wicket-dojo extension -- though I've never dug into wicket-dojo. http://wicketstuff.org/confluence/display/STUFFWIKI/WicketStuff+Dojo http://www.demay-fr.net:8080/Wicket-start/app - Scott On 9/12/07, bhupat parmar <[EMAIL PROTECTED]> wrote: > hi > > > i want to add drag drop feature in my app. i am using wicket 1.2.6, can it > be done .What to do? > > > thanks > -- Scott Swank reformed mathematician - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Form validation error in Wicket 1.3
By moving to 1.3b3 the problem disappeared: https://issues.apache.org/jira/browse/WICKET-774 Eelco Hillenius wrote: > > On 8/27/07, dzenanr <[EMAIL PROTECTED]> wrote: >> >> The last major thing for my application to run on Wicket 1.3 are form >> validation errors. They do not appear on the page where the form is. >> >> In Wicket 1.2 I used the following code to report the error in the form: >> >> protected void addErrorByKey(String key) { >> String validationError = LocalizedText.getText(this, key); >> error(validationError); >> } >> >> In Wicket 1.3 I use the following code to report the error in the form: >> >> protected void addErrorByKey(String key) { >> ValidationError validationError = new ValidationError(); >> validationError.addMessageKey(key); >> error(validationError); >> } >> >> What am I suppose to do to have validation error messages displayed in >> the >> FeedbackPanel? > > You don't get any messages at all? > > Eelco > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Form-validation-error-in-Wicket-1.3-tf4337418.html#a12637035 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: Finishing wizard by pressing Enter
I checked the code out with svn, and run my project with last revision, however the behavior is still the same. In the Wizard.java method onBeforeRender() there is a condition if (buttonBar instanceof IDefaultButtonProvider){} which in my case never evaluates to true and so the form never gets set the default button. Do you want a code of my class? I do not do there something special, I copied the class from wicket examples. Vitek I didn't quite make 'today', but it is fixed now. See https://issues.apache.org/jira/browse/WICKET-955 Defaults in WizardButtonBar should work for most people, but if you want something different, you can let your button bar implement IDefaultButtonProvider (which is a new interface). Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 1.3.0-beta2/3 broken in the m2 repo?
To depend on Wicket you need to add the following two dependencies: org.apache.wicket wicket 1.3.0-beta3 org.slf4j slf4j-log4j12 1.4.0 (the latter only if you want to use log4j as a logging implementation, which is what about 99% of our users want). If you want to use wicket-extensions you can add the following to your pom: org.apache.wicket wicket-extensions 1.3.0-beta3 In this case you *could* remove the wicket dependency itself, because the transitive dependency management of Maven will pull it in for you. Martijn On 9/12/07, Craig Tataryn <[EMAIL PROTECTED]> wrote: > Interesting. Well I assumed that by depending on it, it would pull in all > the right dependencies. You see, when you just link to groupId= > org.apache.wicket artifactId=wicket you don't get any dependencies and > ultimately your webapp fails. > > In my mind the power of maven is to provide that "yum-like" nature of > resolving a dependency and all of it's dependencies, and so on. > > Craig. > > On 9/12/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > > > > there are 2 things wrong with your approach: > > > > 1. wicket-parent is not a jar, so you should have used an additional > > pom > > 2. wicket-parent is not a jar, so you should not try to depend on it > > in the first place > > > > Why are you trying to depend on wicket-parent? > > > > Martijn > > > > On 9/12/07, Craig Tataryn <[EMAIL PROTECTED]> wrote: > > > Tried grabbing: > > > > > > > > > org.apache.wicket > > > wicket-parent > > > 1.3.0-beta3 > > > > > > > > > And then: > > > > > > > > > org.apache.wicket > > > wicket-parent > > > 1.3.0-beta2 > > > > > > > > > Each bomb with the "Failed to resolve artifact.Missing:1) > > > org.apache.wicket:wicket-parent:jar:1.3.0-beta2" (same for beta3). > > > > > > Does work when trying to download directly from: > > > http://mvnrepository.com/artifact/org.apache.wicket/wicket-parenteither. > > > > > > Not sure if it was someone on the list here that did the initial > > install, if > > > so, could you take a look? > > > > > > Craig. > > > > > > > > > -- > > 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] > > > > > -- 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: 1.3.0-beta2/3 broken in the m2 repo?
Interesting. Well I assumed that by depending on it, it would pull in all the right dependencies. You see, when you just link to groupId= org.apache.wicket artifactId=wicket you don't get any dependencies and ultimately your webapp fails. In my mind the power of maven is to provide that "yum-like" nature of resolving a dependency and all of it's dependencies, and so on. Craig. On 9/12/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > > there are 2 things wrong with your approach: > > 1. wicket-parent is not a jar, so you should have used an additional > pom > 2. wicket-parent is not a jar, so you should not try to depend on it > in the first place > > Why are you trying to depend on wicket-parent? > > Martijn > > On 9/12/07, Craig Tataryn <[EMAIL PROTECTED]> wrote: > > Tried grabbing: > > > > > > org.apache.wicket > > wicket-parent > > 1.3.0-beta3 > > > > > > And then: > > > > > > org.apache.wicket > > wicket-parent > > 1.3.0-beta2 > > > > > > Each bomb with the "Failed to resolve artifact.Missing:1) > > org.apache.wicket:wicket-parent:jar:1.3.0-beta2" (same for beta3). > > > > Does work when trying to download directly from: > > http://mvnrepository.com/artifact/org.apache.wicket/wicket-parenteither. > > > > Not sure if it was someone on the list here that did the initial > install, if > > so, could you take a look? > > > > Craig. > > > > > -- > 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: Locating CSS under WEB-INF, please help
Hello Jason, You're welcome :-) I'm glad it helped you. And I'm keen to hear from your experiences as well! -- greetings from Berlin, Rüdiger Schulz www.2rue.de 2007/9/12, Jason Mihalick <[EMAIL PROTECTED]>: > > > Rüdiger, > > Thanks for posting this information. It's given me some new ideas on how > I > want to work with Wicket and Dreamweaver, as it just so happens that we > are > using Dreamweaver as well. > > -- > Jason > > > Rüdiger_Schulz wrote: > > > > 2007/9/10, Jason Mihalick <[EMAIL PROTECTED]>: > >> > >> > >> Thanks Rüdiger. I'm trying the method now. Very > clever. > >> > >> Do you know of any links to documentation or examples on how to use the > >> "live" method for css, js, and image resources? > > > > > > I don't have a real example I can give you at the moment, sorry. I > blogged > > a > > little about how we used Dreamweaver and Wicket in our project here: > > > http://www.2rue.de/hacking/wicket/leveraging-wicket-templates-for-offline-viewing-with-dreamweaver/ > > > > We use a lot of and other stuff in our templates, > because > > that way we can do most of the styling and cross-browser testing (which > is > > always a PITA) using just an html editor and a browser. And as far as I > am > > concerned, it is really worth it. > > > > You can point all your links and images to offline resources, as long as > > you > > bind that tag to a wicket component. Wicket normally doesn't care what > > your > > src attribute in an is when you e.g. bind it to a > > org.apache.wicket.markup.html.image.Image > > > > I planned to write more about this topic though, as I'm really convinced > > that this is one of the really great features of Wicket. > > > > > > -- > >> Jason > >> > >> > >> Rüdiger_Schulz wrote: > >> > > >> > Another tipp on this topic: > >> > > >> > You could provide the CSS twice. Once within a for > >> offline > >> > preview and editing, and again outside that pointing to an url which > >> works > >> > only on your live environment. Or you can add the "live" CSS with a > >> header > >> > contributor in your base page. > >> > > >> > I use the latter one, but I have my CSS located along with my java > >> > files... > >> > > >> > 2007/9/10, Jason Mihalick <[EMAIL PROTECTED]>: > >> >> > >> >> > >> >> Thanks for the reply. > >> >> > >> >> Where are your css resources located under this configuration? I > have > >> a > >> >> similar setup. I have a BasePage.html that refers to the css: > >> >> > >> >> > >> >> >> >> /> > >> >> > >> >> > >> >> >> >> type="text/css" > >> >> /> > >> >> ... > >> >> > >> >> > >> >> But since my BasePage.html is located with my Java classes (at > >> >> src/main/java/com///ui/web/page/BasePage.html) and my css > >> >> resources > >> >> are located at src/main/webapp/css , if I try to load the > >> >> BasePage.htmlfile > >> >> in an HTML editor, it will be unable to resolve the css resources. > >> >> > >> >> -- > >> >> Jason > >> >> > >> >> > >> >> Johan Maasing-2 wrote: > >> >> > > >> >> > Perhaps template inheritance can help you here. I have a 'base' > page > >> >> > that contains the HTML head tag that all my pages use. For example > I > >> >> > have a Basepage.html: > >> >> > > >> >> > http://www.w3.org/1999/xhtml"; > >> >> > xmlns:wicket="http://wicket.apache.org/";> > >> >> > > >> >> >>> >> href="css/main.css"/> > >> >> >>> >> href="css/header.css"/> > >> >> > > >> >> > > >> >> > > >> >> > ... > >> >> > > >> >> > and a Basepage.java (which does some stuff common to all pages, > like > >> >> > setting a feedbackpanel or whatever you like to have for all > pages) > >> >> > > >> >> > Then in my "real" pages I do like this > >> >> > > >> >> > RealPage.java > >> >> > public class Index extends BasePage { > >> >> > public Index() { > >> >> > ... > >> >> > > >> >> > but the real funny stuff goes on in the template for the real > page: > >> >> > http://www.w3.org/1999/xhtml"; > >> >> > xmlns:wicket="http://wicket.apache.org/";> > >> >> > > >> >> > >> >> > href="../../../../../../WebContent/css/main.css"/> > >> >> > >> >> > href="../../../../../../WebContent/css/header.css"/> > >> >> > > >> >> > > >> >> > > >> >> > > >> >> > Real content here > >> >> > > >> >> > > >> >> > > >> >> > ... > >> >> > > >> >> > In this way the template can be edited as a static HTML and > include > >> >> > the right CSS relative to the sources in the filesystem. In > runtime > >> >> > wicket will discard anythiong outside the wicket:extend in the > >> >> > template and use the HTML from the 'base' page. > >> >> > > >> >> > Hope this can help you somewhat. > >> >> > > >> >> > Cheers, > >> >> > Johan M > >> >> > > >> >> > On 9/10/07, Jason Mihalick <[EMAIL PROTECTED]> wrote: > >> >> >> > >> >> >> Ok, thanks for the help on this. My objective was to be > >> able > >> >> to > >> >> >> have > >> >> >> a structure of HTML and resource dependencies (css, js, img, etc) > >>
Re: [Wicket] Vs [HTTP 404 - File not found]
Andrew Klochkov wrote: Igor Vaynberg wrote: http://herebebeasties.com/2006-12-20/using-a-servlet-filter-for-404-error-page/ I tried this approach under tomcat 5.5.17 but got problems with character encoding. When WicketFilter gets the request to the correct page (defined in the web.xml error-page/location) the request encoding is already set (by tomcat?) to ISO-8859-1 and wicket can't change it. So user gets a page with wrong encoding :-( Googling for the solution didn't help. You probably need to write a servlet filter that wraps the entire request that sets the encoding: public class CharsetFilter implements Filter { public void init(FilterConfig config) throws ServletException {} public void destroy() {} public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { request.setCharacterEncoding("UTF-8"); chain.doFilter(request, response); } } -- Alastair Maw Wicket-biased blog at http://herebebeasties.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Any way to apply wicket:link to with contained ?
heh, I can see mine arent escaped aswell.. mchack wrote: My included markup was not correct. Before I botch this up further, what is the best method to escape html in nabble posts? Mike Nino Saturnino Martinez Vazquez Wael wrote: should'nt that be like this: but still I think it would fail, how should wicket know which picture you want and what package it are in? I guess thats why you need to bind the image to a package? I just do this: semi pseudo code: private ResourceReference infoImage = new ResourceReference( CalenderHeadLinesPanel.class, "info.png"); ajaxLink.add(new Image("info", infoImage)); But I agree thats not a oneliner... regards Nino mchack wrote: Hopefully viewable now Mike Eelco Hillenius wrote: Was wondering if there was an easy way - Hopefully without code to create a bookmarkable link where there is a contained image tag. Seems like from a usability standpoint this would be very common and a little bit cumbersome if I have to do this in the backing code. I think this already works. Did you try embedding img tags in sections? Or maybe I don't understand you... Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to remove a page from Wicket's back button memory?
yes thats a know bug, i think matej did fix that today or is fixing it right now. johan On 9/12/07, Justin Morgan (Logic Sector) <[EMAIL PROTECTED]> wrote: > > Thanks, I tried that but I get an exception in the Wicket 1.3 > snapshot I'm using. Is there a known bug in the remove(Page) > method? Or maybe I'm simply using it wrong? (after logging in, my > secured page is attempting to invoke loginpage.getpagemap().remove > (loginpage) in the secured page's constructor). > > [01:39:54,832 ERROR org.apache.wicket.RequestCycle]: Can't > instantiate page using constructor public > com.logicsector.web.page.SecuredExamplePage > (org.apache.wicket.PageParameters) and argument exampleId = "100" > org.apache.wicket.WicketRuntimeException: Can't instantiate page > using constructor public com.logicsector.web.page.SecuredExamplePage > (org.apache.wicket.PageParameters) and argument exampleId = "100" > at org.apache.wicket.session.DefaultPageFactory.newPage > (DefaultPageFactory.java:175) > at org.apache.wicket.session.DefaultPageFactory.newPage > (DefaultPageFactory.java:96) > at > org.apache.wicket.request.target.component.BookmarkablePageRequestTarget > .newPage(BookmarkablePageRequestTarget.java:262) > at > org.apache.wicket.request.target.component.BookmarkablePageRequestTarget > .getPage(BookmarkablePageRequestTarget.java:277) > at > org.apache.wicket.request.target.component.BookmarkablePageRequestTarget > .processEvents(BookmarkablePageRequestTarget.java:205) > at > org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents > (AbstractRequestCycleProcessor.java:90) > at org.apache.wicket.RequestCycle.processEventsAndRespond > (RequestCycle.java:1018) > at org.apache.wicket.RequestCycle.step(RequestCycle.java:1093) > at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1162) > at org.apache.wicket.RequestCycle.request(RequestCycle.java: > 485) > at org.apache.wicket.protocol.http.WicketFilter.doGet > (WicketFilter.java:261) > at org.apache.wicket.protocol.http.WicketServlet.doGet > (WicketServlet.java:126) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter > (ApplicationFilterChain.java:290) > at org.apache.catalina.core.ApplicationFilterChain.doFilter > (ApplicationFilterChain.java:206) > at org.apache.catalina.core.StandardWrapperValve.invoke > (StandardWrapperValve.java:228) > at org.apache.catalina.core.StandardContextValve.invoke > (StandardContextValve.java:175) > at org.apache.catalina.core.StandardHostValve.invoke > (StandardHostValve.java:128) > at org.apache.catalina.valves.ErrorReportValve.invoke > (ErrorReportValve.java:104) > at org.apache.catalina.core.StandardEngineValve.invoke > (StandardEngineValve.java:109) > at org.apache.catalina.connector.CoyoteAdapter.service > (CoyoteAdapter.java:216) > at org.apache.coyote.http11.Http11Processor.process > (Http11Processor.java:844) > at org.apache.coyote.http11.Http11Protocol > $Http11ConnectionHandler.process(Http11Protocol.java:634) > at org.apache.tomcat.util.net.JIoEndpoint$Worker.run > (JIoEndpoint.java:445) > at java.lang.Thread.run(Thread.java:613) > Caused by: java.lang.reflect.InvocationTargetException > at sun.reflect.NativeConstructorAccessorImpl.newInstance0 > (Native Method) > at sun.reflect.NativeConstructorAccessorImpl.newInstance > (NativeConstructorAccessorImpl.java:39) > at sun.reflect.DelegatingConstructorAccessorImpl.newInstance > (DelegatingConstructorAccessorImpl.java:27) > at java.lang.reflect.Constructor.newInstance > (Constructor.java:494) > at org.apache.wicket.session.DefaultPageFactory.newPage > (DefaultPageFactory.java:154) > ... 25 more > Caused by: java.lang.ClassCastException: java.lang.Integer > at > org.apache.wicket.protocol.http.pagestore.PageWindowManager.removePage > (PageWindowManager.java:544) > at org.apache.wicket.protocol.http.pagestore.DiskPageStore > $SessionEntry.removePage(DiskPageStore.java:252) > at > org.apache.wicket.protocol.http.pagestore.DiskPageStore.removePage > (DiskPageStore.java:616) > at > org.apache.wicket.protocol.http.pagestore.DiskPageStore.removePage > (DiskPageStore.java:645) > at > org.apache.wicket.protocol.http.SecondLevelCacheSessionStore > $SecondLevelCachePageMap.removeEntry > (SecondLevelCacheSessionStore.java:368) > at org.apache.wicket.PageMap.remove(PageMap.java:289) > at com.logicsector.web.page.SecuredExamplePage. > (SecuredExamplePage.java:64) > ... 30 more > > > On Sep 12, 2007, at 12:59 AM, Johan Compagner wrote: > > > page.getPageMap().remove(page) > > >
Re: Any interest in a Wicket User Group meeting in The Netherlands?
i think that will be a bit to much for a first time user group meeting that is more or less for dutch people (but ofcourse everybody is welcome) johan On 9/12/07, Arje Cahn <[EMAIL PROTECTED]> wrote: > > Hi there, > > Great to see that there's so much interest in a Wicket meeting in The > Netherlands! I'll definitely be there! > > The Apache Cocoon community has been organizing its (very) succesful > annual Cocoon GetTogether in Amsterdam for the last 2 years. I've been > booking the rooms, wireless, lunch, etc, at the Felix Meritis building > (Keizersgracht) for that. It's a really nice, scalable, inspiring, cheap and > independent environment. > See http://www.cocoongt.org/archive/2006/index.html for last year's > edition. > > They have rooms from 10 to 200 people. With chairs, etc. > Amsterdam has been a huge benefit since it's really cheap to fly to from > all around the world. > > Any interest? > > > > > Arjé Cahn > > Hippo > > Oosteinde 11 > 1017WT Amsterdam > The Netherlands > Tel +31 (0)20 5224466 > > [EMAIL PROTECTED] / [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Locating CSS under WEB-INF, please help
Rüdiger, Thanks for posting this information. It's given me some new ideas on how I want to work with Wicket and Dreamweaver, as it just so happens that we are using Dreamweaver as well. -- Jason Rüdiger_Schulz wrote: > > 2007/9/10, Jason Mihalick <[EMAIL PROTECTED]>: >> >> >> Thanks Rüdiger. I'm trying the method now. Very clever. >> >> Do you know of any links to documentation or examples on how to use the >> "live" method for css, js, and image resources? > > > I don't have a real example I can give you at the moment, sorry. I blogged > a > little about how we used Dreamweaver and Wicket in our project here: > http://www.2rue.de/hacking/wicket/leveraging-wicket-templates-for-offline-viewing-with-dreamweaver/ > > We use a lot of and other stuff in our templates, because > that way we can do most of the styling and cross-browser testing (which is > always a PITA) using just an html editor and a browser. And as far as I am > concerned, it is really worth it. > > You can point all your links and images to offline resources, as long as > you > bind that tag to a wicket component. Wicket normally doesn't care what > your > src attribute in an is when you e.g. bind it to a > org.apache.wicket.markup.html.image.Image > > I planned to write more about this topic though, as I'm really convinced > that this is one of the really great features of Wicket. > > > -- >> Jason >> >> >> Rüdiger_Schulz wrote: >> > >> > Another tipp on this topic: >> > >> > You could provide the CSS twice. Once within a for >> offline >> > preview and editing, and again outside that pointing to an url which >> works >> > only on your live environment. Or you can add the "live" CSS with a >> header >> > contributor in your base page. >> > >> > I use the latter one, but I have my CSS located along with my java >> > files... >> > >> > 2007/9/10, Jason Mihalick <[EMAIL PROTECTED]>: >> >> >> >> >> >> Thanks for the reply. >> >> >> >> Where are your css resources located under this configuration? I have >> a >> >> similar setup. I have a BasePage.html that refers to the css: >> >> >> >> >> >> > >> /> >> >> >> >> >> >> > >> type="text/css" >> >> /> >> >> ... >> >> >> >> >> >> But since my BasePage.html is located with my Java classes (at >> >> src/main/java/com///ui/web/page/BasePage.html) and my css >> >> resources >> >> are located at src/main/webapp/css , if I try to load the >> >> BasePage.htmlfile >> >> in an HTML editor, it will be unable to resolve the css resources. >> >> >> >> -- >> >> Jason >> >> >> >> >> >> Johan Maasing-2 wrote: >> >> > >> >> > Perhaps template inheritance can help you here. I have a 'base' page >> >> > that contains the HTML head tag that all my pages use. For example I >> >> > have a Basepage.html: >> >> > >> >> > http://www.w3.org/1999/xhtml"; >> >> > xmlns:wicket="http://wicket.apache.org/";> >> >> > >> >> > > >> href="css/main.css"/> >> >> > > >> href="css/header.css"/> >> >> > >> >> > >> >> > >> >> > ... >> >> > >> >> > and a Basepage.java (which does some stuff common to all pages, like >> >> > setting a feedbackpanel or whatever you like to have for all pages) >> >> > >> >> > Then in my "real" pages I do like this >> >> > >> >> > RealPage.java >> >> > public class Index extends BasePage { >> >> > public Index() { >> >> > ... >> >> > >> >> > but the real funny stuff goes on in the template for the real page: >> >> > http://www.w3.org/1999/xhtml"; >> >> > xmlns:wicket="http://wicket.apache.org/";> >> >> > >> >> > > >> > href="../../../../../../WebContent/css/main.css"/> >> >> > > >> > href="../../../../../../WebContent/css/header.css"/> >> >> > >> >> > >> >> > >> >> > >> >> > Real content here >> >> > >> >> > >> >> > >> >> > ... >> >> > >> >> > In this way the template can be edited as a static HTML and include >> >> > the right CSS relative to the sources in the filesystem. In runtime >> >> > wicket will discard anythiong outside the wicket:extend in the >> >> > template and use the HTML from the 'base' page. >> >> > >> >> > Hope this can help you somewhat. >> >> > >> >> > Cheers, >> >> > Johan M >> >> > >> >> > On 9/10/07, Jason Mihalick <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> Ok, thanks for the help on this. My objective was to be >> able >> >> to >> >> >> have >> >> >> a structure of HTML and resource dependencies (css, js, img, etc) >> that >> >> >> could >> >> >> be easily edited in an HTML editor such that the editor doesn't >> have >> >> >> problems resolving the resources and such that Wicket doesn't have >> >> >> problems >> >> >> resolving the resources. From reading your comments and those of >> >> others, >> >> >> however, this doesn't seem to be an easy task at all. So, I've >> gone >> >> back >> >> >> to >> >> >> the standard Wicket approach where I have placed all HTML files >> along >> >> >> side >> >> >> my Java classes and have located my resources (css, js, img
Re: Any way to apply wicket:link to with contained ?
My included markup was not correct. Before I botch this up further, what is the best method to escape html in nabble posts? Mike Nino Saturnino Martinez Vazquez Wael wrote: > > should'nt that be like this: > > > > but still I think it would fail, how should wicket know which picture you > want and what package it are in? I guess thats why you need to bind the > image to a package? I just do this: > > semi pseudo code: > > private ResourceReference infoImage = new ResourceReference( > CalenderHeadLinesPanel.class, "info.png"); > > ajaxLink.add(new Image("info", infoImage)); > > > > But I agree thats not a oneliner... > > regards Nino > > > mchack wrote: >> Hopefully viewable now >> >> >> Mike >> >> >> Eelco Hillenius wrote: >> Was wondering if there was an easy way - Hopefully without code to create a bookmarkable link where there is a contained image tag. Seems like from a usability standpoint this would be very common and a little bit cumbersome if I have to do this in the backing code. >>> I think this already works. Did you try embedding img tags in >>> sections? Or maybe I don't understand you... >>> >>> Eelco >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >>> >> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Any-way-to-apply-wicket%3Alink-to-%3Ca%3E-with-contained-%3Cimg%3E--tf4425113.html#a12634374 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
Hi I am going to participate during September 29th-30th. Maris 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/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
{wicket 1.2.6} Datepicker no popup?
Hi How can I make the datepicker not popping? Eg just always shown? regards Nino - 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?
Hi there, Great to see that there's so much interest in a Wicket meeting in The Netherlands! I'll definitely be there! The Apache Cocoon community has been organizing its (very) succesful annual Cocoon GetTogether in Amsterdam for the last 2 years. I've been booking the rooms, wireless, lunch, etc, at the Felix Meritis building (Keizersgracht) for that. It's a really nice, scalable, inspiring, cheap and independent environment. See http://www.cocoongt.org/archive/2006/index.html for last year's edition. They have rooms from 10 to 200 people. With chairs, etc. Amsterdam has been a huge benefit since it's really cheap to fly to from all around the world. Any interest? Arjé Cahn Hippo Oosteinde 11 1017WT Amsterdam The Netherlands Tel +31 (0)20 5224466 [EMAIL PROTECTED] / [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: wicket.contrib.scriptaculous.dragdrop.
I do all of my development against wicket 1.3, but i think the current version should be compatible with the 1.2 branch. can you try the most recent version? http://wicketstuff.org/maven/repository/org/wicketstuff/wicketstuff-scriptaculous/1.3-SNAPSHOT/ On 9/12/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > > It seems that the wicket-contrib-scriptaculous version you are using > is not compatible with wicket 1.2.6. > > From the exception it look like it is a contrib-scriptaculous version > specific for the deprecated Wicket 2. > > Martijn > > On 9/12/07, bhupat parmar <[EMAIL PROTECTED]> wrote: > > hi > > i am getting this error when i tried to add draggable image in my > container > > i am using wicket1.2.6? > > What should i do? > > > > > > java.lang.NoSuchMethodError: wicket.markup.html.image.Image > > .(Lwicket/MarkupContainer;Ljava/lang/String;Ljava/lang/String;)V > > at wicket.contrib.scriptaculous.dragdrop.DraggableImage.( > > DraggableImage.java:20) > > at wicket.quickstart.Index$TabPanel4.(Index.java:731) > > at wicket.quickstart.Index$4.getPanel(Index.java:153) > > at wicket.extensions.markup.html.tabs.TabbedPanel.setSelectedTab( > > TabbedPanel.java:244) > > at wicket.extensions.ajax.markup.html.tabs.AjaxTabbedPanel$1.onClick > ( > > AjaxTabbedPanel.java:60) > > at wicket.ajax.markup.html.AjaxFallbackLink$1.onEvent( > > AjaxFallbackLink.java:68) > > at wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:167) > > at wicket.ajax.AbstractDefaultAjaxBehavior.onRequest( > > AbstractDefaultAjaxBehavior.java:236) > > at > > > wicket.request.target.component.listener.BehaviorRequestTarget.processEvents > > (BehaviorRequestTarget.java:98) > > at > wicket.request.compound.DefaultEventProcessorStrategy.processEvents( > > DefaultEventProcessorStrategy.java:65) > > at > > > wicket.request.compound.AbstractCompoundRequestCycleProcessor.processEvents > ( > > AbstractCompoundRequestCycleProcessor.java:57) > > at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java > :896) > > at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java > :934) > > at wicket.RequestCycle.step(RequestCycle.java:1010) > > at wicket.RequestCycle.steps(RequestCycle.java:1084) > > at wicket.RequestCycle.request(RequestCycle.java:454) > > at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:219) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( > > ApplicationFilterChain.java:252) > > at org.apache.catalina.core.ApplicationFilterChain.doFilter( > > ApplicationFilterChain.java:173) > > at org.apache.catalina.core.StandardWrapperValve.invoke( > > StandardWrapperValve.java:213) > > at org.apache.catalina.core.StandardContextValve.invoke( > > StandardContextValve.java:178) > > at org.apache.catalina.core.StandardHostValve.invoke( > > StandardHostValve.java:126) > > at org.apache.catalina.valves.ErrorReportValve.invoke( > > ErrorReportValve.java:105) > > at org.apache.catalina.core.StandardEngineValve.invoke( > > StandardEngineValve.java:107) > > at org.apache.catalina.connector.CoyoteAdapter.service( > > CoyoteAdapter.java:148) > > at org.apache.coyote.http11.Http11Processor.process( > Http11Processor.java > > :869) > > at > > > org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection > > (Http11BaseProtocol.java:664) > > at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket( > > PoolTcpEndpoint.java:527) > > at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt( > > LeaderFollowerWorkerThread.java:80) > > at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( > > ThreadPool.java:684) > > at java.lang.Thread.run(Unknown Source) > > > > > -- > 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 way to apply wicket:link to with contained ?
should'nt that be like this: but still I think it would fail, how should wicket know which picture you want and what package it are in? I guess thats why you need to bind the image to a package? I just do this: semi pseudo code: private ResourceReference infoImage = new ResourceReference( CalenderHeadLinesPanel.class, "info.png"); ajaxLink.add(new Image("info", infoImage)); But I agree thats not a oneliner... regards Nino mchack wrote: Hopefully viewable now Mike Eelco Hillenius wrote: Was wondering if there was an easy way - Hopefully without code to create a bookmarkable link where there is a contained image tag. Seems like from a usability standpoint this would be very common and a little bit cumbersome if I have to do this in the backing code. I think this already works. Did you try embedding img tags in sections? Or maybe I don't understand you... Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Any way to apply wicket:link to with contained ?
Hopefully viewable now Mike Eelco Hillenius wrote: > >> Was wondering if there was an easy way - Hopefully without code to create >> a >> bookmarkable link where there is a contained image tag. Seems like from a >> usability standpoint this would be very common and a little bit >> cumbersome >> if I have to do this in the backing code. > > I think this already works. Did you try embedding img tags in > sections? Or maybe I don't understand you... > > Eelco > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Any-way-to-apply-wicket%3Alink-to-%3Ca%3E-with-contained-%3Cimg%3E--tf4425113.html#a12633500 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: Localizer warnings
The warning shows up in beta3 way more often than it should. Check this thread: http://www.nabble.com/Localizer-warning-in-1.3.0-beta3-tf4353820.html On 9/12/07, Leszek Gawron <[EMAIL PROTECTED]> wrote: > > I keep getting a lot of these after upgrading to 1.3-beta3 > > WARN 2007-09-12 12:49.41:532 [Localizer] Tried to retrieve a localized > string for a component that has not yet been added to the page. This can > sometimes lead to an invalid or no localized resource returned. Make > sure you are not calling Component#getString() inside your Component's > constructor. Offending component: [Page class = > com.mobilebox.indigo.web.configurator.page.WelcomePage, id = 7, version = > 0] > > I am not calling Component#getString() AFAIK, so what should I be > looking for? > > -- > Leszek Gawron http://www.mobilebox.pl/krs.html > CTO at MobileBox Ltd. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Any way to apply wicket:link to with contained ?
Here is what the markup looks like: Schedule.html ical.jpg Error generated: WicketMessage: Component _autolink_16 must be applied to a tag of type 'a', not ' ical.jpg ' (line 0, column 0) Schedule.class is a mounted page which does get handled correctly in other cases. Reading further it seems that if I remove the , the href should get resolved by the AutoLinkResolver. Is this not the case? I have tried it and it appears to treat this as an external reference and do nothing. Mike Eelco Hillenius wrote: > >> Was wondering if there was an easy way - Hopefully without code to create >> a >> bookmarkable link where there is a contained image tag. Seems like from a >> usability standpoint this would be very common and a little bit >> cumbersome >> if I have to do this in the backing code. > > I think this already works. Did you try embedding img tags in > sections? Or maybe I don't understand you... > > Eelco > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Any-way-to-apply-wicket%3Alink-to-%3Ca%3E-with-contained-%3Cimg%3E--tf4425113.html#a12633164 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Localizer warnings
I keep getting a lot of these after upgrading to 1.3-beta3 WARN 2007-09-12 12:49.41:532 [Localizer] Tried to retrieve a localized string for a component that has not yet been added to the page. This can sometimes lead to an invalid or no localized resource returned. Make sure you are not calling Component#getString() inside your Component's constructor. Offending component: [Page class = com.mobilebox.indigo.web.configurator.page.WelcomePage, id = 7, version = 0] I am not calling Component#getString() AFAIK, so what should I be looking for? -- Leszek Gawron http://www.mobilebox.pl/krs.html CTO at MobileBox Ltd. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to retrieve previous path when page expires through Ajax call
Hi Eelco, Do you mean to store the user's current URL path in his/her cookie every time and retrieve it for restoring the path after the session expiration? Thanks, Alfred Eelco Hillenius wrote: > > On 8/22/07, Alfred Chan <[EMAIL PROTECTED]> wrote: >> >> I would like to redirect the user to his/her previous visiting page in >> case >> of the session expiration. >> >> So, I wrote a customized expired error page to do so. >> >> public class ExpireRedirectPreviousPage extends WebPage { >> >> private static final long serialVersionUID = 1L; >> >> public ExpireRedirectPreviousPage() { >> // Redirect to original page >> getRequestCycle().setRequestTarget( >> new RedirectRequestTarget(getRequest().getPath())); >> } >> } >> >> It works fine with non-ajax requests. But, it doesn't work with ajax >> requests, the getRequest().getPath() can only get back an empty path. >> Finally, it will redirect to homepage, which is not desirable. >> >> Would someone tell me how to get back the client side URL/path after an >> ajax >> request in the expired error page? > > How about using a cookie for this? > > Eelco > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/How-to-retrieve-previous-path-when-page-expires-through-Ajax-call-tf4310264.html#a12632955 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: Howto use AttributeModifier
Please send me the full class. Here it is not working. for e.g, I have a dynamic query like select * from tablename, I want to display the table values into gridview. how? thanks edi Newgro wrote: > > Hi *, > > i use wicket-1.2.6. I try to change the background-color of an gridtable > item. But i dont get it to work. Is there a howto or doc for it? javadoc > is not that detailed. > > My goal is to display a table with link as cell-content. If i click on the > link the cell should be marked selected by changing the color. > > Maybe there is a better (simplier) way? > > Thanks for your help > > Per > > Here is my code (i removed some not required details, to shorten up the > mail). > > package wicket.quickstart; > > import java.util.Date; > > import wicket.AttributeModifier; > import wicket.Component; > import wicket.PageParameters; > import wicket.behavior.SimpleAttributeModifier; > import wicket.extensions.markup.html.repeater.data.GridView; > import wicket.extensions.markup.html.repeater.data.IDataProvider; > import wicket.extensions.markup.html.repeater.data.ListDataProvider; > import wicket.extensions.markup.html.repeater.refreshing.Item; > import wicket.markup.html.basic.Label; > import wicket.markup.html.link.Link; > import wicket.model.IModel; > import wicket.model.Model; > > public class SelectDay extends QuickStartPage { > private static class HighlitableDataItem extends Item { > private boolean highlite = true; > private AttributeModifier modifier = null; > > public void toggleHighlite() { > highlite = !highlite; > } > > public HighlitableDataItem(String id, int index, IModel model) { > super(id, index, model); > modifier = new AttributeModifier("class", "selected", new Model() { > public Object getObject(Component component) { > if (highlite){ > return "selected"; > } > return "deselected"; > } > }); > add(modifier); > } > } > > public SelectDay(final PageParameters parameters) { > List list = new ArrayList(); > list.add(1); > list.add(2); > list.add(3); > IDataProvider dataProvider = new ListDataProvider(list); > GridView gridView = new GridView("rows", dataProvider) { > > protected void populateItem(final Item item) { > final Integer weekday = (Integer) item > .getModelObject(); > Link link = new Link("toggleHighlite") { > > public void onClick() { > System.out.println("onclick"); > HighlitableDataItem hitem = (HighlitableDataItem) item; > hitem.toggleHighlite(); > } > }; > link.add(new Label("linklabel", weekday)); > item.add(link); > item.add(new Label("day", "")); > } > > protected void populateEmptyItem(Item item) { > throw new UnsupportedOperationException("Unexpected"); > } > > protected Item newItem(String id, int index, IModel model) { > Item result = null; > Object o = model.getObject(this); > if (o instanceof Integer) { > result = new HighlitableDataItem(id, index, model); > result.add(new SimpleAttributeModifier("style", > "background-color:#ff;")); > } else { > result = new Item(id, index, model); > } > > return result; > } > }; > > gridView.setRows(2); > gridView.setColumns(2); > add(gridView); > } > } > > SelectDay.html > > > > Calendar > > > > > > > QuickStart > > Calendar > > > > > ># > > > > > > > > > > buma.css > > > table.calendar { > margin:auto; > align: center; > border-spacing: 3px; > } > > table.calendar td { > background: #FFBF00; > text-align: center; > color: #33; > border: 1px solid; > border-color: #33; > padding: 1px 7px; > margin: 3px; > empty-cells: hide; > } > > table.calendar .selected { > background: #FF; > text-align: center; > color: #33; > border: 1px solid; > border-color: #33; > padding: 1px 7px; > margin: 3px; > empty-cells: hide; > } > > table.calendar .deselected { > background: #FF00FF; > text-align: center; > color: #33; > border: 1px solid; > border-color: #33; > padding: 1px 7px; > margin: 3px; > empty-cells: hide; > } > > -- > Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten > Browser-Versionen downloaden: http://www.gmx.net/de/go/browser > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Howto-use-AttributeModifier-tf4391745.html#a12632332 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail:
Re: User-defined variables in ConversionException
I created https://issues.apache.org/jira/browse/WICKET-961 which also contains a patch against current trunk. cheers, Jonas On 9/12/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > > Nope go ahead. If someone does mind, the issue is quickly closed ;) > > Martijn > > On 9/12/07, Jonas <[EMAIL PROTECTED]> wrote: > > No opinions on that one? > > So, would anyone mind if I create a 'New Feature' Issue > > in JIRA? > > > > On 9/11/07, Jonas <[EMAIL PROTECTED]> wrote: > > > > > > Hi, > > > > > > wouldn't it make sense that you could set arbitrary variables > > > on a ConversionException that would also be set on the ValidationError > > > created in FormComponent#convertInput()? > > > Currently, you can set the resource key that should be used for the > > > error message, but you're limited to the few variables defined in > > > FormComponent#convertInput(). > > > I know I could override convertInput(), but I think user-defined > variables > > > would be a more elegant solution. > > > > > > What do you think? > > > > > > cheers, > > > Jonas > > > > > > > > -- > 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: Exception
hi johan, > we always closed the buffer at that place > it seems that resin suddenly wants to do a save of session objects when it > wants to redirect > that seems very odd, it should at least test if it can do that. I would > report a bug by caucho. i've found something similiar in caucho's bugtrack: http://bugs.caucho.com/view.php?id=1897 but it seems, that my case hasn't been solved in their latest snapshot. i've sent a notice to the resin mailing list. thanks for looking at it! regards, --- jan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]