Re: Dynamically Generated Wicket UI
The last release supports Wicket 1.3, but trunk supports 1.4 for a long time and a new release should happen soon. Regards, Daniel Josh Kamau wrote: > > Hi; > > I have looked at wicketwebbeans and it looks impressive. Does it support > wicket 1.4.5 ? the currently available download at googlecode is dated > April > 2009 . > > -- View this message in context: http://old.nabble.com/Dynamically-Generated-Wicket-UI-tp27351082p27358527.html Sent from the Wicket - User 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 + jdbc template app
Just set up your connection in your Application subclass and provide a method to get it from wherever you need it. Use connection pooling. Daniel idudko wrote: > > Hello, guys! > > I want to use wicket with plain jdbc without any persistence framework. > Where i can find template application for this type of data source? > > Thank you for answer! > > -- View this message in context: http://old.nabble.com/wicket-%2B-jdbc-template-app-tp26151790p26152287.html Sent from the Wicket - User 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 Release Plans for 1.5
Thanks for your answer, Daniel igor.vaynberg wrote: > > the focus of this release is to rewrite url and page handling. the > focus is on flexibility and pluggability as well as simplification of > use to the end user. > > the other major feature is the markupfragment implementation, which > will allow users access to the markup the component is attached to, > possibly, at a time earlier then render time. > > other then that there will probably be smaller features that will not > go into 1.4.x because they require an api break. > > -igor > > On Thu, Oct 29, 2009 at 10:38 AM, dtoffe wrote: >> >> Besides, it would be very interesting to know what changes and new >> features are planned. >> >> Cheers, >> >> Daniel >> > > -- View this message in context: http://www.nabble.com/Wicket-Release-Plans-for-1.5-tp26115807p26117927.html Sent from the Wicket - User 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 Release Plans for 1.5
Besides, it would be very interesting to know what changes and new features are planned. Cheers, Daniel Corbin, James-2 wrote: > > I noticed that 1.5 maintenance releases are available. Can someone > speculate on the release time frame for 1.5? > > We are contemplating an upgrade from 1.4.1 and want to avoid upgrading > to 1.4.3 and then 1.5 immediately after that. > > Regards, > > J.D. > > -- View this message in context: http://www.nabble.com/Wicket-Release-Plans-for-1.5-tp26115807p26117574.html Sent from the Wicket - User 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 Eclipse plugin, is there another?
Hi, Being a Netbeans user myself I've tried the plug-in some time ago and even submitted a small patch to one of the examples included in the plugin. I don't remember the specific features now, but I've read in some Wicket Bench docs or article about features that the Netbeans plugin doesn't have. In my opinion, writing another one as Pedro suggest would be a waste, I don't know how good or bad Wicket Bench is but you can always contribute features and/or fixes to it, you know, good patches are welcomed mostly everywhere. By the way, just out of curiosity, what are the specific features you are missing in Wicket Bench ?? Regards, Daniel Nicolas Melendez wrote: > > I'm not very fan of netbeans :) > > Thanks, for answer. > > another sugggestion? > > > On Wed, Oct 21, 2009 at 6:57 PM, Fernando Wermus > wrote: > >> I know, but I havent tested it, that netbeans comes with a plug in for >> wicket. >> >> On Wed, Oct 21, 2009 at 1:00 PM, Nicolas Melendez < >> nmelen...@getsense.com.ar >> > wrote: >> >> > Hi, is there another wicket plugin for eclipse?Wicket Bench project >> seems >> > to >> > have low activity. >> > Any sugestion? >> > Thanks. >> > NM >> > >> > > -- View this message in context: http://www.nabble.com/Wicket-Eclipse-plugin%2C-is-there-another--tp25994243p26000875.html Sent from the Wicket - User 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: Open source Wicket blog -> Open Source CMS with Wicket
I fully agree with you. Daniel Erik Post-5 wrote: > > Hi Ralph, > > Right, I'd glossed over that. I have to say though that the > disctinction between the two lists seems a bit arbitrary to me. For > . > immediately evident, but I would peronally prefer a list of sites/apps > that showcase what you could do with Wicket, vs. a separate list of > stuff that developers can actually use in development. In that sense > Brix and, say, Wicketopia are more closely related, wouldn't you > agree? > > -- View this message in context: http://www.nabble.com/Open-source-Wicket-blog-tp25886040p25900041.html Sent from the Wicket - User 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: Open source Wicket blog -> Open Source CMS with Wicket
Have you seen Brix ?? http://code.google.com/p/brix-cms/ Daniel Bernhard Grünewaldt wrote: > > Hello, > > It is very interesting to have a wicket blog, > but for me even more interesting would be a cms based on wicket > that integrates very smoothly into an existing wicket webapp. > > At the moment we use typo3 together with our java webapp. > > Would be nice to have a solution where everything is java > and the same framework :) > > Is there such a thing? > > > Bernhard > > Maarten Bosteels schrieb: >> I got some really cool ideas from the elephas code, but it seems the >> project >> has stalled a bit ? >> The last commit was 18 dec 2008 >> >> Maarten >> > -- View this message in context: http://www.nabble.com/Open-source-Wicket-blog-tp25886040p25893055.html Sent from the Wicket - User 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: [WIKI] "Websites based on Wicket" page presentation
Chronological, newest at the top seems the best choice, but there is a subtle difference in whether you consider the launch date of the site, or the date in which the site was added to your catalog of Wicket sites. Date of adding is better so you know what sites you haven't looked at yet, and should be the default IMHO, but having a choice of sorting by launch date would be nice also. Cheers, Daniel jWeekend wrote: > > . > One question that came up is whether the pages listed by URL there > should be ordered alphabetically or chronologically. > > For me, chronological (newest at top, as had been the case originally) > makes much more sense because when I look at the site, I can see how > things have evolved, quickly identify what's new since I last looked > and also answer questions like "what were the first public Wicket > sites listed here?". This is also a much more robust sorting scheme > . > I doubt anyone else has ever been worried about this, but if > anyone else has a view on it I'd be pleased to know about > it and if there are some good reasons for alphabetically > ordering too the list that I have missed I can stop messing up > Ralf's order! > > Regards - Cemal > jWeekend > OO & Java Technologies, Wicket Training and Development > http://jWeekend.com > > -- View this message in context: http://www.nabble.com/-WIKI--%22Websites-based-on-Wicket%22-page-presentation-tp25880274p25880736.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How do you achieve persistency
<-- your joke O /|\<-- me /\ I've read so long and unbelievable discussions regarding relational vs ORM persistence, I'm always afraid of asking... Cheers, Daniel igor.vaynberg wrote: > > http://dictionary.reference.com/browse/facetious > > -igor > > On Wed, Oct 7, 2009 at 8:54 AM, dtoffe wrote: >> >> This is an example of a requirement that often pops up where I work: >> let's say the system registers sales, there are an average 5K orders a >> day >> and each sale has an average 3 items. Items have a category. I'm required >> to >> produce a listing of daily sales grouped by category, with a daily total. >> In >> each row I'm required to provide the same data for the same day of the >> previous year. The listing must be produced for any given pair of start >> and >> end dates. >> I don't believe a file system serialization based persistence >> mechanism >> will do well for a requirement like this, although I must admit I never >> tried that before. Can you give me a clue of a comparison it to an old >> fashioned relational database please ? >> >> Cheers, >> >> Daniel >> >> >> igor.vaynberg wrote: >>> >>> pft, just use a lucene file crawler, you get super fast searching for >>> free! >>> >>> -igor >>> >>> On Tue, Oct 6, 2009 at 5:52 PM, James Carman >>> wrote: >>>> What about queries against your persistent storage tier? Wouldn't >>>> that be quite slow? >>>> > -- View this message in context: http://www.nabble.com/How-do-you-achieve-persistency-tp25765566p25789750.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How do you achieve persistency
This is an example of a requirement that often pops up where I work: let's say the system registers sales, there are an average 5K orders a day and each sale has an average 3 items. Items have a category. I'm required to produce a listing of daily sales grouped by category, with a daily total. In each row I'm required to provide the same data for the same day of the previous year. The listing must be produced for any given pair of start and end dates. I don't believe a file system serialization based persistence mechanism will do well for a requirement like this, although I must admit I never tried that before. Can you give me a clue of a comparison it to an old fashioned relational database please ? Cheers, Daniel igor.vaynberg wrote: > > pft, just use a lucene file crawler, you get super fast searching for > free! > > -igor > > On Tue, Oct 6, 2009 at 5:52 PM, James Carman > wrote: >> What about queries against your persistent storage tier? Wouldn't >> that be quite slow? >> >> On Tue, Oct 6, 2009 at 6:07 PM, Martijn Dashorst >> wrote: >>> I would use the package names as directories and the class names as >>> the inner most directory name (with a capital). This immediately makes >>> it an ORM solution. Inheritance hierarchies can be created by >>> symlinking the instances to each super type's directory. >>> >>> Martijn >>> > > -- View this message in context: http://www.nabble.com/How-do-you-achieve-persistency-tp25765566p25789315.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How do you achieve persistency
Just checked it, the source code for jPersist is not available "again", it is too much of a risk to my taste. Daniel dtoffe wrote: > > I've used it also, but it changed source availability, licensing and > code repositories too many times to my taste, and I'm trying to remove it > from all my code. I would consider a solution like that if it was a little > more mainstream, widely used and with a supporting community. To date, I > haven't found a better alternative, but would be very glad to find it. > > Cheers, > > Daniel > > > > T Ames wrote: >> >> I use a product called JPersist - no XML, just POJOs. Has built in >> pooling. >> I instantiate the DatabaseManager in the web application and use a >> getter. >> >> http://www.jpersist.org >> >> It has a list of tested databases, but I use Microsoft SQL. Haven't had >> too >> many issues with it. >> >> On Tue, Oct 6, 2009 at 5:34 AM, Peter Arnulf Lustig >> wrote: >> >>> What's the fast and easy way? >>> >>> I am asking because of a lot of trouble with hibernate. >>> >>> >> > > -- View this message in context: http://www.nabble.com/How-do-you-achieve-persistency-tp25765566p25776608.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How do you achieve persistency
I've used it also, but it changed source availability, licensing and code repositories too many times to my taste, and I'm trying to remove it from all my code. I would consider a solution like that if it was a little more mainstream, widely used and with a supporting community. To date, I haven't found a better alternative, but would be very glad to find it. Cheers, Daniel T Ames wrote: > > I use a product called JPersist - no XML, just POJOs. Has built in > pooling. > I instantiate the DatabaseManager in the web application and use a getter. > > http://www.jpersist.org > > It has a list of tested databases, but I use Microsoft SQL. Haven't had > too > many issues with it. > > On Tue, Oct 6, 2009 at 5:34 AM, Peter Arnulf Lustig > wrote: > >> What's the fast and easy way? >> >> I am asking because of a lot of trouble with hibernate. >> >> > -- View this message in context: http://www.nabble.com/How-do-you-achieve-persistency-tp25765566p25776501.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How do you achieve persistency
James, you have a couple of really good points there, I can't unit test as easily as you would with ORM, but keep in mind that I'm talking about mostly legacy queries that I would otherwise need to rewrite completely. For some complex stored procs I have scripts that create copies of the affected db objects, fill them with test data and evaluates the result, but this is obviously not a good or maintainable solution. I do intend to try dbunit, but had not time to do it yet. And yes, there is kind of a nightmare since there is a big deal of reports and listings with cross referenced data, and everytime there are changes in the database structure, a lot of them need to be tested to be equally valid against old data and new data. Some of this could be alleviated by other reporting tools, but I fail to see how ORM would be of any help for this. I would say most of web applications' data don't follow this pattern and are best suited for ORM, but some data is inherently relational, set based, and forcing them through ORM doesn't sound to me like a good choice. It's a fact that all ORMs out there allow you for "back door queries", if you allow me to state it this way, when performance is an issue or the SQL is fairly complex. This is why I pointed out that there is no silver bullet and that the right tools may vary according to the requirements. Cheers, Daniel James Carman-3 wrote: > > On Tue, Oct 6, 2009 at 12:32 PM, dtoffe wrote: >> So our fast and easy way is to use code generation to get JDBC based >> DAOs that wrap the stored procs call. We even keep writing stored procs >> for >> new requirements, all our devs know SQL well and I don't believe we will >> gain anything by using Hibernate instead. > > How do you unit test? How do you keep the stored procedures and your > Java code in synch? I only ask because I've seen that sort of set-up > at a client before and they had a nightmare of a time keeping things > straight and making sure they didn't break other things when they > changed their stored procedures. For me, I like to keep my logic out > of stored procedures as much as I can. > > -- View this message in context: http://www.nabble.com/How-do-you-achieve-persistency-tp25765566p25776405.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How do you achieve persistency
Imho, there is not an "universal" fast and easy way. We are migrating a mid-sized client-server system which has a fairly big number of rather complex queries already written as stored procedures. So our fast and easy way is to use code generation to get JDBC based DAOs that wrap the stored procs call. We even keep writing stored procs for new requirements, all our devs know SQL well and I don't believe we will gain anything by using Hibernate instead. If you are starting from scratch by modeling the domain as java classes, then I guess ORM would be your best choice, but can't give you hints on what specific tool would be best for you. Cheers, Daniel Peter Arnulf Lustig wrote: > > What's the fast and easy way? > > I am asking because of a lot of trouble with hibernate. > > > -- View this message in context: http://www.nabble.com/How-do-you-achieve-persistency-tp25765566p25772167.html Sent from the Wicket - User 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: Dual Use wicket:id
You could also use fragments, this is how Wicket Web Beans handles viewonly mode: http://grepcode.com/file/repo1.maven.org$mav...@net.sourceforge.wicketwebbeans$wicketwebbeans@1...@net$sourceforge$wicketwebbeans$fields$inputfield.java hth, Daniel J.D. Corbin wrote: > > Yeah, I was aware of the Ajax Label Edit COntrol. Not exactly what > I'm looking for, but looking at its implementation, I now know how I > can do it. > > Thanks, > J.D. > On Sep 12, 2009, at 9:11 PM, Jeremy Thomerson wrote: > >> This might help you: >> http://www.google.com/search?q=wicket+editable+label >> >> Otherwise, you certainly can create small components that can work >> with read >> or write mode to fit your needs. >> >> -- >> Jeremy Thomerson >> http://www.wickettraining.com >> >> >> >> On Sat, Sep 12, 2009 at 10:06 PM, J.D. Corbin >> wrote: >> >>> Hello, >>> >>> I would like to create a single page markup that I share for >>> editing and >>> read-only views. >>> >>> For example, when in read-only mode I might display a label and in >>> edit >>> mode a TextField. >>> >>> I know I can use a textfield and set the enabled behavior to false, >>> but the >>> visual display isn't very appealing in that case and don't want to >>> decorate >>> it using css. Typically the value I display in read-only mode for >>> the field >>> is a bit different than the edited value in edit mode. >>> >>> I was hoping I could define a SPAN tag in my markup and then either >>> render >>> a label or textfield depending upon the mode I was in, either read- >>> only or >>> edit. Unfortunately this doesn't work because a TextField has to be >>> rendered using an INPUT tag. >>> >>> One thing I thought about was defining two fields, one for the edit >>> field >>> and one for the read-only field and then control their visibility >>> depending >>> upon the mode I was in, but that isn't very elegant. >>> >>> My main goal is to avoid having to create separate markup for the >>> editor >>> and read-only view. >>> >>> Any suggestions? >>> >>> J.D. >>> >>> > -- View this message in context: http://www.nabble.com/Dual-Use-wicket%3Aid-tp25420184p25423250.html Sent from the Wicket - User 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: Is it possible to restart an AjaxSelfUpdatingBehaviour after it has been stopped?
nLoadJavascript(getJsTimeoutCall(updateInterval)); } } /** * @see org.apache.wicket.ajax.AbstractAjaxTimerBehavior#onTimer(org.apache.wicket.ajax.AjaxRequestTarget) */ protected final void onTimer(final AjaxRequestTarget target) { target.addComponent(getComponent()); onPostProcessTarget(target); } /** * Give the subclass a chance to add something to the target, like a javascript effect call. * Called after the hosting component has been added to the target. * * @param target *The AJAX target */ protected void onPostProcessTarget(final AjaxRequestTarget target) { } } If I recall correctly, I had to make a small change in other method, I believe it's in renderHead() or in respond(), please check that, I'm in a hurry right now. hth, Daniel CrocodileShoes wrote: > > Thanks Daniel, > > I've just tried this and it's not worked. Obviously it's a slightly > different use case, that is, changing tabs and popping up a modal window > but I'd hoped it would work. > > It turns out that the stopped flag is not actually set to true. That's > why your method doesn't work. When I change tabs the timer is still > running and when it fires I get the following message: > > INFO: Ajax GET stopped because of precondition check, > url:?wicket:interface=:0:tabs:panel:logOutput::IActivePageBehaviorListener:0:-1&wicket:ignoreIfNotActive=true > > > > dtoffe wrote: >> >> Hi, >> >> Also take a look at this thread: >> >> >> http://www.nabble.com/AjaxSelfUpdatingTimerBehavior-and-ModalWindow-to22202102.html >> >> I don't mean it's a correct or better solution, but so far it works >> for me. >> >> Hth, >> >> Daniel >> > > -- View this message in context: http://www.nabble.com/Is-it-possible-to-restart-an-AjaxSelfUpdatingBehaviour-after-it-has-been-stopped--tp24626909p24644786.html Sent from the Wicket - User 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: Is it possible to restart an AjaxSelfUpdatingBehaviour after it has been stopped?
Hi, Also take a look at this thread: http://www.nabble.com/AjaxSelfUpdatingTimerBehavior-and-ModalWindow-to22202102.html I don't mean it's a correct or better solution, but so far it works for me. Hth, Daniel CrocodileShoes wrote: > > Well I was adding this behaviour in the constructor of the Panel, i.e. > > this.add(new AjaxSelfUpdatingBehaviour(...)); > > which I assumed resulted in the same effect. > > I have just changed it to the following (see below) and now get a null > pointer when the behaviour tries to update the panel after I switch to > another one, i.e. when the panel is no longer visible. > > Note, I am storing the panels in a List (tabsList) to prevent them being > recreated every time a user switches tabs. I did this to preserve the > state. Perhaps this is causing some problems. > > So to recap, this now throws a null pointer (at > org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:96) > presumably because the panel isn't in the markup to update. > > tabs.add(new AbstractTab(new Model("Administration")) { > public Panel getPanel(String panelId) { > if (tabsList.containsKey("Administration")) { > return tabsList.get("Administration"); > } > else { > AdminPanel adminPanel = new AdminPanel(panelId); > adminPanel.setOutputMarkupPlaceholderTag(true); > adminPanel.add(new > AjaxSelfUpdatingTimerBehavior(Duration.seconds(5))); > tabsList.put("Administration", adminPanel); > return adminPanel; > } > } > }); > > > > igor.vaynberg wrote: >> >> cant you add the behavior directly to the panel? >> >> -igor >> > > -- View this message in context: http://www.nabble.com/Is-it-possible-to-restart-an-AjaxSelfUpdatingBehaviour-after-it-has-been-stopped--tp24626909p24629265.html Sent from the Wicket - User 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: AjaxSelfUpdatingTimerBehavior and ModalWindow
There is an enhancement request in Wicket JIRA for this issue, but it is set to 1.5 release... http://issues.apache.org/jira/browse/WICKET-1525 In the meantime, the class I created merging AjaxSelfUpdatingTimerBehavior and AbstractAjaxTimerBehavior is working fine, although I agree that when the page refreshes on a timer it seems somewhat sluggish. hth, Daniel satar wrote: > > I know this is an old post but it hits an issue I currently have. I want > to provide the user the ability to turn on/off auto refresh of data from > the database. If all possible, I would like to use the original > AjaxSelfUpdatingTimerBehavior or at least the AbstractAjaxTimerBehavior > but it has the stopped boolean as a private with no way to set it back to > true and the methods that use it use it directly instead of calling a > method that I can override -- am I missing something? > > The man reason I want to do this is for performance trade-offs. I see that > if I set the timer off by calling the stop() method, the interface is much > snappier. It looks like another potential idea may be to override the > method renderHead, but I cannot override the respond method, which uses > the stopped boolean. > > Is there a better way to handle such a problem -- I am using Wicket > 1.4-r2. > -- View this message in context: http://www.nabble.com/AjaxSelfUpdatingTimerBehavior-and-ModalWindow-tp22202102p24595575.html Sent from the Wicket - User 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
Serious performance degradation
Hi all, I'm testing a small app about to enter in production, and I've found that performance degrades seriously in a rather small amount of time, even with one single session. The first problem I guess is the lack of LDMs, I underestimated its importance mainly because the application is expected to have only a very small amount of simultaneous sessions (it's an intranet only app), but I will fix that tomorrow adding LDMs. The app also has a refreshing behavior set to refresh every 120 seconds. The main page has two small tables, one of them is loaded by editing one bean in another panel, saving it to DB and refreshing the table (up to some 60-80 rows). Doing a quick profiling using the app for some 30 minutes or so, I've found that most of the memory is used by PropertyResolver.ObjectAndGetSetter (80Mb), followed by char[] (26 Mb) and byte[] (23 Mb). Perhaps this hints to some known issue or mistake in my code ? I will review all my code for memory leaks. Besides changing my models to LDMs, is there any other common bad practice that I should be aware of, any usual coding error that causes memory leaks by wrong usage of Wicket ?? Thanks in advance, Daniel -- View this message in context: http://www.nabble.com/Serious-performance-degradation-tp22774430p22774430.html Sent from the Wicket - User 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: Need Wicket Examples
You have a Component Reference here: http://wicketstuff.org/wicket13/compref/ This and the two you mentioned are, in my opinion, the best collections of live examples you can find. Besides there are lots of other useful things scattered in many sites, and you can also look at the code in wicketstuff, etc. Hth, Daniel Farhan Bajwa wrote: > > Is there any resource which provides detailed examples in Wicket > framework, other than the examples provided in the wicket > library http://www.wicket-library.com/wicket-examples/ or > http://wicket.apache.org/examples.html ? > > -- View this message in context: http://www.nabble.com/Need-Wicket-Examples-tp22700061p22702271.html Sent from the Wicket - User 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: radio button ajax behaviour
Have you tried with an AjaxEventBehavior and an "onchange" event ? See the javadocs for AjaxEventBehavior. Daniel SrinivasaRaju Ch wrote: > > Hi, > > I am unable to apply ajax behaviour to radio button. I want my > components to be shown and hide with RadioChoice. > > > Regards, > Srinivasa Raju CH. > > -- View this message in context: http://www.nabble.com/radio-button-ajax-behaviour-tp22659660p22662062.html Sent from the Wicket - User 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 WebBeans Project...
Leszek Gawron-2 wrote: > > > Is wicketwebbeans project active currently? It looks like it's still > using wicket 1.3... > > -- > Leszek Gawron > > It's active, the project admin has been very busy but there are some other people interested. There's a plan to release WWB 1.1 (still for W 1.3.x) sometime next week, and starting a port to W 1.4 shortly after, with a release expected after W 1.4 goes final. Cheers, Daniel -- View this message in context: http://www.nabble.com/Wicket-WebBeans-Project...-tp22601152p22604311.html Sent from the Wicket - User 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: Modal Window performance problem
Just in case it's useful to you, I've tried what you suggested and the recursive calls doesn't show in the profiler anymore, but the performance in that box is just as bad. Even if there might be some room for improvement, in this case I blame the crappy hardware, since the performance is ok in the other machines I've tried it. Daniel Matej Knopp-2 wrote: > > Hi, > > there is good reason why dissablefocuselement is called. Altough there > certainly is room for performance improvements. Still, it's > javascript, so you can replace disablefocuselements in modal window > prototype with an empty function if you don't need it or it causes you > problems. > > -Matej > > -- View this message in context: http://www.nabble.com/Modal-Window-performance-problem-tp22482640p22543282.html Sent from the Wicket - User 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: Updating Main Page From Modal Using AJAX
Hi, I'm doing just what you explained, but the modal window content is a page instead of a panel. The Ajax debug window shows an error indicating that the component I'm trying to update was not found: ERROR: Component with id [[beanForm423]] a was not found while trying to perform markup update. Make sure you called component.setOutputMarkupId(true) on the component whose markup you are trying to update. component.setOutputMarkupId(true) is already there, but in the main page, not in the page contained in the modal window. Is there any way of making it work in this case, other than rewriting the contained page to a panel ?? Thanks, Daniel tbt wrote: > > > once the add button is clicked the users inside the modal window will be > displayed on the main page. > > -- View this message in context: http://www.nabble.com/Updating-Main-Page-From-Modal-Using-AJAX-tp22441758p22489608.html Sent from the Wicket - User 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
Modal Window performance problem
Hi, I'm having performance problems when opening a modal window. This problem occurs on a lower end POS touchscreen box (Celeron 900, 512 RAM), where the modal window takes some 6-9 seconds to open. I've tried in other lower end machines with better processor and the delay is not so big. Out of curiosity, I've profiled the modal window javascript with Firebug, and found that disableFocusElement() in modal.js, line 1374, calls itself recursively, and in the profiler output it's listed at the top with 1049 calls. Since the problem occurs mostly only on that machines, I'm not blaming the javascript code, but I wonder if anyone else has had similar problems and if there is some way of avoiding the recursive calls. Almost forgot to say, I'm using Wicket 1.3.5 and Firefox 3.0.7/MSIE 7.0. Thanks for your comments, Daniel -- View this message in context: http://www.nabble.com/Modal-Window-performance-problem-tp22482640p22482640.html Sent from the Wicket - User 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: AjaxSelfUpdatingTimerBehavior and ModalWindow
I post my solution just in case someone else finds it useful. I've created a copy of AbstractAjaxTimerBehavior and added the methods in AjaxSelfUpdatingTimerBehavior. Then I added a start method: public final void start(final AjaxRequestTarget target) { stopped = false; target.getHeaderResponse().renderOnLoadJavascript( getJsTimeoutCall(updateInterval)); } In the onClick() of the AjaxLink that opens the ModalWindow, I call behavior.stop(), then in the close of the ModalWindow, I call behavior.start(target). Seems to be working ok so far. Hope this helps, Daniel dtoffe wrote: > > Hi, > > Is there an easy way of stopping an AjaxSelfUpdatingTimerBehavior when > a ModalWindow is opened, and restarting it again when the modal is closed > ?? > AbstractAjaxTimerBehavior provides a stop() method, but not a > (re)start, I would like to know if it is possible to get the desired > functionality only by overriding some methods, or if I need to do a > customized rewrite of that class. > > tia, > > Daniel > > -- View this message in context: http://www.nabble.com/AjaxSelfUpdatingTimerBehavior-and-ModalWindow-tp22202102p5064.html Sent from the Wicket - User 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
AjaxSelfUpdatingTimerBehavior and ModalWindow
Hi, Is there an easy way of stopping an AjaxSelfUpdatingTimerBehavior when a ModalWindow is opened, and restarting it again when the modal is closed ?? AbstractAjaxTimerBehavior provides a stop() method, but not a (re)start, I would like to know if it is possible to get the desired functionality only by overriding some methods, or if I need to do a customized rewrite of that class. tia, Daniel -- View this message in context: http://www.nabble.com/AjaxSelfUpdatingTimerBehavior-and-ModalWindow-tp22202102p22202102.html Sent from the Wicket - User 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: What IDE best fits with Wicket?
There is a Wicket plugin in the Netbeans plugins center, but I prefer to configure it as a library. If you use Maven based projects, adding the references to the pom should be enough I guess. Hth, Daniel Eduardo Nunes wrote: > > Do you use some plug-in? > > I like netbeans too. > > -- View this message in context: http://www.nabble.com/What-IDE-best-fits-with-Wicket--tp22168133p22169788.html Sent from the Wicket - User 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: Modal window from modal window
Yes it's possible, see the examples here: http://www.wicket-library.com/wicket-examples/ajax/modal-window.2 You can also create a BasePage containing a ModalWindow and use it as a base for all the pages you want to show in a modal window, so you can open a modal window from any other modal window in a somewhat more reusable fashion. Hth, Daniel Michal Hybler wrote: > > Hi, > is there possibility to open modal window from modal window in wicket? I > have form in modal window and i want to implement button that opens next > modal window with some user options. > > Thnx for your answers. > with regards Michal > -- View this message in context: http://www.nabble.com/Modal-window-from-modal-window-tp22059941p22060770.html Sent from the Wicket - User 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
Spanish Wicket User Group
Hi all, Just to announce the spanish speaking Wicket User Group: http://groups.google.com.ar/group/wicket-es We are few yet but the number of members is growing, everybody is welcomed. Cheers, Daniel == Hola a todos, Solo para anunciar el Grupo de Usuarios de Wicket en español: http://groups.google.com.ar/group/wicket-es Aún somos pocos pero la cantidad de miembros va creciendo, todos son bienvenidos. Saludos, Daniel -- View this message in context: http://www.nabble.com/Spanish-Wicket-User-Group-tp22044231p22044231.html Sent from the Wicket - User 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: Behaviors and Strategy pattern
I agree, in general you can have many Behaviors added toghether, and with a Strategy you would have to choose one from the available options. Daniel Thomas Mäder-2 wrote: > > It's probably closer to a decorator. > > Thomas > > On Sun, Feb 8, 2009 at 11:19 AM, HHB wrote: > >> >> Hey, >> Is Behaviors in Wicket are implementation of the Strategy Pattern? >> Thanks. >> -- > > -- View this message in context: http://www.nabble.com/Behaviors-and-Strategy-pattern-tp21897409p21902181.html Sent from the Wicket - User 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: migration from jsf to wicket
For 1) I suggest you to take a look at Wicket Web Beans: http://wicketwebbeans.sourceforge.net/ Cheers, Daniel janneru wrote: > > martin & john, > > thank you very much for your ideas! > this helps me very much to make the next steps, i will post the results > when > the integration is done! > > bestregards, uwe! > > -- View this message in context: http://www.nabble.com/migration-from-jsf-to-wicket-tp21724080p21733565.html Sent from the Wicket - User 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: different modal windows from same link or just multiple links?
Sure, I send you a private msg with attachment. Daniel Steve Swinsburg-2 wrote: > > Hi Daniel, > > Do you mind sharing some code? I would prefer to be using the same > modal window if possible. > > > cheers, > Steve > > -- View this message in context: http://www.nabble.com/different-modal-windows-from-same-link-or-just-multiple-links--tp21624404p21630309.html Sent from the Wicket - User 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: different modal windows from same link or just multiple links?
I've created a subclass of ModalWindow in which I can set from outside the class of the page to be created. Then, I've created a WebPage subclass that has one of that subclass of ModalWindow. So whenever I need modal windows, I subclass that page and use the same modal window from all the buttons and links, setting in each case the page that needs to be opened and the callback. In your case, perhaps you can use fragments to show only one link or button at a time, depending on your model, and setting in each one what page needs to be opened. hth, Daniel Steve Swinsburg-2 wrote: > > Hi all, > > I have a situation where depending on some circumstances, any one of > three different modal windows could be activated by clicking a single > link, which itself changes. > > ie add/confirm/remove > > but only one can be visible at any one time. I don't want three links. > Is there any way to do this by setting the onClick handler of the > AjaxLink that normally just contains: > final AjaxLink connectionLink = new AjaxLink("connectionLink") { > public void onClick(AjaxRequestTarget target) { >connectionWindow.show(target); > } > }; > > to be dynamically set, ie connectionWindow.show(target); is set at a > later stage. > > Or will I just need multiple modal window placeholders and multiple > links and just show/hide the relevant ones? > > I would also need the connectionWindow.setWindowClosedCallback > to react differently based on which modal window was closed. > > Is there any point in what I am trying to do or should I just suck it > up and have three links/windows and control visibility? Will I achieve > any major performance hits by tripling everything? > > cheers, > Steve > > -- View this message in context: http://www.nabble.com/different-modal-windows-from-same-link-or-just-multiple-links--tp21624404p21626868.html Sent from the Wicket - User 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: Technologies to use with large scale Wicket application
I like this a lot, is very flexible and powerful, but it still doesn't support 1.4 and AFAIK the priority for the developer is in developing WWB 2.0. Anyway I guess patching WWB 1.0 for 1.4 should be far simpler that rolling your own. Besides this, there is Wicket RAD: http://sourceforge.net/projects/wicket-rad, haven't tried it yet but looks like similar in scope. hth, Daniel tauren wrote: > > > WicketWebBeans > Might use this for rapid back-end UI development. Besides rolling my > own, are there other tools like this? > > -- View this message in context: http://www.nabble.com/Technologies-to-use-with-large-scale-Wicket-application-tp21447510p21455820.html Sent from the Wicket - User 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: Twenty Six Wicket Tricks
It would be nice to see examples of complex components with values that depend on other values from the same component. As an example, I've recently build a tab panel, each tab contains a table of items each one with unit price and quantity, and the tab's Subtotal below the table. The whole tabpanel has a Total below it. When you enter a quantity for an item, his unitprice * quentity in the same row has to be updated, and also the Subtotal price for that tab and the Total price. Getting the Total of the whole component working was a bit tricky, and trying to think all that in terms of a reusable component was a bit tricky also. Happy new year ! Daniel Jonathan Locke wrote: > > Well, over the break here I've started something I swore I would never do > again (well, two things, if you include the JavaOne talk I'm working on). > I'm writing a (hopefully relatively short) book. It's called "Twenty-Six > Wicket Tricks". Each trick in the book (lettered from A-Z) demonstrates > something that people typically want to do and in the process builds a > reusable and educational component. I've got 13 tricks coded up now and > ideas for a handful more, but if there are any requests out there, please > let me know. I'd also be interested in getting some idea how many people > would be interested in this book (would provide some fuel for me to get it > done). It does not cover any of the same ground as Wicket in Action (which > you should buy if you have not already!), BTW. It's more of a companion to > that book. > > Happy Holidays! > > Best, > >Jonathan > > > -- View this message in context: http://www.nabble.com/Twenty-Six-Wicket-Tricks-tp21214357p21230921.html Sent from the Wicket - User 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: Applying Styles Through Java
walnutmon wrote: > > Also, as an aside, where can I find wicket jars for the 1.3.5 release with > javadocs contained so that I can see the javadocs from netbeans? I have > had a heck of a time without them. > > http://repo2.maven.org/maven2/org/apache/wicket/wicket/ At the moment I believe you will not find the release with the javadocs included. In this list it is often suggested to get the javadocs jar via Maven, but if you use Netbeans and your projects are not Maven based, you can download the wicket release, add the javadoc jar downloaded from this maven repo, and then configure as a Library, setting jars, sources and javadocs path with the Library Manager. hth, Daniel -- View this message in context: http://www.nabble.com/Applying-Styles-Through-Java-tp21145758p21146945.html Sent from the Wicket - User 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: Is there any collapsible container ?
Check this one: http://wicketwebbeans.sourceforge.net/wiki-html/NestedBeans.html Daniel miro wrote: > > Is there any collapsible container? > -- View this message in context: http://www.nabble.com/Is-there--any-collapsible-container---tp21112328p21117097.html Sent from the Wicket - User 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: [OT] wicket users around the world
Heh +10, seems pretty interesting indeed, very nice graphics... Nino.Martinez wrote: > > Interesting, why not localize the app, so we get it in english? :) > > Quan Zhou wrote: >> Beijing China.I'm using wicket to develop webgame named FBM >> (www.wedomo.com),it's >> 600,000 registers, and about 10,000 players online in average. >> I also develop my game master tools and log analyzers with wicket. >> I love it so much. >> >> 2008/12/15 Juri Prokofjev >> >> >>> Estonia, Tallinn >>> >>> I've tried many frameworks, but wicket is one of my favorite. >>> >>> On Mon, Dec 15, 2008 at 8:39 AM, Ashika Umanga Umagiliya >>> wrote: >>> Sri Lankan ,working in Japan > Kathmandu, Nepal > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> -- >>> http://www.autoladu.ee - kõik varuosad ühes kohas >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >>> >> >> > > -- > -Wicket for love > > Nino Martinez Wael > Java Specialist @ Jayway DK > http://www.jayway.dk > +45 2936 7684 > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://www.nabble.com/-OT--wicket-users-around-the-world-tp20962108p21018519.html Sent from the Wicket - User 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: Getting API/Wiki pages for offline reading
http://repo2.maven.org/maven2/org/apache/wicket/wicket/ There you have folders for each release, and inside are the javadoc jars, I dont know if wiki pages are provided in this way. HTH Daniel HHB wrote: > > Hey, > Why Wicket package doesn't include the API and Wiki pages (like Struts2 > for example)? > Any ideas how to get them for late night offline reading? > Thanks. > -- View this message in context: http://www.nabble.com/Getting-API-Wiki-pages-for-offline-reading-tp20998576p21003229.html Sent from the Wicket - User 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: wickethub.org
I like your idea, there are many wicket related projects in sourceforge and googlecode, some are empty but some are very interesting. Added three links. Please check the Topics field, I cannot modify a value and have the old values erased, they keep appearing and acumulating with the new values. Cheers, Daniel francisco treacy-2 wrote: > > i came up with an idea during the last weeks, having some trouble > finding wicket resources. > > although we have wicketstuff (which is great, and even more now with > jeremy's awesome job of reorganizing it) i feel there are still lots > of components, plugins or tools that are lost in cyberspace. thought > it would be neat to keep a sort of "registry" with useful information > for wicket developers. > > so i decided to quickly put some bits together from an old project and > rebaptised it as "the wicket hub" - a simple prototype @ > http://wickethub.org. > it's meant to be flexible, so except for the title there are no > required fields when you add/edit a "module". there are already some > examples. > > let me know what you think about features, its relation with > wicketstuff and if it's usable, etc. or even if the whole thing makes > no sense - any suggestions appreciated. > > francisco > > ps: goes without saying, but [disclaimer: it's completely > experimental] and be aware the place it's hosted is more like a > shoebox than a server :) > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://www.nabble.com/wickethub.org-tp20995774p2059.html Sent from the Wicket - User 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: [OT] wicket users around the world
Mar del Plata, Argentina. I'll post again the link provided by jwcarman since I like it very much: http://www.frappr.com/wicket Daniel francisco treacy-2 wrote: > > to know a little bit more of our great (and vast) community, i was > just wondering if you're keen on sharing where you come from and/or > where you work with wicket... > > for instance, here argentinian/belgian working with wicket in antibes, > france > > francisco > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://www.nabble.com/-OT--wicket-users-around-the-world-tp20962108p20976116.html Sent from the Wicket - User 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: have anyone tried empire-DB?
Wayne: If you come from a stored procedure heavy usage background and still need to use them, perhaps you can take a look at JPersist. We define two classes for each SP, one is a pojo that reflects the resultset columns (of course this assumes no SP will return different columns in different invocations) and the other is a wrapper for the query or execute operation, and we do this with a code generator which grabs all the metadata from the database. No XML, no mappings, nothing ! Of course it all depends on your needs, we had a lot of legacy DBs and the SP issue was an important one. If you are starting a new project, perhaps the decision criteria would be different. Feels free to contact me if you need some samples. Hope this helps, Daniel Wayne Pope wrote: > > > However my original quesiton still stands - any other db frameworks that > anyone recommends? > > -- View this message in context: http://www.nabble.com/have-anyone-tried-empire-DB--tp20016534p20129739.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 in Action PDF - font size
You can also try changing "fit width" to "fit visible", in the example pdf provided before the zoom went from 137% to 171% Daniel Eyal Golan wrote: > > >> > I downloaded the free first chapter of WIA. >> > It seems to me that the font is a bit small. >> > even when I "fit width" it is still too small. >> > I needed to zoom in more. >> > I could see that there's a big area in the left of the page that is not >> > used. >> > > > -- View this message in context: http://www.nabble.com/Wicket-in-Action-PDF---font-size-tp17583011p17592425.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 database access
Perhaps this examples can help you: http://wicketstuff.org/wicket13/repeater/;jsessionid=685F6D6B394FDC490370784672E4A8C0?wicket:bookmarkablePage=%3Aorg.apache.wicket.examples.repeater.FormPage Daniel dtoffe wrote: > > If I understand you correctly, what you want to do is something alike > to editing an MSAccess table, not even using JDBC or SQL, just messing > with the raw data, is this correct ?? I don't think you can do this with > Wicket, and even if possible, I don't believe this to be a good practice. > > Cheers, > > Daniel > > > > wjser wrote: >> >> I'm frustrated, because i didn't any answer to my question. I searched >> the wicket documentation and the web, but found no information. >> >> Nowadays no serios web application can be developed without database >> access and a no developer should be forced to use an object-relational >> mapper. >> >> I wann describe a requirement to be more precisely. >> Howto edit a dataset in a database in a form? The form looks like this: >> >> >> >> >> >> >> Any examples? >> >> > > -- View this message in context: http://www.nabble.com/Wicket-database-access-tp15613515p15629629.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 database access
If I understand you correctly, what you want to do is something alike to editing an MSAccess table, not even using JDBC or SQL, just messing with the raw data, is this correct ?? I don't think you can do this with Wicket, and even if possible, I don't believe this to be a good practice. Cheers, Daniel wjser wrote: > > I'm frustrated, because i didn't any answer to my question. I searched the > wicket documentation and the web, but found no information. > > Nowadays no serios web application can be developed without database > access and a no developer should be forced to use an object-relational > mapper. > > I wann describe a requirement to be more precisely. > Howto edit a dataset in a database in a form? The form looks like this: > > > > > > > Any examples? > > -- View this message in context: http://www.nabble.com/Wicket-database-access-tp15613515p15629469.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 database access
Take a look at JPersist (http://www.jpersist.org/). You can do plain JDBC and/or POJO oriented data access, and it's more code oriented that framework oriented, if this makes sense. I think it's easier to understand for people coming from years of desktop database development and when you have to access legacy databases with heavy usage of complex stored procedures. Disclaimer, I don't know nor use Spring or Hibernate, just didn't liked them. Daniel wjser wrote: > > Hi all, > > i have a simple question. > How can i access a database from wicket? > I don't want to use any object-relational mapper like hibernate or ibatis. > I wanna use plain old sql/jdbc. > > thanks in advance. > -- View this message in context: http://www.nabble.com/Wicket-database-access-tp15613515p15627491.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]
Changing the style of a ModalWindow
Hi !! I want to increase the font size of the caption title in a modal window. I've created a subclass of ModalWindow and added this to the start of the constructor: String captionStyle = " " " " " "; add(new StringHeaderContributor(captionStyle)); hoping that this style would override the same style defined in the modal window style sheet. But upon inspection of the source code in the browser window, I see this style doesn't appear to be generated. What I'm missing here ?? Cheers, Daniel -- View this message in context: http://www.nabble.com/Changing-the-style-of-a-ModalWindow-tp15243298p15243298.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]
SOLVED ! Re: Styled TabbedPanel in ModalWindow, cannot apply style to page
OK, I've found the source of the modal window frame with the help of Web Developer Firefox extension. Then solved the stylesheet issue with a header contributor. Cheers ! Daniel dtoffe wrote: > > > I'm trying to put a TabbedPanel like the one shown in the Wicket > examples within a ModalWindow. The ModalWindow is ok, the style of the > ModalWindow is ok, the page contained in the ModalWindow is ok but the > style of the TebbedPanel is broken, the tabs are rendered as a bulleted > list. > I got no error at all, so I think it must be a problem with the > location and/or references to the stylesheets. I tried to look at the > source code of the page but I see no trace of the page contained in the > ModalWindow, where can I see the source code of that page from the browser > ??? > > -- View this message in context: http://www.nabble.com/Styled-TabbedPanel-in-ModalWindow%2C-cannot-apply-style-to-page-tp14339903p14347092.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]
Styled TabbedPanel in ModalWindow, cannot apply style to page
Hi !! I'm trying to put a TabbedPanel like the one shown in the Wicket examples within a ModalWindow. The ModalWindow is ok, the style of the ModalWindow is ok, the page contained in the ModalWindow is ok but the style of the TebbedPanel is broken, the tabs are rendered as a bulleted list. I got no error at all, so I think it must be a problem with the location and/or references to the stylesheets. I tried to look at the source code of the page but I see no trace of the page contained in the ModalWindow, where can I see the source code of that page from the browser ??? Cheers, Daniel -- View this message in context: http://www.nabble.com/Styled-TabbedPanel-in-ModalWindow%2C-cannot-apply-style-to-page-tp14339903p14339903.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: .properties files question
Thanks for your help ! Cheers, Daniel igor.vaynberg wrote: > > just use Properties, thats what its for... no need for anything > wicket-related here > > -igor > > On Nov 18, 2007 9:46 AM, dtoffe <[EMAIL PROTECTED]> wrote: >> >> Hi ! >> >> Can I put arbitrary (I mean, not mapped to components) properties in >> my >> own subclass of WebApplication, or I have to put them in another place ? >> How should I load them ? Should I use java.util.Properties, or the >> wicket >> flavour ? >> I've been looking at the code of Properties, PropertiesFactory, >> Application, IResourceSettings, Settings and a couple other files, and >> also >> grepped the examples dir, but still I can't understand how to get my own >> configuration values from a .properties file the wicket way. >> I just need an easy way of getting initialization values that I don't >> want to be wired in MyApplication code, kind of what the .INI files are >> in >> the Windows world. >> >> Cheers, >> >> Daniel >> > -- View this message in context: http://www.nabble.com/.properties-files-question-tf4831100.html#a13823907 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SOLVED Re: .properties files question
I've found what I wanted in \test\java\org\apache\wicket\properties Cheers, Daniel dtoffe wrote: > > Hi ! > > Can I put arbitrary (I mean, not mapped to components) properties in > my own subclass of WebApplication, or I have to put them in another place > ? How should I load them ? Should I use java.util.Properties, or the > wicket flavour ? > I've been looking at the code of Properties, PropertiesFactory, > Application, IResourceSettings, Settings and a couple other files, and > also grepped the examples dir, but still I can't understand how to get my > own configuration values from a .properties file the wicket way. > I just need an easy way of getting initialization values that I don't > want to be wired in MyApplication code, kind of what the .INI files are in > the Windows world. > > Cheers, > > Daniel > > -- View this message in context: http://www.nabble.com/.properties-files-question-tf4831100.html#a13821697 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
.properties files question
Hi ! Can I put arbitrary (I mean, not mapped to components) properties in my own subclass of WebApplication, or I have to put them in another place ? How should I load them ? Should I use java.util.Properties, or the wicket flavour ? I've been looking at the code of Properties, PropertiesFactory, Application, IResourceSettings, Settings and a couple other files, and also grepped the examples dir, but still I can't understand how to get my own configuration values from a .properties file the wicket way. I just need an easy way of getting initialization values that I don't want to be wired in MyApplication code, kind of what the .INI files are in the Windows world. Cheers, Daniel -- View this message in context: http://www.nabble.com/.properties-files-question-tf4831100.html#a13821533 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: JPA best-practices?
I've found jPersist very interesting: http://sourceforge.net/projects/jpersist It's a different concept, it works by matching entity and attribute names between POJOs and database metadata names, and doesn't need xml configuration files at all. I like to think of it as "the wicket of persistence frameworks". It was open sourced in july and the community seems to be very small. I would gladly appreciate to hear what others think about it. BTW, I'm not in any way related to the project and/or its authors, just an user. Cheers, Daniel Chris Colman wrote: > > Have you seen exPOJO (http://expojo.com) yet? It an open source, very > lightweight framework, free for use in commercial and open source apps, > which sounds like what you're looking for. > > It allows you to build a completely POJO object model and persist it via > a generic transparent persistence interface that has plugins for the > various popular transparent persistence engines: Hibernate > (implemented), JDO/JPOX (implemented) and JPA (will be implemented if > sufficient demand) > > -- View this message in context: http://www.nabble.com/JPA-best-practices--tf4777536.html#a13818521 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: Problem in servlet configuration, migrating 1.2.6 to 1.3
You are right, it was something about slf4j being missing. In 1.2.6 the commons logging jar file was included in /lib, but I forgot that slf4j was required now. I don't use Maven, perhaps that's why I missed it, now that I check again the release notes, slf4j is mentioned there. With slf4j in place now I'm getting other errors that I'm checking now. Thanks and excuse me, Daniel Johan Compagner wrote: > > please try to get to the real exception. > I guess it is somehow a class loading problem > How to configure the servlet is not really changed if you want to use a > servlet in 1.3 > > On Nov 14, 2007 4:21 PM, dtoffe <[EMAIL PROTECTED]> wrote: > > -- View this message in context: http://www.nabble.com/Problem-in-servlet-configuration%2C-migrating-1.2.6-to-1.3-tf4805722.html#a13751449 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem in servlet configuration, migrating 1.2.6 to 1.3
Hi ! I've just finished changing the libraries and fixing the code, the application is small and not even finished. Now it won't run, Tomcat gives me this error: HTTP 404 - Servlet MyApplication is not available My working web.xml was: MyApplication wicket.protocol.http.WicketServlet applicationClassName com.myapp.pages.MyApplication 2 MyApplication /wicket/* Now I changed this to the new packages in 1.3: org.apache.wicket.protocol.http.WicketServlet I've seen in the wiki that now it's recommended to use Filters instead of Servlets, but Servlet support is still ok. I've already tried with variations in the url-pattern. Any hints ?? Thanks, Daniel -- View this message in context: http://www.nabble.com/Problem-in-servlet-configuration%2C-migrating-1.2.6-to-1.3-tf4805722.html#a13748584 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 and Netbeans 6
ZedroS wrote: > > Netbeans has now created a quickstart project. However its name is > quickstart (war) and I don't manage to have it running. I run the > Start.java but nothing happens... > > Sorry for all these questions, I'm new to Netbeans (which I choose to > try out the UML part). > I'm using Netbeans 5.5.1 but know nothing about Maven. I've installed the Wicket support plugin from Netbeans Update Center and added the Wicket (1.2.6) jars creating a library in Library Manager, this works fine so far. I've seen recently a new Wicket plugin for 1.3 but can't install it due to dependency problems, perhaps it's tailored to Netbeans 6. Hope this helps, Daniel -- View this message in context: http://www.nabble.com/Wicket-and-Netbeans-6-tf4657950.html#a13310690 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 with Wicket 1.3b4 ?
Hi ! Is Wicket Web Beans from SVN (rev 136 as of now) useable with Wicket 1.3b4 ? Should I stick to last (1.0 rc1) release with 1.2.6 ? Cheers, Daniel -- View this message in context: http://www.nabble.com/Wicket-Web-Beans-with-Wicket-1.3b4---tf4616136.html#a13183356 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: Enums and DropDownChoices in Web Beans
For most cases, the PropertyChangeEvents are ok. But now I'm facing a particular problem and I guess I'm trying to use the wrong tool for the task. Let's say I have a bean with two properties and I want to show them as dropdownchoices, but they are related, think for example of the CarMake, CarModel, or Country, State pairs, where the first value determines a subset of possibilities for the second value. I would like to select the first value, and have the second dropdownchoice to get filtered by the possible values. How should I face such a situation ? I guess having the second dropdownchoice based on an enum is not correct, since I only want a (non necessarily contiguous) subset of values to be allowed. Thanks for your help ! Daniel Dan Syrstad-2 wrote: > > I assume your real-life case is more involved than just calling info(). > See > the Introduction/Getting Started documentation at > http://wicketwebbeans.sourceforge.net for an examples on how to implement > PropertyChangeEvents and how to do #2 above. > -- View this message in context: http://www.nabble.com/Enums-and-DropDownChoices-in-Web-Beans-tf4481885.html#a12796948 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Enums and DropDownChoices in Web Beans
Hi ! I want to make an Enum field in a bean to fire an event. With plain Wicket I can do something like: DropDownChoice ddc = new DropDownChoice("person", options) { public void onSelectionChanged(java.lang.Object newSelection) { info("Changed!"); } protected boolean wantOnSelectionChangedNotifications() { return true; } } How can I do this in Web Beans, is there any beanprops that I can use ? Thanks ! Daniel -- View this message in context: http://www.nabble.com/Enums-and-DropDownChoices-in-Web-Beans-tf4481885.html#a12780572 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Calling all translators - UrlValidator translation
There is a small typo in: EmailAddressValidator='${input}' no es una direcion de correo electronico valida. Should be "direccion" instead of "direcion". There are also some missing accents, I'll post the correct Unicode chars when I figure out how. Daniel -- View this message in context: http://www.nabble.com/Calling-all-translators---UrlValidator-translation-tf4401987.html#a12562898 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Calling all translators - UrlValidator translation
OK found it browsing 1.3 beta. The string you want for: The English in question is: '${input}' is not a valid URL. is '${input}' no es una URL válida. Daniel dtoffe wrote: > > As of v. 1.2.6, I see there is no spanish .properties translation > file, if it's not already done in 1.3 I can contribute it. > > Daniel > > > Alastair Maw-2 wrote: >> >> Hi folks, >> >> I've just added a UrlValidator into trunk (WICKET-832, thanks Vincent >> Demay!). >> >> We're unfortunately lacking translations for the default error message >> in most languages. If you can help out for any of our supported >> languages, please shout. Feel free to e-mail me them directly, or reply >> to this thread with them. (You needn't bother with a proper patch unless >> you want to.) >> >> The English in question is: >> '${input}' is not a valid URL. >> >> Best regards, >> >> Al >> > > -- View this message in context: http://www.nabble.com/Calling-all-translators---UrlValidator-translation-tf4401987.html#a12562776 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Calling all translators - UrlValidator translation
As of v. 1.2.6, I see there is no spanish .properties translation file, if it's not already done in 1.3 I can contribute it. Daniel Alastair Maw-2 wrote: > > Hi folks, > > I've just added a UrlValidator into trunk (WICKET-832, thanks Vincent > Demay!). > > We're unfortunately lacking translations for the default error message > in most languages. If you can help out for any of our supported > languages, please shout. Feel free to e-mail me them directly, or reply > to this thread with them. (You needn't bother with a proper patch unless > you want to.) > > The English in question is: > '${input}' is not a valid URL. > > Best regards, > > Al > -- View this message in context: http://www.nabble.com/Calling-all-translators---UrlValidator-translation-tf4401987.html#a12561837 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Question regarding old post (ResultSet and DataTable)
Hi Ayodeji ! I fully agree with you specially if you have few tables and adhere totally to ORM. But consider what happens when yo have to fill a DataTable with the result of three+ tables joined, with subselects, group by and dinamic where clauses... Would you consider correct to define one Bean-based DataProvider for each one of such resultsets ?? They are not domain entities, they are just rows !! I always had some problems with this side of ORM, sometimes you don't retrieve a list of entities, sometimes the result is more like a spreadsheet, and you don't have an easy way of dealing with that based on beans. What happens if you call a Stored Procedure and you just don't know how many columns are returned ?? This is the problem I would like to solve. Of course I want to do it "the Wicket way", to be able to enjoy all the benefits already provided by the framework. I don't want to avoid IDataProvider, I just want to be less tied to the idea of retrieving beans from the database. This issue troubled me since the very first time I heard about ORM. Of course all your concepts regarding the size of the resultset etc. are completely valid and they must be dealt with. I'm sorry I haven't had time yet to explore the code you sent me, I'll see it over the weekend and post it again next week. Thanks for your help !! Daniel Ayodeji Aladejebi wrote: > > i think its proper to have a Dataprovider for each table. why i enjoy > dataprovider in wicket is that it gives me this feeling that SELECT * FROM > TABLE will not return 1 million records and crash my application, its > gives > you a simple way to fetch the data you want to display per time and you > can > create a many dataprovider as possible or even implement some internal > session state logic to tell IDataprovider which table to fetch. its up to > your implementation. > > you will also loose the flexibility you have with yur models if you avoid > IDataProvider > > however actually i think i makes sense for someone to donate a robust > JDBCDataProvider to wicket stuff > because attempting to do this for criteria matter, you can only hope you > are > not dealing with complex data types > > -- View this message in context: http://www.nabble.com/Question-regarding-old-post-%28ResultSet-and-DataTable%29-tf4314874.html#a12306193 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: Question regarding old post (ResultSet and DataTable)
Done, I've offered to write some example of use for the wiki or example page. Thanks !! Daniel igor.vaynberg wrote: > > perhaps you can email frank and ask him, it is unfortunate he did not post > his code on a wiki page somewhere. > > http://www.nabble.com/displaying-java.sql.Timestamp-tf1333211.html#a3561689 > > -igor > > -- View this message in context: http://www.nabble.com/Question-regarding-old-post-%28ResultSet-and-DataTable%29-tf4314874.html#a12297009 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: Question regarding old post (ResultSet and DataTable)
Hi !!! Thanks for your reply, this solution is simple, easy to understand and is not hard to code at all. My only objection would be the MyBean class, if I understood it right, the DataProvider is tied to the bean in a way that makes it not reusable: String query = "SELECT name, age FROM mybean LIMIT " + start + "," + count; bean.setName(set.getString("name")); bean.setAge(set.getInt("age")); What I mean is, what happens if I want to query another table, do I have to change the ResultSetDataProvider implementation, or provide another implementation for each table ?? I'm not sure if is it even possible to do what I want, surely it would be more complex and hard to do, but if it saves from creating custom code for each query, I guess it would justify the extra work. In most web usages, this implementation is ok because you don't have that much database queries, but at my work we have been asked to port a desktop application to a web implementation, and it uses lots of queries with flexible filtering criteria, for example (Visual Basic pseudocode): recordset1 = ExecuteQuery("SELECT a, b, c FROM table1"); datagrid1.setColumns("a", "b", "c"); datagrid1.setRecordSet(recordset1); datagrid1.refresh(); Perhaps this simplified Visual Basic example shows what I'm trying to do, as you can see, I don't have to cast the recordset to any specific bean type, it's just a bunch of cells. That's why I'm looking for that kind of more abstract approach. Thanks for your help !!! Daniel Ayodeji Aladejebi wrote: > > create table mybean (id int primary key, name varchar, age int) bla bla > bla > > //make a model > class MyBean implements Serializable { > private String name; > private int age; > } > > //create your idataprovider > > - > > //i would not know if there is some other more efficient manner but this > is > as simple enough > // and it works with DataView, Paging, DataTable > > this should not be too hard, is it? or you need something else > > On 8/23/07, dtoffe <[EMAIL PROTECTED]> wrote: >> >> >> Uhh, well... yes, you are right. >> >> Excuse me but I fail to see how that could help to solve the problem >> I >> presented, please keep in mind that I'm not native english speaker and >> perhaps I'm not using the proper words, I'll try to explain that more >> precisely. >> - > -- View this message in context: http://www.nabble.com/Question-regarding-old-post-%28ResultSet-and-DataTable%29-tf4314874.html#a12295661 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: Question regarding old post (ResultSet and DataTable)
Uhh, well... yes, you are right. Excuse me but I fail to see how that could help to solve the problem I presented, please keep in mind that I'm not native english speaker and perhaps I'm not using the proper words, I'll try to explain that more precisely. As I said in my previous post, I do my database queries in this way: ResultSet rs = cs.executeQuery(); In fact, later I'll use a code generator to ease the task, but let's assume for simplicity that I get the result in a java.sql.ResultSet. But, as stated in the Wicket Extension Javadoc, I must create the DataTable instances in this way: DataTable table = new DataTable("datatable", columns, new UserProvider(), 10); Specifically, the third parameter must implement wicket.markup.repeater.data.IDataProvider; which ResultSet doesn't implement, so I must provide for a means to overcome this. I didn't intended to mean that ResultSets are more generic that DataProviders. When I talked about a "general" way of handling ResultSet I tried to mean independently of whether I'm querying a Database Table, Stored Porcedure, with read-only or read-write cursors, uni or bi-directional, and so. I'm concerned about how well this will go in regard of sortable and pageable tables. Perhaps there is a mean to do all that already in the Wicket library, but I havent found it yet. In the examples I've seen so far the "database" is represented by some kind of static list, like in the ContactsDatabase and ContactGenerator classes in the DataTable example, but I'm looking for a way of using data from queries to a database engine. The way I see it, I'll have to develop a class which could perhaps extends ResultSet, or one of the RowSet implementations, and implements the IDataProvider interface, am I right on this one ?? Thanks for your help !! Daniel igor.vaynberg wrote: > > actually idataprovider is more generic then resultset :) > > -igor > > > On 8/22/07, dtoffe <[EMAIL PROTECTED]> wrote: >> >> Hi !! >> >> I've found this old thread: >> >> http://www.nabble.com/RE%3A-DataView-%28extensions%29-tf1287013.html#a3423281 >> >> If there are new or better ways to do this that came up after this >> thread, I'm also interested in knowing. Having a way of easily handling >> the database resultset and a list of the resultset headers (column >> titles) would be great, the more generic, the better. >> >> Thanks !! >> >> Daniel >> > -- View this message in context: http://www.nabble.com/Question-regarding-old-post-%28ResultSet-and-DataTable%29-tf4314874.html#a12287761 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Question regarding old post (ResultSet and DataTable)
Hi !! I've found this old thread: http://www.nabble.com/RE%3A-DataView-%28extensions%29-tf1287013.html#a3423281 I hope this link works OK, just in case I quote here the relevant part: > I have come up with my own subclass of DataTable and implementation of > IDataProvider to display any arbitrary database java.sql.ResultSet. - > The code is actually quite compact; when I'm finished I'll post it to the > list if there is any interest. I'm trying to fill a DataTable with the ResultSet obtained from executing a query: cs = con.prepareCall("{ call Region_SelectAll }"); rs = cs.executeQuery(); After I while I discovered that there is no easy or evident way of filling the DataTable from a ResultSet, I have to provide custom DataProviders which implement IDataProvider. In case there is some work done on a generic approach, even if incomplete or undocumented, I'm interested in taking a look at it. If there are new or better ways to do this that came up after this thread, I'm also interested in knowing. Having a way of easily handling the database resultset and a list of the resultset headers (column titles) would be great, the more generic, the better. Thanks !! Daniel -- View this message in context: http://www.nabble.com/Question-regarding-old-post-%28ResultSet-and-DataTable%29-tf4314874.html#a12285785 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: SOLVED !! Re: Problem following TextField example
Eelco Hillenius wrote: > >> Browsing the forum archive I've found a clue to this issue: In >> web.xml >> I've changed the line /wicket, adding a >> / as another url pattern and now it doesn't >> give >> an error. > > Can you give us your whole section please? Note that it > should end in a star, like /*. > > Eelco > > Sure !! It is like this: WicketApplication /wicket WicketApplication / I'm using Netbeans 5.5.1 with the Wicket support plugin, so I didn't edited this file by hand but rather I added a / in the edit field in a comma separated list as instructed, like "/wicket,/", and the editor converted that to the xml tags. The "/wicket" part seems to be put there at the creation of the example Wicket project, which is handled by the support plugin. BTW I've used just /, not /*, but since my example was just one page, perhaps that's why it worked anyway. I'll change that to /*. Hope this helps, I want to add... well, as you all might have noticed, I'm newbie in all this, in the last weeks I've been suffering all the pains of JSP, JSF, XML and all that nightmare. I've found Wicket last thursday night and right now I'm rather confident about the things that I, with all my "newbieness" on my shoulders, can do in the next days. Thanks for doing such great work !!! Daniel -- View this message in context: http://www.nabble.com/Problem-following-TextField-example-tf4302594.html#a12267558 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SOLVED !! Re: Problem following TextField example
Browsing the forum archive I've found a clue to this issue: In web.xml I've changed the line /wicket, adding a / as another url pattern and now it doesn't give an error. Thanks !!! Daniel dtoffe wrote: > > > Eelco Hillenius wrote: >> >>> Yes, as I said in my last post, I'm using 1.2.6, last stable version >>> as >>> of some two or three days ago. >>> Thanks for your example !! >> >> That's why those two URLs are so different. >> >> What is not clear to me is what exactly goes wrong? Do you get >> exceptions? Or do your models not get upated right? >> >> Eelco >> >> > > The server log shows no exception trace or error message at all, and > the page turns to HTTP Status 404 (The requested resource () is not > available.) > > I've deleted the closing tag in the LT html > xmlns="http://www.w3.org/1999/xhtml"; GT line, notice the lacking of a > slash sign just before the "greater than" sign. This way I've received a > very long Unexpected RuntimeException trace, and at the end, this dump > (sorry for the long size and formatting): > > > -- View this message in context: http://www.nabble.com/Problem-following-TextField-example-tf4302594.html#a12265590 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: Problem following TextField example
Eelco Hillenius wrote: > >> Yes, as I said in my last post, I'm using 1.2.6, last stable version >> as >> of some two or three days ago. >> Thanks for your example !! > > That's why those two URLs are so different. > > What is not clear to me is what exactly goes wrong? Do you get > exceptions? Or do your models not get upated right? > > Eelco > > The server log shows no exception trace or error message at all, and the page turns to HTTP Status 404 (The requested resource () is not available.) I've deleted the closing tag in the LT html xmlns="http://www.w3.org/1999/xhtml"; GT line, notice the lacking of a slash sign just before the "greater than" sign. This way I've received a very long Unexpected RuntimeException trace, and at the end, this dump (sorry for the long size and formatting): Page [Page class = com.myapp.wicket.Home, id = 0]: # PathSizeTypeModel Object 1 form2,7Kwicket.markup.html.form.Form unable to get object, model: Model:classname=[wicket.model.CompoundPropertyModel]:attached=true:nestedModel=[legajo = '@', nombre = 'sin nombre'], called with component [MarkupContainer [Component id = form, page = com.myapp.wicket.Home, path = 0:form.Home$1, isVisible = true, isVersioned = false]] 2 form:legajo 625 bytes wicket.markup.html.form.TextField @ 3 form:nombre 333 bytes wicket.markup.html.basic.Label sin nombre 4 mainNavigation 1,4K com.myapp.wicket.WicketExampleHeader unable to get object, model: Model:classname=[wicket.model.CompoundPropertyModel]:attached=true:nestedModel=[legajo = '@', nombre = 'sin nombre'], called with component [MarkupContainer [Component id = mainNavigation, page = com.myapp.wicket.Home, path = 0:mainNavigation.WicketExampleHeader, isVisible = true, isVersioned = false]] 5 mainNavigation:exampleTitle 457 bytes wicket.markup.html.basic.Label wicket 6 mainNavigation:externalLink1930 bytes wicket.markup.html.link.ExternalLinkunable to get object, model: Model:classname=[wicket.model.CompoundPropertyModel]:attached=true:nestedModel=[legajo = '@', nombre = 'sin nombre'], called with component [MarkupContainer [Component id = externalLink1, page = com.myapp.wicket.Home, path = 0:mainNavigation:externalLink1.ExternalLink, isVisible = true, isVersioned = false]] Regarding the "unable to get object, model" message, I believe it can be related to this code: public Home() { this(null); } /** * Construct. * @param model */ public Home(IModel model) { super(model); // HERE FOLLOWS MY OWN CODE } This is copied from the example, as you can see, the first constructor with no parameters calls the second one with null parameter, and the second one starts calling super(model), so I guess the model is set to null, is this right ?? But after that, I call setModel: final Input input = new Input(); setModel(new CompoundPropertyModel(input)); Thanks for your help !! Daniel -- View this message in context: http://www.nabble.com/Problem-following-TextField-example-tf4302594.html#a12261433 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: Problem following TextField example
Yes, as I said in my last post, I'm using 1.2.6, last stable version as of some two or three days ago. Thanks for your example !! Daniel Eelco Hillenius wrote: > >> "/WicketTest/wicket/" is most likely due to directory structure of >> the >> project (I'm using Netbeans with the Wicket Support Module). > > Are you by any chance using Wicket 1.2 for your own project? > >> I'm curious about the :1: to :0: difference, and the trailing :: that >> my >> code lacks. Can soemebody shed some light on this ?? > > The : are separators between Wicket identifiers which are for internal > use, you should worry about them. If there is nothing in between :, it > simply means it is null. Anyway, > > > -- View this message in context: http://www.nabble.com/Problem-following-TextField-example-tf4302594.html#a12247608 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: Problem following TextField example
Well, one thing more I've remembered, in one of the examples there is a POJO used as a backing model, which implements IClusterable, but it doesn't seems like that interface belongs to Wicket as of version 1.2.6, or even the extensions, perhaps all or part of the examples are built on Wickets 1.3 beta ?? Daniel dtoffe wrote: > > Just to add one more thing, in case it helps identify the problem: > > An the end of the form action line, there is an attribute in three > parts, I'm at home roght now and I don't remember exactly what it says, > but lets say it is something like formId_0_id, and in my code it appears > with the same words but separated with ":" instead of "_". > I'll post the exact words tomorrow when at work, thanks !! > > Daniel > > > > dtoffe wrote: >> >> Hi !! >> >> I'm following TextField example at >> >> http://wicketstuff.org/wicket13/compref/?wicket:bookmarkablePage=%3Aorg.apache.wicket.examples.compref.TextFieldPage >> >> (sorry long line) >> >> After failing for a while I've found these differences in the >> generated html code: >> >> In the Wicket example: >> form action="?wicket:interface=:1:form::IFormSubmitListener::" >> >> In my code: >> form >> action="/WicketTest/wicket/?wicket:interface=:0:form::IFormSubmitListener" >> >> "/WicketTest/wicket/" is most likely due to directory structure of >> the project (I'm using Netbeans with the Wicket Support Module). >> >> I'm curious about the :1: to :0: difference, and the trailing :: that >> my code lacks. Can soemebody shed some light on this ?? >> >> Thanks in advance !! >> >> Daniel >> PD: Alas, in my second day with Wicket I'm trying to build my first >> component, who would've dreamed of this with JSP/JSF ?? >> >> > > -- View this message in context: http://www.nabble.com/Problem-following-TextField-example-tf4302594.html#a12247575 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: Problem following TextField example
Just to add one more thing, in case it helps identify the problem: An the end of the form action line, there is an attribute in three parts, I'm at home roght now and I don't remember exactly what it says, but lets say it is something like formId_0_id, and in my code it appears with the same words but separated with ":" instead of "_". I'll post the exact words tomorrow when at work, thanks !! Daniel dtoffe wrote: > > Hi !! > > I'm following TextField example at > > http://wicketstuff.org/wicket13/compref/?wicket:bookmarkablePage=%3Aorg.apache.wicket.examples.compref.TextFieldPage > > (sorry long line) > > After failing for a while I've found these differences in the > generated html code: > > In the Wicket example: > form action="?wicket:interface=:1:form::IFormSubmitListener::" > > In my code: > form > action="/WicketTest/wicket/?wicket:interface=:0:form::IFormSubmitListener" > > "/WicketTest/wicket/" is most likely due to directory structure of the > project (I'm using Netbeans with the Wicket Support Module). > > I'm curious about the :1: to :0: difference, and the trailing :: that > my code lacks. Can soemebody shed some light on this ?? > > Thanks in advance !! > > Daniel > PD: Alas, in my second day with Wicket I'm trying to build my first > component, who would've dreamed of this with JSP/JSF ?? > > -- View this message in context: http://www.nabble.com/Problem-following-TextField-example-tf4302594.html#a12247319 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem following TextField example
Hi !! I'm following TextField example at http://wicketstuff.org/wicket13/compref/?wicket:bookmarkablePage=%3Aorg.apache.wicket.examples.compref.TextFieldPage (sorry long line) After failing for a while I've found these differences in the generated html code: In the Wicket example: form action="?wicket:interface=:1:form::IFormSubmitListener::" In my code: form action="/WicketTest/wicket/?wicket:interface=:0:form::IFormSubmitListener" "/WicketTest/wicket/" is most likely due to directory structure of the project (I'm using Netbeans with the Wicket Support Module). I'm curious about the :1: to :0: difference, and the trailing :: that my code lacks. Can soemebody shed some light on this ?? Thanks in advance !! Daniel PD: Alas, in my second day with Wicket I'm trying to build my first component, who would've dreamed of this with JSP/JSF ?? -- View this message in context: http://www.nabble.com/Problem-following-TextField-example-tf4302594.html#a12247118 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: Can we do straight print in a java web application?
I don't know what exactly are you trying to print, but take a look at jasperreports, it's awesome. Hope this helps, Daniel Eko S.W. wrote: > > Dear all, > > I would like to found out about something : can we do straight print in a > java web application? > That is, we do not rely on window.print(), because we rely on browser to > print them. > > I have an idea, silly perhaps, that we build another "daemon" that listen > to > something. > That daemon wait, and when printing request from java web application does > occur, it will do the printing. > > Is it applicable? > Because as a matter of moving from desktop to web, maybe printing is one > aspect that as an application developer, will be of some challenge. > > Thanks in advance > > -- > Best wishes, > Eko SW > http://swdev.blogs.friendster.com/my_blog/ > > -- View this message in context: http://www.nabble.com/Can-we-do-straight-print-in-a-java-web-application--tf4289452.html#a12219283 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Two questions: Roadmap and Editable Grids
Hi !! I'm completely new to Wicket, and I really like it compared to JSP/JSF etc. I would like to know more about the project roadmap, what are the new features that are coming, expected releases, etc. I wonder if is it possible to create a custom component that behaves like an editable grid. For example, I want a flexible grid like those in Visual Basic or Delphi, in which I can set some cells as editable, some fixed, some in other colour, is this feasible ?? How hard it would be ?? As I understood, I could control all of these behaviours in the Java code, is this right ?? Thanks in advance !! Daniel -- View this message in context: http://www.nabble.com/Two-questions%3A-Roadmap-and-Editable-Grids-tf4289464.html#a12211258 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]