Authorization and

2010-02-12 Thread Wilhelmsen Tor Iver
We have an app with three user types and two user levels (read or read-write in effect). We want to use these in authorization, and thought about an approach using annotations. However, at the point of the Wicket auth. interface methods, only class-targeted annotations are visible, and that

modal in a modal problem

2010-02-12 Thread Martin Asenov
Hello, everyone! I experience a problem when triggering a modal window from another modal window. When a removal icon is clicked in the first modal, there's a confirmation dialog, that pops up. Although I've set everything up, the windowClosedCallback gets activated only when I confirm removal

RE: modal in a modal problem

2010-02-12 Thread Martin Asenov
I forgot to mention that the first time I click yes, I get: confirmation dialog called yes button clicked in console, and the conf dialog closes itself. when I open it for second time, I get confirmation dialog called yes button clicked removal supposed to be called and the item really gets

Re: quickstart POM has wrong artifactId for jetty maven plugin

2010-02-12 Thread Martijn Dashorst
It works perfect for 6.x releases. You changed the version to 7 your self, so it is your responsibility to change the other stuff too. When we upgrade the version we'll be sure to modify the plugin accordingly. Martijn On Thu, Feb 11, 2010 at 10:39 PM, Russell Morrisey

Re: TextArea in repeater doesn't update it's model

2010-02-12 Thread Rubén khanser
It still doesn't work. Do I need a form inside my repeater? protected void populateItem(Item arg0) { Label pagina; final Label codi; final TextArea valor; SubmitLink link; final AccTextosWrapper tWrapper = (AccTextosWrapper)arg0.getModelObject(); pagina = new Label(pagina,

Re: jdbc

2010-02-12 Thread Ivan Dudko
For example.. class Honey { int id; int milkid; String name; // getters and setters } class Milk { int id; String name; // getters and setters } and my query: SELECT honey.id ID, honey.milkid MILKID, honey.name HONEYNAME, milk.name MILKNAME FROM honey, milk WHERE honey.milkid=milk.id; And i

Re: TextArea in repeater doesn't update it's model

2010-02-12 Thread Rubén khanser
Ok i got it solved using a Form in each row that contains the textarea and the submitlink. Thanks El 12 de febrero de 2010 09:53, Rubén khanser khan...@gmail.com escribió: It still doesn't work. Do I need a form inside my repeater? protected void populateItem(Item arg0) { Label pagina;

Re: Authorization and

2010-02-12 Thread Daniele Dellafiore
I am facing authorization problems this days, as you see in onother message. when I started to deal with this problem I were also uncomfortable at the idea to use annotation on components or even specific class (like SecureComponent). Too much noise in the code and too much interference of

Re: jdbc

2010-02-12 Thread James Carman
You could create a reference from Honey to Milk, since you have a milkid field there. Then, you'd use a list of Honey objects and you'd display these properties: id milk.id name milk.name On Fri, Feb 12, 2010 at 3:58 AM, Ivan Dudko ivan.du...@gmail.com wrote: For example.. class Honey {

RE: AbstractAjaxTimerBehavior#onTimer() doesn't work in deployment mode

2010-02-12 Thread Andreas Lüdtke
Igor, I made a quickstart and found that it's not a wicket issue but a tomcat issue. I installed tomcat 6.0.24 and configured it in Netbeans and now it works as expected. Thanks Andreas -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Tuesday,

How to disable AJAX call on ModalWindow close

2010-02-12 Thread zkn
Hi, I'm using Wicket.Ajax.registerPreCallHandler(showBusyScreen); Wicket.Ajax.registerPostCallHandler(hideBusyScreen); Wicket.Ajax.registerFailureHandler(hideBusyScreen); to show and hide a busy screen on the page while executing AJAX calls. But it also shows up when I click the close button

RE: modal in a modal problem

2010-02-12 Thread Martin Asenov
Does anyone know? Please, people, I'm getting despaired of this... -Original Message- From: Martin Asenov [mailto:mase...@velti.com] Sent: Friday, February 12, 2010 10:23 AM To: users@wicket.apache.org Subject: RE: modal in a modal problem I forgot to mention that the first time I click

Re: TextArea in repeater doesn't update it's model

2010-02-12 Thread Igor Vaynberg
No point using a submit link if you are going to override onclick with a non form related Ajax behavior. -igor On Friday, February 12, 2010, Rubén khanser khan...@gmail.com wrote: It still doesn't work. Do I need a form inside my repeater? protected void populateItem(Item arg0) { Label

Re: AbstractAjaxTimerBehavior#onTimer() doesn't work in deployment mode

2010-02-12 Thread Igor Vaynberg
QuickStart strikes again :) -igor On Friday, February 12, 2010, Andreas Lüdtke sam.lued...@t-online.de wrote: Igor, I made a quickstart and found that it's not a wicket issue but a tomcat issue. I installed tomcat 6.0.24 and configured it in Netbeans and now it works as expected. Thanks

Palette selected item

2010-02-12 Thread Josh Chappelle
I have a Palette component that I need to be able to fire an event when an item on the right side(selected side) has been clicked. Additionally I need to know what item was clicked because I'm going to be populating another panel based on that click. I have created my own component called

BookmarkablePage with PageParameters

2010-02-12 Thread Pierre Goupil
Good evening, I have a BookmarkablePage which may need PageParameters or not, depending on the business workflow. I used to mount it under /page but now that we do use the PageParameters-providing constructor I have a problem which forced me not to mount the page in my Application class anymore.

Scroll to Anchor on Form Submit

2010-02-12 Thread Tony Wu
Is there a way in Wicket for Button form onSubmit to refresh the page and scroll to a particular anchor? For example if I have 3 separate forms with a FeedbackPanel in each, if I click the submit button for the final form and there's a validation error, when the page refreshes the error messages

Re: Authorization and

2010-02-12 Thread Riyad Kalla
Daniele, I think you're exactly right to use the get/setMetaDatahttp://wicket.apache.org/docs/1.4/org/apache/wicket/Component.html#setMetaData(org.apache.wicket.MetaDataKey, M) methods, per the Javadoc on MetaDataKeyhttp://wicket.apache.org/docs/1.4/org/apache/wicket/MetaDataKey.html(example code

Re: BookmarkablePage with PageParameters

2010-02-12 Thread vineet semwal
take a look at querystringurlcodingstrategy,mixedparamurlcodingstategy ,mixedparamhybridurlcodingstategy, and use what suits you . Good evening, I have a BookmarkablePage which may need PageParameters or not, depending on the business workflow. I used to mount it under /page but now that we

problem dynamic image - explorer

2010-02-12 Thread _Eynob _
Hi Im creating a dynamic image with the DynamicImageResource, and my problem with this is in explorer, since my generated image is a png and there(explorer) when i choose 'save as..' it try to save it as a 'bmp'. In firefox it works well and when i try to save it, i get the image as 'png'.

Re: Scroll to Anchor on Form Submit

2010-02-12 Thread Riyad Kalla
Tony, I'm not sure if you can mess with the URL (e.g. append a #errors) from within Wicket without causing a redirect (and loosing your errors from the request and form state) -- someone smarter than me can address that -- but if you wanted to get creative, maybe in the onError handler your can

RE: quickstart POM has wrong artifactId for jetty maven plugin

2010-02-12 Thread Russell Morrisey
Martijn, I encountered this error without making ANY changes to the POM generated by the quickstart archtype command, when running mvn eclipse:eclipse -DdownloadSources=true. The artifact it is having trouble with is the maven jetty plugin, not jetty itself. The POM has jetty.version 6.1.4

OnChangeAjaxBehavior: nth character

2010-02-12 Thread Steven Haines
Hi, I would like to add AJAX behavior to an application that sends an update to my application after a certain number of characters have been typed. For example, if the user is entering a zipcode, I would like a callback to my application to be made after the user enters the fifth character.

Re: OnChangeAjaxBehavior: nth character

2010-02-12 Thread vineet semwal
you can do the same thing with wicket ie. on 5th char typed,make a ajaxcallback to wicket, 1)you need to add behavior to component and implement it's respond method the way it suits your need. 2)in the js part you will make a callback on 5th char typed,callbackurl you will get from the behavior

results of WebApplication.getConfigurationType() should be cached to avoid synchronization

2010-02-12 Thread Nikita Tovstoles
Below stack trace indicates that getConfigurationType() is called a lot. It, however, consults a Hashtable, thereby hitting a synchronized block every time. Note the resulting wait time (in seconds). My fix is to cache the value in my WebApplication subclass (and populate this tiny cache eagerly

Re: OnChangeAjaxBehavior: nth character

2010-02-12 Thread Riyad Kalla
Vineet is exactly right, just to further flesh it out: You want to add a subclass of AbstractDefaultAjaxBehavior to your page, this automatically contributes the wicket-ajax.js file to your page which exposes these JavaScript methods for you: === function wicketAjaxGet(url,

Re: OnChangeAjaxBehavior: nth character

2010-02-12 Thread vineet semwal
Riyad, 1)url is callbackurl you will get from abstractdefaultajaxbehavior.getcallbackurl() 2)method you need to implement is the abstractdefaultajaxbehavior's respond method On Sat, Feb 13, 2010 at 3:58 AM, Riyad Kalla rka...@gmail.com wrote: Vineet is exactly right, just to further flesh it

Re: OnChangeAjaxBehavior: nth character

2010-02-12 Thread Riyad Kalla
Ah! Thanks Vineet. On Fri, Feb 12, 2010 at 3:42 PM, vineet semwal vineetsemwal1...@gmail.comwrote: Riyad, 1)url is callbackurl you will get from abstractdefaultajaxbehavior.getcallbackurl() 2)method you need to implement is the abstractdefaultajaxbehavior's respond method On Sat, Feb 13,

Re: problem dynamic image - explorer

2010-02-12 Thread Igor Vaynberg
make sure you correctly set the content type -igor On Fri, Feb 12, 2010 at 10:12 AM, _Eynob _ ey...@hotmail.com wrote: Hi Im creating a dynamic image with the DynamicImageResource, and my problem with this is in explorer, since my generated image is a png and there(explorer) when i

Re: OnChangeAjaxBehavior: nth character

2010-02-12 Thread Igor Vaynberg
you can use an iajaxcalldecorator to add javascript before the call is made and interrupt it by simply return true until fifth character has been pressed. -igor On Fri, Feb 12, 2010 at 12:45 PM, Steven Haines lyg...@yahoo.com wrote: Hi, I would like to add AJAX behavior to an application