Re: Dirty read/edit problem.

2009-06-23 Thread Maarten Bosteels
Hi, We have implemented something similar. In our case multiple applications should be able to request locks, so we have implemented it on the database. It's based on DBMS_LOCK (Oracle specific). When an application crashes (or is killed in an unclean manner) Oracle will roll back any pending

Re: Wicket + Spring DM + Hibernate

2009-06-23 Thread Daniel Dominik Holúbek
Okay, but I still don't understand the reason of doing this stuff :)I've already created the Application bean, and implemented ApplicationContextAware. Then the setApplicationContext method gets called, so I created ApplictionContext variable in that class and set it it that method. But if I try

Re: redirect to mailto

2009-06-23 Thread Erik van Oosten
Well, then its time to whip up some javascript! E.g.: new AjaxLink(..) { public void onClick(target) { target.addJavascript(document.url = 'mailto:'); } } Completely out of my head so you'll have to find the exact method names yourself ;) Regards, Erik. On Mon, 22 Jun 2009

Page Expire

2009-06-23 Thread srinivas
Hi, After how much time will we get the page expire in wicket . Please give me the replay if any one know this . Thanks in advance. Regards, Srinivasa Raju CH. Get your world in your inbox! Mail, widgets, documents, spreadsheets, organizer and much more with your Sifymail WIYI id! Log on

Help with Adding a CSS class via AjaxLink

2009-06-23 Thread waarheid08
Hi Wicket users, I've a ListView in a ListView. The 1st ListVeiw holds categories. The 2nd ListView holds links (topics) which I want to be highlighted if the link (topic) is clicked. The problem is that the wrapped list (container) is getting refreshed, but the CSS class is not set for

Re: Page Expire

2009-06-23 Thread Dipu
isn't it container specific ? On Tue, Jun 23, 2009 at 10:57 AM, srinivassrinivas.r...@sifycorp.com wrote: Hi, After how much time will we get the page expire in wicket . Please give me the replay if any one know this . Thanks in advance. Regards, Srinivasa Raju CH. Get your world in

Re: Page Expire

2009-06-23 Thread vineet semwal
You can specify session-timeout in web.xml . regards, vineet semwal On Tue, Jun 23, 2009 at 3:31 PM, Dipu dipu@googlemail.com wrote: isn't it container specific ? On Tue, Jun 23, 2009 at 10:57 AM, srinivassrinivas.r...@sifycorp.com wrote: Hi, After how much time will we get the

Re: Page Expire

2009-06-23 Thread srinivas
Hi, I am not asking about the session-timeout , i have given session-timeout as 30 mins in web.xml, But in wicket when i submit a form and after some time (10 mins) when i try to perform another operation i am getting the *Page Expired* error. Regards, Srinivasa Raju CH. vineet semwal

Re: Trying to add string literal to Javascript for Google Analytics

2009-06-23 Thread Neil Ferguson
Hi. Thanks for the reply. I did read that blog post previously, but I don't really want the pageTracker._trackPageview function to be run in the page header. For Google Analytics (or any other Javascript-based analytics for that matter) the best practice is to put the tracking code just before

Re: Oli's Presentation - Learn More About Wicket and, Contribute

2009-06-23 Thread OliZilla
Glad you liked it! I think the wiki link should read: http://cwiki.apache.org/WICKET/contributing-to-wicket.html If any one has any advice on contributing back to wicket, please do add it. Oli jWeekend wrote: Check out the Wiki entry too at http://code.google.com/p/londonwicket/ . --

Call to action: find and fix errata in 1.4 JavaDoc

2009-06-23 Thread Martijn Dashorst
Many of our JavaDoc examples are still Wicket 1.3 based. For example, just yesterday I found the JavaDoc for Link to contain an unnecessary cast. Before we finalize 1.4, we should try to fix all javadoc examples (mostly in components) to ensure they are up to par with 1.4. As the core team we can

Re: Wicket + Spring DM + Hibernate

2009-06-23 Thread Daniel Dominik Holúbek
I appreciate your help, of course :)You know, I'm trying to create a web app consisting of independent modules. Then if I change something in one module, I don't have to redeploy whole application. This can be achieved of course, the only problem is this thing we are currently speaking of. :) But

Re: Wicket + Spring DM + Hibernate

2009-06-23 Thread Daniel Stoch
Hi, I think your problem is that in Wicket the whole Spring injection mechanism is prepared for applications where there is only one ApplicationContext (AC). This AC is hold in the Wicket application instance. So when you are trying to use @SpringBean annotation Wicket tries to inject a bean from

jazzyplugin dependency in tinymce wicketstuff cannot be resolved

2009-06-23 Thread Daniele Dellafiore
Hi everyone. I am trying to build tinymce wicketstuff but it cannot resolve the jazzyplugin dependency. Without that, it works but I cannot use the spellchecker feature. I have searched and cannot find any artifact of jazzyplugin or jwarehouse, or com.swabunga anywhere on the web. any hint? --

Re: Call to action: find and fix errata in 1.4 JavaDoc

2009-06-23 Thread Vasu Srinivasan
I'm willing to help in my spare time. I have been using wicket only for the last two months, and I have been very impressed. How do I go about fixing it and not overlapping on others work at the same time ? Any specific areas to look at as a priority ? On Tue, Jun 23, 2009 at 6:45 AM, Martijn

RE: Page Expire

2009-06-23 Thread Ames, Tim
From what I have read on this forum, page expires and session expires can be two different things. Search in this forum for the message What does page expired mean?. The discussion talks about several issues not just session expiration. -Original Message- From: Dipu

UploadProgressBar in firefox and ie6

2009-06-23 Thread Mathias Nilsson
Hi! I'm trying to use the UploadProgressBar and it works in ie7 but not in firefox 2.0.0.2 or ie 6.0.2900.2180 In firefox the progressbar is not updated and in ie 6 I get the following exception java.lang.IllegalStateException: ServletRequest does not contain mulipart content. I have setup my

how to get some data from servlet

2009-06-23 Thread danisevsky
hello, I am using MyMultiFileUploadServlet for uploading files and in some wicket component I need find out how many files was uploaded. I was trying to set this number to the HttpSession in MyMultiFileUploadServlet and get it in the component: HttpSession httpSession =

Re: Page Expire

2009-06-23 Thread Jeremy Thomerson
Have you checked your logs to see if there are serialization errors? -- Jeremy Thomerson http://www.wickettraining.com On Tue, Jun 23, 2009 at 5:09 AM, srinivassrinivas.r...@sifycorp.com wrote: Hi, I am not asking about the session-timeout , i have given session-timeout as 30 mins in

Re: Call to action: find and fix errata in 1.4 JavaDoc

2009-06-23 Thread Jeremy Thomerson
Just add comments (and / or patches) to that JIRA issue. All of the most common components would be the biggest area where there are likely changes. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Jun 23, 2009 at 8:40 AM, Vasu Srinivasanvasy...@gmail.com wrote: I'm willing to help

Getting a JS confirmation when uploading via Ajax

2009-06-23 Thread HHB
Hey, I'm uploading a file via Ajax, I literally copied the Wicket sample application. The uploading form is included in a modal window. Upon clicking on the upload button, I got a JavaScript dialog: ++ Are you sure you want to navigate from this page? Reloading this page will cause

Mutiple select DropDownChoice component

2009-06-23 Thread mark
Hi all, I am looking for info on how to handle a multi-select dropdownchoice component. Does the ModelObject need to be a List and will it get past a collection of selected items? How do I iterate over all the selected items if it is not provided in a list format? I have a

Re: Mutiple select DropDownChoice component

2009-06-23 Thread Jeremy Thomerson
I think you need to look at the select component rather than DDC. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Jun 23, 2009 at 9:49 AM, m...@jumpingbean.co.za wrote: Hi all, I am looking for info on how to handle a multi-select dropdownchoice component. Does the ModelObject

Re: Turning off ModificationWatcher

2009-06-23 Thread cretzel
Posted https://issues.apache.org/jira/browse/WICKET-2340 https://issues.apache.org/jira/browse/WICKET-2340 igor.vaynberg wrote: or you can add an rfe into jira to make it more open... -igor -- View this message in context:

Re: Wicket + Spring DM + Hibernate

2009-06-23 Thread Daniel Dominik Holúbek
Yes, that's the way it's meant to work :) On Tue, Jun 23, 2009 at 3:25 PM, James Carman jcar...@carmanconsulting.comwrote: On Tue, Jun 23, 2009 at 8:26 AM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: I appreciate your help, of course :)You know, I'm trying to create a web app

Re: Wicket + Spring DM + Hibernate

2009-06-23 Thread James Carman
How many modules do you have? Do you really need to be able to do this with your live production server? I'm just trying to get an idea behind the decision behind going with this sort of an architecture. Perhaps we can offer up an alternative that would work with the existing Wicket stuff so

Re: Wicket + Spring DM + Hibernate

2009-06-23 Thread Igor Vaynberg
isnt a big point of osgi to manage cross-bundle-dependencies? so if you inject panel A using panel A's context how does panel A ever see beans that are defined in module B? eg if panel A needs a sessionfactory which is defined in module B? -igor On Tue, Jun 23, 2009 at 5:36 AM, Daniel

Re: Wicket + Spring DM + Hibernate

2009-06-23 Thread Daniel Stoch
Ok, at least two scenarios are possible: 1. You have a module A with PanelA and you want to inject someDAO bean, which is defined inside module A (in the same module where class PanelA is defined). Then you can use classic @SpringBean annotation, as I wrote in my previous post. 2. You want to use

Re: Dirty read/edit problem.

2009-06-23 Thread Scott Swank
On-line docs http://download-west.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_lock.htm DA Morgan's docs http://www.psoug.org/reference/dbms_lock.html On Tue, Jun 23, 2009 at 12:58 AM, Maarten Bosteelsmbosteels@gmail.com wrote: Hi, We have implemented something similar. In our case

Re: Dirty read/edit problem.

2009-06-23 Thread satar
Thanks for the responses. I feel a little more confident that there isn't something magical already out there to handle this particular problem domain. I do want pessimistic locking as I want to inform the user that someone else is already thinking and in progress of changing something BEFORE

Re: How to add filter to palette component?

2009-06-23 Thread Rangel Preis
Thanks Fernando and Eyal. But it's not work. I try the code below, when I change the value of avaliable itens the itens in the screen became blank , and don't show the new value. Custem Palette class MyPalette extends Palette { private Component externalizedChoiceComponent;

Re: How to add filter to palette component?

2009-06-23 Thread Eyal Golan
It looks just like what I did. Did you break-point at public Object getObject() { return this.avaliableList; } ? or at avaliableList = getNewList(); Is the list full? Maybe you should try AjaxSubmitLink (Just a thought. I don't use it that often)? Eyal Golan

Re: How to add filter to palette component?

2009-06-23 Thread Rangel Preis
Golan... the object have the correct value in code, but in the page it's blank. 2009/6/23 Eyal Golan egola...@gmail.com: It looks just like what I did. Did you break-point at public Object getObject() {               return this.avaliableList;           } ? or at avaliableList =

Re: How to add filter to palette component?

2009-06-23 Thread Eyal Golan
BTW, here the whole code of the palette creationg: private CustomPalette newSelectedSection(final Form form) { final RolesCoverageDasboard rolesCoverageDasboard = (RolesCoverageDasboard) getModelObject(); final IChoiceRenderer choiceRenderer = new

Re: ModalWindow and IE8 question

2009-06-23 Thread Matej Knopp
couldn't it be old javascript file in your browser cache? -Matej On Tue, Jun 23, 2009 at 8:25 PM, Per Lundholmper.lundh...@gmail.com wrote: I don't know if it helps, but it works with IE8 on XP so there is something nasty about Vista /Per On Tue, Jun 23, 2009 at 8:17 PM,

Re: Apply Decorator Pattern to Panels

2009-06-23 Thread ptrash
Isn't there a way to use the decorator pattern (see http://en.wikipedia.org/wiki/Decorator_pattern Decorator Pattern )? igor.vaynberg wrote: thats what borders do. -igor On Mon, Jun 22, 2009 at 1:20 PM, Pi Trashptr...@web.de wrote: Hi, is there a way to decorate a panel? with

Re: Apply Decorator Pattern to Panels

2009-06-23 Thread Jeremy Thomerson
I suppose since the original answer was not adequate for your needs, you need to explain your needs to a greater level of detail rather than assuming that Igor (or other core devs) don't know what a commonly-used programming pattern is. More detail please? According to the definition of

Re: Page Expire

2009-06-23 Thread Erik van Oosten
Hello Srinivasa, You control the amount of storage that is available. Please look at the javadoc of DiskPageStore. Override the defaults by overriding WebApplication#newSessionStore(). Regards, Erik. srinivas wrote: Hi, After how much time will we get the page expire in wicket .

Any examples of a multiselect box in Wicket

2009-06-23 Thread mark
Hi all, Ok done some test and it looks like wicket can't handle this use case. I have tried the extensions select class and SelectOptions but it seems to work the same as dropdownchoice. There appears to be no example of a multi select for wicket on the net. I am beginning to think I should

Re: ModalWindow and IE8 question

2009-06-23 Thread Flavius
I cleared all cache and it still wasn't prompting the modal window. What I did do was go and reset IE8 by going to tools - Internet Options - Advanced tab and pressing the Reset button. Apparently this makes it just like a fresh install and that fixed it! Don't ask me why clearing the cache

Re: Help with design of application layout

2009-06-23 Thread Petr Fejfar
On Mon, Jun 22, 2009 at 3:52 PM, Igor Vaynbergigor.vaynb...@gmail.com wrote: if i were you i would create something like this: class zonepage extends webpage {  private final repatingview zones; [...]   public zonepage() {        add(zones=new repeatingview(zones));   } Hi Igor, thanks

AttributeModifier not added to a ListView item via an AjaxLink

2009-06-23 Thread Azzeddine Daddah
Hi Wicket users, I've a ListView in a ListView. The 1st ListVeiw holds categories. The 2nd ListView holds links (topics) which I want to be highlighted if the link (topic) is clicked. The problem is that the wrapped list (container) is getting refreshed, but the CSS class is not set for the

wicketAjaxGet and PageExpiredException?

2009-06-23 Thread Ryan McKinley
Is there anyway for an ajax call to catch the PageExpiredException? I am using the jquery history plugin to load pages in wicket (http://www.mikage.to/jquery/jquery_history.html) -- this lets me do ajax updates with bookmarkable urls. The one issue I am having is that if the session has expired

Re: wicketAjaxGet and PageExpiredException?

2009-06-23 Thread Igor Vaynberg
have you tried class myrequestcycle extends webrequestcycle { onruntimeexception(e) { if (e instanceof pageexpiredexeption) { if (getrequst().isajax()) { // this is an ajax request that caused pep exception throw new

Adding attribute to body tag

2009-06-23 Thread John
Hi, I need to add a class attribute to the body tag but this: component.add(new AttributeAppender(class, true, Model.of(yui-skin- sam), )); ... and this ... component.add(new BodyTagAttributeModifier(class, true, Model.of(yui-skin-sam), component)); are not working. Is there a new way