Re: Storing and retrieving user uploaded images
Thanks everyone, I was able to fix it by doing: When uploading a picture: WebApplication.get().getServletContext().getRealPath() + / + profilePics + /; When retrieving a picture: WebApplication.get().getServletContext().getContextPath() + / + profilePics + / + userId + /; - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Why is MarkupContainer.add(Component...) final?
Why is MarkupContainer.add( Component...) final, while MarkupContainer.addOrReplace( Component...) is virtual? I'd like to be able to subclass MarkupContainer and override add, but I can't because it's final. What's the reason it's final? (Of course, I can instead write myAdd() and call add from it, at teh cost of not having a consistent interface.) Thanks, Tom - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicket tree
Just out of curiosity, are you using a theme with your wicket-tree? Meaning new WicketTree(...,new WindowsTheme());... Pretty sure this is the wicket-tree from wicket-stuff project. You can just look at their css and write your own, I am not sure why this is not working at all... have you tried using firefox debug to see if the css changes you want will have the component look the way you want. Maybe they are being applied but due to css there is a bug with your browser or css code in the bigger scheme of things? I am just curious so we can narrow down the issue. Btw, with the wicket-tree code being open source you can always add a method to tack on to its onComponentTag of the WicketTree component itself just write: String addition = ; public void addToComponentTag(String...){addition = ...;} @Override public void onComponentTag(ComponentTag tag){...} Personally not the way I would want to do it, but if your getting fed up it is feasible, at least as a way to check if the css would work etc msj121 mlabs wrote: well i'm beginning to get the impression that this particular tree isn't intended for re-use .. and grepping around here I see that others have run into this little chestnut too.. and that there is a better tree to use now .. the LinkTree ? Ok so I tried that and no problems with sizing .. much better.. so I guess the wicket examples are just out of date with respect to trees..? just noticed that link selection highlight doesn't work properly with this tree *sigh* are there any working tree examples out there? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-tree-tp3313498p3314799.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket E-Commerce
My cursory inspection of Broadleaf suggests that it cleanly separates into four (five) main parts: broadleaf-profile, broadleaf-framework, broadleaf-profile-web, broadleaf-framework-web, (broadleaf-core). I think you could write a wicket fronted to it, by linking to the profile and ecommerce jars. That said, the lack of documentation would mean reverse-engineering the -web parts. On 1/30/2011 12:36 AM, msj121 wrote: I know that there were talks of a Wicket Cart on the forum that never materialized. I looked at Apache OFBiz, BroadLeaf, Konakart etc... I ran their examples. I was curious if anyone knew of a pure backend JEE solution for e-commerce, so that integrating the business logic might be well documented regardless of the front end. OfBiz has too much compared to what I need at the moment. BroadLeaf seems somewhat complicated as it is geared to JSP pages seemingly and there is little documentation available (I have attempted to go through source code, but I am not further then I was when I started). I like Wicket not JSPs. Though it seems like it would be a fine solution otherwise, though it extensively uses Spring and I don't, but probably not a big deal. Konakart is simply not open Though there is a Ted who has commented and put some insight into how to get the code running in Wicket. Have others used this framework? Thoughts? I guess I am a little bit lost with all the options and I am not having much luck in regard to searches or understanding these other frameworks in regard to getting them into Wicket. Has anyone had insight into these frameworks and Wicket? Any advice? Better frameworks to try? Thank you in advance. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org