Re: page reload
Hi, I am still stack on this problem. It seems that page refresh does not help. I try to add javascript command window.refresh and window.reload but this does not wokr too. Only thing that helps is new call of this page constructor. (I add some refrsh link, that generates the new page) This seems that I have bad written page constructor. That on the refresh the model is not updated. Here are some snippets of y code: public class Page extends MainTemplate // maintemplate is some base page that gives common look { // Inject spring bean for group management @SpringBean(name="baseGroupManager") private DtabaseManager databaseManager; public Page() { // Create navigation border // this creates something like navomatic example on wicket NavigationTable navigationBorder = new NavigationTable("navigationBorder"); // Add items to page body // model is created by calling function that receive some data from database navigationBorder.add(new MyList("myList", databaseManager.loadAndGetGroups())); / // Add navigation border add(navigationBorder); // Add Add modal window final ModalWindow addWindow; navigationBorder.add(addWindow = new ModalWindow("addWindow")); addWindow.setContent(new GroupManagementAddPanel(addWindow.getContentId(), addWindow)); addWindow.setTitle("Add Group."); addWindow.setCookieName("addWindow"); addWindow.setCloseButtonCallback(new ModalWindow.CloseButtonCallback() { @Override public boolean onCloseButtonClicked(AjaxRequestTarget target) { return true; } }); addWindow.setWindowClosedCallback(new ModalWindow.WindowClosedCallback() { @Override public void onClose(AjaxRequestTarget target) { getPage().modelChanged(); setResponsePage(target.getPage()); setRedirect(true); } }); navigationBorder.add(new AjaxLink("add") { @Override public void onClick(AjaxRequestTarget target) { addWindow.show(target); } }); } } Please do anybody see something wrong. Let me know. I do not know why the model navigationBorder.add(new MyList("myList", databaseManager.loadAndGetGroups())); is not reloaded. The constructor of MyList class just call super(id, list); Thanks for your advice Milan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Changing an image in a list on the fly...
Hi. I have a situation where I want to update the source of an tag on the fly. I have one of three possible statuses for a given task and I want a red, green or yellow light to appear beside each item in the list to indicate if the task is overdue or getting close to being overdue. I've tried an tag and it doesn't seem to replace the default green light with a red or yellow one. Does anyone know how this can be accomplished? Regards, Jason - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: wicket-contrib-javaee
if you used maven it wouldve all been setup for you... -igor On Sun, Apr 13, 2008 at 12:46 PM, greeklinux <[EMAIL PROTECTED]> wrote: > > Hello, > > thank you. wicket-ioc was the missing part. > On the wiki page of wicket-contrib-javaee there was no information > about this dependency. > > > > > > > greeklinux wrote: > > > > Hello, > > > > I am building an ee application and I want to use wicket in the web tier. > > Now I find wicket-contrib-javaee on wicketstuff.org and it looks nice. > > > > But there is a problem. It is not possible to initialize the injection > > in the WebApplications init() method with: > > addComponentInstantiationListener(new JavaEEComponentInjector(this)); > > > > org.apache.wicket.injection.ComponentInjector cannot be found. > > > > Someone uses this package too? > > > > I am using wicket 1.3.3 > > > > -- > View this message in context: > http://www.nabble.com/wicket-contrib-javaee-tp16659898p16667086.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: DatePicker Simple Question
thanks On 4/12/08, Gerolf Seitz <[EMAIL PROTECTED]> wrote: > > iirc, the default behavior is that you can click on the month, > and then an "advanced" month/year selection will be displayed. > if that's not the case, you need to override > Datepicker#enableMonthYearSelection > and return true. > > Gerolf > > On Sat, Apr 12, 2008 at 4:37 AM, Ayodeji Aladejebi <[EMAIL PROTECTED]> > wrote: > > > > Please, > > > > The default behavior of the current datepicker allows users to scroll > > month > > by month, how can datepicker be configured to scroll year by year? > > > > thanks > > > Participate, Collaborate, Innovate Join Community: http://www.cowblock.net/ Get A Free Blog: http://blogs.cowblock.net/
Re: CheckGroupSelector problem
But I feel this should be the default behavior of the selector check-box.Don't you think so? On Sun, Apr 13, 2008 at 7:58 AM, Ryan Holmes <[EMAIL PROTECTED]> wrote: > Looks like CheckGroupSelector does not have a model. You could create a > behavior (e.g. by subclassing AbstractBehavior) that would initialize the > CheckGroupSelector based on its Check components. In your behavior's > renderHead(IHeaderResponse) method, you could render onLoad or onDomReady > JavaScript that would iterate over the Check elements and set a flag if > any > of them are not checked. You would then set the CheckGroupSelector's > 'checked' value based on that flag. > See CheckGroupSelector.onComponentTag(ComponentTag) for an example of the > main JavaScript involved (i.e. finding and iterating through the Check > elements). > > -Ryan > > On Thu, Apr 10, 2008 at 10:22 AM, atul singh <[EMAIL PROTECTED]> > wrote: > > > I am facing an issue with CheckGroupSelector. > > CheckGroupSelector is not showing itself selected, though all of the > > Check's > > in the CheckGroup come pre-selected based on the underlying model i am > > setting up. (That means I have the CheckGroup's list model already > > populated > > with all individual Check's models). > > Is this because CheckGroupSelector does not have a model for itself? > > OR am I missing something??? > > >
Re: wicket-contrib-javaee
Hello, thank you. wicket-ioc was the missing part. On the wiki page of wicket-contrib-javaee there was no information about this dependency. greeklinux wrote: > > Hello, > > I am building an ee application and I want to use wicket in the web tier. > Now I find wicket-contrib-javaee on wicketstuff.org and it looks nice. > > But there is a problem. It is not possible to initialize the injection > in the WebApplications init() method with: > addComponentInstantiationListener(new JavaEEComponentInjector(this)); > > org.apache.wicket.injection.ComponentInjector cannot be found. > > Someone uses this package too? > > I am using wicket 1.3.3 > -- View this message in context: http://www.nabble.com/wicket-contrib-javaee-tp16659898p16667086.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: Applet parameter
I looked at this example and solved it. http://cwiki.apache.org/WICKET/object-container-adding-flash-to-a-wicket-application.html http://cwiki.apache.org/WICKET/object-container-adding-flash-to-a-wicket-application.html -- View this message in context: http://www.nabble.com/Applet-parameter-tp16657238p16661992.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: wicket-contrib-javaee
make sure you include wicket-ioc as well, as wicket-contrib-javaee depends on it; Best, Korbinian greeklinux schrieb: Hello, I am building an ee application and I want to use wicket in the web tier. Now I find wicket-contrib-javaee on wicketstuff.org and it looks nice. But there is a problem. It is not possible to initialize the injection in the WebApplications init() method with: addComponentInstantiationListener(new JavaEEComponentInjector(this)); org.apache.wicket.injection.ComponentInjector cannot be found. Someone uses this package too? I am using wicket 1.3.3 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: wicket-contrib-javaee
do you have the wicket-contrib-javaee jar on the classpath? -igor On Sun, Apr 13, 2008 at 8:39 AM, greeklinux <[EMAIL PROTECTED]> wrote: > > Hello, > > I am building an ee application and I want to use wicket in the web tier. > Now I find wicket-contrib-javaee on wicketstuff.org and it looks nice. > > But there is a problem. It is not possible to initialize the injection > in the WebApplications init() method with: > addComponentInstantiationListener(new JavaEEComponentInjector(this)); > > org.apache.wicket.injection.ComponentInjector cannot be found. > > Someone uses this package too? > > I am using wicket 1.3.3 > -- > View this message in context: > http://www.nabble.com/wicket-contrib-javaee-tp16659898p16659898.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]
wicket-contrib-javaee
Hello, I am building an ee application and I want to use wicket in the web tier. Now I find wicket-contrib-javaee on wicketstuff.org and it looks nice. But there is a problem. It is not possible to initialize the injection in the WebApplications init() method with: addComponentInstantiationListener(new JavaEEComponentInjector(this)); org.apache.wicket.injection.ComponentInjector cannot be found. Someone uses this package too? I am using wicket 1.3.3 -- View this message in context: http://www.nabble.com/wicket-contrib-javaee-tp16659898p16659898.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Wicket In Action - London Wicket Event draw winners
At our London Wicket Events since February, we have been holding a draw for http://chillenious.wordpress.com/ Eelco and http://martijndashorst.com/blog/ Martijn' s "Wicket In Action", which is pretty complete now and a great resource for any Wicket developer; the result of a great amount of work, expertise and dedication - thank you both! The winners of the prize draw for the last 2 London Wicket Events (February and April) are: http://www.objectdefinitions.com/ Nick Ebbutt and http://www.zoomf.com Richard Wilkinson Please http://jweekend.com/dev/ContactUsBody contact us by Tuesday, to get your licence code you will use http://manning.com/dashorst/ here , to get the pre-paid pdf. We expect our next event to be held on 4th June; Al & I are working on confirming this date (with Google) for those of you that have expressed a need for maximum notice for travel arrangements and presentation preparation time. Thanks for the presentation suggestions/offers that are finally starting to trickle in (it's taken us nearly a year to convince you no one bites). We will schedule these in for our upcoming events, and again, we will try to give you as much notice as possible and any help you may need as you prepare. Any one else wishing to give a presentation can let us know http://jweekend.com/dev/ContactUsBody/ here . Topics can be anything (technical or otherwise) that relates to Wicket, and presentations can run for from 5 - 60 minutes. In the meantime, anyone who hasn't seen Al's latest offerings at the events (the live presentations were greatly enjoyed by all present), "Paint" and "Image Cropper"(!) can take a look http://londonwicket.org/ here . Regards - Cemal http://jWeekend.co.uk http://jWeekend.co.uk -- View this message in context: http://www.nabble.com/Wicket-In-Action---London-Wicket-Event-draw-winners-tp16659893p16659893.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: Shared resources with parameters?
Hi Erik, you might want to use IndexedPageParams, so you could do: mount("/myPath", myForwardClass.class); in init; the parameter with index 0 is the first one, the index 1 is second and so on, delimiteds are the ones by "/" eg: myapp.com/myPath/param0/param1/param2 ... and so on; alternatively you can use 1 named param (here example) and have the real URLs be manipulated by replacing each "/" to some kind of letter that doesnt exist in your target-scheme, eg: "/" -> "_" so you get myapp.com/myPath/example/mytarget_myfile.ending -> your param "example" then holds "mytarget_myfile.ending" wich needs to be rechanged then; the page itself might hold a simple Label that displays the content based on the params; Hope that helps to get started, Best, Korbinian Erik van Oosten schrieb: Hi, I am looking for a way to serve many static images. It is important that I do not have to separately register them (as with SharedResources, as I understood) as there about 20.000 to 50.000 of them, and the set changes continuously. The most obvious thing that comes to mind is a static resource that takes parameters that are extracted from the URL (similar to Page). But I could not find such a thing. I am now considering implementing a servlet, but I'd rather stay within the framework. Regards, Erik. -- Erik van Oosten http://day-to-day-stuff.blogspot.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: Removing the jsessionid for SEO
Hi Jeremy, youre absolutely right; Nearly all spiders today can handle the default sessions, may it be Java, PHP, .Net etc. ; those guys at google and mircosoft arent beginners! And its also important to understand that a URL with wicket in fact is to a part nothing more than a plain string that can be manipulated the way you like. Wicket (a.k.a. your page) needs 1 or maybe 2 parameters - and it has to know how to find them, the rest of the URL can be messed with so it fits to your needs as long as you can garantue the unique behaviour of content-to-URL so you dont get marked as duplicate content spammer; Best, Korbinian Jeremy Thomerson schrieb: If I understood you correctly, the first page is bookmarkable, the second is a wicket URL, tied to the session. That'd be bad for SEO - search engines couldn't see page 2, or they would, but the URL is tied to their session, so even if a user visited that URL, they wouldn't get that page. This means that any content past page one is unreachable from a search engine. I had another thread going about a problem I was having with sessions, which turned up some interesting data. I have over 31,000 pages indexed by Google, they are visiting bookmarkable URLS that DO have jsessionid in them, but only two pages in their index have a jsessionid in them. They obviously handle jsessionid fine these days, or at least they are for me. If you need all of your content to be indexed, you really need to concern yourself with making every page bookmarkable. Take a look at Korbinian's comments above - it looks like he is doing it well. Or have a look at my comments or my site http://www.texashuntfish.com. You should specifically look at http://www.texashuntfish.com/thf/app/forum - I am using DataTable's there, but every link (including sort, etc) is bookmarkable. So, you may go into a category and get an URL like http://www.texashuntfish.com/thf/app/forum/cat-53/Let-s-Talk-Texas-Outdoors-Classifieds-Buy-Sell-Tradeor http://www.texashuntfish.com/thf/app/forum/18395/Winchester-22-model-61-for-sell. The "cat-53" or the "/18395/" are the only things that matters. I have a strategy mounted on "/forum" that will take the first parameter and use it to decode what kind of page is being requested - a category page, or a specific post, etc. Everything after that first parameter is specifically for SEO. Putting good keywords in the URL like that, and putting the subject of every article / calendar event / news or forum thread is what shot us up in the rankings of multiple search engines. Migrating the app from what it was before somerandomscript.cfm?foo=123123&bar=12321 to this made a HUGE difference. It wasn't without work - Wicket is super easy if you don't have to worry about URLs - but they also make it easy to totally customize all of your URLs, too. Shoot back any questions you have. Hopefully I can share more information, or even some code later. Maybe Korbinian and I should put some information on the Wiki about pretty URLs and SEO. Jeremy On Fri, Apr 4, 2008 at 1:09 PM, Dan Kaplan <[EMAIL PROTECTED]> wrote: Thanks, That's kinda the route I've already taken. On my site, www.startfound.com , if you click on any company to see more details it goes to a bookmarkable page. Same with any tag. Maybe if I've already got that much, I shouldn't concern myself with the fact that page 2 of my list is not bookmarkable but reachable by google bot. Or maybe I should just add a noindex meta tag on every page that's not page 1. It'd be kinda ridiculous to require login to see past page 1. That may be good for SEO but it'll drive people away. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Thomerson Sent: Thursday, April 03, 2008 10:00 PM To: users@wicket.apache.org Subject: Re: Removing the jsessionid for SEO I've been building a community-driven hunting and fishing site in Texas for the past year and a half. Since I have converted it to Wicket from ColdFusion, our search engine rankings have gone WAY UP. That's right, we're on the first page for tons of searches. Search for "texas hunting" - we're second under only the Texas Parks and Wildlife Association. How? With Wicket? Yes - it requires a little more work. What I do is that for any link that I want Google to be able to follow, I have a subclass of Link specific to that. For instance, ViewThreadLink, which takes the ID for the link and a model (detachable) of the thread. Then I mount an IRequestTargetUrlCodingStrategy for each big category of things in my webapp. I've made several strategies that I use over and over, just giving them a different mount path and a different parameter to tell it what kind of article, etc, that it will match to. This is made easier because over 75% of the objects in our site are all similar enough that the extend from a base class that provides the basic functionality for an article / thread / etc
Re: Ajax postcall handler does not get called every time
Hi Matt, Thanks for your quick answer. Although in this simple case, it is enough to only update the count label. However in my application, it is necessary to update the whole region including the component initiating the ajax action. One scenario is that I've written a treetable component based on table structure, and it encloses ajax links used to expand/collpase tree nodes. In the event handler of thse links, I modify tree structure to satisfy node expanding/collapsing, and add the whole treetable component to the ajax request target for simplicity reason. >From your words, it seems that it is not safe to use Wicket Ajax this way. >However, my application uses this "pattern" extensively. Are there any other >approaches for my scenario? Regards. Robin Matthew Young <[EMAIL PROTECTED]> wrote: The problem is you are ajax updating this whole thing including the nested ajaxlink: link it causes the wicket-ajax js stuff header contributed everytime the link is clicked. Open the ajax debug window to see. This re-init wipe out the postcallhandler install on page load so there is nothing there to call once the link is clicked. I cannot explain why you need to close and re-open the browser for this to happen. It shouldn't work at all. I'm sure Matej and Igor can explain. Change your page to this and only ajax update the "count" then you have no problem: link
Re: Applet parameter
Mathias P.W Nilsson wrote: Hi! How can I add dynamic parameters to my applet from wicket? param name="DocumentId" value="292640"/> The value needs to come from wicket. How can I add this? You can use a WebMarkupContainer for this. HTML: Java: add(new WebMarkupContainer("documentId").add(new SimpleAttributeModifier("value", "yourValue"))); -- Edvin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Applet parameter
Hi! How can I add dynamic parameters to my applet from wicket? param name="DocumentId" value="292640"/> The value needs to come from wicket. How can I add this? -- View this message in context: http://www.nabble.com/Applet-parameter-tp16657238p16657238.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: onBeforeRender vs. prepareForRender
Thank you both guys, all works fine now :) The problem was, that I was using method "prepareForRender()", instead of the "onBeforeRender()". Thanx boys -- View this message in context: http://www.nabble.com/onBeforeRender-vs.-prepareForRender-tp16653398p16657001.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ajax postcall handler does not get called every time
The problem is you are ajax updating this whole thing including the nested ajaxlink: link it causes the wicket-ajax js stuff header contributed everytime the link is clicked. Open the ajax debug window to see. This re-init wipe out the postcallhandler install on page load so there is nothing there to call once the link is clicked. I cannot explain why you need to close and re-open the browser for this to happen. It shouldn't work at all. I'm sure Matej and Igor can explain. Change your page to this and only ajax update the "count" then you have no problem: link
Re: How to pass an arbitrary javascript variable to onSubmit?
See https://issues.apache.org/jira/browse/WICKET-1379 On Fri, 2008-04-11 at 09:32 -0400, Jeremy Levy wrote: > Check out IAjaxCallDecorator getAjaxCallDecorator(). > > Jeremy > > On Fri, Apr 11, 2008 at 4:42 AM, Vitaly Tsaplin <[EMAIL PROTECTED]> > wrote: > > > I am doing it exactly like this. I am wondering if there is a > > formless way to do this? Probably I can mount a page and then just add > > some parameters to this URL? > > > > On Fri, Apr 11, 2008 at 9:06 AM, Maurice Marrink <[EMAIL PROTECTED]> > > wrote: > > > You could add a HiddenField to the Form and then in your markup set it > > > to your javascriptvariable. > > > > > > Maurice > > > > > > > > > > > > On Thu, Apr 10, 2008 at 5:39 PM, Vitaly Tsaplin > > > <[EMAIL PROTECTED]> wrote: > > > >Hi everyone, > > > > > > > >How to pass an arbitrary javascript variable to onSubmit? > > > > > > > >Vitaly > > > > > > > > > > - > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Invoulentary session sharing/leakage in Wicket 1.3.x
Yes I did - didn't help. -- Edvin On Apr 13, 2008, at 3:42, "Ryan Holmes" <[EMAIL PROTECTED]> wrote: Did you try HttpSessionStore? -Ryan On Mon, Apr 7, 2008 at 2:00 PM, Edvin Syse <[EMAIL PROTECTED]> wrote: is it really the wicket session or a page? I believe it's the session, but I'm not sure. The "hijacker" is able to navigate through all pages as the hijacked user.. And on the top of every page there is a logout button and text saying "Logout ". I'm not running in a clustered environment, just plain Jetty 6.1.7 in setuid mode. I'm using the SecondLevelCacheSessionStore, but I'm thinking about trying with the HttpSessionStore now to see if it makes any difference. I refer to the session object with a static getter everywhere (I think) using MySession.get().etc.. -- Edvin On Mon, Apr 7, 2008 at 10:40 PM, Edvin Syse <[EMAIL PROTECTED]> wrote: Today I deployed an application based on Wicket 1.3.3 that has close to 10.000 users. After a couple of hours we started getting reports from users saying that even upon requesting the login-page, they were already logged in as an arbitrary user. The users they were logged in as had previously performed a succesful login. It seems like the wicket-sessions bleed over between different http-sessions. I tried changing from HybridUrlCodingStrategy to mounting the pages with the normal mountBookmarkablePage() method, but the results are the same. I also tried downgrading to 1.3.2 with the same results. Can anyone think of a logical mistake I might have made? Sincerely, Edvin Syse --- -- 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]