[Wicket-user] A couple of issues while handling bookmarkable pages....
Problem 1: In my application, I have mounted a couple of urls. Steps: 1 log on using bookmarkable url 2 click on a link in that page which presents me with different panel which replaces an exisiting panel. [ So basically the view that a user gets is different from when he logs in after clicking this link] 3Do an operation in this new panel which causes a pop up to be shown to the user. 4 Do a save operation in the pop up window and using javascript refresh the base window. The problem is that when the base window refreshes, user is shown the panel he is first shown i.e after logging in. The expected behaviour should have been to show the view contaning the new panel from which pop up was launched. In other words the user is not presented with same view in the browser when the base window refreshes. I understand the problem is because the URL was mounted ; because it works properly if it is not mounted. [ The request target again becomes a bookmarkablepagerequesttarget which actually just sends the user back to where the page was mounted to I suppose. ] Can anyone suggest the best way to show the correct view to the user i.e the code should take care of both scenarios - mounted and not mounted. I was thinking of replacing the first panel with the second if this kind of action happends. that is I have to store somewhere that the user did a save from the popup . I am not sure whether this is really a good way to do it. Any better ideas ?? Problem 2: This is to do with images . If the page is mounted, images are not shown otherwise images are shown. It appears that images do not get picked up if I mount a page. Otherwise if i click on a link in some other page [ which is not mounted] and which takes me to the page i am interested in , I am able to view the images ... Any ideas here? -Regards swaroop belur - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] AuthenticatedWebApplication - Component Level Authentication
Please do, yesterday i checked in some changes that should redirect you to the login page if you place secure components on a non secure page. All the documentation and examples are still work in progress but you could check out the junit tests and the documentation here http://wicketstuff.org/confluence/display/STUFFWIKI/Getting+started+with+Swarm and here http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Security Maurice On 6/3/07, mchack [EMAIL PROTECTED] wrote: The override of onUnauthorizedPage didn't work because the framework was throwing the UnauthorizedInstantiationException because the page itself was not secure, but the component was. I was able to handle this by overriding the WebRequestCycle to handle exceptions explicitly as indicated in the previous post: http://www.nabble.com/Exception-Strategy-in-1.3-tf3793570.html#a10790773 My reason for doing this is that I have a fairly generic bookmarkable page (single class) that will serve up varied content (markup) depending upon the URL. I also have a dynamic mechanism using resolve() to detect wicket:id's that have behavior of my choosing. So, my motivation is that while the pages themselves are not declared secure, the HTML developer could inadvertantly reference a secured component. Hence my desire to trap instantiation issues at the component level and then do proper redirection to either the login page or error page. While not a classic use of the framework, I think it has some merit. I will also check out the WASP and SWARM projects. Eelco Hillenius wrote: Hi, On 6/3/07, Maurice Marrink [EMAIL PROTECTED] wrote: Not sure if it is the preferred way of doing things (since this is Eelco's framework) That part is actually Jonathan's but you could override the init() method and set up a different authorizationstrategy and or instantiationlistener, all you have to do for that is skip the call to super and do something similar yourself. Imho, that class is better viewed as an example. Or you can ask Eelco nice and maybe he will remove the final :) I don't think that's needed though. How about overriding onUnauthorizedPage? As long as a user isn't logged in, the strategy will redirect to the page that is returned by getSignInPageClass. After that, onUnauthorizedPage is called when a user tries to access a page he/ she isn't authorized for. Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/AuthenticatedWebApplication---Component-Level-Authentication-tf3854757.html#a10939875 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Bug in 1.3? HeaderContributor.forCss(String)
But what about this my page is in a package org.wicket. in that page i have this: foo/bar.css where does that css resides then? in /context/org/wicket//foo/bar.css? or /context/foo/bar.css? I must admit that i don't know exactly how the src urls are interpreted at the moment (are the all context specific or page/html specific) becaues if they are page specific how can i then say that they must be context specific? normally i would do that with / (the root of the webapplication so context must be prepended). johan On 6/4/07, Jeremy Thomerson [EMAIL PROTECTED] wrote: It's what was done in 1.2.6, but no longer in 1.3. 1.3 converts it to a path relative to your context. Sorry, my last post was probably confusing. If I put /foo/bar.css - foo is NOT my context. My context for the app could be anything (but not foo). Foo would be the root folder off of my domain that I want the request to be sent for. ( i.e.. www.mydomain.com/app/SomeWicketPage includes the style sheet at www.mydomain.com/foo/bar.css). I do this and pair it with an Apache alias that directs /foo to that folder within my webapp so that Apache (not my servlet container) will serve static resources. As of 1.2.6, it works fine. As of 1.3, I can no longer do that without adding my domain name ( add(HeaderContributor.forCss( http://www.mydomain.com/resources/styles/global.css;)); ), which is NOT desirable - I should not have to add my domain name to be able to add the resource relative to my domain root. I opened JIRA https://issues.apache.org/jira/browse/WICKET-612 for this. I will attach a patch to it as soon as I can get my environment set up to work on Wicket. Jeremy Thomerson On 6/3/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Sort of - but Wicket doesn't have to handle the prepending of it. If I use /foo/bar.css, Wicket should generate my link tag using exactly that string, without modifying it in any way. I actually think this is what we do now. Dunno, should look at it. However, I think it is a bad idea to hard-code your context patch in your applications. Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] (WICKET-539) QueryStringUrlCodingStrategy does not handle multi-valued parameters
* Ingram Chen (JIRA): Ingram Chen commented on WICKET-539: hmm.. if we can't fix for 1.2.x branch, at least provide some workaround to avoid it. This bug is not just a corner case, it already hurts our production system. Let's bring this discussion to the list, as Jira is not really appropriate for that. If we fix QueryStringUrlCodingStrategy in the 1.2.x branch, we also have to fix WebRequestCodingStrategy for consistency, so we need a patch also for that one, see WICKET-65. And my point is that it would introduce an incompatible change as the query parameters are now URL-encoded, whereas they weren't in the past. But the basic idea with the 1.2.x branch is that it is maintenance only. We can't fix every bug in the 1.2.x branch, only the very critical ones. So if other users are annoyed by this bug, they should raise their voice. -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] javascript version of setVisible()
007/6/3, Vincent Demay [EMAIL PROTECTED]: Matthieu Casanova a écrit : Hi, I want to hide a component, and sometimes making it visible using javascript. Is there something like that in wicket api or should I do it myself with some javascript ? Hi, If you want to make your component visible/invisble using ajax, you can use setOutputMarkupPlaceholderTag(true) and setVisible(false/true) on your component. Read setOutputMarkupPlaceholderTag javadoc to get more information. Oh cool it seems exactly what I need, but I didn't found it because it is not in 1.2.6. Is the 1.3 beta stable enough to work with or is it only for testing ? Matthieu - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] When my page is onload, can Ajax Modal window be loaded?
* Liu Lin: When my page is onload, can Ajax Modal window be loaded? It's auto loaded. Not click button to load modal window. Have you tried to show() the modal dialog during construction or rendering of your page? Does it work? -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] extension.Palette class
Just did that with FF 2.0.0.4 / OS X, and I don't see the XX appear. Do you have some firefox extension installed? Martijn On 6/1/07, Ken Leung [EMAIL PROTECTED] wrote: No, other controls work ok. Actually what I have found is that firefox does this, IE7 doesnt. I am using firfox 2.0.0.4. Try this if you have time. 1. use firefox, goto http://wicket.sourceforge.net/ 2. click on Examples on the left 3. click on Live action (Examples in live action) 4. click on first item compref 5. goto bottom and click wicket.extensions.markup.html.palette.Palette 6. wait for the page to finish, then simply move your cursor click in the empty Selected area, a XX will appear inside the box Strange... On 6/1/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: sound very wrong. Are you getting this displayed in the listboxes? Ken Leung wrote: Does anyone know why there is a XX displayed initially in the selected or available pane if that pane happens to contain an empty list. The XX will disappear once you start to add/remove selections You can see this if you just run the example... Anyone knows how to get rid of it ? thx - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Join the wicket community at irc.freenode.net: ##wicket Wicket 1.2.6 contains a very important fix. Download Wicket now! http://wicketframework.org - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] javascript version of setVisible()
Matthieu Casanova a écrit : 007/6/3, Vincent Demay [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: Matthieu Casanova a écrit : Hi, I want to hide a component, and sometimes making it visible using javascript. Is there something like that in wicket api or should I do it myself with some javascript ? Hi, If you want to make your component visible/invisble using ajax, you can use setOutputMarkupPlaceholderTag(true) and setVisible(false/true) on your component. Read setOutputMarkupPlaceholderTag javadoc to get more information. Oh cool it seems exactly what I need, but I didn't found it because it is not in 1.2.6. Is the 1.3 beta stable enough to work with or is it only for testing ? Yes you can use that. It is the future rc1. -- Vincent Matthieu - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Confused about relative paths and my css.
Thomas R. Corbin wrote: On Friday 01 June 2007 1:42 pm, Matej Knopp escreveu: Look at what url is your stylesheet. The images withing stylesheet are always located relatively to the stylesheet itself. so there's no way to make them relative to the context path/root? If you don't care about it working behind a mod_proxy, you can just go: url(/path/to/file.gif) And that will obviously be relative to the root of your server's URLs, whatever that means. If you want it to do the right thing behind mod_proxy, then you could write a special resource which parses your CSS file and rewrites the URLs appropriately, using Request#getRelativePathPrefixToContextRoot(). Not unreasonably, Wicket expects you to package your resources together. What's the point of putting your CSS in a package if the images it depends on are not? You may as well just put your CSS in your context alongside the images. We provide support for either, but we don't really provide support for both simultaneously, as that's really bad practise, IMO. ;-) Al -- Alastair Maw Wicket-biased blog at http://herebebeasties.com - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Relative path to image for javascript referral
Thies Edeling wrote: Hi, This must have been asked a zillion times but I couldn't find the right answer in the list archives. Anyway, I have some javascript which does an image replacement on a mouseover (need a JS version for browser compatibility :( ). AFAIK JavaScriptReference doesn't update image paths in the javascript such as StylesheetReference does with CSS (btw, saw in the archives that the plan was to include it in 1.3, was it dropped?). So now I'm replacing variables using PackagedTextTemplate which works fine except that I can't find an easy way to construct relative paths to images in the /img dir of my war. I was expecting getPageRelativePath to help but it didn't work. thx :) On 1.3.0-SNAPSHOT, you want the Request#getRelativePathTo*() functions. See the thread Confused about relative paths and my CSS for the reasoning behind context-relative stuff in CSS. Regards, Al -- Alastair Maw Wicket-biased blog at http://herebebeasties.com - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] A couple of issues while handling bookmarkable pages....
Swaroop Belur wrote: This is to do with images . If the page is mounted, images are not shown otherwise images are shown. It appears that images do not get picked up if I mount a page. Otherwise if i click on a link in some other page [ which is not mounted] and which takes me to the page i am interested in , I am able to view the images ... Any ideas here? We'll need some more detail here. How are you adding your images? Are they just img src=foo.gif/ in the HTML, with no Wicket Component attached to them? Which Wicket version are you using? If you're on a 1.3.0-SNAPSHOT, is it fairly up-to-date? Al -- Alastair Maw Wicket-biased blog at http://herebebeasties.com - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] DropDownChoice inside ModalWindoe is not displayed in IE
Hi Which version do you use. I remember having the same problem but I also remember matej fixing this. This is quite a while ago. Frank On 6/4/07, Nili Adoram [EMAIL PROTECTED] wrote: Hi all, I have a panel containing a DropDownChoice . This panel is displayed inside a ModalWindow. This works perfect in Firefox. However, in IE the dropdown disappears. Any ideas? Thanks Nili - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Injecting session scoped beans with wicket-spring-annot
It seems that in Wicket 1.3 session and request scoped beans work ok. But I've done only a very simple tests. PS. The problem with prototype scoped beans (multiple instance creation) still exists. Daniel On 6/1/07, Daniel Stoch [EMAIL PROTECTED] wrote: Hi, I want to inject a spring bean with scope=session into my page using @SpringBean annotation. I have added into my web.xml declaration: listener listener-class org.springframework.web.context.request.RequestContextListener /listener-class /listener but it seems that this bean is still created once for whole application (like a singleton). Does session and request scoped beans are supported by wicket-spring-annot (and of course wicket-spring) library or have I missed something in my configuration? PS. Singletons and prototypes works ok. I'm using Wicket 1.2.6. Best regards, Daniel Stoch - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] TextTemplateHeaderContributor.forJavaScript and Ajax
Hi I have panel where I have added a TextTemplateHeaderContributor. When I include this panel directly on a page there is no problems, but when I use Ajax to replace another panel with this panel it dosen´t work. It seems like the browser dosen´t know that js-functions has been included . If I refresh the page it works again. Nicholas -- View this message in context: http://www.nabble.com/TextTemplateHeaderContributor.forJavaScript-and-Ajax-tf3865042.html#a10949287 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Injecting session scoped beans with wicket-spring-annot
As requested in the other thread, there is now an issue in JIRA: https://issues.apache.org/jira/browse/WICKET-613 I appended a link to this thread as well. Rüdiger 2007/6/4, Daniel Stoch [EMAIL PROTECTED]: It seems that in Wicket 1.3 session and request scoped beans work ok. But I've done only a very simple tests. PS. The problem with prototype scoped beans (multiple instance creation) still exists. Daniel On 6/1/07, Daniel Stoch [EMAIL PROTECTED] wrote: Hi, I want to inject a spring bean with scope=session into my page using @SpringBean annotation. I have added into my web.xml declaration: listener listener-class org.springframework.web.context.request.RequestContextListener /listener-class /listener but it seems that this bean is still created once for whole application (like a singleton). Does session and request scoped beans are supported by wicket-spring-annot (and of course wicket-spring) library or have I missed something in my configuration? PS. Singletons and prototypes works ok. I'm using Wicket 1.2.6. Best regards, Daniel Stoch - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- greetings from Berlin, Rüdiger Schulz www.2rue.de - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] When you have tabs and forms, is it ok to have the tabs all inside one form,
On 3/13/07, Igor Vaynberg [EMAIL PROTECTED] wrote: if elements are not visible they are not validated so what you have to do is not allow the user to switch between tabs unless everything on that tab has validated. you can do this by overriding the linkfactory on the tabbed panel, using a submitlink, and only calling setactivetab on the panel if everything has passed validation if that is unacceptable - you want the user to roam freely from tab totab: a better option for these situations imho is to not to use a serverside tabpanel, but a clientside one. that way your entire form is written out and the submit button submits the entire thing. a js lib like this makes it trivial: http://www.stilbuero.de/jquery/tabs/ FYI, for others looking for a way to deal with tabbed panels and forms and finding this very good option, I've written a small component using the jquery tabs plugin pointed by igor. It can be used as drop in replacement of wicket TabbedPanel where you want a client side one instead. I haven't packaged it outside of my project for the moment, but it's open source and available under an ASL v2 license, so feel free to use and adapt it to your own requirements if you need. Details are available here: http://xhab.blogspot.com/2007/06/wicket-jquery-tab-component.html HTH, Xavier -igor On 3/13/07, Thomas R. Corbin [EMAIL PROTECTED] wrote: On Monday, 12 March 2007 04:37 pm, Jean-Baptiste Quenot escreveu: * Thomas R. Corbin: or do you need to have each tab have it's own form? And if each tab has it's own form, does the user need to save their data before switching tabs? Would the submit button be on each form, on each tab, or outside the tabs entirely? If all the tab's contents are generated in the page, you can put the form around all the tabs, so that each tab can contribute its respective input fields. Otherwise, if tab contents are only rendered after an Ajax callback, you'd be safer putting a form inside every tab. How do you get all the tabs generated in one page? The problem I'm having is that only the current tab's stuff is there, so I'm not sure how to do all the validation. I guess I would need a form validator that validates all the fields of the object that the form allows the user to edit. I have required fields on several different tabs, but if the elements of another tab are not visible, I'm not sure how to validate against that. Thanks! That depends on your code actually. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net 's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Xavier Hanin - Independent Java Consultant Manage your dependencies with Ivy! http://incubator.apache.org/ivy/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Tree with add/delete/edit nodes
I have searched the archive and the last time someone asked about this seems to be 2006. We are new to wicket and were impressed with the Editable tree table example. We wanted to try to create a tree display that lets the users edit the nodes of the tree by adding a button to add a child node or delete a node. I was wondering if anyone had accomplished this or attempted by found it problematic. -- View this message in context: http://www.nabble.com/Tree-with-add-delete-edit-nodes-tf3866796.html#a10954856 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Tree with add/delete/edit nodes
Hi, This sounds great. Would you mind posting the java code and html file (or relevant snippets) for a page that accomplishes this? I'm still very new to wicket, and the example would be very helpful! Thanks, -Evan James McLaughlin-3 wrote: Hello, I've just done this, works like a charm. Use a DefaultTreeModel for your tree, and when it comes time to insert / remove nodes, just use the appropriate methods on DefaultTreeModel. If you are doing this with an ajax tree, you will want to call updateTree(AjaxRequestTarget)... -- View this message in context: http://www.nabble.com/Tree-with-add-delete-edit-nodes-tf3866796.html#a10956115 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Hibernate LazyInitializationException on first call
Tremelune wrote: I have OpenSessionInViewFilter configured for Spring in my web.xml file, but I'm still getting lazy init errors in Wicket. What could I be missing? Make sure you list your OpenSessionInViewFilter filter-mapping element *before* your Wicket one in your web.xml. They're run in order. Al -- Alastair Maw Wicket-biased blog at http://herebebeasties.com - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Getting sent to PageExpiredErrorPage when page is not expired
Sporadically, I'm seeing form submissions rerouted by wicket internally to the pageExpiredErrorPage, when it seems the requested page is not expired. Does anyone have any ideas why this might be happening? These page-expiration error cases seem to occur when the form's response page is set to the current page. Thanks for the help in advance, Jay -- View this message in context: http://www.nabble.com/Getting-sent-to-PageExpiredErrorPage-when-page-is-not-expired-tf3867462.html#a10956871 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Getting sent to PageExpiredErrorPage when page is not expired
We've had a couple of instances where this happened for Ajax requests. Should be fixed now though. Can you tell us more about which version you are using and what kind of pages/ functionality you see this with? Thanks, Eelco On 6/4/07, jayTSM [EMAIL PROTECTED] wrote: Sporadically, I'm seeing form submissions rerouted by wicket internally to the pageExpiredErrorPage, when it seems the requested page is not expired. Does anyone have any ideas why this might be happening? These page-expiration error cases seem to occur when the form's response page is set to the current page. Thanks for the help in advance, Jay -- View this message in context: http://www.nabble.com/Getting-sent-to-PageExpiredErrorPage-when-page-is-not-expired-tf3867462.html#a10956871 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Hibernate LazyInitializationException on first call
Ha! That was it! Glorious, thanks. Al Maw wrote: Make sure you list your OpenSessionInViewFilter filter-mapping element *before* your Wicket one in your web.xml. They're run in order. Al -- Alastair Maw Wicket-biased blog at http://herebebeasties.com - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/Hibernate-LazyInitializationException-on-first-call-tf3867163.html#a10956849 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Tree with add/delete/edit nodes
I don't really have urls or code I can share. I do have a brain dead simple quickstart I created to determine if a bug was in my code or wicket (mine, obviously :)). Hope this helps: http://bones.homelinux.org/wicket/quicktree.jar You will want to look at SimpleTreePage.java best, jim On 6/4/07, evan2nave [EMAIL PROTECTED] wrote: Hi, This sounds great. Would you mind posting the java code and html file (or relevant snippets) for a page that accomplishes this? I'm still very new to wicket, and the example would be very helpful! Thanks, -Evan James McLaughlin-3 wrote: Hello, I've just done this, works like a charm. Use a DefaultTreeModel for your tree, and when it comes time to insert / remove nodes, just use the appropriate methods on DefaultTreeModel. If you are doing this with an ajax tree, you will want to call updateTree(AjaxRequestTarget)... -- View this message in context: http://www.nabble.com/Tree-with-add-delete-edit-nodes-tf3866796.html#a10956115 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Making custom MessageResolver
Hi All I have currently made a custom message resolver using the IComponentResolver interface. The reason i have made this is because it is not possible setEscapeModelString(false) for the wicket:message tag. Well now i have another issue. If someone logon to my application as text administrator then instead of a Label a Link with a label should be shown. Example (no rights) spanThis is a text/span Example 2 (text admin) a href=# onclick=popup();spanThis is a text/span/a The link should include PopupSettings and in the popup it should be able to change the text in the database. This way the business can change texts without me getting involved :)... The popup part is not a issue. I just have problems with both adding a Link and a Label in a Custom Message Resolver. Hope that you can help Kind regards /Murat Yücel - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket YUI
Hi... I updated the Yui Slider and also the examples on it. It now includes a divisor so that it can return a more customisable range of value instead of pixel values. also the slider thumb will initialise to the starting value based on the model of the textfield attached to it. have fun. Josh On 6/2/07, James McLaughlin [EMAIL PROTECTED] wrote: Turns out the project needed a little touch up -- somehow it missed the onAtach refactor and the pom was missing wicket-velocity. My apologies to anyone who checked the project out only to be greeted by some nice stack traces. It will work now. jbq, I put them up temporarily at http://bones.homelinux.org/wicketstuff-yui-examples, but its a home server, so no guarantees it will be there for any length of time. It would be great if we could get it on wicketstuff.org at some point. Now, if I could just convince you to contribute some of your spare mussels... :) Maurice, That would be great! I look forward to it. best, jim - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Getting sent to PageExpiredErrorPage when page is not expired
when i was running into this, it turned out that we were losing the session cookie. try checking the jsessionid cookie before and after and see if it changes. jayTSM wrote: This behavior seems to be happening on non-ajax requests. The component being submitted is a basic subclass of the wicket Form class. The pre-processing before the submission involves setting the response page to the current page, via the setResponsePage method on the wicket Component class. In addition a couple of objects are saved using hibernate before submission. I am currently using the wicket 1.2.5 jar. Eelco Hillenius wrote: We've had a couple of instances where this happened for Ajax requests. Should be fixed now though. Can you tell us more about which version you are using and what kind of pages/ functionality you see this with? On 6/4/07, jayTSM [EMAIL PROTECTED] wrote: Sporadically, I'm seeing form submissions rerouted by wicket internally to the pageExpiredErrorPage, when it seems the requested page is not expired. Does anyone have any ideas why this might be happening? These page-expiration error cases seem to occur when the form's response page is set to the current page. Thanks for the help in advance, Jay -- View this message in context: http://www.nabble.com/Getting-sent-to-PageExpiredErrorPage-when-page-is-not-expired-tf3867462.html#a10962956 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Making custom MessageResolver
The current implementation in 1.3 trunk does setEscapeModelString(false) (see WicketMessageResolver(line 130) I haven't yet understood why you want to add either the Label and/or the Link via the IComponentResolver? Why not make the Link a std component like a wicket:id=myLink href=# onclick=popup(); and use setVisible(boolean) to either switch it on or off depending the user status. Juergen On 6/4/07, Murat Yücel [EMAIL PROTECTED] wrote: Hi All I have currently made a custom message resolver using the IComponentResolver interface. The reason i have made this is because it is not possible setEscapeModelString(false) for the wicket:message tag. Well now i have another issue. If someone logon to my application as text administrator then instead of a Label a Link with a label should be shown. Example (no rights) spanThis is a text/span Example 2 (text admin) a href=# onclick=popup();spanThis is a text/span/a The link should include PopupSettings and in the popup it should be able to change the text in the database. This way the business can change texts without me getting involved :)... The popup part is not a issue. I just have problems with both adding a Link and a Label in a Custom Message Resolver. Hope that you can help Kind regards /Murat Yücel - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user