Re: When to use InjectorHolder
Not sure wicket-guice works with injectorholder. If you are not extending component, then you should pass the service to the constructor. Sent from my Incredible. On Mon, May 3, 2010 at 10:58 PM, Douglas Ferguson doug...@douglasferguson.us wrote: Do I need to use InjectorHolder when using @Inject in a model?
Re: [OT] Wicket App Hosting
I use prgmr.com, cheap and more reliable than rackspace :) Sent from my nexus one. On Wed, Feb 24, 2010 at 8:42 PM, s...@sambarrow.com wrote: Linode. Best vps provider I've ever had by far, never had any problems at all. Very good prices too. --Original Message-- From: Mauro Ciancio To: Wicket Mailing List ReplyTo: users@wicket.apache.org Subject: [OT] Wicket App Hosting Sent: Feb 24, 2010 7:50 PM Hello everyone, I need to deploy a couple of wicket apps (2 or 3 apps). I'm looking for advices in order to get a good hosting service. In fact, I think i'll get a vps service. Any advices? Which vps providers are good? Thanks in advance. Cheers! -- Mauro Ciancio maurociancio at gmail dot com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org Sent via BlackBerry from T-Mobile - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Google analytics on home page slowing down access
Yea, that code should be at the bottom of the page. Ryan Gravener http://bit.ly/no_word_docs On Fri, Jan 8, 2010 at 9:06 AM, Loritsch, Berin C. berin.lorit...@gd-ais.com wrote: Just an FYI, the call to google-analytics on the Wicket home page is causing the site to crawl as I have to wait for the connection to time out before I see anything (at least 30s). That is because the call is in the header, and it should be placed at the bottom of the body section to avoid this problem. Most browsers will be able to display the page as it is loading resources in the order they are declared. For things like google analytics and populating ads, it's best to incorporate those javascript goodies after the page is rendered. Example: Move the following snippet: html head !-- ... -- SCRIPT type=text/javascript _uacct = UA-2350632-1; urchinTracker(); /SCRIPT !-- ... -- /head /html To the following location: html body !-- ... -- SCRIPT type=text/javascript _uacct = UA-2350632-1; urchinTracker(); /SCRIPT /body /html
Re: Strong Password Validation using Ajax (with Fallback)
I don't think you want to validate passwords by sending them to the server multiple times. Ryan Gravener http://bit.ly/no_word_docs On Fri, Oct 16, 2009 at 2:31 PM, Bernhard Grünewaldt bernh...@gruenewaldt.net wrote: Hello, Is there such a thing as a Strong Password Validator? I found a jquery plugin which is nice: http://bassistance.de/jquery-plugins/jquery-plugin-password-validation/ But it lacks the serverside Java implementation and i18n. Does anyone know of such a component? The code isn't that complex, but if it is already there why implement it yourself. thx Bernhard - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: self-recursive panel
http://wicketstuff.org/wicket13/nested/ Ryan Gravener http://bit.ly/no_word_docs On Thu, Oct 8, 2009 at 5:44 PM, Eelco Hillenius eelco.hillen...@gmail.com wrote: I was not aware of the nested example in wicket-examples. Unfortunately, http://www.wicket-library.com/wicket-examples/nested/ barfs when I try to access it. Hmmm, don't know what's going on there. But you can check out the source and look at it if you're interested. You won't learn much from it, since it basically does what you do here :-) Eelco - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: iPhone webapp support?
use iui. Ryan Gravener http://bit.ly/no_word_docs On Tue, Oct 6, 2009 at 5:33 PM, Wilhelmsen Tor Iver toriv...@arrive.no wrote: Are people still making fun of your huge nokia? ;-) ... or the side-talking 1st gen nGage :P (parodied a lot here: http://www.sidetalkin.com/photos.html ) On a more serious note, Wicket apps should run well in the iPhone's Safari browser, but if you want to support small devices in general you should look into client detection and using the style feature to server more compact pages. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: vps hosting for wicket app
I used to use slicehost but switched to prgmr since it was cheaper and had less outages believe it or not. Ryan Gravener http://bit.ly/no_word_docs On Wed, Oct 7, 2009 at 12:13 AM, Jan Kriesten kries...@mail.footprint.de wrote: Hi, I'm always surprised, how expensive hosting is on the other side of the ocean. ;-) Just two examples from Germany, where server performance make Slicehost look like a lame duck: http://hetzner.de/en/ (my favorite!) http://webtropia.com/home/ (only in Germany, sorry) I agree, though, that if the data has to travel from Germany to the US the experience might not be the same like from here. ;-) Best regards, --- Jan. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: User name validation - how to check database to find if a name has already been taken?
I think you are overcomplicating things. Validate the users input, if two users want the same name within 1 second of each request you probably have bigger problems to deal with. Anyhow, when submit is called, if you get a nonunique exception. Catch in dao/service and throw an exception wicket can handle and present. Ryan Gravener http://bit.ly/no_word_docs On Fri, Sep 25, 2009 at 11:58 AM, Paul Huang paulhuan...@gmail.com wrote: Hello, I would like to get your suggestion about how to validate a user name input by checking if the name has already been taken (exists in the back-end database); and how to show feedback messages right next to the input field if it has. Typically, when a user registers to a website, he needs to choose a user name, a password, etc. To make sure that the chosen name is unique, one needs to access the back-end database to check if it already exists. My solution right now is to extend AbstractValidatorString, and override onValidate(IValidatableString validatable) to put the database-checking logic in it. But the more I think about it, the more I felt it might be a wrong solution. The problem (I think, not 100% sure) is that onValidate(IValidatableString validatable) will be called during the form validation process, even if this process goes through, I may still find out later that the user chosen name has been taken when trying to save all the user inputs (name, password, etc) to the database. This happens when another user registers with the same name between the time the validation process finished and the time I start persisting all inputs from the first user to the database, So now I am trying to figure out another solution. Here is the idea: Instead of putting the database-checking logic into the validation process, I simply try to save all the user inputs into the database after receiving them. If an unique key exception happens, I know that the user chosen name has been taken. Now my questions are: 1. where should I put this save-catch-exception logic? Is Form.onSubmit() the right place to put it? 2. After I catch an unique key exception. How can I show a feedback message like This name has already been taken RIGHT NEXT to the user name input field? (Just like what a typical Wicket Validator does though FeedbackPanel). I am new to Wicket and your inputs and suggestions are greatly appreciated. Cheers Paul - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Full integration Wicket - Blazeds. Is it possible?
Make your own filter and implement these methods this way: http://pastie.org/588344 Ryan Gravener http://bit.ly/no_word_docs On Mon, May 4, 2009 at 1:01 PM, Fernando Wermusfernando.wer...@gmail.com wrote: Hi all, I am working with flex and wicket and I would like to get a full integration. What I mean is that a wicket's model page will be updated in case someone uses a flex component that called a blazeds service. I run succesfuly http://ryangravener.com/wordpress/?p=21, which I would like to improve. My problem is how to get wicket session, for getting the model's page which I would like to update. Some ideas that come up to my mind are: a. using cookie JSESSIONID to get wicket session. b. getting HttpSession through FlexContext to get Wicket Session after: HttpSession session = FlexContext.getHttpRequest().getSession(true); Is this possible? This is the web.xml file config according ryangravener: !-- WICKET FILTER -- filter filter-namewicket.miApp/filter-name filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class init-param param-nameapplicationClassName/param-name param-valuecom.miApp.MiAppApplication/param-value /init-param /filter filter-mapping filter-namewicket.MiAppfilter-name url-pattern/*/url-pattern /filter-mapping !-- BLAZE -- servlet servlet-nameMessageBrokerServlet/servlet-name servlet-class flex.messaging.MessageBrokerServlet /servlet-class init-param param-nameservices.configuration.file/param-name param-value/WEB-INF/flex/services-config.xml/param-value /init-param init-param param-nameflex.write.path/param-name param-value/WEB-INF/flex/param-value /init-param load-on-startup1/load-on-startup /servlet servlet-mapping servlet-nameMessageBrokerServlet/servlet-name url-pattern/messagebroker/*/url-pattern /servlet-mapping filter-mapping filter-namewicket.myApp/filter-name url-pattern/messagebroker/*/url-pattern /filter-mapping -- Fernando Wermus. www.linkedin.com/in/fernandowermus http://mientretiempo.blogspot.com/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: JDeveloper - Can I get a show of hands?
http://instantcrickets.com Ryan Gravener http://bit.ly/no_word_docs On Thu, Jun 18, 2009 at 7:12 PM, Nick Heudecker nheudec...@gmail.comwrote: JDeveloper? *crickets* :) -- Nick Heudecker Professional Wicket Training Consulting http://www.systemmobile.com
Re: file upload
Not sure what the wicket default is but you may want to do in your application: getApplicationSettings().setDefaultMaximumUploadSize(Bytes.megabytes(100)); On Tue, Jun 2, 2009 at 12:37 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: wicket file upload will do just fine. -igor On Tue, Jun 2, 2009 at 9:29 AM, tubin gen fachh...@gmail.com wrote: I am using wicket file upload , In our application users want to upload big files with the size of 50 MB+, Do I need any additional support of or wicket file upload allows this ? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: can't build Elephas
It's unlikely the SNAPSHOT for surefire will linger around. Change that to 2.4.3 Ryan Gravener http://isithotinhereorisitjust.me | http://twitter.com/ryangravener On Mon, Jun 1, 2009 at 2:47 PM, danisevsky danisev...@gmail.com wrote: hi, I would like to try Elephas but I can't build it with maven. Does anyone have actual pom.xml file? Or am I doing somethig wrong? mvn install -Dmaven.test.skip=true [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error building POM (may not be this project's POM). Project ID: org.apache.maven.plugins:maven-surefire-plugin Reason: POM 'org.apache.maven.plugins:maven-surefire-plugin' not found in reposi tory: Unable to download the artifact from any repository org.apache.maven.plugins:maven-surefire-plugin:pom:2.4-SNAPSHOT from the specified remote repositories: apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository/), elephas-repository (http://elephas.googlecode.com/svn/misc/maven/), wicket-stuff-repository (http://www.wicketstuff.org/maven/repository/), central (http://repo1.maven.org/maven2), temp-repository ( http://people.apache.org/~frankbille/releases/apache-wicket-1 .4-m1/m2-repo/http://people.apache.org/%7Efrankbille/releases/apache-wicket-1%0A.4-m1/m2-repo/ ) for project org.apache.maven.plugins:maven-surefire-plugin [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 4 seconds [INFO] Finished at: Mon Jun 01 20:35:22 CEST 2009 [INFO] Final Memory: 2M/6M [INFO]
Re: Wicket Quickstart vs WIA eclipse projects: why so different?
Yes, that is the real students dream. mvn eclipse:eclipse On Fri, May 29, 2009 at 5:51 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: why dont you just start the project from eclipse directly using the Start class, that way you get debug and hotswap - which should be the real student's dream :) -igor On Fri, May 29, 2009 at 2:53 PM, David Brown dbr...@sexingtechnologies.com wrote: Hello Martin, Jeremy, dev, gurus, users and mortals. I have just finished ch. 13 of the WIA.pdf. I have followed closely the reading using the wicket-in-action eclipse project. I have the wicket-in-action running under the: mvn jetty:run. The wicket-in-action project is redeployed every 60 seconds (a student's dream). After finishing the 13th chapter I decided to leave the nest for the 1.4rc QuickStart. The new QuickStart project expanded and imported into the Eclipse workspace no-problemo. The mystery is what am I doing wrong to get the automatic 60 second re-deploy. As it stands now I have to kill jetty, mvn package and then restart jetty (mvn jetty:run). I have pasted in the: ** context-param param-nameconfiguration/param-name param-valuedevelopment/param-value /context-param ** from the wicket-in-action web.xml but no change. The Windows cmd console shows the usual Wicket WARNING: running in development mode. I plan to use the wicket-in-action almost verbatim including the Hibernate DAO for my current gig. It is probably only a few weeks before they start holding my feet to the fire. Please advise, David. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Expired sign in link after signing out
add(new BookmarkablePageLink(signin, SigninPage.class)); Ryan Gravener http://isithotinhereorisitjust.me | http://twitter.com/ryangravener On Tue, May 26, 2009 at 6:32 PM, Tim Moose hungl...@gmail.com wrote: Hi, This seems like a FAQ but I couldn't find it. All of my pages have a common header with sign in / sign out links. When the user clicks the sign in link, I want to display the sign in page and then return to the previous page after the user signs in. My sign in link looks like this: add(new Link(signin) { @Override public void onClick() { throw new RestartResponseAtInterceptPageException(SignInPage.class); } ... } This works fine unless the user has just signed out, at which point the link leads to an expired page error. My sign out page constructor does the following: getSession().invalidate(); setResponsePage(pageClass); I think I get what's wrong with this, but none of the variations I've tried work. So how can I get the sign in link to work after signing out? Thanks, Tim - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Offline Applications
I would just make an adobe air application for offline use. Ryan Gravener http://isithotinhereorisitjust.me | http://twitter.com/ryangravener On Fri, May 1, 2009 at 10:53 AM, Jeremy Thomerson jer...@wickettraining.com wrote: I haven't looked into Gears at great length, but I think you may be up against a wall here - where the two may be incompatible. Offline gears applications require fat clients. Wicket isn't typically for making fat clients because everything about it ties it back to the server. If you already have it such that each office has their own server and database, then it seems that this isn't a product development problem so much as it's a network support issue. How often should the network within an office really be down? I'd try to push this problem back up the management chain. Conceptually, it's a cool idea, though. Let us know if you have any success. -- Jeremy Thomerson http://www.wickettraining.com On Fri, May 1, 2009 at 3:04 AM, Carlo Camerino cmcamer...@gmail.com wrote: Hi, Is there any project which has Wicket And Google Gears Integration? Wicket has really done a lot of us in speeding up development time. Coming from a struts we saw the power of Wicket in terms its reusability and i've noticed that wicket already did most of the tasks that we would have to manually do using struts application, like session timeouts, redirects, etc One of our main concerns however are that clients are asking for our applications to be available even if the network is down or if the central server is down.. Currently we implemented our applications in a distributed fashion wherein every branch ( Remote Location) has its own server. However, this has implications of cost and administration issues. However, if offline mode is enabled we can just begin syncing right. I think that Wicket WIth Google Gears Application will make it even better . I think this is really a plus when it comes to marketing it to customers. Most of the applications that we create our banking applications and any downtime is costing our clients. Hopefully we can also do this to offload the central servers and to put processing into client machines. One large problem I see though is that most code wil have to be moved to the Browser Layer. I'm thinking of how to create a wicket application which is mostly run by java classes work on the client side. Looks as if there will be a lot of code changes... I'm not really sure if it would be a totally different programming model. Anyone out there tried to integrate Gears And Wicket Carlo - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Weird DatePicker / DateTextField off by one hour
What version of wicket, what timezone? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Weird DatePicker / DateTextField off by one hour
https://issues.apache.org/jira/browse/WICKET-1314 Ryan Gravener http://isithotinhereorisitjust.me | http://twitter.com/ryangravener On Thu, Apr 30, 2009 at 11:28 AM, Ryan Gravener r...@ryangravener.comwrote: What version of wicket, what timezone?
Re: @SSLRequired
maybe this is of use: http://cwiki.apache.org/WICKET/how-to-switch-to-ssl-mode.html Ryan Gravener http://ryangravener.com/flex | http://twitter.com/ryangravener On Fri, Apr 17, 2009 at 10:48 AM, Douglas Ferguson doug...@douglasferguson.us wrote: I'm implement an SSL scheme using annotations and I'm having some issues with redirecting properly. The issue is when I have non-secured page that redirects to a secured page. I'm doing the https/http redirecting inside of a WebRequestCycleProcessor, which works well unless there is a redirect prior to the ssl redirect. If this happens then I redirect back to the top of the chain, because I'm using the HttpServletRequest to build the url, which returns url info based on the orginal request. I've been looking all around and I can't find any way of building a url that represents the last redirect. I've tried Application.get().getRequestCycleProcessor().getRequestCodingStrategy().pathForTarget(requestTarget); and RequestCycle.get().urlFor(requestTarget) Here's my current impl for The RequestCycleProcessor. WebRequest webRequest = (WebRequest) requestCycle .getRequest(); WebResponse webResponse = (WebResponse) requestCycle .getResponse(); HttpServletRequest httpServletRequest = webRequest.getHttpServletRequest(); StringBuffer url = new StringBuffer(protocol); url.append(httpServletRequest.getServerName()); if(defaultPort != port){ url.append(: + port); } url.append(webRequest.getHttpServletRequest().getContextPath()); url.append(webRequest.getServletPath()); String queryString = webRequest.getHttpServletRequest().getQueryString(); - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: @SSLRequired
How about just having apache httpd rewrite the http(s) for the pages you need? I haven't yet did our ssl implementation, but I know that I don't want the logic in wicket. Ryan Gravener http://ryangravener.com/flex | http://twitter.com/ryangravener On Fri, Apr 17, 2009 at 11:27 AM, Douglas Ferguson doug...@douglasferguson.us wrote: That's where I got my code.. I'm hitting 2 issues 1) The ssl detection/redirect isn't happening till the end of the chain and when it redirects it redirects back to the top. Ie. Page 1 is not secure, Page 2 is secure. Page one redirects to Page 2. If you go to page 1 then it attempts to redirect to page2 and then wicket redirects to Page 1 with https.. I would prefer to go directly to Page 2, but I can't figure out how to build that url.. 2) My other issues is this: else if (requestTarget instanceof IPageRequestTarget) { targetClass = ((IPageRequestTarget) requestTarget).getPage() .getClass(); } This means that if you redirect to a Page object which you have constructed with special state, then this throws that object away and wicket will use default constructor. -Original Message- From: snoop...@gmail.com [mailto:snoop...@gmail.com] On Behalf Of Ryan Gravener Sent: Friday, April 17, 2009 10:00 AM To: users@wicket.apache.org Subject: Re: @SSLRequired maybe this is of use: http://cwiki.apache.org/WICKET/how-to-switch-to-ssl-mode.html Ryan Gravener http://ryangravener.com/flex | http://twitter.com/ryangravener On Fri, Apr 17, 2009 at 10:48 AM, Douglas Ferguson doug...@douglasferguson.us wrote: I'm implement an SSL scheme using annotations and I'm having some issues with redirecting properly. The issue is when I have non-secured page that redirects to a secured page. I'm doing the https/http redirecting inside of a WebRequestCycleProcessor, which works well unless there is a redirect prior to the ssl redirect. If this happens then I redirect back to the top of the chain, because I'm using the HttpServletRequest to build the url, which returns url info based on the orginal request. I've been looking all around and I can't find any way of building a url that represents the last redirect. I've tried Application.get().getRequestCycleProcessor().getRequestCodingStrategy().pathForTarget(requestTarget); and RequestCycle.get().urlFor(requestTarget) Here's my current impl for The RequestCycleProcessor. WebRequest webRequest = (WebRequest) requestCycle .getRequest(); WebResponse webResponse = (WebResponse) requestCycle .getResponse(); HttpServletRequest httpServletRequest = webRequest.getHttpServletRequest(); StringBuffer url = new StringBuffer(protocol); url.append(httpServletRequest.getServerName()); if(defaultPort != port){ url.append(: + port); } url.append(webRequest.getHttpServletRequest().getContextPath()); url.append(webRequest.getServletPath()); String queryString = webRequest.getHttpServletRequest().getQueryString(); - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: iLearn Wicket - Please reply with your feedback
I use jetty everywhere. Ryan Gravener http://ryangravener.com/flex | http://twitter.com/ryangravener On Mon, Apr 13, 2009 at 12:49 PM, James Carman jcar...@carmanconsulting.com wrote: On Mon, Apr 13, 2009 at 12:47 PM, Chenini, Mohamed mchen...@geico.com wrote: Hi, I think that Wicket Users tend to use more Jetty than Tomcat as the application server. I don't know that that is true. We definitely use jetty for development/debugging. But, I don't know that the production application server is jetty more often than not (we use Tomcat for production). - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Updating form components in list view
have you tried ListView#setReuseItems(true) ? Ryan Gravener http://ryangravener.com/flex | http://twitter.com/ryangravener On Mon, Apr 6, 2009 at 4:57 PM, Jeff Palmer jpal...@citytechinc.com wrote: I have a list view that has some form components (a checkbox and a RadioChoice). All of the data from the ListView is getting displayed on the page properly, but when I try to modify one of the form values, it isn't getting updated as expected. If anyone has any idea what I might be doing wrong, please let me know. I have pasted the contents of my code below. public class MaintainUsersPage extends EzdecBaseWebPage { @SpringBean private ISecurityRepository securityRepository; @SpringBean private ISecurityService securityService; private EzdecAccount account; public class UsersModel extends LoadableDetachableModel { private EzdecAccount account; public UsersModel(EzdecAccount account) { this.account = account; } @Override protected Object load() { ListEzdecUser users = securityRepository.findAllNonArchivedUsersByAccount(account); return users; } } public MaintainUsersPage() { add(new FeedbackPanel(feedback)); account = EzdecSession.getCurrentUser().getAccount(); add(new BookmarkablePageLink(inviteUserLink, InviteUser.class)); add(new Label(accountName, new PropertyModel(account, name))); Form form = new Form(maintainUsersForm); PageableListView users = new PageableListView(users, new UsersModel(account), 20) { @Override protected void populateItem(final ListItem item) { if (item.getIndex() % 2 == 0) { item.add(new SimpleAttributeModifier(class, odd)); } final EzdecUser user = (EzdecUser) item.getModelObject(); Link nameLink = new Link(nameLink) { @Override public void onClick() { setResponsePage(new UpdateUserProfilePage(user)); } }; nameLink.add(new Label(fullname, user.getFullname())); item.add(nameLink); item.add(new ExternalLink(emailLink, mailto:; + user.getEmail()).add(new Label(email, user.getEmail(; item.add(new CheckBox(active, new PropertyModel(user, active))); item.add(new RadioChoice(roles, new PropertyModel(user, roles), Arrays.asList(EzdecRole.values(; Link deleteLink = new Link(delete) { @Override public void onClick() { if (securityService.archiveUser(user)) { EzdecSession.get().info(User + user.getFullname() + has been deleted.); setResponsePage(MaintainUsersPage.class); } else { EzdecSession.get().info(User + user.getFullname() + could not be be deleted. Please ensure that you + are an account administrator and that you are + not trying to delete your own account.); setResponsePage(MaintainUsersPage.class); } } }; deleteLink.add(new SimpleAttributeModifier(onclick, return confirm('Are you sure?');)); item.add(deleteLink); Link submitLink = new Link(submitLink) { @Override public void onClick() { if (securityService.updateUser(user)) { EzdecSession.get().info(User + user.getFullname() + has been updated.); setResponsePage(MaintainUsersPage.class); } else { EzdecSession.get().info(User + user.getFullname() + has not been updated.); setResponsePage(MaintainUsersPage.class); } } }; item.add(submitLink); } }; form.add(users); add(form); add(new PagingNavigator(navigator, users)); } - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: maven-eclipse-plugin 2.6 will break your wicket projects
Someone needs to start a facebook group and protest this change. Ryan Gravener http://ryangravener.com/flex | http://twitter.com/ryangravener On Thu, Apr 2, 2009 at 2:14 PM, James Carman jcar...@carmanconsulting.comwrote: On Thu, Apr 2, 2009 at 2:11 PM, Philippe Marschall kus...@gmx.net wrote: Well there's a reason these folders are called java. Yes, but it's not specifically illegal in the maven world to put non-java files in there (didn't we have this argument a few days ago). - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: VOTE: Rename Apache Wicket to Apache WicketFX
I'm still waiting on the scala implementation that was talked about around this time last year. 2009/4/1 Daan van Etten d...@stuq.nl FX sounds just way cool. WicketFX. Where function meets form. Web development in style. Say for yourself, would you rather want to work with a framework called Wicket, or a framework called WicketFX?! Birthday parties and pub nights never are the same again: What technologies you use? - WicketFX, Spri.. Wow! You are so cool! Regards, Daan Op 1 apr 2009, om 15:36 heeft Chenini, Mohamed het volgende geschreven: Same concern here. Why the FX suffix? -Original Message- From: Johan Compagner [mailto:jcompag...@gmail.com] Sent: Wednesday, April 01, 2009 9:33 AM To: users@wicket.apache.org Subject: Re: VOTE: Rename Apache Wicket to Apache WicketFX Failed eXtremely On Wed, Apr 1, 2009 at 15:08, Ames, Tim tim.a...@promedica.org wrote: Please excuse my EXTREME ignorance, but what exactly does or will the FX mean from a Wicket standpoint? What does it do or allow a developer to do that would designate it as FX? -Original Message- From: David Leangen [mailto:wic...@leangen.net] Sent: Wednesday, April 01, 2009 4:08 AM To: users@wicket.apache.org Subject: Re: VOTE: Rename Apache Wicket to Apache WicketFX Or... WTF! (Wicket The Framework) +1 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ EMAIL CONFIDENTIALITY NOTICE This Email message, and any attachments, may contain confidential patient health information that is legally protected. This information is intended only for the use of the individual or entity named above. The authorized recipient of this information is prohibited from disclosing this information to any other party unless required to do so by law or regulation and is required to destroy the information after its stated need has been fulfilled. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or action taken in reliance on the contents of this message is strictly prohibited. If you have received this information in error, please notify the sender immediately by replying to this message and delete the message from your system. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org This email/fax message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution of this email/fax is prohibited. If you are not the intended recipient, please destroy all paper and electronic copies of the original message. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Ryan Gravener http://ryangravener.com
Re: Start Wicket project with Spring and Hibernate
Should be good. http://code.google.com/p/wicket-flex-blazeds/source/browse/trunk/myproject-core/pom.xml Ryan Gravener http://ryangravener.com/flex | http://twitter.com/ryangravener On Tue, Mar 31, 2009 at 10:45 AM, HHB hubaghd...@yahoo.ca wrote: Hey, Our new Wicket application is to be build with Spring and Hibernate, so I included these: dependency groupIdorg.springframework/groupId artifactIdspring/artifactId version2.5.6/version /dependency dependency groupIdorg.hibernate/groupId artifactIdhibernate/artifactId version3.2.6.ga/version /dependency dependency groupIdorg.apache.wicket/groupId artifactIdwicket-spring/artifactId version1.3.5/version /dependency dependency groupIdorg.apache.wicket/groupId artifactIdwicket-spring-annot/artifactId version1.3.5/version /dependency Anything is missing? I noticed there are dependencies like spring-context, spring-context-support, spring-aop, hibernate-annotations and the list goes on. Should I include them too? Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: The ServerSide Java Symposium
Send him a tweet: http://twitter.com/kinabalu Ryan Gravener http://ryangravener.com/flex | http://twitter.com/ryangravener On Fri, Mar 20, 2009 at 12:49 PM, Scott Swank scott.sw...@gmail.com wrote: http://javasymposium.techtarget.com/html/frameworks.html#ALombardiWicket On Fri, Mar 20, 2009 at 9:44 AM, Scott Swank scott.sw...@gmail.com wrote: Is anyone in Vegas? Want to nab a beer? Cheers, Scott - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket + Resin, Content-Length Header Issue
I searched Resin Accept-Encoding and looks like I found your papernapkin paste: http://www.papernapkin.org/pastebin/view/4871/ The response header had: Transfer-Encoding: chunked, which would mean that the server is doing on the fly compression and no content-length will ever be sent. Perhaps resin is failing to compress the file. Ryan Gravener http://ryangravener.com/flex | http://twitter.com/ryangravener On Tue, Mar 10, 2009 at 9:51 AM, Seth Green seth.m.gr...@gmail.com wrote: I'm running wicket (1.2.6) on both Jetty and Resin (3.0.25). Everything appears to work correctly on Jetty. However, on Resin, when requesting the wicket-ajax.js file, it is sent back without a content-length header and is therefore unreadable by the browser. It appears this only happens when using compression (gzip, in this case). Requesting the file without compression, using cURL, returns the correct headers. I am not using a proxy, this occurs when directly accessing Resin. Has anyone every experienced this behavior, and/or can provide some insight? Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: PageExpiredException
I would double check that all your classes implement Serializable. Ryan Gravener http://ryangravener.com/flex | http://twitter.com/ryangravener On Mon, Mar 9, 2009 at 10:39 AM, Douglas Ferguson doug...@douglasferguson.us wrote: I get a PageExpiredException periodically and I'm having trouble isolating the cause. I thought that it had something to do with server restarts but I'm not sure about that now. Stack: org.apache.wicket.protocol.http.PageExpiredException: Cannot find the rendered page in session [pagemap=null,componentPath=5:leftList:tableList:contactList:2:nameCell:namePanelLink,versionNumber=0] at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:190) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1233) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353) at org.apache.wicket.RequestCycle.request(RequestCycle.java:493) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:200) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) at java.lang.Thread.run(Thread.java:619)
Re: How to place form in own public class for extending
I usually make a panel, add the form to the panel and write up the form in the panel's markup. http://wicketstuff.org/wicket13/signin/?wicket:bookmarkablePage=:org.apache.wicket.examples.signin.SignIn Ryan Gravener http://ryangravener.com/flex | http://twitter.com/ryangravener On Wed, Feb 11, 2009 at 9:40 AM, pieter claassen pie...@claassen.co.ukwrote: I am trying to move a form from an inner class that extends Form to a public class. This is so that I can override the onSubmit() method of my form. Below are my files. When I add the form to a wicket page with add(new TemplateEditForm(templateeditform, templatemodel)); and the corresponding html code form wicket:id=templateeditformeditform/form My wicket code doesn't pick the wicket:ids in the TemplateEditForm.html file up WicketMessage: The component(s) below failed to render. A common problem is that you have added a component in code but forgot to reference it in the markup (thus the component will never be rendered). 1. [MarkupContainer [Component id = name]] 2. [MarkupContainer [Component id = version]] 3. [MarkupContainer [Component id = author]] 4. [MarkupContainer [Component id = active]] 5. [MarkupContainer [Component id = description]] 6. [MarkupContainer [Component id = textarea]] 7. [MarkupContainer [Component id = type]] 8. [MarkupContainer [Component id = submit]] I am sure I am doing something stupid, but I cannot find the solution to this. Any ideas? = public class TemplateEditForm extends Form { private TemplateWebModel templatemodel; public TemplateEditForm(String id, TemplateWebModel templatemodel) { super(id); this.templatemodel = templatemodel; setModel(new CompoundPropertyModel(templatemodel)); add(new RequiredTextField(name)); add(new RequiredTextField(version, java.lang.Long.class)); add(new RequiredTextField(author)); add(new CheckBox(active)); add(new VariableTextFieldPanel(description, new PropertyModel( templatemodel.getObject(), description))); DropDownChoice ddc = new DropDownChoice(type, Arrays .asList(TemplateType.values()), new IChoiceRenderer() { public Object getDisplayValue(Object object) { return getString(object.toString()); } public String getIdValue(Object object, int index) { return object.toString(); } }); ddc.setRequired(true); add(ddc); add(new Button(submit, new ResourceModel(submit))); } @Override public void onSubmit() { WicketApplication.get().getTemplateFactory().store( templatemodel.getEntity()); setResponsePage(new TemplateListPage()); } } And the corresponding html code === wicket:extend table tr tdwicket:message key=name //td tdinput wicket:id=name //td /tr tr tdwicket:message key=version //td tdinput wicket:id=version //td /tr tr tdwicket:message key=author //td tdinput wicket:id=author //td /tr tr tdwicket:message key=active //td tdinput type=checkbox wicket:id=active //td /tr tr tdwicket:message key=description //td tdspan wicket:id=description/span/td /tr tr tdwicket:message key=type //td tdselect wicket:id=type option/option /select/td /tr tr td colspan=2input wicket:id=submit type=submit/td /tr /table /wicket:extend
Re: Auto-Complete TextField for selecting multiple values
I'll implement the first one in due time. It is not as fluid as i would hope though. http://ryangravener.com/flex | http://twitter.com/ryangravener On Tue, Feb 10, 2009 at 11:01 AM, Azzeddine Daddah waarhei...@gmail.comwrote: Hi guys, Does somebody knows if there is already such a Wicket lib/component where you can select more then one value. Something like this one http://www.emposha.com/javascript/jquery/jquerymultiselect.html, http://digitarald.de/project/autocompleter/1-1/showcase/delicious-tags or http://remysharp.com/wp-content/uploads/2007/12/tagging.php Kind regards, Hbiloo
Re: Browser auto form filling
Override getInputName() Ryan Gravener http://ryangravener.com/flex | http://twitter.com/ryangravener On Fri, Feb 6, 2009 at 7:39 AM, John Patterson jdp2...@gmail.com wrote: Hi, I use generated forms for a Contact Us page and have noticed that my email address is not automatically filled in for me like on many sites. I guess this is due to the name of the form input being something like rows:0:row:input which Safari has not come across before. Is there any way to change the input name attribute or control this behaviour another way? Thanks, John -- View this message in context: http://www.nabble.com/Browser-auto-form-filling-tp21871687p21871687.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: making a HTTP request directly in Wicket
I would use: http://hc.apache.org/httpclient-3.x/ Ryan Gravener http://ryangravener.com/flex | http://twitter.com/ryangravener On Thu, Feb 5, 2009 at 7:45 AM, Steve Swinsburg s.swinsb...@lancaster.ac.uk wrote: Hi all, just wondering if there is any API in Wicket that wraps up making a HTTP POST request directly (ie given a URL and some data etc) or whether I should just drop back to using the standard Java HTTPClient stuff? cheers, Steve
Re: [OT] Java hosting USB stick deployment
I use slicehost. $20 a month 10gb/100gb + 250mb.. You have to set up everything yourself except dns. On 2/5/09, Nick Heudecker nheudec...@gmail.com wrote: I use eapps.com for hosting. Not sure what the problem is with USB drives, since you can get a 2GB drive for $6. On Thu, Feb 5, 2009 at 1:29 PM, Kaspar Fischer fisch...@inf.ethz.ch wrote: I am in the midst of deciding on the technology to use for an application that must be (i) cheap to host and (ii) must be deployable on USB sticks (Windows/Mac), for use in ad hoc networks. Options include Wicket/Hibernate/Spring or a PHP framework like Drupal, in some web container like e.g. Resin, XAMPP/MAMP, etc. Does anybody on the list know of very cheap Java hosting possibilities? I image most of us on the list are working in the enterprise sector but maybe somebody knows of a good deal? (There was once a rumor that Google would offer something, http://www.oreillynet.com/onjava/blog/2008/05/podraziks_prediction_java_next.html, any guesses on this?) I am also interested in whether people from the list have made experiences with running Wicket on USB sticks? Thanks, Kaspar - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Nick Heudecker Professional Wicket Training Consulting http://www.systemmobile.com Eventful - Intelligent Event Management http://www.eventfulhq.com -- Ryan Gravener http://ryangravener.com/flex | http://twitter.com/ryangravener - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: GMap2: development mode + putting maps in a Panel = Google Maps broken
Are your wicket tags being stripped? Is ajax debug mode disabled? Ryan Gravener http://ryangravener.com/flex | http://twitter.com/ryangravener On Tue, Feb 3, 2009 at 8:16 PM, Fabrizio Giudici fabrizio.giud...@tidalwave.it wrote: Hi. I've seen a strange error in GMap2 - as I've a very limited knowledge in HTML / Ajax, it might be a Google Maps API issue, I don't know. What happened is that I put the GMap2 component in another Panel - and Google Maps didn't work. I only saw a blank area and the Google logo put at the top of the map area. After a long work of exclusion, I've isolated two HTML fragment, one working and one not: WORKING body id=page-home div id=page div id=content class=clearfix div id=main div wicket:id=main wicket:panel h1 wicket:id=headingBalestrino 17 [SV]/h1 p As Simple as it may get. /p div style=width: 640px; height:480px; background: #ff; wicket:id=map div id=mmmap2a style=margin-left: auto; margin-right: auto; width: 600px; height: 400px; wicket:id=mmmap div id=infoWindow2b style=display:none wicket:id=infoWindow nbsp; /div div id=map29 style=width: 100%; height: 100%; position: relative; class=gmap wicket:id=map/div /div /div /wicket:panel /div hr /div /div /div /body NOT WORKING body id=page-home div id=page div id=content class=clearfix div id=main div wicket:id=main wicket:panel h1 wicket:id=headingBalestrino 17 [SV]/h1 p As Simple as it may get. /p div style=width: 640px; height:480px; background: #ff; wicket:id=map div id=mmmap2a style=margin-left: auto; margin-right: auto; width: 600px; height: 400px; wicket:id=mmmap wicket:panel div id=infoWindow2b style=display:none wicket:id=infoWindow nbsp; /div div id=map29 style=width: 100%; height: 100%; position: relative; class=gmap wicket:id=map/div /wicket:panel /div /div /wicket:panel /div hr /div /div /div /body The only difference is that wicket:panel element around the div infoWindow2b. Its presence screw up things. Configuring Wicket in deployment mode, the HTML is cleaned up and the wicket:panel element is removed, thus fixing things. mmmap2a is the div that matches the GMap2 component (I've partially tweaked the style for debugging); the component with wicket:id=map is a Panel I'm using. -- Fabrizio Giudici - Java Architect, Project Manager Tidalwave s.a.s. - We make Java work. Everywhere. weblogs.java.net/blog/fabriziogiudici - www.tidalwave.it/blog fabrizio.giud...@tidalwave.it - mobile: +39 348.150.6941 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Getting data from applet
Here is how I accept files from my flex applications: http://pastie.org/372242 java http://pastie.org/372243 html
Re: [OT] wicket users around the world
New York, NY Ryan Gravener http://ryangravener.com/flex | http://twitter.com/ryangravener On Mon, Dec 15, 2008 at 5:50 PM, Jeremy Levy jel...@gmail.com wrote: New York, NY On Mon, Dec 15, 2008 at 12:55 PM, dtoffe dto...@yahoo.com.ar wrote: 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 proj...@gmail.com 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 auma...@biggjapan.com 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 -- Jeremy Levy See my location in real-time: http://seemywhere.com/jeremy Right now we are paying a $2,500 referral fee for any full-time hire we make and keep for 90 days. We're looking for Java Developers and Marketers with Internet marketing experience. You can earn this fee if your referral leads directly to us hiring one of these people. Call or email me for details.
Re: Sample App w/ Wicket
www.databinder.net is a good start (5+ examples). also wicket-phonebook is useful: http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-phonebook On Nov 12, 2008, at 12:49 PM, akahn wrote: I'm new to Wicket and am interested in developing a small, 4-page web app. Can anyone point me to an online resource or sample app I can look at to understand full page flow, logic, presentation, etc.? I've taken a look at the live examples, but they're too simplistic for me, as I need a bit more meat to understand a full app, end-to-end. Thanks in advance. -- View this message in context: http://www.nabble.com/Sample-App-w--Wicket-tp20465611p20465611.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Changing WicketRuntimeException output
Create your own RequestCycle and in the onRuntimeException(Page page, RuntimeException e) do this. Ryan Gravener http://ryangravener.com/flex | http://twitter.com/ryangravener On Wed, Oct 29, 2008 at 11:27 AM, Dane Laverty [EMAIL PROTECTED]wrote: I would like to make it so that whenever Wicket throws a WicketRuntimeException, it also prints out getSession().getUser(). I'm not especially clear on the flow for RuntimeExceptions, so any suggestions on where I would add the code to do this will be greatly appreciated. Dane Laverty Information Technology 503-365-4687 [EMAIL PROTECTED]
Re: birthday dropdown with month/leap year variances
A simple way would be to use http://wicketstuff.org/wicket13/dates/ with the settings used on http://developer.yahoo.com/yui/examples/calendar/calnavigator.html Ryan Gravener http://ryangravener.com/flex | http://twitter.com/ryangravener On Mon, Oct 27, 2008 at 12:08 PM, Steve Swinsburg [EMAIL PROTECTED] wrote: Hi all, I am creating a set of dropdown choices for a user to enter their birthday on a profile. One for day of the month, one for month of the year, and one for year. However I want to be able to take into account months that have differing numbers of days, (ie some 30, some 31, some 28, every now and the 29 etc) which is all dependent on the month and if its a leap year or not. Does anyone have a component/fragment of code that handles this already to save reinventing the wheel? cheers, Steve
Re: A wicket gathering?
NYC since all the Europeans can probably afford it :) Ryan Gravener http://twitter.com/ryangravener On Tue, Oct 14, 2008 at 2:09 AM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Hehe, always the names, Jonathan. But yeah something like it.. Jonathan Locke wrote: Are you proposing Wicketstock? Nino.Martinez wrote: Hi I've been pondering as usually. This time about a wicket gathering, and it should be something where all could meetup, also from international places. Ideally all comitters would show up. It should be something that were held once a year and not in conjunction with something else as I think it would disturb it. Im not sure where it should be held, we are scattered all over the world? What do you guys feel about it? -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: A wicket gathering?
No, I live closer to Philadelphia and was compromising with New York :) Ryan Gravener http://twitter.com/ryangravener On Tue, Oct 14, 2008 at 2:31 AM, Igor Vaynberg [EMAIL PROTECTED]wrote: isnt that where you live? :) -igor On Mon, Oct 13, 2008 at 11:18 PM, Ryan Gravener [EMAIL PROTECTED] wrote: NYC since all the Europeans can probably afford it :) Ryan Gravener http://twitter.com/ryangravener On Tue, Oct 14, 2008 at 2:09 AM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Hehe, always the names, Jonathan. But yeah something like it.. Jonathan Locke wrote: Are you proposing Wicketstock? Nino.Martinez wrote: Hi I've been pondering as usually. This time about a wicket gathering, and it should be something where all could meetup, also from international places. Ideally all comitters would show up. It should be something that were held once a year and not in conjunction with something else as I think it would disturb it. Im not sure where it should be held, we are scattered all over the world? What do you guys feel about it? -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WebPage constructor
Johan, I don't think a bookmarkable page will always be instantiated because of the diskpagestore. Ryan Gravener http://twitter.com/ryangravener On Tue, Oct 14, 2008 at 6:56 PM, Johan Compagner [EMAIL PROTECTED]wrote: Only when you have a bookmarkable url (or home page) and you press refresh in the browser you will get a new page. The url you refresh points to an existing page instance and that one is just rendered again, so no page construction is being done then On 10/14/08, jensiator [EMAIL PROTECTED] wrote: Hi I have a page that extends webpage, when I hit the browsers refresh button the constuctor wont run. It only runs when I press the PageLink that point to it. The constructor has a UUID as input parameter ( MyWebPage(UUID id) ). Is it suppossed to be like that (working with onrender instead at a refresh). I've been searching the web for something about what to expect of the constuctor invokation but I cant find anything about it. Please point me to an basic article about it if there is on. Jens -- View this message in context: http://www.nabble.com/WebPage-constructor-tp19977659p19977659.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Form model update with ajax using AutoCompleteTextField
You can search the archives for the answer to this one. Essentially the model object for autocomplete is just a string. On 10/13/08, kerim bey [EMAIL PROTECTED] wrote: Hi! I have problems with using an AutoCompleteText field. Loading the choice Objects works fine, but when I select an entry the ModelObject (using a CompoundPropertyModel) of the Form is not updated. Calling setModelObject() doesn't seem to have any effect. Using a DropDownChoice the same way works. What is missing? -- View this message in context: http://www.nabble.com/Form-model-update-with-ajax-using-AutoCompleteTextField-tp19954381p19954381.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] -- Ryan Gravener http://twitter.com/ryangravener - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: force page reload
Just throwing this out there: http://wicketstuff.org/wicket13doc/org/apache/wicket/Page.html#setStatelessHint(boolean) Perhaps that may work. Ryan Gravener http://twitter.com/ryangravener On Tue, Oct 7, 2008 at 12:02 PM, francisco treacy [EMAIL PROTECTED] wrote: as it is kind of a workflow and i had all the pages already prepared by passing imodels along into constructors, i didn't want to have a bookmarkablepage (whatever you pick: panels/pages/variations, you need this one to call the page executing the code). but this was the simpler solution, pass an id to the non wicket server through http post, get it back and initialize the a detachablemodel again with the id and the dao. so i changed a bit my code to fit this no-arg constructor page, which is responsible of checking the http post params. imo it is a good idea to use variations. a panel could have also been, of course, but i wanted to avoid boilerplate for just a thank you. i finally redirected to the next page. in any case, this is such a small case that the approach is not so important here. thanks all! francisco On Tue, Oct 7, 2008 at 1:36 AM, Jeremy Thomerson [EMAIL PROTECTED] wrote: I'd wholeheartedly agree with the panel solution. Either one would work, but I think the panel is really good. -- Jeremy Thomerson http://www.wickettraining.com On Mon, Oct 6, 2008 at 9:53 PM, John Krasnay [EMAIL PROTECTED] wrote: On Mon, Oct 06, 2008 at 07:36:03PM -0200, francisco treacy wrote: thanks for your help, serkan. cool, this works. as a workaround nevertheless: -i wouldn't want my app to check every single request the existence of a parameter which i am going to use in only *one* page anyway -what if i have this param passed to another page that doesn't expect it? this could easily introduce new bugs isn't there another easy way to force reloading / not caching a page? why isn't setHeaders having any effect? should be straightforward - what am i missing here? thanks again anyone for some pointers! francisco It seems to me a bit strange to use markup variant for this. You could have your callback page forward to the correct page like this: public CallbackPage(PageParameters params) { if (params.getString(DATA).equals(good)) { setResponsePage(PaymentGoodPage.class); } else { setResponsePage(TryAgainPage.class); } } Alternatively, you could instantiate an appropriate panel in your page: public CallbackPage(PageParameters params) { if (params.getString(DATA).equals(good)) { add(new PaymentGoodPanel(responsePanel)); } else { add(new TryAgainPanel(responsePanel)); } } jk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie Question, Very Basic Model Use
If you would like the property model to work with local variables do new propertymodel(this,property) On 10/6/08, walnutmon [EMAIL PROTECTED] wrote: After using property models, it's nice to have automatic binding to variables in objects... However, I can't seem to get the same thing to work with local variables... as an example... new CheckBox(toggleSomething, new PropertyModel(someObject, toggleableProperty)); works beautifully... However, new CheckBox(toggleSomething, new Model(toggleableObject)); //toggleableObject is a Boolean doesn't seem to change anything on form submit, that toggleable object only dictates the initial state of the checkbox, but doesn't change with it What am I missing? -- View this message in context: http://www.nabble.com/Newbie-Question%2C-Very-Basic-Model-Use-tp19837933p19837933.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] -- Ryan Gravener http://twitter.com/ryangravener - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to expose regular exception message in FeedbackPanel?
In your catch clause in onsubmit, call error(e.getMessage()) Ryan Gravener http://twitter.com/ryangravener On Mon, Oct 6, 2008 at 2:32 PM, Seven Corners [EMAIL PROTECTED]wrote: I have a form whose submission can possibly generate exceptions. I would like to expose the exception text in the FeedbackPanel. How can I do this? I've tried getting the FeedbackMessagesModel and doing a setObject() on that but it's not accepting a String, a FeedbackMessages List, or a new FeedbackMessage. Obviously I'm going about this the wrong way. Ideas? Thanking you in advance for your time and trouble. -- View this message in context: http://www.nabble.com/How-to-expose-regular-exception-message-in-FeedbackPanel--tp19843597p19843597.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: PageExpiredException
Ensure that all the objects you are storing in your page implement Serializable On Wed, Sep 17, 2008 at 11:10 AM, Johannes Schneider [EMAIL PROTECTED] wrote: Hi, since I have switched to the latest Wicket version, I get that exception a lot of times. But I really don't understand what I am doing wrong. Yes I know that it is not easy to give any hints without knowing any details. But maybe that is a common error... Any hints are welcome. Thanks, Johannes no page org.apache.wicket.protocol.http.PageExpiredException: Cannot find the rendered page in session [pagemap=null,componentPath=0:news:news:6:attachments:attachments:0:downloadLink,versionNumber=0] at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:181) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1227) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1347) at org.apache.wicket.RequestCycle.request(RequestCycle.java:497) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:387) at org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:125) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.security.SecurityUtil $1.run(SecurityUtil.java:243) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Subject.java:517) at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:272) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:245) at org.apache.catalina.core.ApplicationFilterChain.access $0(ApplicationFilterChain.java:177) at org.apache.catalina.core.ApplicationFilterChain $1.run(ApplicationFilterChain.java:156) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866) at org.apache.tomcat.util.threads.ThreadPool $ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:619) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ryan Gravener http://twitter.com/ryangravener
Re: head after /body
those are some pretty old browsers On Wed, Sep 17, 2008 at 4:28 PM, Stefan Lindner [EMAIL PROTECTED] wrote: A microsoft tech tip (http://support.microsoft.com/kb/222064) for IE suggests to put a /BODY HEAD META HTTP-EQUIV=PRAGMA CONTENT=NO-CACHE /HEAD /HTML head tag after the closing /body tag. But wicket (1.4M3) deletes the head and the served page is /BODY /HTML Any way to solve this? Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ryan Gravener http://twitter.com/ryangravener
Re: wicket:message in the title
Label label = new Label(pageTitle, new ResourceModel(pageTitle); label.setRenderBodyOnly(true); add(label); title wicket:id=pageTitle[localized title/title On Sun, Sep 14, 2008 at 4:17 PM, Luther Baker [EMAIL PROTECTED] wrote: Is there a way to put a wicket:message in the title tag? This keeps rendering: titlewicket:message key=pageTitlePlaceholder Text/wicket:message/title* * from this: titlewicket:message key=pageTitle//title* * Of course, it displays everything nested between the title tags: wicket:message key=pageTitleValid Page Title/wicket:message in the browser caption bar. The substitution happens just fine - but the wicket ... text all appears in the title. This page talks http://cwiki.apache.org/WICKET/everything-about-wicket-internationalization.html talks about expanding in the attribute of an input but I don't see syntax to replace the whole thing. I tried this but not luck: wicket:message key=pageTitle/. I read somewhere that I can turn off all the wicket syntax from showing up on the page ... do I need to do that or is there a defined way to use the wicket:message mechanism in the title? I could also try the Label object in the Java - but hoping to use the .properties file. Thanks, -Luther -- Ryan Gravener http://twitter.com/ryangravener
Re: Can we have a prefix in the subject line for any emails from this mailing list?
switch to gmail On Wed, Sep 10, 2008 at 12:43 PM, Vernon [EMAIL PROTECTED] wrote: Emails from this mailing list quickly jam up my email account. Since there isn't a filter for this email account, I have to move emails to another folder by hand. It would be very helpful if the subject line with a prefix like [wicket-user] so that I know what the email is about. Thanks. -- Ryan Gravener http://twitter.com/ryangravener
Re: Wicket merchandise take 2
I like the idea of a professional shirt, something you can wear in the office to show your support for wicket. However, I don't know about you Europeans but http://images.cafepress.com/product/297944696v9_240x240_Back.jpg would repel the girls in the states. Would it be possible to only have the front logo on the golf shirt? On Mon, Aug 25, 2008 at 5:54 PM, Eelco Hillenius [EMAIL PROTECTED]wrote: Neato. Hey, would it be possible to have 'fitted' T-shirts as well besides 'standard' fit? I like to show off my beer belly when I can. Same here, except I want the 6pack protruding through Eelco On Mon, Aug 25, 2008 at 7:42 AM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: I guess we should link to the merchandise page from the wiki also? James Carman wrote: The proceeds should benefit the ASF, not a random charity. On Mon, Aug 25, 2008 at 5:48 AM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: I haven't heard anything from prc @ apache that we could not do this, so im gonna take this as silent approval. So any profit from merchandise could be donated following these rules, if 1's full then 2 etc (providing the people want it): 1. Provide the core team with merchandise (might be the ordinary stuff with a comitter stamp on) 2. Provide the wicket stuffers with merchandise (might be the ordinary with a stuffer comitter stamp on) 3. Merchandise for critical patchers 4. Random Charity So without further restraints, I now declare the shop open: http://www.cafepress.com/apachewicket You can now surprise your loved one with a teddy bear, and later with the wonderful Apache Wicket boxer shorts. Btw: if you find any problems with some of the merchandise please write me. Input are welcome. -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ryan Gravener http://twitter.com/ryangravener
Re: Wicket merchandise?
I could also go for a wicket t-shirt. On Wed, Aug 20, 2008 at 8:32 AM, robert.mcguinness [EMAIL PROTECTED] wrote: I would dig a t-shirt. The logo is wicked :) and I would get a couple for my bosses. - rob -- View this message in context: http://www.nabble.com/Wicket-merchandise--tp19066811p19068428.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] -- Ryan Gravener http://twitter.com/ryangravener
Re: Wicket and Flex integration
Yea, I tested it. Works great. But maybe I'm biased :) On Tue, Aug 12, 2008 at 7:17 PM, Fernando Wermus [EMAIL PROTECTED]wrote: Does anyone have tried to test this example? http://ryangravener.com/wordpress/?p=21 On Thu, Jul 31, 2008 at 2:11 PM, Fernando Wermus [EMAIL PROTECTED]wrote: Dear all, We want to integrate wicket and Flex. The reason for the integration is that we would like to keep the wicket wizard with individual swf instead of developing all in Flex. I haven't seen any document about this integration. If any, please could you send an example? We also want to know if the integration was using blaze ds or the ayax bridge, etc Thanks in advance. -- Fernando Wermus. www.linkedin.com/in/fernandowermus http://mientretiempo.blogspot.com/ -- Fernando Wermus. www.linkedin.com/in/fernandowermus http://mientretiempo.blogspot.com/ -- Ryan Gravener http://twitter.com/ryangravener
Re: wicket + spring + jpa reference example?
Have you taken a look at wicket-phonebook? https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-phonebook/ I have a demo project for wicket+hibernate+spring+flex+blazeds in the works, but it is far from perfect: http://code.google.com/p/wicket-flex-blazeds/ On Wed, Aug 6, 2008 at 5:25 PM, francisco treacy [EMAIL PROTECTED] wrote: hi, i need to develop a project with wicket + spring + jpa. i'm not used lately to this setup, so i tried to build it up, not without some trouble. so my question here is: do you know a current good wicket + spring + jpa reference/example? earlier today i checked out qwicket, but there's some really odd problem that prevents the app to load (no exceptions thrown whatsoever). also wicket in action, but it is not built with jpa (just plain hibernate) and i cannot figure out the correct applicationContext.xml... thanks! francisco ps. argh, i just love my normal setup with wicket + guice + salve + warp-persist, no xml, works like a charm :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ryan Gravener http://twitter.com/ryangravener
Re: help me please
Tons of examples with source code: http://wicketstuff.org/wicket13/ On Tue, Aug 5, 2008 at 3:44 PM, Daniel Freitas [EMAIL PROTECTED]wrote: Damn that was the worst english email I have ever written. Sry. 2008/8/5 Daniel Freitas [EMAIL PROTECTED] I'm sure there are plenty of free materiel on the internet. But my personal experience is that to get a hold on a new framework (which you absolutely nothing a about) a good book is the best way to go, as all the information is all there concisely in one place only. The internet I reserve for more advanced and/or specific points since the information tends to be spread. That being said, Wicket in Action (book) is doing good for me. You can have access to it through manning early access program. Just type in Wicket in Action in google. Cheers, Daniel 2008/8/5 oriana [EMAIL PROTECTED] I am beginning to program with Apache wicket and I need a tutorial the most complete possible thing in order to guide me in this new world. If somebody could help me. Thank you ahead of time.:confused: -- View this message in context: http://www.nabble.com/help-me-please-tp18838183p18838183.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] -- Ryan Gravener http://twitter.com/ryangravener
Re: Best way to implement DataTable updatable via Ajax
// Get the saved list back List contacts = contactManager.getUsers(); if (first 0) { contacts = contacts.subList(first, first + count); } return contacts.iterator(); } public IModel model(Object object) { return new ContactModel((ContactInfoPOJO)object); } public int size() { return contactManager.getContacts().size(); } } Questions: 1. Is calling dataprovider again the correct approach for updating the datatable? (See TODO 1 above) Can someone please suggest an alternate approach? 2. How do I pass the Error Object to Page's Panel from DataProvider in case of Unsuccessful save?(see TODo: 2 above) 3. Will onError be called if I somehow plugin the error message to feedback Panel (See TODO: 3) Thanks for reading the post. -- View this message in context: http://www.nabble.com/Best-way-to-implement-DataTable-updatable-via-Ajax-tp18698367p18698367.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] -- Ryan Gravener http://twitter.com/ryangravener
Re: Best way to implement DataTable updatable via Ajax
I'm sorry, gmail shortkeys did me in this time :) On Mon, Jul 28, 2008 at 5:06 PM, nanotech [EMAIL PROTECTED] wrote: Hi Ryan, Did you answer my post? i am unable to see any answer? Thanks RG Ryan Gravener-3 wrote: On Mon, Jul 28, 2008 at 3:59 PM, nanotech [EMAIL PROTECTED] wrote: Hi All, I have a Save Form where user should be able to add/save new records and should be able to view feedback if there are any errors. In short, When user loads up the page he sees a form and under it a DataTable which holds the deafault search results. If he tries to add a record and Add is Successful then DataTable gets updated via Ajax. In case of Failure errors are reported on feedback panel. Here is how I have implemented it: === SaveContactPage.html === div wicket:id=saveUserFeedback[Feedback-error messages etc.]/div form wicket:id=saveUserForm table tr tdFirst Name:/td tdinput type=text wicket:id=firstName //td /tr tr tdLast Name:/td tdinput type=text wicket:id=lastName //td /tr tr tdinput type=submit wicket:id=saveContactButton //td /tr /table /form !-- Updatable container for search/add results -- div wicket:id=resultsContainer table wicket:id=addResultsTable[Results for add/search Contacts]/table /div = SaveContactPage.java == public class SaveContactPage extends WebPage { // Hold reference to provider.. AddContactDataProvider provider; // Hold refernce to FeedbackPanel... FeedbackPanel saveUserFeedback; //Hold refernece to updatable dataTable's container.. WebMarkupContainer resultsContainer; public SaveContactPage() { add(saveUserFeedback = new FeedbackPanel(saveUserFeedback)); saveUserFeedback.setOutputMarkupId(true); SaveUserForm userForm = new SaveUserForm(saveUserForm); add(userForm); // Get a new provider. provider = new AddContactDataProvider((ContactInfoPOJO) userForm.getModelObject()); // Get all the columns. ListIColumn columns = createColumns(); resultsContainer = new WebMarkupContainer(resultsContainer); resultsContainer.add(new DataTable(addResultsTable, columns, provider, 10)); } private ListIColumn createColumns() { ListIColumn columns = new ArrayList(); columns.add(new PropertyColumn(this.getModel(), firstName)); columns.add(new PropertyColumn(this.getModel(), lastName)); } // Begin Save USER Form. private class SaveUserForm extends StatelessForm { public SaveUserForm(String id) { super(id); // Set Form's model setModel(new CompoundPropertyModel(new ContactInfoPOJO())); add(new TextField(firstName)); add(new TextField(lastName)); add(new AjaxFallbackButton(saveContactButton, this) { @Override protected void onSubmit(AjaxRequestTarget target, Form form) { // TODO 1: Is this Correct approach // (i.e. calling the provider // again to refresh the container) // On Submitcall the provider again? provider = new AddContactDataProvider(form.getModelObject()); //Refresh the dataTable target.addComponent(resultsContainer); // In case of Failure...Display the error messages. } protected void onError(AjaxRequestTarget target, Form form) { // TODO 3: Show Errors...if any // But Error happned in DataProvider... // How do I get hold of Error Object Here... target.addComponent(saveUserFeedback); } }); } } } == AddContactDataProvider.java == public class AddContactDataProvider extends SortableDataProvider { private ContactInfoPOJO contactPojo; private ContactManager contactManager; public
Re: Best /Correct way to update DataTable via Ajax
); } }); } } } == AddContactDataProvider.java == public class AddContactDataProvider extends SortableDataProvider { private ContactInfoPOJO contactPojo; private ContactManager contactManager; public AddContactDataProvider(ContactInfoPOJO contactPojo) { this.contactPojo = contactPojo; contactManager = new JDBCContactManager(); } public Iterator iterator(int first, int count) { // Save the Contact... contactManager.saveContact(contactPojo); //TODO 2::: HOW? WHERE??? //If Save FAILED then GET ERROR MESSAGE // Get the saved list back List contacts = contactManager.getUsers(); if (first 0) { contacts = contacts.subList(first, first + count); } return contacts.iterator(); } public IModel model(Object object) { return new ContactModel((ContactInfoPOJO)object); } public int size() { return contactManager.getContacts().size(); } } Questions: 1. Is calling dataprovider again the correct approach for updating the datatable? (See TODO 1 above) Can someone please suggest an alternate approach? 2. How do I pass the Error Object to Page's Panel from DataProvider in case of Unsuccessful save?(see TODo: 2 above) 3. Will onError be called if I somehow plugin the error message to feedback Panel (See TODO: 3) Thanks for reading the post. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Best-way-to-implement-DataTable-updatable-via-Ajax-tp18698367p18702905.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] -- Ryan Gravener http://twitter.com/ryangravener
Re: Another question on client IP address and HttpRequest
I think (webclientinfo)session.get().getclientinfo()) will have the ip address somewhere. On 7/24/08, Edbay [EMAIL PROTECTED] wrote: I know that the client IP address can be obtained from the raw HttpRequest, but only if you are in a WebPage, but is there a way to get to it from the session? Reason I'm asking is upon the creation of a user session, I'd like to be able to get the IP address of the user and log it for audit purposes. -- View this message in context: http://www.nabble.com/Another-question-on-client-IP-address-and-HttpRequest-tp18642444p18642444.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] -- Ryan Gravener http://twitter.com/ryangravener - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AutocompleteTextField
This is a common question, search the mailing list and you will find a few different ways of doing this. On Fri, Jul 18, 2008 at 3:09 AM, ulrik [EMAIL PROTECTED] wrote: Hello! I have a question that I hope someone can help me with. Lets say I have two classes like the ones here: http://papernapkin.org/pastebin/view/1760/ . Lets say I want a page with a AutoCompleteTextField where I can search students by entering their name in the search field. Because there can be several students with the same name I want to be able to separate one from the other when I choose one of them from the list of choices. So, what I want to happen is that when I for example enter Ad into the search field, I want the search field to show A list with all students whos name is Adam, when I select one of them I want the ID for that specific adam to be stored in the Model associated with the search field. How do I do that? Anyone that has an idea? -- View this message in context: http://www.nabble.com/AutocompleteTextField-tp18523765p18523765.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] -- Ryan Gravener http://twitter.com/ryangravener
Re: DateTextField question
Are you guys using safari? If so I think this problem is patched in 1.3.4. On 7/15/08, Serkan Camurcuoglu [EMAIL PROTECTED] wrote: I'm not sure about the reason, but in my portlet application, only one of the date pickers is initialized if I add two portlets on the same page containing date pickers, so only one of them works.. also it seems like the date picker doesn't work if there is any other wicket ajax component loaded on the page.. I think it's a problem with the wicketCalendarInits array object which is used for initializing these date pickers, but I haven't found the exact cause yet, I'd like to hear if you find a solution.. Cristi Manole wrote: Hello, Any ideas why the calendar does not show on my modal window? -I've seen the examples and I know it's working. -It is not a problem related to z-index *It seems the yui class does not get appended to the tag so clicking the calendar icon does nothing (i presume that's the reason). *Has anyone by any chance experienced this or something similar? Any suggestion is highly appreciated :). Tks a bunch, Cristi Manole - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ryan Gravener http://twitter.com/ryangravener - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hiding table columns in DataViews?
http://wicketstuff.org/wicket13/repeater/?wicket:bookmarkablePage=:org.apache.wicket.examples.repeater.DataTablePage via http://www.google.com/search?q=wicket+datatable+example On Mon, Jul 14, 2008 at 1:26 PM, Michael Mehrle [EMAIL PROTECTED] wrote: Okay, and look at exactly what? A simple example or URL to an example would have helped... -Original Message- From: Martijn Dashorst [mailto:[EMAIL PROTECTED] Sent: Saturday, July 12, 2008 12:04 AM To: users@wicket.apache.org Subject: Re: Hiding table columns in DataViews? See DataTable and friends. Martijn On Sat, Jul 12, 2008 at 4:19 AM, Michael Mehrle [EMAIL PROTECTED] wrote: I build a table like this: table width=100% cellpadding=0 cellspacing=0 border=0 tr td class=pad5 bldwicket:message key=dateTitle//td tdwicket:message key=timeTitle//td tdwicket:message key=statusTitle//td tdnbsp;/td /tr tr wicket:id=recurringEvents td wicket:id=date class=grytop pad5[Date]/td td wicket:id=time class=grytop[Time]/td td wicket:id=status class=grytop[Status]/td td a wicket:id=replyNow class=guestlinkspan wicket:id=reply //anbsp;/td /tr /table Now, there are certain columns I need to hide in certain circumstances. I have no problem hiding the 'content' of certain columns by setting the particular value to empty in my dataprovider. However, I would like to hide the entire column including the header - how can that be done? Thanks! Michael -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ryan Gravener http://twitter.com/ryangravener
Re: Hiding table columns in DataViews?
Here is the source for adding columns to a table: ListIColumn columns = new ArrayListIColumn(); columns.add(new AbstractColumn(new Model(Actions)) { public void populateItem(Item cellItem, String componentId, IModel model) { cellItem.add(new ActionPanel(componentId, model)); } }); columns.add(new PropertyColumn(new Model(ID), id) { @Override public String getCssClass() { return numeric; } }); columns.add(new PropertyColumn(new Model(First Name), firstName, firstName)); columns.add(new PropertyColumn(new Model(Last Name), lastName, lastName) { @Override public String getCssClass() { return last-name; } }); columns.add(new PropertyColumn(new Model(Home Phone), homePhone )); columns.add(new PropertyColumn(new Model(Cell Phone), cellPhone )); You can see that in order to add a column or hide one you would just add it or omit adding it to the list. So if I did not want to show Cell Phone, I would simply not add the PropertyColum(new Model(Cell Phone), cellPhone) to columns. On Mon, Jul 14, 2008 at 2:31 PM, Michael Mehrle [EMAIL PROTECTED] wrote: Not to be thick, but where does this show me how to hide table headers? All I see is a regular DataTable example. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ryan Gravener Sent: Monday, July 14, 2008 11:28 AM To: users@wicket.apache.org Subject: Re: Hiding table columns in DataViews? http://wicketstuff.org/wicket13/repeater/?wicket:bookmarkablePage=:org.apache.wicket.examples.repeater.DataTablePage via http://www.google.com/search?q=wicket+datatable+example On Mon, Jul 14, 2008 at 1:26 PM, Michael Mehrle [EMAIL PROTECTED] wrote: Okay, and look at exactly what? A simple example or URL to an example would have helped... -Original Message- From: Martijn Dashorst [mailto:[EMAIL PROTECTED] Sent: Saturday, July 12, 2008 12:04 AM To: users@wicket.apache.org Subject: Re: Hiding table columns in DataViews? See DataTable and friends. Martijn On Sat, Jul 12, 2008 at 4:19 AM, Michael Mehrle [EMAIL PROTECTED] wrote: I build a table like this: table width=100% cellpadding=0 cellspacing=0 border=0 tr td class=pad5 bldwicket:message key=dateTitle//td tdwicket:message key=timeTitle//td tdwicket:message key=statusTitle//td tdnbsp;/td /tr tr wicket:id=recurringEvents td wicket:id=date class=grytop pad5[Date]/td td wicket:id=time class=grytop[Time]/td td wicket:id=status class=grytop[Status]/td td a wicket:id=replyNow class=guestlinkspan wicket:id=reply //anbsp;/td /tr /table Now, there are certain columns I need to hide in certain circumstances. I have no problem hiding the 'content' of certain columns by setting the particular value to empty in my dataprovider. However, I would like to hide the entire column including the header - how can that be done? Thanks! Michael -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ryan Gravener http://twitter.com/ryangravener -- Ryan Gravener http://twitter.com/ryangravener
Re: wicket-library source code
http://wicket.apache.org then choose 'Getting Wicket' http://svn.apache.org/repos/asf/wicket/tags/wicket-1.3.4/ On Mon, Jul 14, 2008 at 5:34 PM, sjtirtha [EMAIL PROTECTED] wrote: Hi, where can I get the source code of the example in wicket-library? The source code link does not show the complete source code. Regards, Steve -- Ryan Gravener http://twitter.com/ryangravener
Re: wicket-library source code
http://wicketstuff.org/wicket13/nested/?wicket:bookmarkablePage=:org.apache.wicket.examples.ajax.builtin.tree.SimpleTreePage http://svn.apache.org/repos/asf/wicket/tags/wicket-1.3.4/jdk-1.5/wicket-examples/ On Mon, Jul 14, 2008 at 6:06 PM, sjtirtha [EMAIL PROTECTED] wrote: I don't mean the wicket source code, but the wicket-library souce code. For example http://www.wicket-library.com/wicket-examples/ajax/tree/simple.2does not contain the complete source code of the example. On Mon, Jul 14, 2008 at 11:43 PM, Ryan Gravener [EMAIL PROTECTED] wrote: http://wicket.apache.org then choose 'Getting Wicket' http://svn.apache.org/repos/asf/wicket/tags/wicket-1.3.4/ On Mon, Jul 14, 2008 at 5:34 PM, sjtirtha [EMAIL PROTECTED] wrote: Hi, where can I get the source code of the example in wicket-library? The source code link does not show the complete source code. Regards, Steve -- Ryan Gravener http://twitter.com/ryangravener -- Ryan Gravener http://twitter.com/ryangravener
Re: Does Session.getClientInfo() Always Return An Instance?
Yes, it should always return an instance. On Fri, Jul 11, 2008 at 12:34 PM, TH Lim [EMAIL PROTECTED] wrote: Hi, Does Session.getClientInfo() always return a client info instance? Is it possible that this method will return null? If so, what is the cause to it? Thanks. -- View this message in context: http://www.nabble.com/Does-Session.getClientInfo%28%29-Always-Return-An-Instance--tp18407471p18407471.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] -- Ryan Gravener http://twitter.com/ryangravener
Re: DateTextField bug : no validation and giving null to Hibernate
If you are accessing any extended browser information, be sure to access that information in your constructor. That way you will not be redirect while submitting your form. On Thu, Jul 10, 2008 at 9:55 AM, Igor Vaynberg [EMAIL PROTECTED] wrote: try wicket 1.3.4 first. -igor On Thu, Jul 10, 2008 at 2:49 AM, Joseph P. [EMAIL PROTECTED] wrote: Hi We have found it : it's the getRequestCycleSettings().setGatherExtendedBrowserInfo(true); setting in the application initSettings() which was causing all this fuss. Since we commented it out it works fine... shall I open a bug ? bye joseph -- View this message in context: http://www.nabble.com/DateTextField-%22bug%22-%3A-no-validation-and-giving-null-to-Hibernate-tp18379140p18379413.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ryan Gravener http://twitter.com/ryangravener
Re: BookMarkable Home Page?
Maybe override onError and redirect to the bookmarkable page w/ params? On Fri, Jun 13, 2008 at 3:46 PM, nanotech [EMAIL PROTECTED] wrote: Hi All, In my application the Home Page of the class has the url that looks like this http://localhost:8080/app/?id=ABCXYZ This form has a textfield that I am pre-filling with value of id from query param (in this case ABCYXZ). It also has JCaptcha component and a text field component to validate that captcha. And there is Submit button. Now, The problem is: When I Submit the form and if any of the required fields is not filled up then it shows validation errors which is all good. But, the page refreshes and url of the page changes to http://localhost:8080/app/?wicket:interface=:0 . - How can I prevent query param from disappearing? - How can I prevent from ?wicket:interface=:0 from appearing so that it does not expire after server re-boot (Note: this is the home page of the application) Thanks for the help, RG -- View this message in context: http://www.nabble.com/BookMarkable-Home-Page--tp17830736p17830736.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] -- Ryan Gravener http://twitter.com/ryangravener
Re: how to pass parameters while setting page expired error page
I haven't had to deal with this issue yet, but perhaps you can put this information in a cookie and read it when necessary? On Wed, Jun 4, 2008 at 9:04 AM, Patel, Sanjay [EMAIL PROTECTED] wrote: I want to redirect to LoginPage if session expires and want to show message that your session expired, please login again. Is there any way that I can pass parameters to LoginPage ?? getApplicationSettings().setPageExpiredErrorPage(LoginPage.class); Thanks, Sanjay. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ryan Gravener http://twitter.com/ryangravener
Re: Wicket Session and non-Wicket Servlet
Check out the api for WicketSessionFilter, it will tell you how to make the session available for non wicket servlets. http://wicket.apache.org/docs/wicket-1.3.2/wicket/apidocs/org/apache/wicket/protocol/http/servlet/WicketSessionFilter.html On Tue, Jun 3, 2008 at 4:30 PM, Martijn Dashorst [EMAIL PROTECTED] wrote: You can't access the Wicket Session from outside a Wicket request using Session.get(). It is a thread local that is maintained by the request cycle. If it was possible in 2.0, then that was a bug and most certainly a security risk. You should try to look up the Wicket session in the HttpSession of your servlet using the session id and wicket key. Or just store the report in the http session instead. Martijn On Tue, Jun 3, 2008 at 10:21 PM, Matthew R Hanlon [EMAIL PROTECTED] wrote: Okay, I may have this all wrong, and then that's my problem. I have an application that was developed under the 2.0 branch that I recently migrated to 1.4. This application uses a servlet to handle requests for Jasper Reports, and under 2.0 everything worked great. I store the report request in the user's Session, and retrieve it in the JasperReportServlet to look up the request. In my JasperReportServlet I was doing: public final void doGet(final HttpServletRequest servletRequest, final HttpServletResponse servletResponse) throws ServletException, IOException { String requestId = servletRequest.getParameter(ReportingConstants.PARAMETER_NAME_REPORT_REQUEST ); ReportRequest reportReq = null; MySession session = (MySession)Session.get(); reportReq = session.getReportRequest(requestId); // handle report request, etc. } However, in 1.4 when I do Session.get() from my JasperReportServlet I am getting the error java.lang.IllegalStateException: you can only locate or create sessions in the context of a request cycle. So, can I no longer get an object from my wicket Session from a non-wicket Servlet? I've been looking all over, and can't seem to find the right answer. Thanks for any help. Regards, Matthew. -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.3 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.3 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ryan Gravener http://twitter.com/ryangravener
Re: ClassCastException with ListView()
How about changing PropertyListView to just ListView. On Fri, May 30, 2008 at 11:41 AM, James Carman [EMAIL PROTECTED] wrote: On Fri, May 30, 2008 at 11:38 AM, David Nedrow [EMAIL PROTECTED] wrote: On May 30, 2008, at 11:20 AM, James Carman wrote: What is the type of item.getModelObject(). Have you run it through a debugger (or just simply put in a println)? Yes, I had done that first, thinking maybe I didn't understand how ListView worked via the Model. The object returned by item.getModelObject().toString() is... Try doing, item.getModelObject().getClass().toString() (unless that's what you meant to type). Can we see an example method from your DAO? What persistence library are you using (hibernate, jpa, jdo, etc.)? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ryan Gravener http://twitter.com/ryangravener
Re: External Form target
Perhaps you can extend Form and do onComponentTag(final ComponentTag tag) { super.onComponentTag(tag); tag.put(method,post); tag.put(action,MyApplication.get().getExternalUrl()); } On Wed, May 21, 2008 at 2:30 PM, Mathias P.W Nilsson [EMAIL PROTECTED] wrote: Hummm... this is an interesting question. Currently in have solved it like this. Add a javacript to the page that changes the forms target. function makeCallBack( URL ){ document.forms[ orderForm ].action = URL; document.forms[ orderForm ].submit(); } In my wicket page target.appendJavascript( makeCallBack( '+ getOrder().getPaymentSetting().getHost() +' )); I'm using a ajax submit. Does anyone else have a better solution? -- View this message in context: http://www.nabble.com/External-Form-target-tp17364277p17367657.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] -- Ryan Gravener http://twitter.com/ryangravener
Re: Password field to textField and back
If I read a password field asking me to type my password, where plain text already exists, I would have 2nd thoughts on entering it. On Wed, May 21, 2008 at 3:00 PM, Jeremy Thomerson [EMAIL PROTECTED] wrote: Just an off-the-cuff guess, but have you tried adding both a textfield and a password field, and then when the textfield (with the hint) is in focus, hiding that and showing / focusing on the password field? -- Jeremy Thomerson http://www.wickettraining.com On Wed, May 21, 2008 at 1:46 PM, Mathias P.W Nilsson [EMAIL PROTECTED] wrote: Hi! In my website I have an textField for email and a password field for the password. The problem is that I need to print Email here , Password here in the field so that the user can type in the fields. There are no room for labels. I need some way of changing the password field to textfield and onfocus to password. Is this possible in wicket? Anyone done this before? Problem as I see it is that IE don't support this.type = newType. It needs to be replaced. Any pointers? -- View this message in context: http://www.nabble.com/Password-field-to-textField-and-back-tp17367668p17367668.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] -- Ryan Gravener http://twitter.com/ryangravener
Re: access input-value of textfield via ajax before form-submit
see AjaxFormComponentUpdatingBehavior. 2008/5/16 Oliver Mahnke [EMAIL PROTECTED]: Hi, i am new to wicket and have a question: is it possible to access the input-value of a textfield embedded in a form via ajax before the form is submitted? I have a second textfield which should display the input-value of the first when the focus leaves tf one. Therefore i connected the model of tf 2 to the model of tf 1 and have registered an onblur AjaxEventBehavior for tf 1, which adds the tf 2 to the ajax response. It seems that the value of tf 1 is written to the model only when the whole form is correct and submitted, the the output of tf 2 is only updated on form submit :( Thanks!! -- Dipl.-Inf. Oliver Mahnke b+m Informatik GmbH Berlin Schumannstr. 5, 10117 Berlin Tel: +49 30 288788-132, Fax: +49 30 288788-111 http://www.bmiag.de, [EMAIL PROTECTED] Weitere Angaben zur b+m Informatik GmbH Berlin: - Handelsregister des Amtsgerichts Charlottenburg, HRB 75036 - Geschäftsführer: Dipl.-Inform. Jost Becker - Geschäftsführer: Dr. Carsten Jacobsen Aktuelle b+m Infos unter www.bmiag.de Diese E-Mail enthält vertrauliche und rechtlich geschützte Informationen, die ausschließlich für den vorgesehenen Adressaten bestimmt sind. Sollten Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so beachten Sie bitte, dass jede Form der Kenntnisnahme, Speicherung oder Weitergabe des Inhalts dieser E-Mail unzulässig ist. Wir bitten Sie, in diesem Fall den Absender zu informieren und die E-Mail mit sämtlichen Anlagen dauerhaft zu löschen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ryan Gravener http://twitter.com/ryangravener
Re: Not rendering DataGrid if empty
Override the isVisible method of your component for which you do not want to render. @Override boolean isVisible() { return dp.size()!=0; } On Fri, May 16, 2008 at 12:44 PM, nitinkc [EMAIL PROTECTED] wrote: Currently the DataGrid outputs a datatable with column headers and a message 'No Records Found' if the datalist is empty. Does anyone know if it is possible to render the datatable only if the list is not empty? Setting the visibility to 'false' is not an option as the markup is not rendered in this case and I need to be able to rerender the datatable if records are found after an Ajax submit... -- View this message in context: http://www.nabble.com/Not-rendering-DataGrid-if-empty-tp17279244p17279244.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] -- Ryan Gravener http://twitter.com/ryangravener
Re: Wicket tags and IE6
You can place getMarkupSettings().setStripWicketTags(true); into your Application.init(). I believe these are automatically stripped when you are in deployment mode. On Fri, May 16, 2008 at 1:33 PM, John Krasnay [EMAIL PROTECTED] wrote: I've just noticed a specific problem with Wicket tags interfering with IE6. I have a page that uses the jqModal plugin for jQuery to display a popup div. It works fine on FF, but on IE6 the overlay (the semi-transparent div that blocks out the rest of the page while the popup is active) pushes the rest of the content down instead of floating above it, and the popup div itself is not visible. After quite a bit of debugging I narrowed it down to a Border I was using on the page, and I suspect it was the wicket:body tag that was giving IE fits. Of course, this is easily fixed by suppressing Wicket tags from the output, but I was wondering if (a) anyone else had seen this and can think of another workaround, and (b) if there's some way of fixing this in Wicket itself short of renaming wicket:body. jk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ryan Gravener http://twitter.com/ryangravener
Re: Form validation and .properties
The page does a pretty good job explaining how the .properties work. If you have global properties, you want them to go in your MyApplication.properties file which sits right along MyApplication.java. For cases where you only need specific properties for a component, place the properties file with the components name right alongside it. Wicket will start at the bottom and work its way up looking for the property key. If you look at the source (don't be scared) http://svn.apache.org/repos/asf/wicket/trunk/wicket/src/main/java/org/apache/wicket/ there are a whole bunch of Application*.(properties|xml). On Fri, May 16, 2008 at 12:30 PM, Blackbird [EMAIL PROTECTED] wrote: Hi, I am very interested in form validation as shown in the FormInput example at wicketstuff (http://wicketstuff.org/wicket13/forminput/) I also came upon this page (http://cwiki.apache.org/WICKET/form-validation-messages.html) in the wicket reference website. - This last web page reads Some knowledge of wicket property-resource loading is required. Where can I get this knowledge ? A URL would have been convenient. - About the FormInput example, we can see that property values are retrieved from their key in FormInput.html, with this mechanism: wicket:message key=value.between.0.and.100 / = How does Wicket know that this key is located in a file called FormInput.properties? Where is FormInput.properties located in the project? Does it have to be in the classpath? Does it have to be the same name (save extension) as the html file (in this case FormInput.html)? -- View this message in context: http://www.nabble.com/Form-validation-and-.properties-tp17278934p17278934.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] -- Ryan Gravener http://twitter.com/ryangravener
Re: using wicket to create dynamic chart
These look pretty nice for free: http://teethgrinder.co.uk/open-flash-chart/ On Thu, May 15, 2008 at 11:29 AM, Jonathan Locke [EMAIL PROTECTED] wrote: if you mean it changes in the browser after the page is finished loading, you are probably talking client-side technologies: JS, flash, applets, something like that. emee wrote: Hello , I would like to use wicket to create a dynamic chart, I mean the values of my chart change in the time. I use googleChart to create my chart but it is a static chart and all the example I have with wicket to create static chart any idea how I can create a dynamic chart by using wicket ? Thank you -- View this message in context: http://www.nabble.com/using-wicket-to-create-dynamic-chart-tp17251826p17255946.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] -- Ryan Gravener http://twitter.com/ryangravener
Re: Account Activation Email generation and response processing: any design example?
You may also want to have a enum/int to represent what kind of token it is. New user, new email, forgot password, etc.. On Thu, May 15, 2008 at 7:01 PM, James Carman [EMAIL PROTECTED] wrote: java.util.UUID.randomUUID().toString() On Thu, May 15, 2008 at 6:57 PM, Matthew Young [EMAIL PROTECTED] wrote: I need to implement the usual account activation via email function. Can anyone point me to some example of how this is implemented? If in Wicket even better but anything would help me a lot. One question I have is how to generate hard to guess unique keys in the email link? I use Hibernate MySql, does this give me some easy way to generate these keys? Use Jakarta common-id to generate uuid? I plan to have an activation field in the user table to store the activation key, once the user respond to the activation email link, clear the field to indicate the account is activated. Is this how it's done? Thanks for any help! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ryan Gravener http://twitter.com/ryangravener
Re: How to use AjaxFormChoiceComponentUpdatingBehavior in Check/CheckGroup
Is void onError(AjaxRequestTarget target, RuntimeException e) being called? On Mon, May 12, 2008 at 11:42 AM, Johan Compagner [EMAIL PROTECTED] wrote: Code seems fine. What is the hrml output? On 5/12/08, freak182 [EMAIL PROTECTED] wrote: Hello, I having problem integrating AjaxFormChoiceComponentUpdatingBehavior. my code snippet: final WebMarkupContainer container = new WebMarkupContainer(wmc); final CheckGroup chkGrp = new CheckGroup(chkGrp,new ArrayListChk()); final ListView list = new ListView(listBcs,listChk){ @Override protected void populateItem(ListItem item) { item.add(new Check(fltId,item.getModel())); ... } }; chkGrp.add(new AjaxFormChoiceComponentUpdatingBehavior(){ @Override protected void onUpdate(AjaxRequestTarget target) { System.out.println(here AjaxFormChoiceComponentUpdatingBehavior); target.addComponent(amtChk); target.addComponent(cntChk); } }); ...it not getting hit inside the onUpdate method..any idea.. Thanks a lot..Cheers -- View this message in context: http://www.nabble.com/How-to-use-AjaxFormChoiceComponentUpdatingBehavior-in-Check-CheckGroup-tp17184651p17184651.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ryan Gravener http://twitter.com/ryangravener
Re: Reloading a Page in Wicket
You can use loadable detachable models or you can call setResponsePage(Page.class) in the link. I recommend the former. On Fri, May 9, 2008 at 2:49 PM, Deb2002 [EMAIL PROTECTED] wrote: Hi, I need help on wicket. I am trying to reaload my entire page on a click of a button in that page. In the page constructor I fetch data from the DB and create some tables. I have a button, on click of which the data has to be re-fetched and updated in the table. Could anyone please help me on this. Thanks. -- View this message in context: http://www.nabble.com/Reloading-a-Page-in-Wicket-tp17154374p17154374.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] -- Ryan Gravener http://twitter.com/ryangravener
Re: Javascript adding input
Get the hidden data from the request: getRequest().getParameter(hidden_token); On Fri, May 9, 2008 at 2:13 PM, Dan Kaplan [EMAIL PROTECTED] wrote: That's not the point, but if you need a good reason how about this: I'm using recaptcha (it generates a captcha on the page). It works by putting a script tag where you want it to show up. When the page loads, it puts a text input field and a bunch of hidden fields there. You need these hidden fields to tell the recaptcha server what it gave you so it can compare it to what the user typed in. Without them, it can't tell you if the user entered things in correctly or not. -Original Message- From: Maurice Marrink [mailto:[EMAIL PROTECTED] Sent: Friday, May 09, 2008 12:24 AM To: users@wicket.apache.org Subject: Re: Javascript adding input Why would you want to do that? If it happens at form load you must know about this inputfield when you create the page so why not add a wicket component for it too? Maurice On Fri, May 9, 2008 at 1:02 AM, Dan Kaplan [EMAIL PROTECTED] wrote: Let's say that hypothetically I used javascript to add an input to a form in its onload method. How can I get wicket to become aware of that input so I can do things like validate it, etc.? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ryan Gravener http://twitter.com/ryangravener
Re: WicketStuff.org Is Down
I have the examples running on http://wmwm.us/wicket-examples . The session doesn't expire for 55 minutes also. Enjoy. On Fri, May 2, 2008 at 3:34 PM, Hoover, William [EMAIL PROTECTED] wrote: okay... thanks for the info -Original Message- From: Martijn Dashorst [mailto:[EMAIL PROTECTED] Sent: Friday, May 02, 2008 3:31 PM To: users@wicket.apache.org Subject: Re: WicketStuff.org Is Down No. bamboo is doing its upgrade stuff. and has been doing that for about 3 hours. If you are looking for the examples, install them on your own box. They're only a download away. Martijn On 5/2/08, Hoover, William [EMAIL PROTECTED] wrote: Does anyone have an ETA when wicketstuff.org will be back up? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.3 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.3 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ryan Gravener http://wmwm.us/wmwm-date
Re: Is it possible to hide /?wicket:.. from the URLs
Are you worried about what is in the html as well? IE: resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js On Wed, Apr 30, 2008 at 3:52 AM, Peter Ertl [EMAIL PROTECTED] wrote: A poor man's solution could be: You could rewrite your URL through e.g. a front-end apache and mod_rewrite. response: convert any occurrence of '?wicket' to '?foobar' in url request: convert '?foobar' to '?wicket' Am 30.04.2008 um 03:57 schrieb Johan Compagner: Currently it is not easy to get wicket out of all the urls. This prefix is a static final that is used on many places, i want to make that configurable in a next release. By default wicket will generate relative paths. You can get a absolute one with i believe RequestUtils. But this is still without host/port i think, why do you want that? For generating emails or something like that? On 4/30/08, Ritz123 [EMAIL PROTECTED] wrote: Hi, Was wondering if its possible to hide wicket name from the URLs (stateless and stateful). One might not want to show their end users that wicket is being used behind the scenes. Also I noticed even if page has bookmarkable links - the links show relative ../../../../mount/params!! Is there anyway to have complete(absolute urls) with the hostname? -- View this message in context: http://www.nabble.com/Is-it-possible-to-hide---wicket%3A..-from-the-URLs-tp16972147p16972147.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ryan Gravener http://wmwm.us/wmwm-date
Re: append HTML to a page ONE time
Just add it to the bottom of your highest level page and have all other pages extend that page. Then have its visibility be determined by iterating over all the components on the page and if one matches your component return true. On Fri, Apr 25, 2008 at 12:06 PM, Clay Lehman [EMAIL PROTECTED] wrote: I am making a component that has to have a DIV appended to the page to work properly, but the problem is, this DIV has to be appended exactly once, even if multiple objects of the component are added to the page. It actually needs to be added at the end of the page too, sort of like the opposite of IHeaderContributor. Does anyone know of a way to handle this type of thing for a custom wicket component? Adding HTML to the bottom of the page one time even if the component is added to the page several times? Thanks for any help! -Clay -- Ryan Gravener http://wmwm.us/wmwm-date
Re: Wicket Auto complete text Issue
Take a look at http://www.nabble.com/1.3%2C-resource-locator-and-properties-to16707905.html#a16708440 control+f to help wanted for autocomplete On Fri, Apr 25, 2008 at 12:29 PM, Ricky [EMAIL PROTECTED] wrote: Hi, I am trying to get a model object when an autocomplete selection is made; but model object comes back as a string rather than the model that was selected. Is there a way to get the selected Model (Actor) in the example below ? final AutoCompleteTextField actorAutoComplete = new AutoCompleteTextField(input-auto-complete-actor-search, new Model((Actor) getModelObject()), new AbstractAutoCompleteRenderer() { protected final String getTextValue(final Object object) { return object.toString(); } protected final void renderChoice(final Object object, final Response response, final String criteria) { response.write(object.toString()); } }) { protected final IteratorActor getChoices(final String searchTextInput) { return getCollection().iterator(); } }; actorAutoComplete.add(new AjaxFormSubmitBehavior(onchange) { protected final void onSubmit(final AjaxRequestTarget target) { // MODEL OBJECT RETURNS STRING RATHER THAN AN ACTOR!! this.getComponent().getModelObject(); } }); } add(actorAutoComplete); Rick -- Ryan Gravener http://wmwm.us/wmwm-date
Re: Internationalized error() from Page constructor
I think you can do error((String)(new ResourceModel(page.error).getObject())) On Mon, Apr 21, 2008 at 3:11 PM, Edvin Syse [EMAIL PROTECTED] wrote: Sometimes, I want to redirect to another page with an error message because of something I discover when the constructor runs. I would like to do: if(some_condition) { Session.get().error(errmsg); setResponsePage(PageClass.class); return; } The problem is that Session#error() doesn't take a resource-key, only the final text. In the constructor it might be too early to determine the language etc. What's the Wicket way around this one? :) -- Edvin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ryan Gravener http://ryangravener.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DropDownChoice problem
Use Long instead of long On Thu, Apr 17, 2008 at 5:05 PM, Andrew Broderick [EMAIL PROTECTED] wrote: Hi, I have a DropDownChoice in a form, with markup: select wicket:id=authors / In my Form class, I add it like this: add(new DropDownChoice(authors, new PropertyModel(this.article, articleAuthorId), acService.getAuthors(), new ChoiceRenderer(authorDisplayName, articleAuthorId))); this.article refers to a class that has a property of articleAuthorId: public long getArticleAuthorId() { return articleAuthorId; } public void setArticleAuthorId(long articleAuthorId) { this.articleAuthorId = articleAuthorId; } The acService.getAuthors() call gets a list of Author objects: public class Author implements Serializable { private long articleAuthorId; private String authorFirstName; private String authorMiddleName; private String authorLastName; private String authorDisplayName; public String getAuthorFirstName() { return authorFirstName; } public void setAuthorFirstName(String authorFirstName) { this.authorFirstName = authorFirstName; } public String getAuthorMiddleName() { return authorMiddleName; } public void setAuthorMiddleName(String authorMiddleName) { this.authorMiddleName = authorMiddleName; } public String getAuthorLastName() { return authorLastName; } public void setAuthorLastName(String authorLastName) { this.authorLastName = authorLastName; } public String getAuthorDisplayName() { return authorDisplayName; } public void setAuthorDisplayName(String authorDisplayName) { this.authorDisplayName = authorDisplayName; } public Long getId() { return new Long(getArticleAuthorId()); } public long getArticleAuthorId() { return articleAuthorId; } public void setArticleAuthorId(long articleAuthorId) { this.articleAuthorId = articleAuthorId; } } The error I get when I try to render the page is: WicketMessage: No get method defined for class: class java.lang.Long expression: articleAuthorId I don't understand this, as the class used for the choices is Author, not java.lang.Long Any help appreciated! Thanks ___ The information in this email or in any file attached hereto is intended only for the personal and confiden- tial use of the individual or entity to which it is addressed and may contain information that is propri- etary and confidential. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communica- tion is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product. Email trans- mission cannot be guaranteed to be secure or error- free. P6070214 -- Ryan Gravener http://ryangravener.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: help wanted for wicket autocomplete component
) } /** * [EMAIL PROTECTED] */ @Override protected final void onError(final AjaxRequestTarget target) { System.out.println( onError( ) for AjaxFormSubmitBehavior called ); } }); Can someone tell me what's wrong? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ryan Gravener http://ryangravener.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Good example for FormComponentPanel?
DateTimeField extends FormComponentPanel On Fri, Apr 11, 2008 at 7:37 PM, Michael Mehrle [EMAIL PROTECTED] wrote: I need to build a TabbedPanel with three tabs which are part of one form - the selected tab will contain form components which need to be submitted by that one form. It seems FormComponentPanel is the way to go: are there any good examples of this? Also, would this be the recommended approach? Thanks, Michael -- Ryan Gravener http://ryangravener.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat dying with Wicket 1.3.2 (Windows / JDK 1.5.0_10)
forgiving? I'm running the app with JProbe right now so that I can get a snapshot of memory when it gets really high. Thank you, Jeremy Thomerson -- Ryan Gravener http://ryangravener.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat dying with Wicket 1.3.2 (Windows / JDK 1.5.0_10)
a problem doing so, and I didn't have OutOfMemory errors. Now, after the upgrade to 1.3.2, I am having all sorts of trouble. It ran for several days without a problem, but then started dying a couple times a day. Today it has died four times. Here are a couple odd things about this: - On 1.2.6, I never had a problem with stability - the app would run weeks between restarts (I restart once per deployment, anywhere from once a week to at the longest about two months between deploy / restart). - Tomcat DIES instead of hanging when there is a problem. Always before, if I had an issue, Tomcat would hang, and there would be OOM in the logs. Now, when it crashes, and I sign in to the server, Tomcat is not running at all. There is nothing in the Tomcat logs that says anything, or in eventvwr. - I do not get OutOfMemory error in any logs, whereas I have always seen it in the logs before when I had an issue with other apps. I am running Tomcat as a service on Windows, but it writes stdout / stderr to logs, and I write my logging out to logs, and none of these logs include ANY errors - they all just suddenly stop at the time of the crash. My money is that it is an OOM error caused by somewhere that I am doing something I shouldn't be with Wicket. There's no logs that even say it is an OOM, but the memory continues to increase linearly over time as the app runs now (it didn't do that before). My first guess is my previous proliferate use of anonymous inner classes. I have seen in the email threads that this shouldn't be done in 1.3. Of course, the real answer is that I'm going to be digging through profilers and lines of code until I get this fixed. My question, though, is from the Wicket devs / experienced users - where should I look first? Is there something that changed between 1.2.6 and 1.3 that might have caused me problems where 1.2.6 was more forgiving? I'm running the app with JProbe right now so that I can get a snapshot of memory when it gets really high. Thank you, Jeremy Thomerson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ryan Gravener http://ryangravener.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: wicket login problem
Take a look at http://wicketstuff.org/wicket13/forminput/ and http://cwiki.apache.org/WICKET/working-with-wicket-models.html In your login form I would have private member variables userId and password public class LoginForm extends Form { private String userId; private String password; public LoginForm(String id) { super(id); setModel(new CompoundPropertyModel(this)); add(new TextField(userId)); add(new PasswordTextField(password)); } public void onSubmit() { System.out.println(userId); } //Make sure to add getters and setters } On 10/04/2008, Neo Anderson [EMAIL PROTECTED] wrote: I follow the tutorial http://www.developer.com/java/web/article.php/10935_3673576_1 to learn how to use wicket. And I want to practise not to embed the Form inside another class. So I create a class called LoginForm.java and move the code to there (as follow). public class LoginForm extends Form { public LoginForm(String id) { super(id); } @Override public void onSubmit() { Object o = get(packageName.to.Login); System.out.println(object:+o.getClass().getSimpleName()); (Login (o)).getUserId(); (Login (o)).getPassword(); } } However, after submit the form, I get the a NullPointerException error because the object o is null. How can I obtain the component of Login? Or how can I use the method of Login? Thanks in advice, ___ Yahoo! For Good helps you make a difference http://uk.promotions.yahoo.com/forgood/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ryan Gravener http://ryangravener.com
Re: How to get wicket-SNAPSHOT?
wicket.version1.4-SNAPSHOT/wicket.version On 10/04/2008, Matthew Young [EMAIL PROTECTED] wrote: I want to use wicket-SNAPSHOT to give 1.4 a try. But I get mvn error: [INFO] snapshot org.apache.wicket:wicket:SNAPSHOT: checking for updates from wicket-snapshots Downloading: http://wicketstuff.org/maven/repository//org/apache/wicket/wicket/SNAPSHOT/wicket-SNAPSHOT.pom Downloading: http://wicketstuff.org/maven/repository//org/apache/wicket/wicket/SNAPSHOT/wicket-SNAPSHOT.jar [WARNING] An error occurred during dependency resolution.Failed to retrieve org.apache.wicket:wicket-SNAPSHOT Caused by: Unable to download the artifact from any repository Here is my pom.xml ... repositories repository idwicket-snapshots/id nameWicket snapshot repository/name urlhttp://wicketstuff.org/maven/repository//url /repository /repositories properties wicket.versionSNAPSHOT/wicket.version jetty.version6.1.7/jetty.version /properties What am I doing wrong? -- Ryan Gravener http://ryangravener.com
Re: BookmarkablePageLink Parameter order
indexedparamurlcodingstrategy On 4/9/08, Takeshi Matsuba [EMAIL PROTECTED] wrote: Hi all Can I control parameter order? I have been creating Blog software and using it. I noticed parameter order changed. (sorry I don't know what change is trigger) At Application class ,WebPage class is mounted. mountBookmarkablePage(/page, Hoo.class); At WebPage class, BookmarkablePageLink created. PageParameters param = new PageParameters(); param.put(param1, string1); param.put(param2, string2); BookmarkablePageLink link = new BookmarkablePageLink(link, Hoo.class, param); I expect that URL like this. /page/param1/string1/param2/string2 But actual like this. /page/param2/string2/param1/string1 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ryan Gravener http://ryangravener.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Page loads too slow
http://recaptcha.net/ On Tue, Apr 8, 2008 at 1:21 PM, Sergey Podatelev [EMAIL PROTECTED] wrote: On Tue, Apr 8, 2008 at 9:05 PM, Matthew Young [EMAIL PROTECTED] wrote: this page takes about 2-5 seconds to load, but this only happens when it's loaded for the first time I observe the same thing and this has to do with Captcha. I think it's because it uses Java graphic stuff and it take time to load and initialize. Looks like you're right. I've just removed the captcha image and the page seems to load fast enough. The question is however, whether this first run rule is correct or this issue will occur periodically. I don't have the opportunity to test this to be sure. -- sp -- Ryan Gravener http://ryangravener.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Request based DataProvider
perhaps what you need is RequestCycle.get()? On 4/7/08, Ritz123 [EMAIL PROTECTED] wrote: Hi, I am using SortableDataProvider and have a need to access request attributes to get the next set of items. IDataProvider and none of the pre-canned implementation classes seem to use HttpServletRequest to fetch the next set of items. Was wondering if someone had similar requirement and if there is an easier way to get access to request object from within the IDataProvider. Thanks in advance. -- View this message in context: http://www.nabble.com/Request-based-DataProvider-tp16542297p16542297.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] -- Ryan Gravener http://ryangravener.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Render body only
You can try wicket:container wicket:container wicket:id=foo tr wicket:id=dd.../tr /wicket:container http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html#Wicket%2527sXHTMLtags-WicketTags On Thu, Apr 3, 2008 at 10:28 AM, Scott Sauyet [EMAIL PROTECTED] wrote: Hi, I'm looking to do exactly what was discussed in a thread a few years ago (http://tinyurl.com/3yo43s), namely to dynamically include or exclude a group of TR tags. I can wrap them in a SPAN with a WebMarkupContainer, but I like to have valid HTML and really don't want the SPAN tag in the final output. The thread mentioned seems to imply that this was already committed in 2005, but I can't find it in the API. Component has public final boolean getRenderBodyOnly() which looks perfect except that it's final. Am I missing something else that allows for this? Thanks, -- Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ryan Gravener http://ryangravener.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ModalWindow and Ajax?
You can set it as soon as the Wicket js object has been created. You need to be using wicket 1.3.x for this to work and yes, you will need to have it set before the onchange. On Thu, Apr 3, 2008 at 11:00 AM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: this did not do the trick in my onchange: target.appendJavascript(Wicket.Window.unloadConfirmation = false;); should it be prepended or when should it be append before the onchange event in my dropdown? As a kind of setup, I guess? Ryan Gravener wrote: Yes, append this javascript in your ajax call: Wicket.Window.unloadConfirmation = false; On Thu, Apr 3, 2008 at 10:33 AM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Hi I have a modalwindow which contains a dropdown. I've attached an ajaxbehavior to the dropdown but when it fires I get a confirmation box are you sure you want to navigate away from this page... Is it supposed to work this way? -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ryan Gravener http://ryangravener.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Setting wicket field component model via JavaScript
new PropertyModel(this, photoId) On 4/2/08, Michael Mehrle [EMAIL PROTECTED] wrote: Okay, here's the code - I changed the hidden field to a textfield, for debugging... private final class SubmitForm extends MyForm { String photoId; public SubmitForm(String id, IModel model) { super(id, model); // This is actually being set by a JavaScript (jQuery based) function after a // successful file upload inside the modal. final TextField hidden; add(hidden = new TextField(hiddenPhotoId, new Model(photoId))); hidden.setOutputMarkupId(true); add(new AjaxButton(save, SubmitForm.this) { @Override protected void onSubmit(AjaxRequestTarget target, Form form) { modalWindow.setWindowClosedCallback(new ModalWindow.WindowClosedCallback() { public void onClose(AjaxRequestTarget target) { LOG.debug(Photo ID: {}, hidden.getModelObjectAsString()); } }); target.addComponent(hidden); modalWindow.close(target); } }); } } } -Original Message- From: Maurice Marrink [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 02, 2008 3:05 PM To: users@wicket.apache.org Subject: Re: Setting wicket field component model via JavaScript Could you show us the rest of the relevant code? Maurice On Thu, Apr 3, 2008 at 12:02 AM, Michael Mehrle [EMAIL PROTECTED] wrote: Right, I did try that but it's always null. I'm pretty sure I have the model set properly: String id; add(new HiddenField(hidden, new Model(id))); then there's the AjaxButton etc. Not sure what's going on there, it seems very simple but something's broken. -Original Message- From: Maurice Marrink [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 02, 2008 2:50 PM To: users@wicket.apache.org Subject: Re: Setting wicket field component model via JavaScript I assume you have a form inside your modalwindow and update the value serverside with an AjaxSubmit- Link or Button ? Then you should be able to get the field's value using field.getModelObject(). Maurice On Wed, Apr 2, 2008 at 11:22 PM, Michael Mehrle [EMAIL PROTECTED] wrote: Anyone? Could use a pointer... -Original Message- From: Michael Mehrle [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 02, 2008 11:42 AM To: users@wicket.apache.org Subject: Setting wicket field component model via JavaScript Simple scenario: I've got a hidden wicket field which I'm setting with JavaScript to a value like this: hiddenField.value = data.msg; When I pop up a JS alert it seems the value is set. However, back on the Java side I'm trying to log the field's value in my onClose() method as part of a SetWindowClosedCallback, but the model of the wicket component still is null: LOG.debug(Value: {}, hiddenField.getRawInput)); Obviously I'm missing something in terms of the flow here. How can I get the field's component to be updated? Any help would be appreciated. Thanks, Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ryan Gravener http://ryangravener.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Removing the jsessionid for SEO
I have noticed something like this with http_check on nagios. Is there a proper way to get rid of these temporary sessions? On Wed, Apr 2, 2008 at 10:45 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: also by doing what you have done users with cookies disabled wont be able to use your site... -igor On Wed, Apr 2, 2008 at 7:44 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: you would think that the crawl bots are smart enough to ignore jsessionid tokens... -igor On Wed, Apr 2, 2008 at 5:20 PM, Dan Kaplan [EMAIL PROTECTED] wrote: victori_ provided this information on IRC and I just wanted to share it with everyone else. Googlebot and others don't use cookies. This means when they visit your site it adds ;jsessionid=code to the end of all your urls they visit. When they re-visit it, they get a different code, consider that a different url with the same content and punish you. So, for the web crawling bots, it's very important to get rid of this (Perhaps it's worthwhile to check this code in to the code base). Here's what you do in your Application: @Override protected WebResponse newWebResponse(final HttpServletResponse servletRe sponse) { return CleanWebResponse.getNew(this, servletResponse); } Here's the CleanWebResponse class: public class CleanWebResponse { public static WebResponse getNew(final Application app, final HttpServletResponse servletResponse) { return app.getRequestCycleSettings().getBufferResponse() ? new Buffered(servletResponse) : new Unbuffered( servletResponse); } static class Buffered extends BufferedWebResponse { public Buffered(final HttpServletResponse httpServletResponse) { super(httpServletResponse); } @Override public CharSequence encodeURL(final CharSequence url) { return url; } } static class Unbuffered extends WebResponse { public Unbuffered(final HttpServletResponse httpServletResponse) { super(httpServletResponse); } @Override public CharSequence encodeURL(final CharSequence url) { return url; } } } Note, I haven't tested this myself yet but I plan to tonight. Hope this was helpful. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ryan Gravener http://ryangravener.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]