RE: how to convert wicket-CheckBox's Boolean Type to Character Type!
thanks, but the code following get something wrong like that: wrappedModel.getObject(); //The method getObject(Component) in the type IModel is not applicable for the arguments () wrappedModel.setObject(value); //The method setObject(Component, Object) in the type IModel is not applicable for the arguments (Boolean) I am a fresh, thanks for instruction. > Date: Tue, 15 Jan 2008 07:59:27 +0100 > From: [EMAIL PROTECTED] > To: users@wicket.apache.org > Subject: Re: how to convert wicket-CheckBox's Boolean Type to Character Type! > > I did something similar, converting a boolean radio to the Dutch words "Ja" > and "Nee" (yes / no). > This is the code: > > public class JaNeeToBooleanConverterModel extends Model { > > private IModel wrappedModel; > > public JaNeeToBooleanConverterModel(IModel model) { > wrappedModel = model; > } > > @Override > public Object getObject() { > Boolean b = (Boolean)wrappedModel.getObject(); > return b.booleanValue() ? "Ja" : "Nee"; > } > > @Override > public void setObject(Object object) { > Boolean value = "Ja".equals(object) ? Boolean.TRUE : Boolean.FALSE; > wrappedModel.setObject(value); > } > } > > 2008/1/15, Mead Lai <[EMAIL PROTECTED]>: > > > > > > Hi, Well,I am use MySql, and there is no boolean type in mysql database. > > so I use Char(1) in the database, and in html I use CheckBox.but CheckBox > > only contain Boolean type. > > How to solve this problem? Use IConverter interface? Thanks > > _ > > Express yourself instantly with MSN Messenger! Download today it's FREE! > > http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > > > > > -- > Martijn Lindhout > JointEffort IT Services > http://www.jointeffort.nl > [EMAIL PROTECTED] > +31 (0)6 18 47 25 29 _ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
Re: how to convert wicket-CheckBox's Boolean Type to Character Type!
I did something similar, converting a boolean radio to the Dutch words "Ja" and "Nee" (yes / no). This is the code: public class JaNeeToBooleanConverterModel extends Model { private IModel wrappedModel; public JaNeeToBooleanConverterModel(IModel model) { wrappedModel = model; } @Override public Object getObject() { Boolean b = (Boolean)wrappedModel.getObject(); return b.booleanValue() ? "Ja" : "Nee"; } @Override public void setObject(Object object) { Boolean value = "Ja".equals(object) ? Boolean.TRUE : Boolean.FALSE; wrappedModel.setObject(value); } } 2008/1/15, Mead Lai <[EMAIL PROTECTED]>: > > > Hi, Well,I am use MySql, and there is no boolean type in mysql database. > so I use Char(1) in the database, and in html I use CheckBox.but CheckBox > only contain Boolean type. > How to solve this problem? Use IConverter interface? Thanks > _ > Express yourself instantly with MSN Messenger! Download today it's FREE! > http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ -- Martijn Lindhout JointEffort IT Services http://www.jointeffort.nl [EMAIL PROTECTED] +31 (0)6 18 47 25 29
difference between ListView and DefaultDataTable
Hello: When I use ListView with each row having an "Edit" link I use new Link() { callback handler), which is very handy. How to do the same in DefaultDataTable? I tried to use new AbstractDataColumn { populateItem{ item.add(new Link(..) { callback} but it would not work. From what I read, a panel has to be used, Can it be done? Thanks
how to convert wicket-CheckBox's Boolean Type to Character Type!
Hi, Well,I am use MySql, and there is no boolean type in mysql database. so I use Char(1) in the database, and in html I use CheckBox.but CheckBox only contain Boolean type. How to solve this problem? Use IConverter interface? Thanks _ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
Re: image uploads and file locations
On Jan 14, 2008 11:21 AM, Sam Barnum <[EMAIL PROTECTED]> wrote: > Any suggestions or best practices on how to handle image uploads? > I'm planning on saving uploaded images as files (not BLOBs) and > serving up resized versions of the images. > > In particular: > > Is there a good "standard" place to store the full-res files in a > wicket application? Not really. Pick a suitable directory if you don't want to use something like a database. > Should I serve the resized versions via wicket, or instead try to > save them in a folder which is served directly by my webserver? > These won't be in the classes directory, since I don't want them > wiped out during redeployment. Whatever makes most sense in your situation. :-) Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Replacement for 1.2's IApplicationSettings.getContextPath()?
Igor Vaynberg wrote: see ContextImage and how it builds a context relative url That yields this: getRequest().getRelativePathPrefixToContextRoot() I'm not sure if this is a better approach or not, but it's at least some characters shorter! To use it, I'd still have to put it in some Javascript, but since that's no change from the current solution, I'm not particularly bothered by it. I think I'd prefer this relative path to my absolute, context path, based one, but I'd have to think hard to figure out why. And it's too late in the evening to think hard. I'll try this and see which I like. Thanks for your help, -- Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to write Json response in the AbstractDefaultAjaxBehavior.response(ajaxtarget)
Thank you , it works! Igor Vaynberg <[EMAIL PROTECTED]> wrote: getrequestcycle().setrequesttarget(new irequesttarget() { respond(response r) { r.write(...); }}); -igor On Jan 14, 2008 6:43 PM, Kevin Liu wrote: > Hi guys! > could you tell me how to write json response in the > AbstractDefaultAjaxBehavior.response(ajaxtarget) method? > my code : > ... > Response response = getResponse(); > response.write("{totalProperty:100,root:[{id:0,name:'name0',descn:'descn0'},]}"); > ... > but the response is like this: > > {totalProperty:100,root:[{id:0,name:'name0',descn:'descn0'},]} > > > how can I remove the > > > > > > > -Kevin Liu > > - > Never miss a thing. Make Yahoo your homepage. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -Kevin Liu - Looking for last minute shopping deals? Find them fast with Yahoo! Search.
Re: Replacement for 1.2's IApplicationSettings.getContextPath()?
see ContextImage and how it builds a context relative url -igor On Jan 14, 2008 7:59 PM, Scott Sauyet <[EMAIL PROTECTED]> wrote: > Scott Sauyet wrote: > > I'm finally converting from 1.2 to 1.3 and have gotten down to one > > compilation error! > > > > I need to find a way to replace a call to > > > > IApplicationSettings.getContextPath() > > > > Never mind. It really isn't that hard: > > (WebApplication) Application.get()).getServletContext() > .getContextPath(); > > Of course I'd still love to hear if there is a better way to do this! > > >-- Scott > > - > 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: Replacement for 1.2's IApplicationSettings.getContextPath()?
Scott Sauyet wrote: I'm finally converting from 1.2 to 1.3 and have gotten down to one compilation error! I need to find a way to replace a call to IApplicationSettings.getContextPath() Never mind. It really isn't that hard: (WebApplication) Application.get()).getServletContext() .getContextPath(); Of course I'd still love to hear if there is a better way to do this! -- Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to write Json response in the AbstractDefaultAjaxBehavior.response(ajaxtarget)
getrequestcycle().setrequesttarget(new irequesttarget() { respond(response r) { r.write(...); }}); -igor On Jan 14, 2008 6:43 PM, Kevin Liu <[EMAIL PROTECTED]> wrote: > Hi guys! > could you tell me how to write json response in the > AbstractDefaultAjaxBehavior.response(ajaxtarget) method? > my code : > ... > Response response = getResponse(); > response.write("{totalProperty:100,root:[{id:0,name:'name0',descn:'descn0'},]}"); > ... > but the response is like this: > > {totalProperty:100,root:[{id:0,name:'name0',descn:'descn0'},]} version="1.0" encoding="UTF-8"?> > > > how can I remove the > > > > > > > -Kevin Liu > > - > Never miss a thing. Make Yahoo your homepage. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to write Json response in the AbstractDefaultAjaxBehavior.response(ajaxtarget)
Hi guys! could you tell me how to write json response in the AbstractDefaultAjaxBehavior.response(ajaxtarget) method? my code : ... Response response = getResponse(); response.write("{totalProperty:100,root:[{id:0,name:'name0',descn:'descn0'},]}"); ... but the response is like this: {totalProperty:100,root:[{id:0,name:'name0',descn:'descn0'},]} how can I remove the -Kevin Liu - Never miss a thing. Make Yahoo your homepage.
Re: Replacement for 1.2's IApplicationSettings.getContextPath()?
Eelco Hillenius wrote: The context path should automatically be resolved for you. Could you give just using relative paths a try? Thanks for the reply, but I'm not sure how I could do that. The URLs are *created* by the Javascript, based upon the context path. I can't use relative paths such as href = "../../images/myImg.gif" because the URL for a sinlge page might look like either http://localhost:8080/tixx/app/?wicket:interface=:16 http://localhost:8080/tixx/app/main/SelectSeats/event/815 depending upon how I got there. The browser would not get the same image location from the href above and each of these relative paths. So I use something like var contextPath = "and in the HTML I have a an earlier script that sets contextPath to "", so that it works in preview mode as well as live mode. I've been doing this this way for years with Wicket and it's never been an issue, but I may well have always been missing a better way. I you want Javascript to construct URLs for static resources or bookmarkable pages in an application where the contextPath is not fixed, how do you do it? -- Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WAS: Shout more about security advantages of Wicket? (hdiv, modsecurity, WAFs.. )
Yes. We are pretty much the ideal framework for E*Trade (I mean if they aren't going out of business). igor.vaynberg wrote: > > On Jan 14, 2008 2:11 PM, C. Bergström <[EMAIL PROTECTED]> wrote: >> "INTEGRITY: HDIV guarantees integrity (no data modification) of >> all the data generated by the server which should not be modified by the >> client (links, hidden fields, combo values, radio buttons, destiny pages, >> etc.)." > > not really sure what this means. how does the user modify a link or a > combo value in an unexpected way? > > hidden fields are not a problem because there is no client state in > wicket... you dont need hidden fields to pass around database ids, you > keep them on the server side in session. > > destiny pages are also selected on server side > >> "EDITABLE DATA VALIDATION: HDIV eliminates to a large extent the >> risk originated by attacks of type Cross-site scripting (XSS) and SQL >> Injection using generic validations of the editable data (text and >> textarea)" > > we have pretty good validators as well... > >> "CONFIDENTIALITY: HDIV guarantees the confidentiality of the non >> editable data as well. Usually lots of the data sent to the client has >> key information for the attackers such as database registry identifiers, >> column or table names, web directories, etc" > > we have this by default. database ids and the likes never make it into > the url unless you choose to create a bookmarkable link that has this > id as a parameter. > > we also provide session relative urls, and a crypt strategy which > encrypts the url. not sure what more we can possibly do out of the > box... > > -igor > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Shout-more-about-security-advantages-of-Wicket--tp14800934p14825213.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Replacement for 1.2's IApplicationSettings.getContextPath()?
The context path should automatically be resolved for you. Could you give just using relative paths a try? Eelco On Jan 14, 2008 1:35 PM, Scott Sauyet <[EMAIL PROTECTED]> wrote: > I'm finally converting from 1.2 to 1.3 and have gotten down to one > compilation error! > > I need to find a way to replace a call to > > IApplicationSettings.getContextPath() > > I understand that all URLs are now relative, but I'm using this to pass > to Javascript, something like this: > > HTML: > > >var contextPath = ""; >// ... >// inside an onLoad: >img.location = waitImage: contextPath + "/images/wait.gif"; >// ... > > > And in Java: > > String contextPath = Application.get().getApplicationSettings() > .getContextPath(); > add(new StringHeaderContributor("" > + contextPath = '" + contextPath + "/';")); > > > This allows my Javascript to work in the HTML files and in the deployed > application. Is there a simple substitute for this? > > Thanks, > >-- Scott > > - > 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: Markup of type 'html' for component not found
On Jan 14, 2008 3:49 PM, ckuehne <[EMAIL PROTECTED]> wrote: > > Hi, > > I don't quite know what to do with the following debug message. The > AddPanel.html is definetely where > it should be (wicket bench finds it as well). I am also curious where the $3 > comes from? That means Wicket tries (but is not able) to load markup of an anonymous class of AddPanel (the third one you defined in that class to be exact). If you look at the classes in your class path, you'll see the same. Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Wicket 1.4/2.0/nextStep
Dear Martijn, I understand your point of view and I did not want to blame wicket. We use wicket because we love wicket. Unfortunately we started using Wicket 2.0 early in 2007. The main reason for doing this was the ability to use the generic components of wicket 2.0 (version 2007). Once we have started using Generic it became more and more impossible to live without Generics. The more we used Generic, the less we could imagine to work without them. I am already a member of the wicket developer mailing list. And when you suggest to use the developer list, we will use this list for futher wicket developmnet opinions. Stefan > Martijn Dashorst [mailto:[EMAIL PROTECTED] > > One thing you could do to help out, is to make sure we have all the missing part of the old 2.0 branch on our plate and in JIRA, assigned to release 1.4M1. This would make our job a lot easier and will prevent disappointments when we miss a particular feature. > > Another option is to add them to the 1.4 wishlist in our wiki. > > And this is open to everybody in the community. You don't have to be a core developer to discuss the future of the framework (though we reserve the right to go >into another direction). Join us on the development list and help out by discussing, proposing new or missing features, etc. > > Martijn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Markup of type 'html' for component not found
Hi, I don't quite know what to do with the following debug message. The AddPanel.html is definetely where it should be (wicket bench finds it as well). I am also curious where the $3 comes from? The problem did not occur in 1.3 RC2. But then again I made some changes after updating to 1.3 final and only tested afterwards. Any ideas? WicketMessage: Markup of type 'html' for component 'AddPanel$3' not found. Enable debug messages for org.apache.wicket.util.resource to get a list of all filenames tried: Root cause: org.apache.wicket.markup.MarkupNotFoundException: Markup not found. Component class: AddPanel$3 Enable debug messages for org.apache.wicket.util.resource to get a list of all filenames tried at org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:215) at org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:342) at org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:603) at org.apache.wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:112) at org.apache.wicket.Component.renderComponent(Component.java:2429) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1354) at org.apache.wicket.Component.render(Component.java:2266) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1240) at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1407) at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1344) at org.apache.wicket.Component.renderComponent(Component.java:2429) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1354) at org.apache.wicket.Component.render(Component.java:2266) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1240) at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1407) at org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:631) at org.apache.wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:112) at org.apache.wicket.Component.renderComponent(Component.java:2429) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1354) at org.apache.wicket.Component.render(Component.java:2266) ... -- View this message in context: http://www.nabble.com/Markup-of-type-%27html%27-for-component-not-found-tp14820455p14820455.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PagingNavigator refactoring request
see if this patch helps, and if it works and doesnt break anything that you can see i will apply it... -igor Index: C:/dev/src/wicket/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/navigation/paging/PagingNavigator.java === --- C:/dev/src/wicket/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/navigation/paging/PagingNavigator.java (revision 611946) +++ C:/dev/src/wicket/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/navigation/paging/PagingNavigator.java (working copy) @@ -32,8 +32,11 @@ private static final long serialVersionUID = 1L; /** The navigation bar to be printed, e.g. 1 | 2 | 3 etc. */ - private final PagingNavigation pagingNavigation; + private PagingNavigation pagingNavigation; + private final IPageable pageable; + private final IPagingLabelProvider labelProvider; + /** * Constructor. * @@ -58,20 +61,28 @@ *The label provider for the link text. */ public PagingNavigator(final String id, final IPageable pageable, - final IPagingLabelProvider labelProvider) + final IPagingLabelProvider labelProvider) { super(id); + this.pageable = pageable; + this.labelProvider = labelProvider; + } + protected void onBeforeRender() + { + if (!hasBeenRendered()) + { + // Get the navigation bar and add it to the hierarchy + pagingNavigation = newNavigation(pageable, labelProvider); + add(pagingNavigation); - // Get the navigation bar and add it to the hierarchy - this.pagingNavigation = newNavigation(pageable, labelProvider); - add(pagingNavigation); - - // Add additional page links - add(newPagingNavigationLink("first", pageable, 0)); - add(newPagingNavigationIncrementLink("prev", pageable, -1)); - add(newPagingNavigationIncrementLink("next", pageable, 1)); - add(newPagingNavigationLink("last", pageable, -1)); + // Add additional page links + add(newPagingNavigationLink("first", pageable, 0)); + add(newPagingNavigationIncrementLink("prev", pageable, -1)); + add(newPagingNavigationIncrementLink("next", pageable, 1)); + add(newPagingNavigationLink("last", pageable, -1)); + } + super.onBeforeRender(); } /** @@ -118,7 +129,7 @@ * @return the navigation object */ protected PagingNavigation newNavigation(final IPageable pageable, - final IPagingLabelProvider labelProvider) + final IPagingLabelProvider labelProvider) { return new PagingNavigation("navigation", pageable, labelProvider); } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ServerSide Java Symposium
There's a beer in it for you, if that helps. On Jan 14, 2008 2:35 PM, Nick Heudecker <[EMAIL PROTECTED]> wrote: > Yep. The only downside is having to learn about all those inferior > frameworks... :) > > > On Jan 14, 2008 4:22 PM, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > > On Jan 14, 2008 2:00 PM, Nick Heudecker <[EMAIL PROTECTED]> wrote: > > > Looks like I'm going, probably to talk about Wicket. > > > > Ah, so you'll be in Matt's framework fight then? :-) > > > > Eelco > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > -- > Nick Heudecker > Professional Wicket Training & Consulting > http://www.systemmobile.com > > Eventful - Intelligent Event Management > http://www.eventfulhq.com > -- Scott Swank reformed mathematician - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to reference component in RequestTarget
I'll think about that... 2008/1/14, Beyonder Unknown <[EMAIL PROTECTED]>: > > > Hi Martijn, > > I have a page, that contains a panel (PanelA), and link. The link > instantiate modalWindow that uses PanelB. > > > MyPage contains: > Panel panelA = new PanelA(); > add(panelA); > final ModalWindow modalWindow = new ModalWindow("modalwindow"); > modalWindow.setContent( new PanelB(modalWindow.getContentId())); > > > > in PanelB: > > AjaxButton ajaxButton = new AjaxButton("test") { > > protected void onSubmit(AjaxRequestTarget target, Form form) { > // how do i get reference to PanelA? > // or to any component in PanelA ? >} > > }; > > > Thanks, > Allan > > -- > The only constant in life is change. > > - Original Message > From: Martijn Lindhout <[EMAIL PROTECTED]> > To: users@wicket.apache.org > Sent: Monday, January 14, 2008 2:23:51 PM > Subject: Re: how to reference component in RequestTarget > > > what is exactly the usecase? > > 2008/1/14, Beyonder Unknown <[EMAIL PROTECTED]>: > > > > > > Hi All, > > > > I was wondering what is the best practice when referencing components > > inside an onClick/onSubmit. Normally: > > > > public void onClick(AjaxRequestTarget target) { > > //do things here. > > //update these components. > > target.addComponent(panelA); > > target.addComponent(panelB); > > > > } > > > > But what if you don't have direct access to PanelA or PanelB? > > > > Any help will be greatly appreciated! > > > > Thanks, > > Wen Tong > > > > -- > > The only constant in life is change. > > > > > > > > > > > > > > > > Be a better friend, newshound, and > > know-it-all with Yahoo! Mobile. Try it now. > > http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > Martijn Lindhout > JointEffort IT Services > http://www.jointeffort.nl > [EMAIL PROTECTED] > +31 (0)6 18 47 25 29 > > > > > > > > > Looking for last minute shopping deals? > Find them fast with Yahoo! Search. > http://tools.search.yahoo.com/newsearch/category.php?category=shopping > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Martijn Lindhout JointEffort IT Services http://www.jointeffort.nl [EMAIL PROTECTED] +31 (0)6 18 47 25 29
Re: PagingNavigator refactoring request
Hi Igor, I created a BookmarkablePagingNavigationIncrementLink / BookmarkablePagingNavigationLink as well as a BookmarkablePagingNavigation (those three simply being the bookmarkable version of the ones already existing in wicket-core). The overridden methods therefore simply look like: protected Link newPagingNavigationIncrementLink(String id, IPageable pageable, int increment) { return new BookmarkablePagingNavigationIncrementLink(id, this.clazz, pageable, this.params, increment); } protected Link newPagingNavigationLink(String id, IPageable pageable, int pageNumber) { return new BookmarkablePagingNavigationLink(id, this.clazz, pageable, this.params, pageNumber); } etc... As the Bookmarkable links need a pageClass and pageParameters, I wanted to pass them to my navigator's constructor. Problem being, if you extend from Wicket's PagingNavigator, you cannot set pageParams and pageClass "before" newPagingNavigationLink() etc.. gets called. Finally, the gist :) I simply didn't wanna duplicate PagingNavigator.java/.html if the only thing I do is this.params = params; this.clazz = clazz; before the PaginationLinks are called. Puh, Thanks again for reading :) igor.vaynberg wrote: > > would you just override all the newPaging* factory methods? > > perhaps if you paste your code and what you cannot do i might help you > more, right now i just dont see it :| > > > > -igor > > > On Jan 14, 2008 12:03 PM, behlma <[EMAIL PROTECTED]> wrote: >> >> Hi Igor, >> I created a BookmarkablePagingNavigator component. Its constructor takes >> a >> PageParameter object, that needs - of course - to be set *before*: >> >> add(newPagingNavigationLink("first", pageable, 0)); >> add(newPagingNavigationIncrementLink("prev", pageable, >> -1)); >> add(newPagingNavigationIncrementLink("next", pageable, 1)); >> add(newPagingNavigationLink("last", pageable, -1)); >> >> as they are all bookmarkable links. >> >> >> >> >> igor.vaynberg wrote: >> > >> > what exactly is the usecase? >> > >> > -igor >> > >> > >> > On Jan 14, 2008 12:49 AM, behlma <[EMAIL PROTECTED]> wrote: >> >> >> >> Not such a good idea, huh? :) >> >> >> >> >> >> >> >> >> >> >> >> behlma wrote: >> >> > >> >> > Hi guys, >> >> > would it be possible to change PagingNavigator's constructor from >> >> > >> >> > public PagingNavigator(final String id, final IPageable >> pageable, >> >> > final IPagingLabelProvider labelProvider) >> >> > { >> >> > super(id); >> >> > >> >> > >> >> > // Get the navigation bar and add it to the hierarchy >> >> > this.pagingNavigation = newNavigation(pageable, >> >> labelProvider); >> >> > add(pagingNavigation); >> >> > >> >> > // Add additional page links >> >> > add(newPagingNavigationLink("first", pageable, 0)); >> >> > add(newPagingNavigationIncrementLink("prev", pageable, >> >> -1)); >> >> > add(newPagingNavigationIncrementLink("next", pageable, >> >> 1)); >> >> > add(newPagingNavigationLink("last", pageable, -1)); >> >> > } >> >> > >> >> > /** >> >> > >> >> > >> >> > to >> >> > >> >> > >> >> > public PagingNavigator(final String id, final IPageable pageable, >> >> > final IPagingLabelProvider labelProvider) >> >> > { >> >> > super(id); >> >> > initNavigator(pageable, labelProvider); >> >> > } >> >> > >> >> > >> >> > protected initNavigator(pageable, provider) { >> >> > this.pagingNavigation = newNavigation(pageable, >> >> labelProvider); >> >> > add(pagingNavigation); >> >> > >> >> > } >> >> > >> >> > >> >> > I'm asking because I subclassed PagingNavigator and I have >> additional >> >> > constructor parameters I want to pass to the constructor "before" >> >> invoking >> >> > "initNavigator". >> >> > >> >> > >> >> > Thanks for your time! >> >> > >> >> > >> >> >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/PagingNavigator-refactoring-request-tp14783646p14797267.html >> >> >> >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> >> >> >> - >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> > >> > - >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > For additional commands, e-mail: [EMAIL PROTECTED] >> > >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/PagingNavigator-refactoring-request-tp14783646p14812182.html >> >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> T
Re: ServerSide Java Symposium
Yep. The only downside is having to learn about all those inferior frameworks... :) On Jan 14, 2008 4:22 PM, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > On Jan 14, 2008 2:00 PM, Nick Heudecker <[EMAIL PROTECTED]> wrote: > > Looks like I'm going, probably to talk about Wicket. > > Ah, so you'll be in Matt's framework fight then? :-) > > Eelco > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Nick Heudecker Professional Wicket Training & Consulting http://www.systemmobile.com Eventful - Intelligent Event Management http://www.eventfulhq.com
Re: Wicket 1.4/2.0/nextStep
One thing you could do to help out, is to make sure we have all the missing part of the old 2.0 branch on our plate and in JIRA, assigned to release 1.4M1. This would make our job a lot easier and will prevent disappointments when we miss a particular feature. Another option is to add them to the 1.4 wishlist in our wiki. And this is open to everybody in the community. You don't have to be a core developer to discuss the future of the framework (though we reserve the right to go into another direction). Join us on the development list and help out by discussing, proposing new or missing features, etc. Martijn On 1/14/08, Stefan Lindner <[EMAIL PROTECTED]> wrote: > > We haven't started it. > > > > We wait with starting new development until 1.3.1 or even 1.3.2 is > > released. We don't want to maintain two branches and first want to > > make the issue list for 1.3 a lot smaller before branching. > > > > Martijn > > This means, that we old wicket 2.0 users who are waiting for Generics, > have to wait still some other months until 1.3.2 is done? No parallel > development of 1.4/2.0.0? It's hard to be a wicket 2.0 user. Can you > give us any timeline for 1.3.2/1.4/2.0? > > Stefan > > > - > 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 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to reference component in RequestTarget
Hi Martijn, I have a page, that contains a panel (PanelA), and link. The link instantiate modalWindow that uses PanelB. MyPage contains: Panel panelA = new PanelA(); add(panelA); final ModalWindow modalWindow = new ModalWindow("modalwindow"); modalWindow.setContent( new PanelB(modalWindow.getContentId())); in PanelB: AjaxButton ajaxButton = new AjaxButton("test") { protected void onSubmit(AjaxRequestTarget target, Form form) { // how do i get reference to PanelA? // or to any component in PanelA ? } }; Thanks, Allan -- The only constant in life is change. - Original Message From: Martijn Lindhout <[EMAIL PROTECTED]> To: users@wicket.apache.org Sent: Monday, January 14, 2008 2:23:51 PM Subject: Re: how to reference component in RequestTarget what is exactly the usecase? 2008/1/14, Beyonder Unknown <[EMAIL PROTECTED]>: > > > Hi All, > > I was wondering what is the best practice when referencing components > inside an onClick/onSubmit. Normally: > > public void onClick(AjaxRequestTarget target) { > //do things here. > //update these components. > target.addComponent(panelA); > target.addComponent(panelB); > > } > > But what if you don't have direct access to PanelA or PanelB? > > Any help will be greatly appreciated! > > Thanks, > Wen Tong > > -- > The only constant in life is change. > > > > > > > Be a better friend, newshound, and > know-it-all with Yahoo! Mobile. Try it now. > http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Martijn Lindhout JointEffort IT Services http://www.jointeffort.nl [EMAIL PROTECTED] +31 (0)6 18 47 25 29 Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket 1.4/2.0/nextStep
On 1/14/08, Stefan Lindner <[EMAIL PROTECTED]> wrote: > This means, that we old wicket 2.0 users who are waiting for Generics, > have to wait still some other months until 1.3.2 is done? No parallel > development of 1.4/2.0.0? It's hard to be a wicket 2.0 user. Can you > give us any timeline for 1.3.2/1.4/2.0? Well, if we are going to do parallel development *right now*, we would be hampered by having to maintain two branches. We expect to receive bug reports for 1.3 in the first couple of weeks. When that is stabilized (i.e. the number of reported issues for 1.3 goes down) we will start work on 1.4/2.0. Trust us when we say we would like nothing more than to work on new stuff. But we have some (unfortunate) experience with maintaining two /active/ branches at the same time, and didn't like that for one bit. That said, the basic idea is to do a 1.4M1/2.0M1 release asap with all promised features from 2.0 bar the constructor change. According to Johan this would not take too long to build. Martijn -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Ajax update (visitor)
I have a visitor that adds a behavior to all the links on my page. The visitor fires onbeforeRender of the page. The behavior uses the onComponentTag to prepend some javascript to a link. This works great. However lets say I want to update a table via ajax that has several links in the cells. After the table has been updated the javascript is no longer there. It's like it forgot that my visitor added the behvior to those links. Any thoughts?
RE: Type safe roles for AUTH-ROLES?
Sure, and although not an included option, can't I just make a new one named "moderator" and use that where I want? I haven't tried this but I assume the library won't care. -Original Message- From: Martijn Dashorst [mailto:[EMAIL PROTECTED] Sent: Monday, January 14, 2008 2:22 PM To: users@wicket.apache.org Subject: Re: Type safe roles for AUTH-ROLES? In my opinion there is nothing 'wrong' with auth-roles. but they are limited in scope. Fortunately the code base is really small so it wouldn't take that much effort to roll your own based on that code. That said, I think that a lot of applications can live with the 3 levels of authorization: none, user and admin provided by auth-roles. Martijn (who likes using auth-roles) On 1/14/08, Dan Kaplan <[EMAIL PROTECTED]> wrote: > I guess I'll have to read about swarm/wasp to read about what fancy features > I'm missing out on. But, ATM, I'm content to stay with it because > auth-roles are simple and allow me to move on to the actual content of my > webapp. Am I going to be kicking myself later for that choice? > > -Original Message- > From: Igor Vaynberg [mailto:[EMAIL PROTECTED] > Sent: Monday, January 14, 2008 1:55 PM > To: users@wicket.apache.org > Subject: Re: Type safe roles for AUTH-ROLES? > > heh. it is a functional example of a fully implemented authorization > strategy. but it doesnt have any fancy features, nor will they be > added to it in the future. it is meant to serve as an example, so > users can see how to implement their own authorization strategies. > > what more do you want me to say exactly? > > -igor > > > On Jan 14, 2008 1:51 PM, Dan Kaplan <[EMAIL PROTECTED]> wrote: > > What? Really? Fuck. Can you please elaborate? Did I waste every second > > of the time I spent looking at the examples on wicketstuff? I applied > these > > examples to my webapp. Did I implement some type of "pretend" > authorization > > strategy? > > > > > > -Original Message- > > From: Igor Vaynberg [mailto:[EMAIL PROTECTED] > > Sent: Saturday, January 12, 2008 10:31 AM > > To: users@wicket.apache.org; [EMAIL PROTECTED] > > Subject: Re: Type safe roles for AUTH-ROLES? > > > > wicket-auth-roles is just an example. its not really meant to be > > something you drop into your application, for that there is > > wicketstuff-wasp and wicketstuff-swarm > > > > -igor > > > > > > On Jan 12, 2008 9:14 AM, Jeremy Thomerson <[EMAIL PROTECTED]> > > wrote: > > > I have several successful Wicket projects going, and in all have used my > > own > > > authorization strategy based on annotations. I'm just trying > > > wicket-auth-roles for my next project, but seem confused by the apparent > > > String-only roles. I already have a domain model where a User has a > Role > > or > > > Role(s), where Role is a class. This promotes type-safety, etc, etc. > > > > > > But, I can't go: > > > > > > @AuthorizeInstantiation({ Role.ADMIN, Role.SUPER_USER, > > > Role.MEMBER_SERVICE_REP, Role.MEMBER }) > > > > > > I also can't do: > > > > > > @AuthorizeInstantiation({ Role.ADMIN.name(), Role.SUPER_USER.name (), > > > Role.MEMBER_SERVICE_REP.name(), Role.MEMBER.name() }) > > > > > > So, do I *have* to use Strings? Or is there another way? If I have to > > use > > > Strings, then I either have to redefine all my roles and change how the > DB > > > stores them, or just use the names of my own roles (i.e . "SUPER_USER" > > which > > > later my UserAuthorizer does a Role.valueOf(String) on), and risk typoes > > > messing me up, or have Role.SUPER_USER and Role.SUPER_USER_NAME as a > > public > > > static final String. > > > > > > It's been a long week - I could be missing something. > > > > > > Thanks in advance. > > > > > > Jeremy > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0 - 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: WAS: Shout more about security advantages of Wicket? (hdiv, modsecurity, WAFs.. )
On Jan 14, 2008 2:11 PM, C. Bergström <[EMAIL PROTECTED]> wrote: > "INTEGRITY: HDIV guarantees integrity (no data modification) of all > the data generated by the server which should not be modified by the client > (links, hidden fields, combo values, radio buttons, destiny pages, etc.)." not really sure what this means. how does the user modify a link or a combo value in an unexpected way? hidden fields are not a problem because there is no client state in wicket... you dont need hidden fields to pass around database ids, you keep them on the server side in session. destiny pages are also selected on server side > "EDITABLE DATA VALIDATION: HDIV eliminates to a large extent the risk > originated by attacks of type Cross-site scripting (XSS) and SQL Injection > using generic validations of the editable data (text and textarea)" we have pretty good validators as well... > "CONFIDENTIALITY: HDIV guarantees the confidentiality of the non > editable data as well. Usually lots of the data sent to the client has key > information for the attackers such as database registry identifiers, column > or table names, web directories, etc" we have this by default. database ids and the likes never make it into the url unless you choose to create a bookmarkable link that has this id as a parameter. we also provide session relative urls, and a crypt strategy which encrypts the url. not sure what more we can possibly do out of the box... -igor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to reference component in RequestTarget
what is exactly the usecase? 2008/1/14, Beyonder Unknown <[EMAIL PROTECTED]>: > > > Hi All, > > I was wondering what is the best practice when referencing components > inside an onClick/onSubmit. Normally: > > public void onClick(AjaxRequestTarget target) { > //do things here. > //update these components. > target.addComponent(panelA); > target.addComponent(panelB); > > } > > But what if you don't have direct access to PanelA or PanelB? > > Any help will be greatly appreciated! > > Thanks, > Wen Tong > > -- > The only constant in life is change. > > > > > > > > Be a better friend, newshound, and > know-it-all with Yahoo! Mobile. Try it now. > http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Martijn Lindhout JointEffort IT Services http://www.jointeffort.nl [EMAIL PROTECTED] +31 (0)6 18 47 25 29
Re: ServerSide Java Symposium
On Jan 14, 2008 2:00 PM, Nick Heudecker <[EMAIL PROTECTED]> wrote: > Looks like I'm going, probably to talk about Wicket. Ah, so you'll be in Matt's framework fight then? :-) Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Type safe roles for AUTH-ROLES?
In my opinion there is nothing 'wrong' with auth-roles. but they are limited in scope. Fortunately the code base is really small so it wouldn't take that much effort to roll your own based on that code. That said, I think that a lot of applications can live with the 3 levels of authorization: none, user and admin provided by auth-roles. Martijn (who likes using auth-roles) On 1/14/08, Dan Kaplan <[EMAIL PROTECTED]> wrote: > I guess I'll have to read about swarm/wasp to read about what fancy features > I'm missing out on. But, ATM, I'm content to stay with it because > auth-roles are simple and allow me to move on to the actual content of my > webapp. Am I going to be kicking myself later for that choice? > > -Original Message- > From: Igor Vaynberg [mailto:[EMAIL PROTECTED] > Sent: Monday, January 14, 2008 1:55 PM > To: users@wicket.apache.org > Subject: Re: Type safe roles for AUTH-ROLES? > > heh. it is a functional example of a fully implemented authorization > strategy. but it doesnt have any fancy features, nor will they be > added to it in the future. it is meant to serve as an example, so > users can see how to implement their own authorization strategies. > > what more do you want me to say exactly? > > -igor > > > On Jan 14, 2008 1:51 PM, Dan Kaplan <[EMAIL PROTECTED]> wrote: > > What? Really? Fuck. Can you please elaborate? Did I waste every second > > of the time I spent looking at the examples on wicketstuff? I applied > these > > examples to my webapp. Did I implement some type of "pretend" > authorization > > strategy? > > > > > > -Original Message- > > From: Igor Vaynberg [mailto:[EMAIL PROTECTED] > > Sent: Saturday, January 12, 2008 10:31 AM > > To: users@wicket.apache.org; [EMAIL PROTECTED] > > Subject: Re: Type safe roles for AUTH-ROLES? > > > > wicket-auth-roles is just an example. its not really meant to be > > something you drop into your application, for that there is > > wicketstuff-wasp and wicketstuff-swarm > > > > -igor > > > > > > On Jan 12, 2008 9:14 AM, Jeremy Thomerson <[EMAIL PROTECTED]> > > wrote: > > > I have several successful Wicket projects going, and in all have used my > > own > > > authorization strategy based on annotations. I'm just trying > > > wicket-auth-roles for my next project, but seem confused by the apparent > > > String-only roles. I already have a domain model where a User has a > Role > > or > > > Role(s), where Role is a class. This promotes type-safety, etc, etc. > > > > > > But, I can't go: > > > > > > @AuthorizeInstantiation({ Role.ADMIN, Role.SUPER_USER, > > > Role.MEMBER_SERVICE_REP, Role.MEMBER }) > > > > > > I also can't do: > > > > > > @AuthorizeInstantiation({ Role.ADMIN.name(), Role.SUPER_USER.name (), > > > Role.MEMBER_SERVICE_REP.name(), Role.MEMBER.name() }) > > > > > > So, do I *have* to use Strings? Or is there another way? If I have to > > use > > > Strings, then I either have to redefine all my roles and change how the > DB > > > stores them, or just use the names of my own roles (i.e . "SUPER_USER" > > which > > > later my UserAuthorizer does a Role.valueOf(String) on), and risk typoes > > > messing me up, or have Role.SUPER_USER and Role.SUPER_USER_NAME as a > > public > > > static final String. > > > > > > It's been a long week - I could be missing something. > > > > > > Thanks in advance. > > > > > > Jeremy > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Wicket 1.4/2.0/nextStep
> We haven't started it. > > We wait with starting new development until 1.3.1 or even 1.3.2 is > released. We don't want to maintain two branches and first want to > make the issue list for 1.3 a lot smaller before branching. > > Martijn This means, that we old wicket 2.0 users who are waiting for Generics, have to wait still some other months until 1.3.2 is done? No parallel development of 1.4/2.0.0? It's hard to be a wicket 2.0 user. Can you give us any timeline for 1.3.2/1.4/2.0? Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Type safe roles for AUTH-ROLES?
No, I'm perfectly happy with the functionality provided by the examples on wicketstuff. I just want to make sure they are secure. I don't want to use them if they're giving me a false sense of security. -Original Message- From: C. Bergström [mailto:[EMAIL PROTECTED] Sent: Monday, January 14, 2008 2:15 PM To: users@wicket.apache.org Subject: RE: Type safe roles for AUTH-ROLES? On Mon, 2008-01-14 at 13:51 -0800, Dan Kaplan wrote: > What? Really? F***. Can you please elaborate? Did I waste every second > of the time I spent looking at the examples on wicketstuff? I applied these > examples to my webapp. Did I implement some type of "pretend" authorization > strategy? http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Security +Examples Sources are available here.. https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-s ecurity-examples maybe this is more in the ballpark of what you were expecting? ./C - 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: Type safe roles for AUTH-ROLES?
for a comparison between auth-roles and swarm/wasp, take a look at http://wicketstuff.org/confluence/display/STUFFWIKI/Security+Framework+Comparison gerolf On Jan 14, 2008 11:14 PM, C. Bergström <[EMAIL PROTECTED]> wrote: > > On Mon, 2008-01-14 at 13:51 -0800, Dan Kaplan wrote: > > What? Really? F***. Can you please elaborate? Did I waste every > second > > of the time I spent looking at the examples on wicketstuff? I applied > these > > examples to my webapp. Did I implement some type of "pretend" > authorization > > strategy? > > http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Security > +Examples > > Sources are available here.. > > https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-security-examples > > maybe this is more in the ballpark of what you were expecting? > > ./C > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
RE: Type safe roles for AUTH-ROLES?
On Mon, 2008-01-14 at 13:51 -0800, Dan Kaplan wrote: > What? Really? F***. Can you please elaborate? Did I waste every second > of the time I spent looking at the examples on wicketstuff? I applied these > examples to my webapp. Did I implement some type of "pretend" authorization > strategy? http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Security +Examples Sources are available here.. https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-security-examples maybe this is more in the ballpark of what you were expecting? ./C - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
WAS: Shout more about security advantages of Wicket? (hdiv, modsecurity, WAFs.. )
On Mon, 2008-01-14 at 13:23 -0800, Jonathan Locke wrote: > Sam Hough wrote: > > > > It has only just struck me how much more secure Wicket is out of the box > > than struts, spring, GWT etc. The features list doesn't really seem to > > drive this point home... > > > > Maybe add really clear example like: "Equivalent to not having pointer > > arithmetic in Java. e.g. HTTP requests specify which option from a select > > box to use rather than allowing arbitrary values to be sent" > > > > Cheers > > > > Sam > > > YES! > > Which brings up some curious thoughts... (I hope this isn't considered thread hijacking...) I'm usually pretty paranoid with the applications I build from the ground up, but what can be done with existing apps already in production.. Especially, when you come into the realm of trying to be PCI compliant.. (WAFs web application firewall) Are to some extent a convenient work-around. modsecurity can be deployed as a Apache module accomplishing some of this. msj[1] also seems to include a subset of those features at the servlet level. and just tonight reading more about hdiv [2] which I'll try to summarize as short as possible from quoting from their homepage "INTEGRITY: HDIV guarantees integrity (no data modification) of all the data generated by the server which should not be modified by the client (links, hidden fields, combo values, radio buttons, destiny pages, etc.)." "EDITABLE DATA VALIDATION: HDIV eliminates to a large extent the risk originated by attacks of type Cross-site scripting (XSS) and SQL Injection using generic validations of the editable data (text and textarea)" "CONFIDENTIALITY: HDIV guarantees the confidentiality of the non editable data as well. Usually lots of the data sent to the client has key information for the attackers such as database registry identifiers, column or table names, web directories, etc" Now how this all relates to Wicket is interesting in that Wicket provides quite a bit oob (out of box). So while many .Net and alike fanboys are always talking about 'it just works'. I'm happy to report that most of these issues have been transparently taken care of for you. For example I know Matej has considered the impact of the difference in security between storing the state in the client (Cipher strategy) vs the server (Memory strategy). Also integrity and some default editable data validation have been taken care of as well. If nothing else Wicket usually makes it near trivial to validate input and provide feedback to the user. Just some random thoughts which I hope to expand on more in the future. I'm curious if anyone has tried to get Wicket to play nicely with hdiv or what servlet security filtering/alerting options are available. Cheers, ./C [1] http://www.modsecurity.org/projects/modsecurity/java/ [2] http://www.hdiv.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to reference component in RequestTarget
Hi All, I was wondering what is the best practice when referencing components inside an onClick/onSubmit. Normally: public void onClick(AjaxRequestTarget target) { //do things here. //update these components. target.addComponent(panelA); target.addComponent(panelB); } But what if you don't have direct access to PanelA or PanelB? Any help will be greatly appreciated! Thanks, Wen Tong -- The only constant in life is change. Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Type safe roles for AUTH-ROLES?
I guess I'll have to read about swarm/wasp to read about what fancy features I'm missing out on. But, ATM, I'm content to stay with it because auth-roles are simple and allow me to move on to the actual content of my webapp. Am I going to be kicking myself later for that choice? -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Monday, January 14, 2008 1:55 PM To: users@wicket.apache.org Subject: Re: Type safe roles for AUTH-ROLES? heh. it is a functional example of a fully implemented authorization strategy. but it doesnt have any fancy features, nor will they be added to it in the future. it is meant to serve as an example, so users can see how to implement their own authorization strategies. what more do you want me to say exactly? -igor On Jan 14, 2008 1:51 PM, Dan Kaplan <[EMAIL PROTECTED]> wrote: > What? Really? Fuck. Can you please elaborate? Did I waste every second > of the time I spent looking at the examples on wicketstuff? I applied these > examples to my webapp. Did I implement some type of "pretend" authorization > strategy? > > > -Original Message- > From: Igor Vaynberg [mailto:[EMAIL PROTECTED] > Sent: Saturday, January 12, 2008 10:31 AM > To: users@wicket.apache.org; [EMAIL PROTECTED] > Subject: Re: Type safe roles for AUTH-ROLES? > > wicket-auth-roles is just an example. its not really meant to be > something you drop into your application, for that there is > wicketstuff-wasp and wicketstuff-swarm > > -igor > > > On Jan 12, 2008 9:14 AM, Jeremy Thomerson <[EMAIL PROTECTED]> > wrote: > > I have several successful Wicket projects going, and in all have used my > own > > authorization strategy based on annotations. I'm just trying > > wicket-auth-roles for my next project, but seem confused by the apparent > > String-only roles. I already have a domain model where a User has a Role > or > > Role(s), where Role is a class. This promotes type-safety, etc, etc. > > > > But, I can't go: > > > > @AuthorizeInstantiation({ Role.ADMIN, Role.SUPER_USER, > > Role.MEMBER_SERVICE_REP, Role.MEMBER }) > > > > I also can't do: > > > > @AuthorizeInstantiation({ Role.ADMIN.name(), Role.SUPER_USER.name (), > > Role.MEMBER_SERVICE_REP.name(), Role.MEMBER.name() }) > > > > So, do I *have* to use Strings? Or is there another way? If I have to > use > > Strings, then I either have to redefine all my roles and change how the DB > > stores them, or just use the names of my own roles (i.e . "SUPER_USER" > which > > later my UserAuthorizer does a Role.valueOf(String) on), and risk typoes > > messing me up, or have Role.SUPER_USER and Role.SUPER_USER_NAME as a > public > > static final String. > > > > It's been a long week - I could be missing something. > > > > Thanks in advance. > > > > Jeremy > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ServerSide Java Symposium
Looks like I'm going, probably to talk about Wicket. On Jan 14, 2008 3:57 PM, Scott Swank <[EMAIL PROTECTED]> wrote: > Is anyone coming to Las Vegas this March? > > -- > Scott Swank > reformed mathematician > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Nick Heudecker Professional Wicket Training & Consulting http://www.systemmobile.com Eventful - Intelligent Event Management http://www.eventfulhq.com
ServerSide Java Symposium
Is anyone coming to Las Vegas this March? -- Scott Swank reformed mathematician - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Type safe roles for AUTH-ROLES?
heh. it is a functional example of a fully implemented authorization strategy. but it doesnt have any fancy features, nor will they be added to it in the future. it is meant to serve as an example, so users can see how to implement their own authorization strategies. what more do you want me to say exactly? -igor On Jan 14, 2008 1:51 PM, Dan Kaplan <[EMAIL PROTECTED]> wrote: > What? Really? Fuck. Can you please elaborate? Did I waste every second > of the time I spent looking at the examples on wicketstuff? I applied these > examples to my webapp. Did I implement some type of "pretend" authorization > strategy? > > > -Original Message- > From: Igor Vaynberg [mailto:[EMAIL PROTECTED] > Sent: Saturday, January 12, 2008 10:31 AM > To: users@wicket.apache.org; [EMAIL PROTECTED] > Subject: Re: Type safe roles for AUTH-ROLES? > > wicket-auth-roles is just an example. its not really meant to be > something you drop into your application, for that there is > wicketstuff-wasp and wicketstuff-swarm > > -igor > > > On Jan 12, 2008 9:14 AM, Jeremy Thomerson <[EMAIL PROTECTED]> > wrote: > > I have several successful Wicket projects going, and in all have used my > own > > authorization strategy based on annotations. I'm just trying > > wicket-auth-roles for my next project, but seem confused by the apparent > > String-only roles. I already have a domain model where a User has a Role > or > > Role(s), where Role is a class. This promotes type-safety, etc, etc. > > > > But, I can't go: > > > > @AuthorizeInstantiation({ Role.ADMIN, Role.SUPER_USER, > > Role.MEMBER_SERVICE_REP, Role.MEMBER }) > > > > I also can't do: > > > > @AuthorizeInstantiation({ Role.ADMIN.name(), Role.SUPER_USER.name (), > > Role.MEMBER_SERVICE_REP.name(), Role.MEMBER.name() }) > > > > So, do I *have* to use Strings? Or is there another way? If I have to > use > > Strings, then I either have to redefine all my roles and change how the DB > > stores them, or just use the names of my own roles (i.e . "SUPER_USER" > which > > later my UserAuthorizer does a Role.valueOf(String) on), and risk typoes > > messing me up, or have Role.SUPER_USER and Role.SUPER_USER_NAME as a > public > > static final String. > > > > It's been a long week - I could be missing something. > > > > Thanks in advance. > > > > Jeremy > > > > - > 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: Type safe roles for AUTH-ROLES?
What? Really? Fuck. Can you please elaborate? Did I waste every second of the time I spent looking at the examples on wicketstuff? I applied these examples to my webapp. Did I implement some type of "pretend" authorization strategy? -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Saturday, January 12, 2008 10:31 AM To: users@wicket.apache.org; [EMAIL PROTECTED] Subject: Re: Type safe roles for AUTH-ROLES? wicket-auth-roles is just an example. its not really meant to be something you drop into your application, for that there is wicketstuff-wasp and wicketstuff-swarm -igor On Jan 12, 2008 9:14 AM, Jeremy Thomerson <[EMAIL PROTECTED]> wrote: > I have several successful Wicket projects going, and in all have used my own > authorization strategy based on annotations. I'm just trying > wicket-auth-roles for my next project, but seem confused by the apparent > String-only roles. I already have a domain model where a User has a Role or > Role(s), where Role is a class. This promotes type-safety, etc, etc. > > But, I can't go: > > @AuthorizeInstantiation({ Role.ADMIN, Role.SUPER_USER, > Role.MEMBER_SERVICE_REP, Role.MEMBER }) > > I also can't do: > > @AuthorizeInstantiation({ Role.ADMIN.name(), Role.SUPER_USER.name (), > Role.MEMBER_SERVICE_REP.name(), Role.MEMBER.name() }) > > So, do I *have* to use Strings? Or is there another way? If I have to use > Strings, then I either have to redefine all my roles and change how the DB > stores them, or just use the names of my own roles (i.e . "SUPER_USER" which > later my UserAuthorizer does a Role.valueOf(String) on), and risk typoes > messing me up, or have Role.SUPER_USER and Role.SUPER_USER_NAME as a public > static final String. > > It's been a long week - I could be missing something. > > Thanks in advance. > > Jeremy > - 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: the flow of wicket
I agree with this. When I "seconded" earlier, it was because I thought this was an exposed part of the API that hadn't been documented. I didn't realize it was internal. -Original Message- From: Martijn Dashorst [mailto:[EMAIL PROTECTED] Sent: Saturday, January 12, 2008 7:57 AM To: users@wicket.apache.org Subject: Re: the flow of wicket I *strongly* disagree with your answer. The fact is that this information is only beneficial for a really very small portion of our user base. The documentation effort on the other hand is HUGE! And subject to change easily. From 1.1 to 1.2 we changed it quite considerably. And I have no doubt this will change again. I posit that 99% of all developers working on Wicket applications don't need to know this. In my company we have about 30 people working on wicket applications and I think 29 of them don't even know the different request targets. Why would they? There is no benefit in learning what the request cycle processor does in its 30 odd steps when your customer asks for a link that adds an item to a shopping cart. In fact it makes it more difficult to achieve your business goals. Asking the remaining 1% to do some homework themselves gives us the possibility to work on actual code, improving the framework and making things simpler, better, easier, faster, completer. Martijn On Jan 12, 2008 4:16 PM, Paolo Di Tommaso <[EMAIL PROTECTED]> wrote: > I disagree with this answer. > > The fact that request handling stuff is not a public api, is A GOOD REASON > because it should be documented better, not viceversa. > > And I really don't understand in which way this could prevent you to change > - eventually - in future wicket versions. > > I not a newbie user and I'm really a Wicket enthusiastic user and pleased to > be involved in its great community, but I have to admit that some topics are > still obscure. > > The request flow handling is one of the most important topic to know in a > web application framework, being so I think it would be very interesting to > have only a brief description, for example a sequence diagram showing the > components interaction starting from the WicketFilter (and/or the > WicketServlet) involved in a web request handling. > > Hiding this stuff or, even worse, asking the users to debug the framework to > understand what it should important to know I don't think is a good approach > because it is precisely this that leads to wrong assumptions, that could > break in future. > > Thank you, > > - Paolo > > > > > On Jan 11, 2008 2:09 AM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > > you guys want to know about internal implementation details. it has no > > publically exposed api, so why should you care? why should we document > > something that can change without affecting our users? does the jee > > spec detail how the request gets to the servlet? no, that is left up > > to the implementor of the servlet container. > > > > you want to know about it? set a break point in > > wicketfilter.dofilter() and walk the code. > > > > -igor > > > > > > On Jan 10, 2008 5:06 PM, Dan Kaplan <[EMAIL PROTECTED]> wrote: > > > seconded > > > > > > > > > -Original Message- > > > From: Beyonder Unknown [mailto:[EMAIL PROTECTED] > > > Sent: Thursday, January 10, 2008 5:05 PM > > > To: WICKET USER > > > Subject: the flow of wicket > > > > > > > > > Hi All, > > > > > > I am studying wicket from the WicketFilter to the WebApplication, but I > > > don't understand the concept of RequestCycleProcessor and how does it > > get > > > invoked. I read the "Wicket In Action" and "Pro Wicket" but the > > explanation > > > is not that detailed. Does anybody know of a primer with regards to how > > > Wicket process really works? I want to know the flow, from startup of > > the > > > servlet container, like what is being instantiated, and when request is > > > made. > > > > > > I can't seem to trace how RequestTarget being consumed by > > > RequestCycleProcessor, from the page. > > > > > > Thank you very much! > > > > > > Best, > > > Wen Tong > > > > > > -- > > > The only constant in life is change. > > > > > > > > > > > > > > > > > > > > > > > > > > Be a better friend, newshound, and > > > know-it-all with Yahoo! Mobile. Try it now. > > > http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ > > > > > > > > > - > > > 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: Ajax enabled radiogroup
thank you for testing -igor On Jan 14, 2008 1:43 PM, Martijn Lindhout <[EMAIL PROTECTED]> wrote: > ok, I did > > 1. a svn co http://svn.apache.org/repos/asf/wicket/trunk > 2. mvn install > 3. and build my project against wicket-1.0.3-SNAPSHOT > > the fix works. > > Thanx a lot Igor. > > > 2008/1/14, Igor Vaynberg <[EMAIL PROTECTED]>: > > > > ok, i applied the patch, let me know if the latest snapshot build > > works fine for you > > > > -igor > > > > > > On Jan 14, 2008 1:08 PM, Martijn Lindhout <[EMAIL PROTECTED]> > > wrote: > > > It works! Thanx a lot! > > > > > > > > > 2008/1/14, Igor Vaynberg <[EMAIL PROTECTED]>: > > > > > > > > how about this... > > > > > > > > https://issues.apache.org/jira/browse/WICKET-1271 > > > > > > > > -igor > > > > > > > > > > > > On Jan 14, 2008 12:46 PM, Martijn Lindhout <[EMAIL PROTECTED]> > > > > wrote: > > > > > Igor, > > > > > > > > > > I'm sorry, but could it be that the patch isn't visible to me? I > > just > > > > signed > > > > > up to ASF Jira to login, and I see no attachements at WICKET-1258 > > :-( > > > > > > > > > > 2008/1/14, Igor Vaynberg <[EMAIL PROTECTED]>: > > > > > > > > > > > > > > > > > the patch is attached to the jira issue i mentioned > > > > > > > > > > > > -igor > > > > > > > > > > > > > > > > > > On Jan 14, 2008 12:20 PM, Martijn Lindhout < > > [EMAIL PROTECTED]> > > > > > > wrote: > > > > > > > arg!!! You're right, 1.5 works. > > > > > > > > > > > > > > Ok Igor, do you have the change to commit or should I code it > > myself > > > > > > (would > > > > > > > take some more time, because I'm not an experienced JavaScript > > > > > > developer). > > > > > > > > > > > > > > 2008/1/14, Martin Funk <[EMAIL PROTECTED]>: > > > > > > > > > > > > > > > > > > > > > > > what does > > > > > > > > > > > > > > > > java -version > > > > > > > > > > > > > > > > give you. > > > > > > > > > > > > > > > > I think on version 1.6 the tests still go boink like that. > > > > > > > > Your jdk needs to be 1.5. > > > > > > > > > > > > > > > > mf > > > > > > > > > > > > > > > > Martijn Lindhout schrieb: > > > > > > > > > unfortunately, I got Maven build errors doing just a mvn > > install > > > > > > from a > > > > > > > > > 'fresh' download. Any idea? > > > > > > > > > > > > > > > > > > [surefire] Running org.apache.wicket.ajax.DomReadyOrderTest > > > > > > > > > 7c7 > > > > > > > > > < ]]> > > > > > > > > > > > > > --- > > > > > > > > > > > > > > > > > >> ]]> > > > > > > > > > > > > > > > > > > > > > > [surefire] Tests run: 1, Failures: 1, Errors: 0, Time > > elapsed: > > > > 0.017sec > > > > > > > > > FAILURE !! > > > > > > > > > [surefire] Running > > > > > > org.apache.wicket.ajax.AjaxBehaviorAndMetaDataTest > > > > > > > > > [surefire] Tests run: 1, Failures: 0, Errors: 0, Time > > elapsed: > > > > 0.006sec > > > > > > > > > [surefire] Running > > org.apache.wicket.ajax.AjaxRequestTargetTest > > > > > > > > > 2c2 > > > > > > > > > <
Re: Ajax enabled radiogroup
ok, I did 1. a svn co http://svn.apache.org/repos/asf/wicket/trunk 2. mvn install 3. and build my project against wicket-1.0.3-SNAPSHOT the fix works. Thanx a lot Igor. 2008/1/14, Igor Vaynberg <[EMAIL PROTECTED]>: > > ok, i applied the patch, let me know if the latest snapshot build > works fine for you > > -igor > > > On Jan 14, 2008 1:08 PM, Martijn Lindhout <[EMAIL PROTECTED]> > wrote: > > It works! Thanx a lot! > > > > > > 2008/1/14, Igor Vaynberg <[EMAIL PROTECTED]>: > > > > > > how about this... > > > > > > https://issues.apache.org/jira/browse/WICKET-1271 > > > > > > -igor > > > > > > > > > On Jan 14, 2008 12:46 PM, Martijn Lindhout <[EMAIL PROTECTED]> > > > wrote: > > > > Igor, > > > > > > > > I'm sorry, but could it be that the patch isn't visible to me? I > just > > > signed > > > > up to ASF Jira to login, and I see no attachements at WICKET-1258 > :-( > > > > > > > > 2008/1/14, Igor Vaynberg <[EMAIL PROTECTED]>: > > > > > > > > > > > > > > the patch is attached to the jira issue i mentioned > > > > > > > > > > -igor > > > > > > > > > > > > > > > On Jan 14, 2008 12:20 PM, Martijn Lindhout < > [EMAIL PROTECTED]> > > > > > wrote: > > > > > > arg!!! You're right, 1.5 works. > > > > > > > > > > > > Ok Igor, do you have the change to commit or should I code it > myself > > > > > (would > > > > > > take some more time, because I'm not an experienced JavaScript > > > > > developer). > > > > > > > > > > > > 2008/1/14, Martin Funk <[EMAIL PROTECTED]>: > > > > > > > > > > > > > > > > > > > > what does > > > > > > > > > > > > > > java -version > > > > > > > > > > > > > > give you. > > > > > > > > > > > > > > I think on version 1.6 the tests still go boink like that. > > > > > > > Your jdk needs to be 1.5. > > > > > > > > > > > > > > mf > > > > > > > > > > > > > > Martijn Lindhout schrieb: > > > > > > > > unfortunately, I got Maven build errors doing just a mvn > install > > > > > from a > > > > > > > > 'fresh' download. Any idea? > > > > > > > > > > > > > > > > [surefire] Running org.apache.wicket.ajax.DomReadyOrderTest > > > > > > > > 7c7 > > > > > > > > < ]]> > > > > > > > > > > > --- > > > > > > > > > > > > > > > >> ]]> > > > > > > > > > > > > > > > > > > > [surefire] Tests run: 1, Failures: 1, Errors: 0, Time > elapsed: > > > 0.017sec > > > > > > > > FAILURE !! > > > > > > > > [surefire] Running > > > > > org.apache.wicket.ajax.AjaxBehaviorAndMetaDataTest > > > > > > > > [surefire] Tests run: 1, Failures: 0, Errors: 0, Time > elapsed: > > > 0.006sec > > > > > > > > [surefire] Running > org.apache.wicket.ajax.AjaxRequestTargetTest > > > > > > > > 2c2 > > > > > > > > <
Replacement for 1.2's IApplicationSettings.getContextPath()?
I'm finally converting from 1.2 to 1.3 and have gotten down to one compilation error! I need to find a way to replace a call to IApplicationSettings.getContextPath() I understand that all URLs are now relative, but I'm using this to pass to Javascript, something like this: HTML: var contextPath = ""; // ... // inside an onLoad: img.location = waitImage: contextPath + "/images/wait.gif"; // ... And in Java: String contextPath = Application.get().getApplicationSettings() .getContextPath(); add(new StringHeaderContributor("" + contextPath = '" + contextPath + "/';")); This allows my Javascript to work in the HTML files and in the deployed application. Is there a simple substitute for this? Thanks, -- Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ajax enabled radiogroup
On Mon, 2008-01-14 at 22:10 +0100, Martijn Lindhout wrote: > I used this code to test it (sorry for the Dutch words). I can't resist.. (You should be sorry, but at least it's not Skånska) > List choices = Arrays.asList(new String[]{"Jepps", "Nepps"}); I've yet to look at all the post, but why do I feel there should be an enum floating around.. ./C - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Shout more about security advantages of Wicket?
YES! Sam Hough wrote: > > It has only just struck me how much more secure Wicket is out of the box > than struts, spring, GWT etc. The features list doesn't really seem to > drive this point home... > > Maybe add really clear example like: "Equivalent to not having pointer > arithmetic in Java. e.g. HTTP requests specify which option from a select > box to use rather than allowing arbitrary values to be sent" > > Cheers > > Sam > -- View this message in context: http://www.nabble.com/Shout-more-about-security-advantages-of-Wicket--tp14800934p14814991.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
WicketTester Doesn't Support setDefaultFormProcessing(false)
Writing some unit tests and I have an AjaxFallbackButton that I want to call. I have tried these 2 methods: form.submit("rootViewPanel:addOrganization"); tester.executeAjaxEvent("meetingForm:inputForm:rootViewPanel:addOrganization", "onclick"); Neither seems to work. They both seem to want to submit the entire form and perform validation. I was looking at the source for BaseWicketTester and noticed that in executeAjaxEvent(), it always tries to submit the form if the behavior is a AjaxFormSubmitBehavior. This wouldn't be correct in the case of when you set setDefaultFormProcessing(false) on the button. if (ajaxEventBehavior instanceof AjaxFormSubmitBehavior) Thoughts? I can't find any other posts here dealing with this topic. -- View this message in context: http://www.nabble.com/WicketTester-Doesn%27t-Support-setDefaultFormProcessing%28false%29-tp14814895p14814895.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ajax enabled radiogroup
ok, i applied the patch, let me know if the latest snapshot build works fine for you -igor On Jan 14, 2008 1:08 PM, Martijn Lindhout <[EMAIL PROTECTED]> wrote: > It works! Thanx a lot! > > > 2008/1/14, Igor Vaynberg <[EMAIL PROTECTED]>: > > > > how about this... > > > > https://issues.apache.org/jira/browse/WICKET-1271 > > > > -igor > > > > > > On Jan 14, 2008 12:46 PM, Martijn Lindhout <[EMAIL PROTECTED]> > > wrote: > > > Igor, > > > > > > I'm sorry, but could it be that the patch isn't visible to me? I just > > signed > > > up to ASF Jira to login, and I see no attachements at WICKET-1258 :-( > > > > > > 2008/1/14, Igor Vaynberg <[EMAIL PROTECTED]>: > > > > > > > > > > > the patch is attached to the jira issue i mentioned > > > > > > > > -igor > > > > > > > > > > > > On Jan 14, 2008 12:20 PM, Martijn Lindhout <[EMAIL PROTECTED]> > > > > wrote: > > > > > arg!!! You're right, 1.5 works. > > > > > > > > > > Ok Igor, do you have the change to commit or should I code it myself > > > > (would > > > > > take some more time, because I'm not an experienced JavaScript > > > > developer). > > > > > > > > > > 2008/1/14, Martin Funk <[EMAIL PROTECTED]>: > > > > > > > > > > > > > > > > > what does > > > > > > > > > > > > java -version > > > > > > > > > > > > give you. > > > > > > > > > > > > I think on version 1.6 the tests still go boink like that. > > > > > > Your jdk needs to be 1.5. > > > > > > > > > > > > mf > > > > > > > > > > > > Martijn Lindhout schrieb: > > > > > > > unfortunately, I got Maven build errors doing just a mvn install > > > > from a > > > > > > > 'fresh' download. Any idea? > > > > > > > > > > > > > > [surefire] Running org.apache.wicket.ajax.DomReadyOrderTest > > > > > > > 7c7 > > > > > > > < ]]> > > > > > > > > > --- > > > > > > > > > > > > > >> ]]> > > > > > > > > > > > > > > > > [surefire] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: > > 0.017sec > > > > > > > FAILURE !! > > > > > > > [surefire] Running > > > > org.apache.wicket.ajax.AjaxBehaviorAndMetaDataTest > > > > > > > [surefire] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: > > 0.006sec > > > > > > > [surefire] Running org.apache.wicket.ajax.AjaxRequestTargetTest > > > > > > > 2c2 > > > > > > > <
Re: Raw urls using WicketTester 1.3.0
Hi! Help, anybody familiar enough with WicketTester to help me out with "browsing" my wicket application? > > My main question is: how to process multiple consecutive "raw" > requests using WicketTester, during the same user session. > > By "raw" I mean page requests that do not result from clicking links > on pages, but instead, they would be equivalent to the user simply > typing them into the browser (like the startPage). > > My scheme is as follows: > > We assume the user is logged in, but certain member functionality > (MemberArea -page) is not accessible until email has been confirmed. > > 1. In the Unit-test the user starts a session with > wicketTester.startPage(MemberArea.class); > > 2. Authentication scheme remembers the user and logs her in. > > 3. Authentication scheme, however, notices the user has not confirmed > her email, and issues a throw new > RestartResponseAtInterceptPageException(EmailConfirmationPending.class); > > 4. In order to be allowed to continue, the user is supposed visit a > bookmarkable email confirmation link > http:///EmailConfirmation/confirmationKey > > If the email confirmation is approved, the EmailConfirmation -page > should redirect the user back to the originally requested content > (i.e., MemberArea -page in this test case). > > This is the scenario we want to be unit-tested. > > Now, if she was using a browser, it would be easy: just type the url > into the browser. However, with the wicketTester, I cannot seem to > find a way of accomplishing this. I cannot embed the link onto the web > page, because this would not correspond to the standard scheme: the > link is supposed to arrive separately via email. > > I have tried the following approaches with results indicated below: > a) calling new WicketTester(myApplication).startPage(new > EmailConfirmation(pageParameters)), which results in a completely > cleared PageMap and the method continueToOriginalDestination() in > EmailConfirmation fails for some reason. > Instead, wicketTester.assertRenderedPage(MemberArea.class) should > return true, but it does not because the EmailConfirmation.class is > rendered. > > b) calling wicketTester.setupRequestAndResponse(); and > wicketTester.getLastRenderedPage().setResponsePage(new > EmailConfirmation(pageParameters)), results in a slightly better > functionality. > However, instead of continueToOriginalDestination() on the > EmailConfirmation page rendering the MemberArea page, it now renders > the EmailConfirmationPending -page > which intercepted the request. Not good. > > c) another try, calling wicketTester.setupRequestAndResponse() and > wicketTester.getServletRequest().setRequestToComponent(new > EmailConfirmation(pageParameters)) gives the same results as b). > > If I perform the same tests with a browser, I get the expected > results. Is this somehow not the proper way to handle the raw > requests with wicketTester and expecting the PageMap to be updated > accordingly? > > Hou should I properly implement such tests? Or is it a bug/missing > feature in wicket? > > Thank you in advance! > > -- > Martin Makundi > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ajax enabled radiogroup
I used this code to test it (sorry for the Dutch words). The form to which the group is ultimately added is in a parent component. Before this patch I always saw Label l1, now it is switching between l1 and l2. public class InvoerenNatuurlijkePersoonPanel extends Panel { private Label l1; private Label l2; private boolean theValue = false; public InvoerenNatuurlijkePersoonPanel(String id) { super(id); List choices = Arrays.asList(new String[]{"Ja", "Nee"}); JaNeeToBooleanConvertingModel model = new JaNeeToBooleanConvertingModel(new PropertyModel(this, "theValue")); RadioGroup rg = new RadioGroup("group", model); rg.add(new AjaxFormChoiceComponentUpdatingBehavior(){ protected void onUpdate(AjaxRequestTarget target) { if (InvoerenNatuurlijkePersoonPanel.this.theValue) { l1.setVisible(false); l2.setVisible(true); } else { l1.setVisible(true); l2.setVisible(false); } target.addComponent(l1); target.addComponent(l2); } }); ListView choiceList = new ListView("choiceList", choices){ protected void populateItem(ListItem item) { item.add(new Radio("radio", item.getModel())); item.add(new Label("number", item.getModelObjectAsString ())); } }.setReuseItems(true); rg.add(choiceList); add(rg); l1 = new Label("l1", "Binnenlands"); add(l1.setOutputMarkupPlaceholderTag(true)); l2 = new Label("l2", "Buitenlands"); l2.setVisible(false); add(l2.setOutputMarkupPlaceholderTag(true)); } } 2008/1/14, Martijn Lindhout <[EMAIL PROTECTED]>: > > It works! Thanx a lot! > > 2008/1/14, Igor Vaynberg <[EMAIL PROTECTED]>: > > > > how about this... > > > > https://issues.apache.org/jira/browse/WICKET-1271 > > > > -igor > > > > > > On Jan 14, 2008 12:46 PM, Martijn Lindhout < [EMAIL PROTECTED]> > > wrote: > > > Igor, > > > > > > I'm sorry, but could it be that the patch isn't visible to me? I just > > signed > > > up to ASF Jira to login, and I see no attachements at WICKET-1258 :-( > > > > > > 2008/1/14, Igor Vaynberg <[EMAIL PROTECTED]>: > > > > > > > > > > > the patch is attached to the jira issue i mentioned > > > > > > > > -igor > > > > > > > > > > > > On Jan 14, 2008 12:20 PM, Martijn Lindhout <[EMAIL PROTECTED] > > > > > > > wrote: > > > > > arg!!! You're right, 1.5 works. > > > > > > > > > > Ok Igor, do you have the change to commit or should I code it > > myself > > > > (would > > > > > take some more time, because I'm not an experienced JavaScript > > > > developer). > > > > > > > > > > 2008/1/14, Martin Funk <[EMAIL PROTECTED]>: > > > > > > > > > > > > > > > > > what does > > > > > > > > > > > > java -version > > > > > > > > > > > > give you. > > > > > > > > > > > > I think on version 1.6 the tests still go boink like that. > > > > > > Your jdk needs to be 1.5. > > > > > > > > > > > > mf > > > > > > > > > > > > Martijn Lindhout schrieb: > > > > > > > unfortunately, I got Maven build errors doing just a mvn > > install > > > > from a > > > > > > > 'fresh' download. Any idea? > > > > > > > > > > > > > > [surefire] Running org.apache.wicket.ajax.DomReadyOrderTest > > > > > > > 7c7 > > > > > > > < ]]> > > > > > > > > > > > --- > > > > > > > > > > > > > >> ]]> > > > > > > > > > > > > > > > > > > [surefire] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: > > 0.017sec > > > > > > > FAILURE !! > > > > > > > [surefire] Running > > > > org.apache.wicket.ajax.AjaxBehaviorAndMetaDataTest > > > > > > > [surefire] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: > > 0.006sec > > > > > > > [surefire] Running > > org.apache.wicket.ajax.AjaxRequestTargetTest > > > > > > > 2c2 > > > > > > > <
Re: Wicket 1.4/2.0/nextStep
If you want to know when branches like this happen, subscribe to the dev list. We always vote for these kind of decisions, and for releases etc. Martijn On 1/14/08, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > We haven't started it. > > We wait with starting new development until 1.3.1 or even 1.3.2 is > released. We don't want to maintain two branches and first want to > make the issue list for 1.3 a lot smaller before branching. > > Martijn > > On 1/14/08, Stefan Lindner <[EMAIL PROTECTED]> wrote: > > Where can I find the subversion branch for wicket's next release? At > > http://svn.apache.org/repos/asf/wicket/trunk/jdk-1.5/ I can't find the > > wicket base package. > > > > Stefan > > > > - > > 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 is released > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0 > -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket 1.4/2.0/nextStep
We haven't started it. We wait with starting new development until 1.3.1 or even 1.3.2 is released. We don't want to maintain two branches and first want to make the issue list for 1.3 a lot smaller before branching. Martijn On 1/14/08, Stefan Lindner <[EMAIL PROTECTED]> wrote: > Where can I find the subversion branch for wicket's next release? At > http://svn.apache.org/repos/asf/wicket/trunk/jdk-1.5/ I can't find the > wicket base package. > > Stefan > > - > 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 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ajax enabled radiogroup
It works! Thanx a lot! 2008/1/14, Igor Vaynberg <[EMAIL PROTECTED]>: > > how about this... > > https://issues.apache.org/jira/browse/WICKET-1271 > > -igor > > > On Jan 14, 2008 12:46 PM, Martijn Lindhout <[EMAIL PROTECTED]> > wrote: > > Igor, > > > > I'm sorry, but could it be that the patch isn't visible to me? I just > signed > > up to ASF Jira to login, and I see no attachements at WICKET-1258 :-( > > > > 2008/1/14, Igor Vaynberg <[EMAIL PROTECTED]>: > > > > > > > > the patch is attached to the jira issue i mentioned > > > > > > -igor > > > > > > > > > On Jan 14, 2008 12:20 PM, Martijn Lindhout <[EMAIL PROTECTED]> > > > wrote: > > > > arg!!! You're right, 1.5 works. > > > > > > > > Ok Igor, do you have the change to commit or should I code it myself > > > (would > > > > take some more time, because I'm not an experienced JavaScript > > > developer). > > > > > > > > 2008/1/14, Martin Funk <[EMAIL PROTECTED]>: > > > > > > > > > > > > > > what does > > > > > > > > > > java -version > > > > > > > > > > give you. > > > > > > > > > > I think on version 1.6 the tests still go boink like that. > > > > > Your jdk needs to be 1.5. > > > > > > > > > > mf > > > > > > > > > > Martijn Lindhout schrieb: > > > > > > unfortunately, I got Maven build errors doing just a mvn install > > > from a > > > > > > 'fresh' download. Any idea? > > > > > > > > > > > > [surefire] Running org.apache.wicket.ajax.DomReadyOrderTest > > > > > > 7c7 > > > > > > < ]]> > > > > > > > --- > > > > > > > > > > > >> ]]> > > > > > > > > > > > > > [surefire] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: > 0.017sec > > > > > > FAILURE !! > > > > > > [surefire] Running > > > org.apache.wicket.ajax.AjaxBehaviorAndMetaDataTest > > > > > > [surefire] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: > 0.006sec > > > > > > [surefire] Running org.apache.wicket.ajax.AjaxRequestTargetTest > > > > > > 2c2 > > > > > > <
Wicket 1.4/2.0/nextStep
Where can I find the subversion branch for wicket's next release? At http://svn.apache.org/repos/asf/wicket/trunk/jdk-1.5/ I can't find the wicket base package. Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HybridUrlCodingStrategy with trailing slash...
needs a check in the constructor of the strategy that throws illegalargumentexception, please open a jira -igor On Jan 14, 2008 12:43 PM, Ryan McKinley <[EMAIL PROTECTED]> wrote: > Hello- > > I ran into a hickup with HybridUrlCodingStrategy and just want to run it > by you all. > > It looks like mounting a page with a trailing '/' causes things to get > redirected to a page it cant find: > mount( new HybridUrlCodingStrategy( "/aaa/", Index.class) ); > mount( new HybridUrlCodingStrategy( "aaa/", Index.class) ); > > These paths work fine for BookmarkablePageRequestTargetUrlCodingStrategy. > > I don't know if its a bug or just needs an added note in the javadoc > > > Thanks > ryan > > - > 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: Ajax enabled radiogroup
how about this... https://issues.apache.org/jira/browse/WICKET-1271 -igor On Jan 14, 2008 12:46 PM, Martijn Lindhout <[EMAIL PROTECTED]> wrote: > Igor, > > I'm sorry, but could it be that the patch isn't visible to me? I just signed > up to ASF Jira to login, and I see no attachements at WICKET-1258 :-( > > 2008/1/14, Igor Vaynberg <[EMAIL PROTECTED]>: > > > > > the patch is attached to the jira issue i mentioned > > > > -igor > > > > > > On Jan 14, 2008 12:20 PM, Martijn Lindhout <[EMAIL PROTECTED]> > > wrote: > > > arg!!! You're right, 1.5 works. > > > > > > Ok Igor, do you have the change to commit or should I code it myself > > (would > > > take some more time, because I'm not an experienced JavaScript > > developer). > > > > > > 2008/1/14, Martin Funk <[EMAIL PROTECTED]>: > > > > > > > > > > > what does > > > > > > > > java -version > > > > > > > > give you. > > > > > > > > I think on version 1.6 the tests still go boink like that. > > > > Your jdk needs to be 1.5. > > > > > > > > mf > > > > > > > > Martijn Lindhout schrieb: > > > > > unfortunately, I got Maven build errors doing just a mvn install > > from a > > > > > 'fresh' download. Any idea? > > > > > > > > > > [surefire] Running org.apache.wicket.ajax.DomReadyOrderTest > > > > > 7c7 > > > > > < ]]> > > > > > --- > > > > > > > > > >> ]]> > > > > > > > > > > [surefire] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: > > > > > 0.017sec > > > > > FAILURE !! > > > > > [surefire] Running > > org.apache.wicket.ajax.AjaxBehaviorAndMetaDataTest > > > > > [surefire] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: > > > > > 0.006sec > > > > > [surefire] Running org.apache.wicket.ajax.AjaxRequestTargetTest > > > > > 2c2 > > > > > <
HybridUrlCodingStrategy with trailing slash...
Hello- I ran into a hickup with HybridUrlCodingStrategy and just want to run it by you all. It looks like mounting a page with a trailing '/' causes things to get redirected to a page it cant find: mount( new HybridUrlCodingStrategy( "/aaa/", Index.class) ); mount( new HybridUrlCodingStrategy( "aaa/", Index.class) ); These paths work fine for BookmarkablePageRequestTargetUrlCodingStrategy. I don't know if its a bug or just needs an added note in the javadoc Thanks ryan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ajax enabled radiogroup
Igor, I'm sorry, but could it be that the patch isn't visible to me? I just signed up to ASF Jira to login, and I see no attachements at WICKET-1258 :-( 2008/1/14, Igor Vaynberg <[EMAIL PROTECTED]>: > > the patch is attached to the jira issue i mentioned > > -igor > > > On Jan 14, 2008 12:20 PM, Martijn Lindhout <[EMAIL PROTECTED]> > wrote: > > arg!!! You're right, 1.5 works. > > > > Ok Igor, do you have the change to commit or should I code it myself > (would > > take some more time, because I'm not an experienced JavaScript > developer). > > > > 2008/1/14, Martin Funk <[EMAIL PROTECTED]>: > > > > > > > > what does > > > > > > java -version > > > > > > give you. > > > > > > I think on version 1.6 the tests still go boink like that. > > > Your jdk needs to be 1.5. > > > > > > mf > > > > > > Martijn Lindhout schrieb: > > > > unfortunately, I got Maven build errors doing just a mvn install > from a > > > > 'fresh' download. Any idea? > > > > > > > > [surefire] Running org.apache.wicket.ajax.DomReadyOrderTest > > > > 7c7 > > > > < ]]> > > > > --- > > > > > > > >> ]]> > > > > > > > > [surefire] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.017sec > > > > FAILURE !! > > > > [surefire] Running > org.apache.wicket.ajax.AjaxBehaviorAndMetaDataTest > > > > [surefire] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.006sec > > > > [surefire] Running org.apache.wicket.ajax.AjaxRequestTargetTest > > > > 2c2 > > > > <
new release of wicket-contrib-javaee
hi I have just created a new release of wicket-contrib-javaee. I have fixed POM file and made it compatible with wicket 1.3. Here is wiki page http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-javaee And to answer your question about EJB references in web.xml. They are required because we need to lookup EJBs to create proxies for them. In JSF it's responsibility of app. server to inject EJB references. Maris if you use EJB3 you really want to use the wicket-contrib-javaee project (wicketstuff) all you need to do is call you @EJB and rest is handled automatically ! That project needs an update for 1.3 Add wicket-ioc dep / remove spring dep + some other unneeded deps / fix package names, I contacted the author but got no response. Plus you have to define all beans in the web.xml which is not needed when you work with jsf for example (tested on glassfish). Does anybody know why that is? but since this thread is about jpa+guice+wicket on lightweight container and not j2ee + wicket I suppose that wicket-contrib-javaee is not what they are looking for. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ajax enabled radiogroup
the patch is attached to the jira issue i mentioned -igor On Jan 14, 2008 12:20 PM, Martijn Lindhout <[EMAIL PROTECTED]> wrote: > arg!!! You're right, 1.5 works. > > Ok Igor, do you have the change to commit or should I code it myself (would > take some more time, because I'm not an experienced JavaScript developer). > > 2008/1/14, Martin Funk <[EMAIL PROTECTED]>: > > > > > what does > > > > java -version > > > > give you. > > > > I think on version 1.6 the tests still go boink like that. > > Your jdk needs to be 1.5. > > > > mf > > > > Martijn Lindhout schrieb: > > > unfortunately, I got Maven build errors doing just a mvn install from a > > > 'fresh' download. Any idea? > > > > > > [surefire] Running org.apache.wicket.ajax.DomReadyOrderTest > > > 7c7 > > > < ]]> > > > --- > > > > > >> ]]> > > > > > > [surefire] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.017 sec > > > FAILURE !! > > > [surefire] Running org.apache.wicket.ajax.AjaxBehaviorAndMetaDataTest > > > [surefire] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.006 sec > > > [surefire] Running org.apache.wicket.ajax.AjaxRequestTargetTest > > > 2c2 > > > <
Re: PagingNavigator refactoring request
would you just override all the newPaging* factory methods? perhaps if you paste your code and what you cannot do i might help you more, right now i just dont see it :| -igor On Jan 14, 2008 12:03 PM, behlma <[EMAIL PROTECTED]> wrote: > > Hi Igor, > I created a BookmarkablePagingNavigator component. Its constructor takes a > PageParameter object, that needs - of course - to be set *before*: > > add(newPagingNavigationLink("first", pageable, 0)); > add(newPagingNavigationIncrementLink("prev", pageable, -1)); > add(newPagingNavigationIncrementLink("next", pageable, 1)); > add(newPagingNavigationLink("last", pageable, -1)); > > as they are all bookmarkable links. > > > > > igor.vaynberg wrote: > > > > what exactly is the usecase? > > > > -igor > > > > > > On Jan 14, 2008 12:49 AM, behlma <[EMAIL PROTECTED]> wrote: > >> > >> Not such a good idea, huh? :) > >> > >> > >> > >> > >> > >> behlma wrote: > >> > > >> > Hi guys, > >> > would it be possible to change PagingNavigator's constructor from > >> > > >> > public PagingNavigator(final String id, final IPageable pageable, > >> > final IPagingLabelProvider labelProvider) > >> > { > >> > super(id); > >> > > >> > > >> > // Get the navigation bar and add it to the hierarchy > >> > this.pagingNavigation = newNavigation(pageable, > >> labelProvider); > >> > add(pagingNavigation); > >> > > >> > // Add additional page links > >> > add(newPagingNavigationLink("first", pageable, 0)); > >> > add(newPagingNavigationIncrementLink("prev", pageable, > >> -1)); > >> > add(newPagingNavigationIncrementLink("next", pageable, > >> 1)); > >> > add(newPagingNavigationLink("last", pageable, -1)); > >> > } > >> > > >> > /** > >> > > >> > > >> > to > >> > > >> > > >> > public PagingNavigator(final String id, final IPageable pageable, > >> > final IPagingLabelProvider labelProvider) > >> > { > >> > super(id); > >> > initNavigator(pageable, labelProvider); > >> > } > >> > > >> > > >> > protected initNavigator(pageable, provider) { > >> > this.pagingNavigation = newNavigation(pageable, > >> labelProvider); > >> > add(pagingNavigation); > >> > > >> > } > >> > > >> > > >> > I'm asking because I subclassed PagingNavigator and I have additional > >> > constructor parameters I want to pass to the constructor "before" > >> invoking > >> > "initNavigator". > >> > > >> > > >> > Thanks for your time! > >> > > >> > > >> > >> -- > >> View this message in context: > >> http://www.nabble.com/PagingNavigator-refactoring-request-tp14783646p14797267.html > >> > >> Sent from the Wicket - User mailing list archive at Nabble.com. > >> > >> > >> - > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > -- > View this message in context: > http://www.nabble.com/PagingNavigator-refactoring-request-tp14783646p14812182.html > > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ajax enabled radiogroup
arg!!! You're right, 1.5 works. Ok Igor, do you have the change to commit or should I code it myself (would take some more time, because I'm not an experienced JavaScript developer). 2008/1/14, Martin Funk <[EMAIL PROTECTED]>: > > what does > > java -version > > give you. > > I think on version 1.6 the tests still go boink like that. > Your jdk needs to be 1.5. > > mf > > Martijn Lindhout schrieb: > > unfortunately, I got Maven build errors doing just a mvn install from a > > 'fresh' download. Any idea? > > > > [surefire] Running org.apache.wicket.ajax.DomReadyOrderTest > > 7c7 > > < ]]> > > --- > > > >> ]]> > > > > [surefire] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.017 sec > > FAILURE !! > > [surefire] Running org.apache.wicket.ajax.AjaxBehaviorAndMetaDataTest > > [surefire] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.006 sec > > [surefire] Running org.apache.wicket.ajax.AjaxRequestTargetTest > > 2c2 > > <
Re: Ajax enabled radiogroup
what does java -version give you. I think on version 1.6 the tests still go boink like that. Your jdk needs to be 1.5. mf Martijn Lindhout schrieb: unfortunately, I got Maven build errors doing just a mvn install from a 'fresh' download. Any idea? [surefire] Running org.apache.wicket.ajax.DomReadyOrderTest 7c7 < ]]> --- ]]> [surefire] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.017 sec FAILURE !! [surefire] Running org.apache.wicket.ajax.AjaxBehaviorAndMetaDataTest [surefire] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.006 sec [surefire] Running org.apache.wicket.ajax.AjaxRequestTargetTest 2c2 <
Re: PagingNavigator refactoring request
Hi Igor, I created a BookmarkablePagingNavigator component. Its constructor takes a PageParameter object, that needs - of course - to be set *before*: add(newPagingNavigationLink("first", pageable, 0)); add(newPagingNavigationIncrementLink("prev", pageable, -1)); add(newPagingNavigationIncrementLink("next", pageable, 1)); add(newPagingNavigationLink("last", pageable, -1)); as they are all bookmarkable links. igor.vaynberg wrote: > > what exactly is the usecase? > > -igor > > > On Jan 14, 2008 12:49 AM, behlma <[EMAIL PROTECTED]> wrote: >> >> Not such a good idea, huh? :) >> >> >> >> >> >> behlma wrote: >> > >> > Hi guys, >> > would it be possible to change PagingNavigator's constructor from >> > >> > public PagingNavigator(final String id, final IPageable pageable, >> > final IPagingLabelProvider labelProvider) >> > { >> > super(id); >> > >> > >> > // Get the navigation bar and add it to the hierarchy >> > this.pagingNavigation = newNavigation(pageable, >> labelProvider); >> > add(pagingNavigation); >> > >> > // Add additional page links >> > add(newPagingNavigationLink("first", pageable, 0)); >> > add(newPagingNavigationIncrementLink("prev", pageable, >> -1)); >> > add(newPagingNavigationIncrementLink("next", pageable, >> 1)); >> > add(newPagingNavigationLink("last", pageable, -1)); >> > } >> > >> > /** >> > >> > >> > to >> > >> > >> > public PagingNavigator(final String id, final IPageable pageable, >> > final IPagingLabelProvider labelProvider) >> > { >> > super(id); >> > initNavigator(pageable, labelProvider); >> > } >> > >> > >> > protected initNavigator(pageable, provider) { >> > this.pagingNavigation = newNavigation(pageable, >> labelProvider); >> > add(pagingNavigation); >> > >> > } >> > >> > >> > I'm asking because I subclassed PagingNavigator and I have additional >> > constructor parameters I want to pass to the constructor "before" >> invoking >> > "initNavigator". >> > >> > >> > Thanks for your time! >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/PagingNavigator-refactoring-request-tp14783646p14797267.html >> >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/PagingNavigator-refactoring-request-tp14783646p14812182.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ajax enabled radiogroup
unfortunately, I got Maven build errors doing just a mvn install from a 'fresh' download. Any idea? [surefire] Running org.apache.wicket.ajax.DomReadyOrderTest 7c7 < ]]> --- > ]]> [surefire] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.017 sec FAILURE !! [surefire] Running org.apache.wicket.ajax.AjaxBehaviorAndMetaDataTest [surefire] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.006 sec [surefire] Running org.apache.wicket.ajax.AjaxRequestTargetTest 2c2 <
Re: Ajax enabled radiogroup
if you dont mind testing the patch that would be great... -igor On Jan 14, 2008 11:18 AM, Martijn Lindhout <[EMAIL PROTECTED]> wrote: > Uh.. oh, I'm sorry. Do you mean if I changed the source according to Matt > Clark's comments? No. > I deduced from the discussion that that would be the problem. > > Of course I can download the source to apply the patch... > > > 2008/1/14, Igor Vaynberg <[EMAIL PROTECTED]>: > > > > so you applied the patch and it worked? if so i can commit it now and > > you can use the snapshot build > > > > -igor > > > > > > On Jan 14, 2008 10:19 AM, Martijn Lindhout <[EMAIL PROTECTED]> > > wrote: > > > yep, you're right. Guess I'll have to wait till 1.3.1? ;-) > > > > > > 2008/1/14, Igor Vaynberg <[EMAIL PROTECTED]>: > > > > > > > > > > > could this be it? > > > > > > > > https://issues.apache.org/jira/browse/WICKET-1258 > > > > > > > > also, the form should not be submitted, only the value for that one > > > > radio component. > > > > > > > > -igor > > > > > > > > > > > > On Jan 14, 2008 5:51 AM, Martijn Lindhout <[EMAIL PROTECTED]> > > > > wrote: > > > > > When I do this, the underlying model object isn't updated. I used > > the > > > > Wicket > > > > > Ajax Debug and see that the form isn't posted, so the modelobject > > > > doesn't > > > > > change. > > > > > > > > > > 2008/1/14, SantiagoA <[EMAIL PROTECTED]>: > > > > > > > > > > > > > > > > > > > > > > > Hi, > > > > > > what javascript method do you use? onclick, onMouseDown, > > onMouseUp? > > > > > > I add AjaxFormComponentUpdatingBehaviour("onchange") to Textfields > > and > > > > it > > > > > > works fine. > > > > > > Using Radios in radioGroup i had to use > > > > > > > > > > > > radio.add(new AjaxEventBehavior("onchange"){ > > > > > > private static final long serialVersionUID = > > > > > > -5356375735369681460L; > > > > > > @Override > > > > > > protected void onEvent(AjaxRequestTarget target) { > > > > > > do something; > > > > > > target.addComponent(panelA); > > > > > > target.addComponent(panelB); > > > > > >} > > > > > > works fine for me. > > > > > > cheers, > > > > > > santiago > > > > > > > > > > > > > > > > > > > > > > > > Martijn Lindhout wrote: > > > > > > > > > > > > > > Hi all > > > > > > > I'm lost. I've tried all kinds of combinations to get the > > following > > > > > > > working, > > > > > > > but I either received exceptions or nothing happened. So back to > > > > what I > > > > > > > want: > > > > > > > > > > > > > > I have a form with a question, which possible answers are 'yes' > > or > > > > 'no'. > > > > > > I > > > > > > > want to use a radio choice for it. Depending on what the user > > > > chooses, I > > > > > > > want to show a panel A or B using Ajax. I started with the > > > > RadioChoice > > > > > > > component, but that way I have not enough control over the > > rendering > > > > of > > > > > > > the > > > > > > > choices (CSS stuff etc), so I now have a radiogroup and two > > radio's. > > > > I > > > > > > > added > > > > > > > a AjaxFormChoiceComponentUpdatingBehavior to the RadioGroup. In > > the > > > > > > > onUpdate, I check the model value. Depending on that value I > > modifiy > > > > the > > > > > > > visibility of the panels A and B and add both of them to the > > target. > > > > > > Point > > > > > > > is: the onUpdate isn't called. > > > > > > > > > > > > > > What is the right way to do this? > > > > > > > > > > > > > > -- > > > > > > > Martijn Lindhout > > > > > > > JointEffort IT Services > > > > > > > http://www.jointeffort.nl > > > > > > > [EMAIL PROTECTED] > > > > > > > +31 (0)6 18 47 25 29 > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > View this message in context: > > > > > > > > http://www.nabble.com/Ajax-enabled-radiogroup-tp14797035p14801893.html > > > > > > Sent from the Wicket - User mailing list archive at Nabble.com. > > > > > > > > > > > > > > > > > > > > - > > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > Martijn Lindhout > > > > > JointEffort IT Services > > > > > http://www.jointeffort.nl > > > > > [EMAIL PROTECTED] > > > > > +31 (0)6 18 47 25 29 > > > > > > > > > > > > > - > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > -- > > > Martijn Lindhout > > > JointEffort IT Services > > > http://www.jointeffort.nl > > > [EMAIL PROTECTED] > > > +31 (0)6 18 47 25 29 > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > Martijn Lindhout > JointEffort IT Services > http://w
image uploads and file locations
Any suggestions or best practices on how to handle image uploads? I'm planning on saving uploaded images as files (not BLOBs) and serving up resized versions of the images. In particular: Is there a good "standard" place to store the full-res files in a wicket application? Should I serve the resized versions via wicket, or instead try to save them in a folder which is served directly by my webserver? These won't be in the classes directory, since I don't want them wiped out during redeployment. Thanks in advance, Sam Barnum - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ajax enabled radiogroup
Uh.. oh, I'm sorry. Do you mean if I changed the source according to Matt Clark's comments? No. I deduced from the discussion that that would be the problem. Of course I can download the source to apply the patch... 2008/1/14, Igor Vaynberg <[EMAIL PROTECTED]>: > > so you applied the patch and it worked? if so i can commit it now and > you can use the snapshot build > > -igor > > > On Jan 14, 2008 10:19 AM, Martijn Lindhout <[EMAIL PROTECTED]> > wrote: > > yep, you're right. Guess I'll have to wait till 1.3.1? ;-) > > > > 2008/1/14, Igor Vaynberg <[EMAIL PROTECTED]>: > > > > > > > > could this be it? > > > > > > https://issues.apache.org/jira/browse/WICKET-1258 > > > > > > also, the form should not be submitted, only the value for that one > > > radio component. > > > > > > -igor > > > > > > > > > On Jan 14, 2008 5:51 AM, Martijn Lindhout <[EMAIL PROTECTED]> > > > wrote: > > > > When I do this, the underlying model object isn't updated. I used > the > > > Wicket > > > > Ajax Debug and see that the form isn't posted, so the modelobject > > > doesn't > > > > change. > > > > > > > > 2008/1/14, SantiagoA <[EMAIL PROTECTED]>: > > > > > > > > > > > > > > > > > > > Hi, > > > > > what javascript method do you use? onclick, onMouseDown, > onMouseUp? > > > > > I add AjaxFormComponentUpdatingBehaviour("onchange") to Textfields > and > > > it > > > > > works fine. > > > > > Using Radios in radioGroup i had to use > > > > > > > > > > radio.add(new AjaxEventBehavior("onchange"){ > > > > > private static final long serialVersionUID = > > > > > -5356375735369681460L; > > > > > @Override > > > > > protected void onEvent(AjaxRequestTarget target) { > > > > > do something; > > > > > target.addComponent(panelA); > > > > > target.addComponent(panelB); > > > > >} > > > > > works fine for me. > > > > > cheers, > > > > > santiago > > > > > > > > > > > > > > > > > > > > Martijn Lindhout wrote: > > > > > > > > > > > > Hi all > > > > > > I'm lost. I've tried all kinds of combinations to get the > following > > > > > > working, > > > > > > but I either received exceptions or nothing happened. So back to > > > what I > > > > > > want: > > > > > > > > > > > > I have a form with a question, which possible answers are 'yes' > or > > > 'no'. > > > > > I > > > > > > want to use a radio choice for it. Depending on what the user > > > chooses, I > > > > > > want to show a panel A or B using Ajax. I started with the > > > RadioChoice > > > > > > component, but that way I have not enough control over the > rendering > > > of > > > > > > the > > > > > > choices (CSS stuff etc), so I now have a radiogroup and two > radio's. > > > I > > > > > > added > > > > > > a AjaxFormChoiceComponentUpdatingBehavior to the RadioGroup. In > the > > > > > > onUpdate, I check the model value. Depending on that value I > modifiy > > > the > > > > > > visibility of the panels A and B and add both of them to the > target. > > > > > Point > > > > > > is: the onUpdate isn't called. > > > > > > > > > > > > What is the right way to do this? > > > > > > > > > > > > -- > > > > > > Martijn Lindhout > > > > > > JointEffort IT Services > > > > > > http://www.jointeffort.nl > > > > > > [EMAIL PROTECTED] > > > > > > +31 (0)6 18 47 25 29 > > > > > > > > > > > > > > > > > > > > > > -- > > > > > View this message in context: > > > > > > http://www.nabble.com/Ajax-enabled-radiogroup-tp14797035p14801893.html > > > > > Sent from the Wicket - User mailing list archive at Nabble.com. > > > > > > > > > > > > > > > > - > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > > -- > > > > Martijn Lindhout > > > > JointEffort IT Services > > > > http://www.jointeffort.nl > > > > [EMAIL PROTECTED] > > > > +31 (0)6 18 47 25 29 > > > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > -- > > Martijn Lindhout > > JointEffort IT Services > > http://www.jointeffort.nl > > [EMAIL PROTECTED] > > +31 (0)6 18 47 25 29 > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Martijn Lindhout JointEffort IT Services http://www.jointeffort.nl [EMAIL PROTECTED] +31 (0)6 18 47 25 29
Re: Link and Submit behaviour
Could it be because there is validation errors? Try adding a FeedbackPanel. Frank On Jan 14, 2008 5:20 PM, Russell Webb <[EMAIL PROTECTED]> wrote: > Got a question on what the expected behaviours are from a link and a > button both of which have their response page set to the same page > (onClick & onSubmit respectively). I took these form items from the > Cheesr example in 'Wicket in Action' and I have used both of these on > the second tab on an AjaxTabbedPanel and both response pages set to > return to the page containing the tabbed panel. Selecting the link > redisplays the tabbed panel showing the first tab. The button, however, > displays the second tab. > I did attempt a cancel "button" and this behaved the same as the link > but I don't understand why disabling validation and form updating should > make a difference. Does anyone have any suggestions as to why there is > different behaviour here? > > public class VxsUserPage extends VxsBasePage { > ... > >public TabPanel2(String id) { >super(id); > >Form form = new Form("form"); >add(form); >form.add(new VxsUserSettingsPanel("userSettings", new Model( > VxsUserPage.this.user))); > >form.add(new Link("cancel") { >@Override >public void onClick() { >setResponsePage(VxsUserPage.class); >} >}); > >form.add(new Button("submit") { >@Override >public void onSubmit() { >setResponsePage(VxsUserPage.class); >} >}); >} > ... > } > > Regards, > Russell > > -- > *VoxSurf Limited* > Registered & principal office: > 2nd Floor > Elme House > 133 Long Acre > London WC2E 9DT > United Kingdom > Company No (England): 4051448 > > http://www.voxsurf.com/ > > Email disclaimer: This can be viewed at > http://www.voxsurf.com/disclaimer.html > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Ajax enabled radiogroup
so you applied the patch and it worked? if so i can commit it now and you can use the snapshot build -igor On Jan 14, 2008 10:19 AM, Martijn Lindhout <[EMAIL PROTECTED]> wrote: > yep, you're right. Guess I'll have to wait till 1.3.1? ;-) > > 2008/1/14, Igor Vaynberg <[EMAIL PROTECTED]>: > > > > > could this be it? > > > > https://issues.apache.org/jira/browse/WICKET-1258 > > > > also, the form should not be submitted, only the value for that one > > radio component. > > > > -igor > > > > > > On Jan 14, 2008 5:51 AM, Martijn Lindhout <[EMAIL PROTECTED]> > > wrote: > > > When I do this, the underlying model object isn't updated. I used the > > Wicket > > > Ajax Debug and see that the form isn't posted, so the modelobject > > doesn't > > > change. > > > > > > 2008/1/14, SantiagoA <[EMAIL PROTECTED]>: > > > > > > > > > > > > > > > Hi, > > > > what javascript method do you use? onclick, onMouseDown, onMouseUp? > > > > I add AjaxFormComponentUpdatingBehaviour("onchange") to Textfields and > > it > > > > works fine. > > > > Using Radios in radioGroup i had to use > > > > > > > > radio.add(new AjaxEventBehavior("onchange"){ > > > > private static final long serialVersionUID = > > > > -5356375735369681460L; > > > > @Override > > > > protected void onEvent(AjaxRequestTarget target) { > > > > do something; > > > > target.addComponent(panelA); > > > > target.addComponent(panelB); > > > >} > > > > works fine for me. > > > > cheers, > > > > santiago > > > > > > > > > > > > > > > > Martijn Lindhout wrote: > > > > > > > > > > Hi all > > > > > I'm lost. I've tried all kinds of combinations to get the following > > > > > working, > > > > > but I either received exceptions or nothing happened. So back to > > what I > > > > > want: > > > > > > > > > > I have a form with a question, which possible answers are 'yes' or > > 'no'. > > > > I > > > > > want to use a radio choice for it. Depending on what the user > > chooses, I > > > > > want to show a panel A or B using Ajax. I started with the > > RadioChoice > > > > > component, but that way I have not enough control over the rendering > > of > > > > > the > > > > > choices (CSS stuff etc), so I now have a radiogroup and two radio's. > > I > > > > > added > > > > > a AjaxFormChoiceComponentUpdatingBehavior to the RadioGroup. In the > > > > > onUpdate, I check the model value. Depending on that value I modifiy > > the > > > > > visibility of the panels A and B and add both of them to the target. > > > > Point > > > > > is: the onUpdate isn't called. > > > > > > > > > > What is the right way to do this? > > > > > > > > > > -- > > > > > Martijn Lindhout > > > > > JointEffort IT Services > > > > > http://www.jointeffort.nl > > > > > [EMAIL PROTECTED] > > > > > +31 (0)6 18 47 25 29 > > > > > > > > > > > > > > > > > > -- > > > > View this message in context: > > > > http://www.nabble.com/Ajax-enabled-radiogroup-tp14797035p14801893.html > > > > Sent from the Wicket - User mailing list archive at Nabble.com. > > > > > > > > > > > > - > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > -- > > > Martijn Lindhout > > > JointEffort IT Services > > > http://www.jointeffort.nl > > > [EMAIL PROTECTED] > > > +31 (0)6 18 47 25 29 > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > Martijn Lindhout > JointEffort IT Services > http://www.jointeffort.nl > [EMAIL PROTECTED] > +31 (0)6 18 47 25 29 > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ajax enabled radiogroup
yep, you're right. Guess I'll have to wait till 1.3.1? ;-) 2008/1/14, Igor Vaynberg <[EMAIL PROTECTED]>: > > could this be it? > > https://issues.apache.org/jira/browse/WICKET-1258 > > also, the form should not be submitted, only the value for that one > radio component. > > -igor > > > On Jan 14, 2008 5:51 AM, Martijn Lindhout <[EMAIL PROTECTED]> > wrote: > > When I do this, the underlying model object isn't updated. I used the > Wicket > > Ajax Debug and see that the form isn't posted, so the modelobject > doesn't > > change. > > > > 2008/1/14, SantiagoA <[EMAIL PROTECTED]>: > > > > > > > > > > > Hi, > > > what javascript method do you use? onclick, onMouseDown, onMouseUp? > > > I add AjaxFormComponentUpdatingBehaviour("onchange") to Textfields and > it > > > works fine. > > > Using Radios in radioGroup i had to use > > > > > > radio.add(new AjaxEventBehavior("onchange"){ > > > private static final long serialVersionUID = > > > -5356375735369681460L; > > > @Override > > > protected void onEvent(AjaxRequestTarget target) { > > > do something; > > > target.addComponent(panelA); > > > target.addComponent(panelB); > > >} > > > works fine for me. > > > cheers, > > > santiago > > > > > > > > > > > > Martijn Lindhout wrote: > > > > > > > > Hi all > > > > I'm lost. I've tried all kinds of combinations to get the following > > > > working, > > > > but I either received exceptions or nothing happened. So back to > what I > > > > want: > > > > > > > > I have a form with a question, which possible answers are 'yes' or > 'no'. > > > I > > > > want to use a radio choice for it. Depending on what the user > chooses, I > > > > want to show a panel A or B using Ajax. I started with the > RadioChoice > > > > component, but that way I have not enough control over the rendering > of > > > > the > > > > choices (CSS stuff etc), so I now have a radiogroup and two radio's. > I > > > > added > > > > a AjaxFormChoiceComponentUpdatingBehavior to the RadioGroup. In the > > > > onUpdate, I check the model value. Depending on that value I modifiy > the > > > > visibility of the panels A and B and add both of them to the target. > > > Point > > > > is: the onUpdate isn't called. > > > > > > > > What is the right way to do this? > > > > > > > > -- > > > > Martijn Lindhout > > > > JointEffort IT Services > > > > http://www.jointeffort.nl > > > > [EMAIL PROTECTED] > > > > +31 (0)6 18 47 25 29 > > > > > > > > > > > > > > -- > > > View this message in context: > > > http://www.nabble.com/Ajax-enabled-radiogroup-tp14797035p14801893.html > > > Sent from the Wicket - User mailing list archive at Nabble.com. > > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > -- > > Martijn Lindhout > > JointEffort IT Services > > http://www.jointeffort.nl > > [EMAIL PROTECTED] > > +31 (0)6 18 47 25 29 > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Martijn Lindhout JointEffort IT Services http://www.jointeffort.nl [EMAIL PROTECTED] +31 (0)6 18 47 25 29
Re: Shout more about security advantages of Wicket?
Hi Sam, I'm actually trying to point this out in Wicket In Action. But go ahead and write a few blog entries ;-) Eelco On Jan 14, 2008 4:43 AM, Sam Hough <[EMAIL PROTECTED]> wrote: > > It has only just struck me how much more secure Wicket is out of the box than > struts, spring, GWT etc. The features list doesn't really seem to drive this > point home... > > Maybe add really clear example like: "Equivalent to not having pointer > arithmetic in Java. e.g. HTTP requests specify which option from a select > box to use rather than allowing arbitrary values to be sent" > > Cheers > > Sam > -- > View this message in context: > http://www.nabble.com/Shout-more-about-security-advantages-of-Wicket--tp14800934p14800934.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PagingNavigator refactoring request
what exactly is the usecase? -igor On Jan 14, 2008 12:49 AM, behlma <[EMAIL PROTECTED]> wrote: > > Not such a good idea, huh? :) > > > > > > behlma wrote: > > > > Hi guys, > > would it be possible to change PagingNavigator's constructor from > > > > public PagingNavigator(final String id, final IPageable pageable, > > final IPagingLabelProvider labelProvider) > > { > > super(id); > > > > > > // Get the navigation bar and add it to the hierarchy > > this.pagingNavigation = newNavigation(pageable, > > labelProvider); > > add(pagingNavigation); > > > > // Add additional page links > > add(newPagingNavigationLink("first", pageable, 0)); > > add(newPagingNavigationIncrementLink("prev", pageable, -1)); > > add(newPagingNavigationIncrementLink("next", pageable, 1)); > > add(newPagingNavigationLink("last", pageable, -1)); > > } > > > > /** > > > > > > to > > > > > > public PagingNavigator(final String id, final IPageable pageable, > > final IPagingLabelProvider labelProvider) > > { > > super(id); > > initNavigator(pageable, labelProvider); > > } > > > > > > protected initNavigator(pageable, provider) { > > this.pagingNavigation = newNavigation(pageable, > > labelProvider); > > add(pagingNavigation); > > > > } > > > > > > I'm asking because I subclassed PagingNavigator and I have additional > > constructor parameters I want to pass to the constructor "before" invoking > > "initNavigator". > > > > > > Thanks for your time! > > > > > > -- > View this message in context: > http://www.nabble.com/PagingNavigator-refactoring-request-tp14783646p14797267.html > > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: the flow of wicket
On Jan 14, 2008 6:08 AM, Alex Jacoby <[EMAIL PROTECTED]> wrote: > I've hit exactly this type of issue -- you try to override one of the > public methods, and it turns out that the object isn't fully > initialized yet, so you can't do what you'd hoped to. do you have the example so we can do something to improve this? > It's a matter of balance -- overall I think the documentation is > pretty good, but there are places where it's weaker than it should > be. Yes, I can set breakpoints and step through the code, but that > shouldn't be the default response to questions about missing > documentation. Following that argument you could say that NO javadocs > are ever necessary :) ha. browse the archives or lurk on this list for a while, you will see that this is an extremely seldom response from the wicket team. -igor > > Thanks for all the great work, > Alex > > > - > 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: Ajax enabled radiogroup
could this be it? https://issues.apache.org/jira/browse/WICKET-1258 also, the form should not be submitted, only the value for that one radio component. -igor On Jan 14, 2008 5:51 AM, Martijn Lindhout <[EMAIL PROTECTED]> wrote: > When I do this, the underlying model object isn't updated. I used the Wicket > Ajax Debug and see that the form isn't posted, so the modelobject doesn't > change. > > 2008/1/14, SantiagoA <[EMAIL PROTECTED]>: > > > > > > > Hi, > > what javascript method do you use? onclick, onMouseDown, onMouseUp? > > I add AjaxFormComponentUpdatingBehaviour("onchange") to Textfields and it > > works fine. > > Using Radios in radioGroup i had to use > > > > radio.add(new AjaxEventBehavior("onchange"){ > > private static final long serialVersionUID = > > -5356375735369681460L; > > @Override > > protected void onEvent(AjaxRequestTarget target) { > > do something; > > target.addComponent(panelA); > > target.addComponent(panelB); > >} > > works fine for me. > > cheers, > > santiago > > > > > > > > Martijn Lindhout wrote: > > > > > > Hi all > > > I'm lost. I've tried all kinds of combinations to get the following > > > working, > > > but I either received exceptions or nothing happened. So back to what I > > > want: > > > > > > I have a form with a question, which possible answers are 'yes' or 'no'. > > I > > > want to use a radio choice for it. Depending on what the user chooses, I > > > want to show a panel A or B using Ajax. I started with the RadioChoice > > > component, but that way I have not enough control over the rendering of > > > the > > > choices (CSS stuff etc), so I now have a radiogroup and two radio's. I > > > added > > > a AjaxFormChoiceComponentUpdatingBehavior to the RadioGroup. In the > > > onUpdate, I check the model value. Depending on that value I modifiy the > > > visibility of the panels A and B and add both of them to the target. > > Point > > > is: the onUpdate isn't called. > > > > > > What is the right way to do this? > > > > > > -- > > > Martijn Lindhout > > > JointEffort IT Services > > > http://www.jointeffort.nl > > > [EMAIL PROTECTED] > > > +31 (0)6 18 47 25 29 > > > > > > > > > > -- > > View this message in context: > > http://www.nabble.com/Ajax-enabled-radiogroup-tp14797035p14801893.html > > Sent from the Wicket - User mailing list archive at Nabble.com. > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > Martijn Lindhout > JointEffort IT Services > http://www.jointeffort.nl > [EMAIL PROTECTED] > +31 (0)6 18 47 25 29 > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TreeGrid and DataGrid open source
> Looking ahead, I can imagine that as Wicket becomes ever more popular, there > will be many organisations who will see it as a big plus that there are > well-respected developers building, selling and maintaining well engineered, > reliable and high-quality components with interesting features that they > cannot or cannot afford to build and maintain themselves. I strongly second this. I would love to have libraries of sophisticated, well engineered, documented and supported components, and also see the dev team get something back for all the hard work they've put into the community. This benefits everyone. It would be a no brainer to sell my boss on spending a few hundred or thousand on such a library rather than spending an equivalent amount of time building it ourselves. Great looking stuff, Matej (as always)! best, jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Javadoc?
it was quite easy with netbeans maven...just unzip the wicket1.3.zip and open the src folder with NB provided you have installed the maven plugin though On 1/14/08, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > > We still need to find time to implement that in our build. The problem > is with the multi-module maven setup that makes it difficult to > provide a decent setup for the javadocs. > > If you want them in your IDE, using maven is the best way to get the > docs integrated. It will automatically download the source jars (which > include the JavaDoc) and bind that to the dependencies. This way you > have the javadoc and the sources readily available, allowing you to > set breakpoints inside Wicket, Hibernate, Spring, etc. and read the > code. > > If you don't mind a bit of manual downloading and unzipping, then you > can download the javadoc jars from the maven repo. > > For instance the wicket javadocs: > > http://repo1.maven.org/maven2/org/apache/wicket/wicket/1.3.0/wicket-1.3.0-javadoc.jar > > http://repo1.maven.org/maven2/org/apache/wicket/wicket-extensions/1.3.0/wicket-extensions-1.3.0-javadoc.jar > > etc. > > Martijn > > On 1/14/08, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote: > > i was even referring to getting the javadocs for offline use by > downloading > > it. > > > > On 1/12/08, Johan Compagner <[EMAIL PROTECTED]> wrote: > > > > > > We also have them on wicketstuff.org/wicket13doc i believe > > > Dont know if that is the latest version and i cant check it at this > time > > > > > > On 1/11/08, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote: > > > > The javadoc does not come with the wicket 1.3 bundle. > > > > > > > > Where can the javadoc for all the wicket1.3 builds be found? > > > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > -- > > Aladejebi Ayodeji A., > > DabarObjects Solutions > > Phone: +234 9 481 7 156 > > Mobile: +234 803 589 1780 > > Email: [EMAIL PROTECTED] > > Web: www.dabarobjects.com > > Blog: blog.dabarobjects.com > > > > Participate, Collaborate, Innovate > > Join Community: > > http://www.cowblock.net/ > > > > Get A Free Blog: > > http://blogs.cowblock.net/ > > > > > -- > Buy Wicket in Action: http://manning.com/dashorst > Apache Wicket 1.3.0 is released > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0 > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Aladejebi Ayodeji A., DabarObjects Solutions Phone: +234 9 481 7 156 Mobile: +234 803 589 1780 Email: [EMAIL PROTECTED] Web: www.dabarobjects.com Blog: blog.dabarobjects.com Participate, Collaborate, Innovate Join Community: http://www.cowblock.net/ Get A Free Blog: http://blogs.cowblock.net/
Re: Wicket Web Beans 1.0 (final) Released
Congrats! Eelco On Jan 14, 2008 4:57 AM, Dan Syrstad <[EMAIL PROTECTED]> wrote: > Wicket Web Beans 1.0 (final) has been released. Wicket Web Beans (WWB) is an > Apache 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. > > Major inclusions in this release are the finalization of the Databinder > integration and Wicket 1.3.0 (final) support. > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Link and Submit behaviour
Got a question on what the expected behaviours are from a link and a button both of which have their response page set to the same page (onClick & onSubmit respectively). I took these form items from the Cheesr example in 'Wicket in Action' and I have used both of these on the second tab on an AjaxTabbedPanel and both response pages set to return to the page containing the tabbed panel. Selecting the link redisplays the tabbed panel showing the first tab. The button, however, displays the second tab. I did attempt a cancel "button" and this behaved the same as the link but I don't understand why disabling validation and form updating should make a difference. Does anyone have any suggestions as to why there is different behaviour here? public class VxsUserPage extends VxsBasePage { ... public TabPanel2(String id) { super(id); Form form = new Form("form"); add(form); form.add(new VxsUserSettingsPanel("userSettings", new Model( VxsUserPage.this.user))); form.add(new Link("cancel") { @Override public void onClick() { setResponsePage(VxsUserPage.class); } }); form.add(new Button("submit") { @Override public void onSubmit() { setResponsePage(VxsUserPage.class); } }); } ... } Regards, Russell -- *VoxSurf Limited* Registered & principal office: 2nd Floor Elme House 133 Long Acre London WC2E 9DT United Kingdom Company No (England): 4051448 http://www.voxsurf.com/ Email disclaimer: This can be viewed at http://www.voxsurf.com/disclaimer.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TreeGrid and DataGrid open source
Matej, As I wrote a few weeks ago when you kindly let me have a first play with these great new components, I think you have done a high-quality piece of work that shows off some of Wicket's power and presented it in a professional way. Your gesture to now let people use it for free is a very nice one too; I reckon that there is a lot of Javascript in there that was not easy (or quick) to get right. Looking ahead, I can imagine that as Wicket becomes ever more popular, there will be many organisations who will see it as a big plus that there are well-respected developers building, selling and maintaining well engineered, reliable and high-quality components with interesting features that they cannot or cannot afford to build and maintain themselves. On the other hand, having such impressive components, and for free, says a lot about the qualities of Wicket and the people that build and maintain it. Regards - Cemal http://jWeekend.co.uk http://jWeekend.co.uk Matej Knopp-2 wrote: > > Hi everyone, > > I just want to let you know that the TreeGrid and DataGrid components > have been released under the Apache 2.0 license. > > The beta downloads and live demo are available at http://www.inmethod.com > . > > The issue tracker and SVN repository should be available in near future. > > Cheers, > -Matej > > -- > Resizable and reorderable grid components. > http://www.inmethod.com > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/TreeGrid-and-DataGrid-open-source-tp14768511p14804469.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: London Wicket Event - Schedule/Bigger Room
Igor, That's not a bad idea. In fact when we first started these events we did record some of our presentations, but I'm not sure any of those videos ever saw the light of day. The Java Web User Group people filmed us too, and even some of the companies that have kindly hosted our events insisted on pointing video-cameras at us. I've never seen any of those videos. Anyway, I'll see if we can arrange something. Frankly, I think that if we have time to package things up properly, something like http://talks.londonwicket.org/BeanEditor.mov this nice presentation featuring http://herebebeasties.com Al , is useful and people say like the format. Regards - Cemal http://jWeekend.co.uk igor.vaynberg wrote: > > it would be great if you guys could videotape the talks and share them :) > > -igor > > > On Jan 12, 2008 2:33 PM, jweekend <[EMAIL PROTECTED]> wrote: >> >> We seem to be back up to the original interest levels again for our Feb >> 6th >> London Wicket Users Group event. As we had already pretty much hit our >> capacity for the first conference room we had booked with 4 weeks still >> to >> go, we have now booked a bigger room at Google that seats over 50 people >> (thanks again Al), so more people can come along; I'd still advise people >> to >> book early as Wicket seems to be getting more interesting for more >> developers almost daily these days (the number of new names on the >> mailing >> list gives a decent indication of this), especially with 1.3.0 being >> released (thanks to all concerned for that; this release makes it that >> much >> easier to argue for the use of Wicket on many classes of systems, >> especially >> in the corporate world). >> I'd like to remind those of you that have already registered (or plan to) >> to >> please ensure that their place is either confirmed or cancelled by >> clicking >> on the link in the automated registration-confirmation email to help us >> make >> good use of the available space? >> >> Here's the schedule: >> >> 18:30 Cemal Bayramoglu: Introduction and short presentation: Injecting >> Spring Beans Into Wicket Components >> 19:00 Ian Godman: New Wicket Security Framework (open source) >> 19:30 Al Maw: Creating an AJAXified drag and drop list editor >> >> We will have a joint Q&A session at the end and no doubt there will be a >> few >> people heading for a bite to eat or a drink after that. >> >> We are trying to arrange for some snacks too (TBC, Al?). >> >> Regards - Cemal >> http://jWeekend.co.uk http://jWeekend.co.uk >> >> PS Could someone please update the http://wicket.apache.org/ Wicket home >> page to reflect the fact that our events are now on the first Wednesday >> of >> every month? >> >> -- >> View this message in context: >> http://www.nabble.com/London-Wicket-Event---Schedule-Bigger-Room-tp14779697p14779697.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/London-Wicket-Event---Schedule-Bigger-Room-tp14779697p14803687.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket Web Beans 1.0 (final) Released
+1, ditto I'm using WWB as a demo on how life as a webdeveloper should/could be. The only thing that would keep me from implementing it in projects now is the lack of good documentation (even the tutorial on the website is still partially in progress) and the small community that is using it. But anyway, it looks great and is a wonderfull project! On 1/14/08, Ryan Sonnek <[EMAIL PROTECTED]> wrote: > Congrats, and wonderful work! > > I really hope this project takes off and is adopted by the wicket community! > > > On Jan 14, 2008 6:57 AM, Dan Syrstad <[EMAIL PROTECTED]> wrote: > > Wicket Web Beans 1.0 (final) has been released. Wicket Web Beans (WWB) is an > > Apache 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. > > > > Major inclusions in this release are the finalization of the Databinder > > integration and Wicket 1.3.0 (final) support. > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket Web Beans 1.0 (final) Released
Congrats, and wonderful work! I really hope this project takes off and is adopted by the wicket community! On Jan 14, 2008 6:57 AM, Dan Syrstad <[EMAIL PROTECTED]> wrote: > Wicket Web Beans 1.0 (final) has been released. Wicket Web Beans (WWB) is an > Apache 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. > > Major inclusions in this release are the finalization of the Databinder > integration and Wicket 1.3.0 (final) support. > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: "java.lang.OutOfMemoryError: PermGen space" in tree table example
Yeah, that's what is happening on our tomcat instance @ wicketstuff. restarting it now... -Matej On Jan 14, 2008 4:08 PM, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > This message comes from the fact the JVM can't allocate enough memory > > to start the application. > > Or more specifically: to load your classes (which is the typical > case). This also often happens when you e.g. use tomcat and deploy on > a live instance time after time. > > Eelco > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Resizable and reorderable grid components. http://www.inmethod.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: "java.lang.OutOfMemoryError: PermGen space" in tree table example
> This message comes from the fact the JVM can't allocate enough memory > to start the application. Or more specifically: to load your classes (which is the typical case). This also often happens when you e.g. use tomcat and deploy on a live instance time after time. Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: "java.lang.OutOfMemoryError: PermGen space" in tree table example
Arseny, This message comes from the fact the JVM can't allocate enough memory to start the application. In some cases when I have Eclipse auto-deploying my application I get the same message. This is party caused by a little bug in Suns JVM. There are a couple of solutions to fix this. What I normally do is killing the JVM and restarting the server while developing. The second thing is starting the JVM with -XX:MaxPermSize set higher. The third thing a collegue told me is using something different then Sun's JVM. He is now using JRockit's JVM instead and told me he never gets PermGen errors since the change. In short: This has nothing to do with Wicket I'm afraid... On 1/14/08, Arseny <[EMAIL PROTECTED]> wrote: > I`ve got: > > *type* Exception report > > *message* > > *description* _The server encountered an internal error () that > prevented it from fulfilling this request._ > > *exception* > > javax.servlet.ServletException: Filter execution threw an exception > > *root cause* > > java.lang.OutOfMemoryError: PermGen space > > > > when trying to access: > > http://wicketstuff.org/wicket13/ajax/tree/simple > > Did you see that? > > > - > 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: lang.merge is not a function error
On Monday 14 January 2008, Karen Schaper escreveu: > > is the YUI menu from the wicketstuff project? > > No just from YUI > > if so, what YUI version does > > version 2.2.0 > > Thanks that must be my problem. sounds good to me. have you upgraded wicket? > > > it use? > > > > i suspect this only happens if the YUI menu js files (yahoo, dom, event, > > menu, ...) are > > loaded before the datepickers yuiloader-beta-min.js. > > yuiloader checks if YAHOO.lang is already available (which it would be if > > the YUI menu > > is loaded first) and reuses it instead of creating a new YAHOO object. > > > > if there is no such method YAHOO.lang.merge prior to 2.4.1 (which > > is used by > > wicket-datetime), > > then the issue you are experiencing is almost definitely caused > > by a version > > conflict. > > > > Gerolf > > > > On Jan 14, 2008 2:16 AM, Karen Schaper <[EMAIL PROTECTED]> > > > > wrote: > > > Hello Again, > > > > > > I am experience a strange issue when using the new date picker in > > > conjunction with the YUI menu. I can use them each alone but when then > > > are > > > together I get this error in firebug. > > > > > > The error is "lang.merge is not a function" which is located in the > > > yuiloader-beta-min.js. This js is located in the wicket-datetime. > > > > > > I googled lang.merge and is it possible that it should be " > > > YAHOO.lang.merge. > > > > > > Thanks for any help. > > > > > > I think this is my last problem due to upgrade to wicket 1.3. > > > > > > Karen. > > > > > > > > > - > > > 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: lang.merge is not a function error
> is the YUI menu from the wicketstuff project? No just from YUI if so, what YUI version does version 2.2.0 Thanks that must be my problem. > it use? > > i suspect this only happens if the YUI menu js files (yahoo, dom, event, > menu, ...) are > loaded before the datepickers yuiloader-beta-min.js. > yuiloader checks if YAHOO.lang is already available (which it would be if > the YUI menu > is loaded first) and reuses it instead of creating a new YAHOO object. > > if there is no such method YAHOO.lang.merge prior to 2.4.1 (which > is used by > wicket-datetime), > then the issue you are experiencing is almost definitely caused > by a version > conflict. > > Gerolf > > On Jan 14, 2008 2:16 AM, Karen Schaper <[EMAIL PROTECTED]> > wrote: > > > Hello Again, > > > > I am experience a strange issue when using the new date picker in > > conjunction with the YUI menu. I can use them each alone but when then > > are > > together I get this error in firebug. > > > > The error is "lang.merge is not a function" which is located in the > > yuiloader-beta-min.js. This js is located in the wicket-datetime. > > > > I googled lang.merge and is it possible that it should be " > > YAHOO.lang.merge. > > > > Thanks for any help. > > > > I think this is my last problem due to upgrade to wicket 1.3. > > > > Karen. > > > > > > - > > 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: the flow of wicket
On Jan 12, 2008, at 2:56 PM, Dmitry Kandalov wrote: On Saturday 12 January 2008 23:25:43 Igor Vaynberg wrote: sure, and all you need to know is that you subclass requestcycle.onbeginrequest() and add your own code there and it is called at the beginning of the request. why do you need to know the sequence of calls that leads to onbeginrequest() being called? I don't. I can image someone may want to be sure that this method is called before anything else he overrides, or to know that he can't get requested page at this step, but probably it's a very rare case. I've hit exactly this type of issue -- you try to override one of the public methods, and it turns out that the object isn't fully initialized yet, so you can't do what you'd hoped to. I agree there's value to the black-box model, data encapsulation, and all that -- I don't want to know all the gory details of your implementation. However, for public methods which are designed to be overridden when necessary, it would be extremely helpful to have more documentation provided about the state of the object when that method is called. It's a matter of balance -- overall I think the documentation is pretty good, but there are places where it's weaker than it should be. Yes, I can set breakpoints and step through the code, but that shouldn't be the default response to questions about missing documentation. Following that argument you could say that NO javadocs are ever necessary :) Thanks for all the great work, Alex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ajax enabled radiogroup
When I do this, the underlying model object isn't updated. I used the Wicket Ajax Debug and see that the form isn't posted, so the modelobject doesn't change. 2008/1/14, SantiagoA <[EMAIL PROTECTED]>: > > > Hi, > what javascript method do you use? onclick, onMouseDown, onMouseUp? > I add AjaxFormComponentUpdatingBehaviour("onchange") to Textfields and it > works fine. > Using Radios in radioGroup i had to use > > radio.add(new AjaxEventBehavior("onchange"){ > private static final long serialVersionUID = > -5356375735369681460L; > @Override > protected void onEvent(AjaxRequestTarget target) { > do something; > target.addComponent(panelA); > target.addComponent(panelB); >} > works fine for me. > cheers, > santiago > > > > Martijn Lindhout wrote: > > > > Hi all > > I'm lost. I've tried all kinds of combinations to get the following > > working, > > but I either received exceptions or nothing happened. So back to what I > > want: > > > > I have a form with a question, which possible answers are 'yes' or 'no'. > I > > want to use a radio choice for it. Depending on what the user chooses, I > > want to show a panel A or B using Ajax. I started with the RadioChoice > > component, but that way I have not enough control over the rendering of > > the > > choices (CSS stuff etc), so I now have a radiogroup and two radio's. I > > added > > a AjaxFormChoiceComponentUpdatingBehavior to the RadioGroup. In the > > onUpdate, I check the model value. Depending on that value I modifiy the > > visibility of the panels A and B and add both of them to the target. > Point > > is: the onUpdate isn't called. > > > > What is the right way to do this? > > > > -- > > Martijn Lindhout > > JointEffort IT Services > > http://www.jointeffort.nl > > [EMAIL PROTECTED] > > +31 (0)6 18 47 25 29 > > > > > > -- > View this message in context: > http://www.nabble.com/Ajax-enabled-radiogroup-tp14797035p14801893.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Martijn Lindhout JointEffort IT Services http://www.jointeffort.nl [EMAIL PROTECTED] +31 (0)6 18 47 25 29
Re: Ajax enabled radiogroup
Hi, what javascript method do you use? onclick, onMouseDown, onMouseUp? I add AjaxFormComponentUpdatingBehaviour("onchange") to Textfields and it works fine. Using Radios in radioGroup i had to use radio.add(new AjaxEventBehavior("onchange"){ private static final long serialVersionUID = -5356375735369681460L; @Override protected void onEvent(AjaxRequestTarget target) { do something; target.addComponent(panelA); target.addComponent(panelB); } works fine for me. cheers, santiago Martijn Lindhout wrote: > > Hi all > I'm lost. I've tried all kinds of combinations to get the following > working, > but I either received exceptions or nothing happened. So back to what I > want: > > I have a form with a question, which possible answers are 'yes' or 'no'. I > want to use a radio choice for it. Depending on what the user chooses, I > want to show a panel A or B using Ajax. I started with the RadioChoice > component, but that way I have not enough control over the rendering of > the > choices (CSS stuff etc), so I now have a radiogroup and two radio's. I > added > a AjaxFormChoiceComponentUpdatingBehavior to the RadioGroup. In the > onUpdate, I check the model value. Depending on that value I modifiy the > visibility of the panels A and B and add both of them to the target. Point > is: the onUpdate isn't called. > > What is the right way to do this? > > -- > Martijn Lindhout > JointEffort IT Services > http://www.jointeffort.nl > [EMAIL PROTECTED] > +31 (0)6 18 47 25 29 > > -- View this message in context: http://www.nabble.com/Ajax-enabled-radiogroup-tp14797035p14801893.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Javascript call to wicket
Thanks, it's short and precise. I have nothing more to say about this ;) Erik van Oosten-3 wrote: > > I did not find the results of this thread on the Wiki yet, so I created > the following page: > http://cwiki.apache.org/confluence/display/WICKET/Calling+Wicket+from+Javascript > > Comments and edits are appreciated. There is a TODO on the page for > providing an example that adds Javascript to the header. Or perhaps this > should be on another page under AJAX? > > Thanks for sharing the information! > > Regards, > Erik. > -- View this message in context: http://www.nabble.com/Javascript-call-to-wicket-tp14685384p14800946.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Javadoc?
We still need to find time to implement that in our build. The problem is with the multi-module maven setup that makes it difficult to provide a decent setup for the javadocs. If you want them in your IDE, using maven is the best way to get the docs integrated. It will automatically download the source jars (which include the JavaDoc) and bind that to the dependencies. This way you have the javadoc and the sources readily available, allowing you to set breakpoints inside Wicket, Hibernate, Spring, etc. and read the code. If you don't mind a bit of manual downloading and unzipping, then you can download the javadoc jars from the maven repo. For instance the wicket javadocs: http://repo1.maven.org/maven2/org/apache/wicket/wicket/1.3.0/wicket-1.3.0-javadoc.jar http://repo1.maven.org/maven2/org/apache/wicket/wicket-extensions/1.3.0/wicket-extensions-1.3.0-javadoc.jar etc. Martijn On 1/14/08, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote: > i was even referring to getting the javadocs for offline use by downloading > it. > > On 1/12/08, Johan Compagner <[EMAIL PROTECTED]> wrote: > > > > We also have them on wicketstuff.org/wicket13doc i believe > > Dont know if that is the latest version and i cant check it at this time > > > > On 1/11/08, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote: > > > The javadoc does not come with the wicket 1.3 bundle. > > > > > > Where can the javadoc for all the wicket1.3 builds be found? > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > Aladejebi Ayodeji A., > DabarObjects Solutions > Phone: +234 9 481 7 156 > Mobile: +234 803 589 1780 > Email: [EMAIL PROTECTED] > Web: www.dabarobjects.com > Blog: blog.dabarobjects.com > > Participate, Collaborate, Innovate > Join Community: > http://www.cowblock.net/ > > Get A Free Blog: > http://blogs.cowblock.net/ > -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Setting focus to a TextField
On Thu, 20 Sep 2007 20:21:20 -0400 John Krasnay <[EMAIL PROTECTED]> wrote: > I include this little script in my base page to always auto-focus the > first text box. Pretty! Thanks :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Update panel from lists
Try adding the behavior to the ListItem or the Label in the ListItem Regards Dipu On Jan 14, 2008 12:34 PM, tsuresh <[EMAIL PROTECTED]> wrote: > > Hello , I want to update panel from lists. I have the list of users. When > I > click on the user I should get the user details on the UserDetailPanel. I > want to do this using ajax and to display userdetail side by user list. I > tried like this. But this is no way near I desired. > > ListView userList = new ListView("rows", userList) { > >protected void populateItem(ListItem item) { >User user = User item.getModelObject(); >item.add(new Label("name", user.getName())); >} >}; > >UserDetailPanel udp = new UserDetailPanel("panel",""); >final WebMarkupContainer wmc = new WebMarkupContainer("container"); >wmc.setOutputMarkupId(true); >wmc.add(userList); //Since I want to update panel, > shouldn't it be > udp instead of userList?. >AjaxEventBehavior behavior = new AjaxEventBehavior("onclick") { > >protected void onEvent(AjaxRequestTarget target) { > User userSelected= (User ) getModelObject(); //I am > getting null over here , I am trying to get selected > //user here > String selectedCat = userSelected.getName(); > target.addComponent(wmc); >//how to update panel and get selected user here? > } >}; >wmc.add(behavior); //shouldn't it be userList.add(behavior);? > There > was onclick response when i did > //wmc.add(behavior) but not when > userList.add(behavior). >add(udp); >add(wmc); > >} > } > > Please suggest. > Thanks. > -- > View this message in context: > http://www.nabble.com/Update-panel-from-lists-tp14800898p14800898.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Wicket Web Beans 1.0 (final) Released
Wicket Web Beans 1.0 (final) has been released. Wicket Web Beans (WWB) is an Apache 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. Major inclusions in this release are the finalization of the Databinder integration and Wicket 1.3.0 (final) support.
Re: How do you do this in wicket?
Anders Peterson wrote: Is that the problem: Do I have to call this.setResponsePage(LoginPage.class); after super.onClick(); ? Yes, that was it. Thanks Martijn and Maurice! /Anders - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Javadoc?
i was even referring to getting the javadocs for offline use by downloading it. On 1/12/08, Johan Compagner <[EMAIL PROTECTED]> wrote: > > We also have them on wicketstuff.org/wicket13doc i believe > Dont know if that is the latest version and i cant check it at this time > > On 1/11/08, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote: > > The javadoc does not come with the wicket 1.3 bundle. > > > > Where can the javadoc for all the wicket1.3 builds be found? > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Aladejebi Ayodeji A., DabarObjects Solutions Phone: +234 9 481 7 156 Mobile: +234 803 589 1780 Email: [EMAIL PROTECTED] Web: www.dabarobjects.com Blog: blog.dabarobjects.com Participate, Collaborate, Innovate Join Community: http://www.cowblock.net/ Get A Free Blog: http://blogs.cowblock.net/