Re: Migration to wicket 7

2014-08-11 Thread Martin Grigorov
It should work for MyComponent.properties too. It uses normal i18n resolving. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Aug 11, 2014 at 5:24 PM, Maxim Solodovnik wrote: > According to the documentation CSS class names should be set on Applicat

Re: Wicket / WildFly 8: Log4J / SLF4J ?

2014-08-11 Thread Martin Grigorov
http://jira.codehaus.org/browse/ARCHETYPE-274 apparently it is not supported for now Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Aug 11, 2014 at 10:42 AM, Martin Grigorov wrote: > Cool! > > I'll see whether it is possible

Re: Properties Override

2014-08-11 Thread Martin Grigorov
Do you set the i18n value in FileInputConfig ? Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Aug 11, 2014 at 6:07 PM, David Beer wrote: > Hi Martin > > My properties file is named ProfileImageUploadPanel.properties same as the > the java

Re: wicket 6 calling javascript func with parameter in OnDomReadyHeaderItem fails in IE9

2014-08-11 Thread Martin Grigorov
Hi, You need to wrap it in quotes - either " or ' Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Aug 11, 2014 at 6:38 PM, fachhoch wrote: > In my component I am adding a script to OnDomReadyHeaderItem this script > is call to

Re: Wicket / WildFly 8: Log4J / SLF4J ?

2014-08-11 Thread Martin Grigorov
https://issues.apache.org/jira/browse/WICKET-5671 :-) Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Aug 11, 2014 at 5:32 PM, Martin Grigorov wrote: > http://jira.codehaus.org/browse/ARCHETYPE-274 > apparently it is not supported for now >

Re: Testing JS

2014-08-12 Thread Martin Grigorov
ebapp/js-test which also are QUnit based but use https://github.com/martin-g/gym.js for the UI interactions. See http://wicketinaction.com/2012/11/javascript-based-functional-testing/ for more details. These tests are executed manually by visiting http://localhost:8080/js-test/all.html Martin Gri

Re: Apache Wicket & IE 10/11 performance issue

2014-08-12 Thread Martin Grigorov
Hi, There was a problem with jQuery(selector).text() method in older versions of Wicket 6.x but it has been fixed by using plain DOM APIs. If you can find what exactly causes the slowness then we can try to optimize Wicket JS code even more. Martin Grigorov Wicket Training and Consulting https

Re: Form.findSubmittingButton throws exceptions

2014-08-12 Thread Martin Grigorov
https://issues.apache.org/jira/browse/WICKET-5672 Improved in Wicket 7.x only. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Aug 7, 2014 at 3:34 PM, Martin Grigorov wrote: > I think that it should return the found submitter. > If the caller

Re: java.lang.IllegalArgumentException: Argument 'name' may not be null or empty.

2014-08-12 Thread Martin Grigorov
https://issues.apache.org/jira/browse/WICKET-5673 Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Aug 11, 2014 at 9:46 AM, Martin Grigorov wrote: > Hi, > > I have no idea. > If you find a use case where Wicket generates such broken urls

Re: AjaxEventBehavior and arguments

2014-08-13 Thread Martin Grigorov
Hi, You can use AjaxEventBehavior as with any other event type. The 'data' is reachable thru: attrs.event.extraData: new AjaxEventBehavior("customEvent") { @Override protected void updateAjaxAttributes(AjaxRequestAttributes attributes) { super.updateAjaxAttributes(attributes); attr

Re: Add Ajax update behavior in Loadable detachable component

2014-08-13 Thread Martin Grigorov
).add(this); } } } Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Aug 13, 2014 at 7:11 AM, Neha1228 <1228n...@gmail.com> wrote: > Hi, > > The scenario is that i have a label "STATE", which has a loadable > detachable > model. &

Re: AjaxFallBackDataTable paging navigation link causes error

2014-08-13 Thread Martin Grigorov
Hi, Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Aug 13, 2014 at 1:57 PM, dharmendra pandey < dharmendra.pan...@gmail.com> wrote: > Hi, > > I am getting the error message in Firefox Mozilla 31.0 when we double click > on page navig

Re: AjaxFallBackDataTable paging navigation link causes error

2014-08-14 Thread Martin Grigorov
Please file a ticket in our JIRA. Thanks! Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Aug 13, 2014 at 5:46 PM, dharmendra pandey < dharmendra.pan...@gmail.com> wrote: > Thanks Martin for the quick response.. > > While trying to fix t

AtmosphereTester - WicketTester for Wicket-Atmosphere

2014-08-14 Thread Martin Grigorov
phere to test whether the current functionality in AtmosphereTester is good enough for merging to wicket-6.x. Any feedback is welcome! Especially not-supported use cases! 1. https://github.com/apache/wicket/compare/wicket-6.x...wicket-atmosphere-tester Martin Grigorov Wicket Training and Consu

Re: PageExpiredException not working on Session expired, wicket 1.5.11.

2014-08-15 Thread Martin Grigorov
Hi, On Thu, Aug 14, 2014 at 5:45 PM, ntvg wrote: > > > I am trying to server a particular error page when session timeouts to my > users. For this i configured the error page on my Application's init > method. > But this thing is not working. > > I set up the session tiemout in 1 minute, after t

Re: PageExpiredException not working on Session expired, wicket 1.5.11.

2014-08-16 Thread Martin Grigorov
Hi, Please create a quickstart app that shows the problem. On Aug 15, 2014 5:35 PM, "ntvg" wrote: > Hi, > > Thank's for your answer, > > > Martin Grigorov-4 wrote > > Wicket will throw this exception only when you make a request to a page > > from th

Re: broken Wicket build

2014-08-18 Thread Martin Grigorov
WordGeneratorTest is fixed. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Sun, Aug 17, 2014 at 2:47 PM, Andrea Del Bene wrote: > Hi, > > which branch are you working on (master, wicket-6.x...)? I've found a > failing test on master for modul

Re: broken Wicket build

2014-08-18 Thread Martin Grigorov
d 1.7) and at our CI server. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Sun, Aug 17, 2014 at 1:08 AM, Pierre Goupil wrote: > Hi, > > When trying to build the latest Apache Wicket Git repository, I get this > error: > > [ERROR]

Re: DataTable adding one more div/span based on dynamic conditions

2014-08-18 Thread Martin Grigorov
Hi, The question is not clear to me. I don't see how/where you want to use the fragment. And I don't understand what is the problem with it. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Sun, Aug 17, 2014 at 8:28 AM, dharmendra pandey < d

Re: DataTable adding one more div/span based on dynamic conditions

2014-08-18 Thread Martin Grigorov
Hi, Use a Panel for the cell and put as many children components inside your panel as you need. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Aug 18, 2014 at 3:34 PM, dharmendra pandey < dharmendra.pan...@gmail.com> wrote: > Hi Martin, > &

Re: RenderStrategy REDIRECT_TO_RENDER lets fail Test with startComponentInPage

2014-08-20 Thread Martin Grigorov
Hi, Can you reproduce this in a quickstart ? If YES then please attach it to a ticket in JIRA and I'll take a look. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Aug 20, 2014 at 11:06 AM, Dirk Forchel wrote: > Hi, > after I have

Re: Struggling with ContextRelativeResource, RenderedDynamicImageResource and SharedResources

2014-08-20 Thread Martin Grigorov
r"))); add(new Image("dotclear2", new PlaceholderImageResourceReference())); the generated paths look like: http://localhost:8080/en_US/images/dotclear1-ver-138389572.png note the locale as first segment in the path! with your code this is missing and thus the 404s Marti

Re: Demonstrate End-to-End Security Enforcement using Open Source Software & Wicket

2014-08-20 Thread Martin Grigorov
Hi, I am not able to find the tutorial ... :-/ At http://iamfortress.org/FortressDemo2 there is only a diagram. At the bottom there is a link to the Javadocs of the application. But I cannot find the tutorial. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon

Re: Demonstrate End-to-End Security Enforcement using Open Source Software & Wicket

2014-08-20 Thread Martin Grigorov
OK. Thanks! Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Aug 20, 2014 at 5:39 PM, Shawn McKinney wrote: > On 08/20/2014 08:01 AM, Martin Grigorov wrote: > >> I am not able to find the tutorial ... :-/ >> Athttp://iamfortress.org/Fortr

Re: Pass Variable from Wicket Page to .jsp

2014-08-20 Thread Martin Grigorov
Hi, The requirement is not very clear to me.. I guess you have a Wicket page with a Form and you want this form to submit to an old/JSP page, correct ? If this is correct then override Form's getActionUrl() to return "the/path/to/jspPage" (i.e. record/change) and the change button should do:

Re: DataTables Webjars Error

2014-08-26 Thread Martin Grigorov
Hi, How do you use the webjar ? Show us the code of the resource reference's constructor. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Aug 25, 2014 at 9:37 PM, David Beer wrote: > Hi All > > I am trying to use DataTables from wicketstu

Re: DataTables Webjars Error

2014-08-26 Thread Martin Grigorov
OK. I see 1.10.2 has changed the way it packs the css/js resources - there is no 'media' folder anymore. Please try it and send Pull Request if it works. Thanks! Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Aug 26, 2014 at 9:10 PM, David B

Re: DataTables Webjars Error

2014-08-26 Thread Martin Grigorov
wicket-6.x is the exact name of the branch a PR to master is also welcome! Otherwise I'll try to cherry-pick it (sometimes this doesn't work smoothly and I have to do it manually). Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Aug 26, 2014

Re: Nested Redirects and REDIRECT_TO_BUFFER

2014-08-26 Thread Martin Grigorov
Hi, Please create a quickstart app and attach it to JIRA. The issue looks like https://issues.apache.org/jira/browse/WICKET-4433 but it is different. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Aug 27, 2014 at 12:44 AM, Mike Bresnahan wrote: > Sh

Re: Weird ClassNotFoundException (wicket7-M2)

2014-08-27 Thread Martin Grigorov
Hi Maxim, On Wed, Aug 27, 2014 at 3:41 PM, Maxim Solodovnik wrote: > Hello All, > > I'm getting weird ClassNotFoundException in our main application (wicket7 > version) [1] > > wicket based libraries used are: > org.apache.wicket: 7.0.0-M2 > ro.fortsoft.wicket.dashboard: 0.11.0+wicket-7 > com.g

Re: Weird ClassNotFoundException (wicket7-M2)

2014-08-27 Thread Martin Grigorov
Please prepare a Pull Request against WicketStuff master branch and I'll make sure it is merged before releasing 7.0.0-M3 (and there is no official release by Igor) Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Aug 27, 2014 at 3:53 PM, Maxim Solod

Re: identify if request is from AbstractAjaxTimerBehavior in /ajax/call/beforesend

2014-08-27 Thread Martin Grigorov
r override #getCallbackUrl() { return super.getCallbackUrl() + "&isMyTimer=true"; } 2) or use attributes.getExtraParameters().put("isMyTimer", "true") Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Aug 27, 2014 at 8:45 PM,

Re: Clearing pagestore

2014-08-27 Thread Martin Grigorov
clear both the pages of the old and new sessions. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Aug 28, 2014 at 9:27 AM, Erki wrote: > Hello! > > I have functionality that allows users to change their own role in the > system. After changing

Re: Clearing pagestore

2014-08-28 Thread Martin Grigorov
. But if the application needs to clear the data manually for any reason then it is OK, i.e. PageStoreManager#sessionExpired(String) will call pageStore.unbind(sessionId). WDYT ? Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Aug 28, 2014 at 11:11 AM, Sven

Re: Clearing pagestore

2014-08-28 Thread Martin Grigorov
Sounds good! (Wicket 7 only) Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Aug 28, 2014 at 12:06 PM, Sven Meier wrote: > Hi, > > > >org.apache.wicket.Application#sessionUnbound() should not call > IPageManager#sessionExpired(S

Re: Clearing pagestore

2014-08-28 Thread Martin Grigorov
https://git-wip-us.apache.org/repos/asf?p=wicket.git;a=commit;h=b8382271 @Sven: does it look OK ? Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Aug 28, 2014 at 12:15 PM, Jack Berg wrote: > I actually did try replaceSession before but now I see that

Re: Clearing pagestore

2014-08-28 Thread Martin Grigorov
BTW Session#clear() seems to be no-op (broken) too in 6.x Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Aug 28, 2014 at 2:20 PM, Martin Grigorov wrote: > https://git-wip-us.apache.org/repos/asf?p=wicket.git;a=commit;h=b8382271 > > @Sven: does i

Re: getResourceBundles().add css or javascript in wicket application

2014-08-28 Thread Martin Grigorov
Hi, Bundle only local resources. If a resource is available thru a CDN network then it is recommended to use it directly from there. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Aug 28, 2014 at 2:53 PM, lucast wrote: > Dear forum, > I want to

Re: getResourceBundles().add css or javascript in wicket application

2014-08-28 Thread Martin Grigorov
Hi, It seems you don't value the benefit of CDNs... If you really want it you can extend few classes (ResourceReference related) and make it possible to bundle local and remote resources. But I don't recommend it. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgri

Re: DataTables Webjars Error

2014-08-28 Thread Martin Grigorov
Hi David, But you use Wicket Bootstrap already, no ? It uses Webjars a lot. Why do you face the VFS issue now ? Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Aug 28, 2014 at 11:20 PM, David Beer wrote: > Hi All > > Got it to work after stumbli

Re: Change the style of an already rendered wicket ModalWindow

2014-08-29 Thread Martin Grigorov
Hi, You will need to repaint the ModalWindow to apply any UI changes. Use target.add(window); for that. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Aug 29, 2014 at 11:00 AM, Rim wrote: > I want to make modal window transprent (opacity:0.5) afte

Re: Partially include JSP files into Wicket-HTML-Pages via Custom Tag

2014-08-29 Thread Martin Grigorov
Hi Tobias, The code looks good to me! There is no support for this in Wicket out of the box. You can contribute it to WicketStuff Minis project. With a test case we can make sure it will work for the future versions too! ;-) Martin Grigorov Wicket Training and Consulting https://twitter.com

Re: Partially include JSP files into Wicket-HTML-Pages via Custom Tag

2014-08-31 Thread Martin Grigorov
rds > > Tobias > > -Ursprüngliche Nachricht- > Von: Martin Grigorov [mailto:mgrigo...@apache.org] > Gesendet: Freitag, 29. August 2014 11:36 > An: users@wicket.apache.org > Betreff: Re: Partially include JSP files into Wicket-HTML-Pages via Custom > Tag [UNSIGNIERT] >

Re: Partially include JSP files into Wicket-HTML-Pages via Custom Tag

2014-08-31 Thread Martin Grigorov
I think it is OK to work with a mock response. Jasper (the most used JSP compiler) has to have its own unit tests. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Sep 1, 2014 at 9:32 AM, Soloschenko, Tobias < tobias.solosche...@rewe-group.com> wrote:

Re: Unit tests that use wicket's session and spring session

2014-09-01 Thread Martin Grigorov
Hi, WicketTester.getSession() returns the Wicket session. You can cast it to your specialization. Spring stores its session-scoped beans in as attributes in the http session. There is a dummy http session in WicketTester tests so everything should be fine. You don't need to do anything special h

Re: How to contribute to Wicketstuff

2014-09-01 Thread Martin Grigorov
changes from your fork and merged back upstream. Note: master branch is Wicket 7.x. wicket-6.x is 6.x Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Sep 2, 2014 at 9:23 AM, Soloschenko, Tobias < tobias.solosche...@rewe-group.com> wrote: > He

Re: Wicket / OAuth2

2014-09-02 Thread Martin Grigorov
t some point he stated that he will not merge any new PRs for OAuth2 impls. I don't see this statement in the README now, so he may have changed his mind. Another auth client provider is https://github.com/leleuj/pac4j. I don't have experience with it but it looks like well maintained

Re: Wicket / OAuth2

2014-09-02 Thread Martin Grigorov
Hi, Apache Shiro seems to be in a very bad state at the moment. There is no active development in the last year and its dev@ list is very quite - no one responds to users' questions like "Is Shiro still alive?" Martin Grigorov Wicket Training and Consulting https://twitter.com/

Re: Wicket / OAuth2

2014-09-02 Thread Martin Grigorov
d a popup window for the authentication because if the user is not willing to share all the required info then the oauth provider may not call the callback url and your user may not return to your app and make a normal account Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgr

Re: Wicket / OAuth2

2014-09-02 Thread Martin Grigorov
the way... if not alive... any alternatives to shiro? PicketLink is more JavaEE oriented. It is developed by JBoss (for good or bad) and uses CDI heavily. If I need something like this now I'd try https://github.com/leleuj/pac4j first. > > Patrick > > Am 02.09.2014 11:42, schrieb Martin

Re: Wicket / OAuth2

2014-09-02 Thread Martin Grigorov
e it to send fake data directly to it and authenticate as whatever (s)he wants. > > > the oauth provider may not call the callback url and your user may not > return to your app > Good point! Will take care of that... > > Thanks everybody for your responses. I will try manage th

Re: Variant Change Behavior

2014-09-03 Thread Martin Grigorov
Hi, The behaviors are not used for variations. For such use cases you should override org.apache.wicket.Component#getVariation() on the (base) page. This way all components will know the correct variation. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed

Re: adding wicket generated link to javascript

2014-09-03 Thread Martin Grigorov
Hi, On Wed, Sep 3, 2014 at 11:15 PM, Jason Novotny wrote: > Hi, > > My designer gave me code where HTML is created in javascript as part of a > jquery dataTable: > > > $(document).ready(function() { > $('#datatable').dataTable( { > > $('.clientinvoices .dropholder').htm

Re: wicket atmosphere not updating the page

2014-09-03 Thread Martin Grigorov
Hi, On Wed, Sep 3, 2014 at 10:24 PM, fachhoch wrote: > I am trying to use wicket-atmosphere (0.18) in wicket 6.12.0, on post, > subscribe method is getting called but any component I add to target is not > updating in the page, ajax debug window shows empty ajax-response, and > browser con

Re: wicket atmosphere not updating the page

2014-09-04 Thread Martin Grigorov
ource but /wicket/bookmarkable/resource/... is broken url Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Sep 4, 2014 at 3:47 PM, fachhoch wrote: > I have quickstart with 6.12.0 could not reproduce there, I also tried > setResponsePage instead of add

[ANNOUNCE] WicketStuff 6.17.0 and 7.0.0.-M3 are released

2014-09-04 Thread Martin Grigorov
Hi, WicketStuff core 6.17.0/7.0.0-M3 based on Apache Wicket 6.17.0/7.0.0-M3 are released and soon will be available in Maven Central. *6.17.0* The changelog for 6.17.0 release is: Hannes Dohrn (1): [async-tasks-impl] Adding refreshBehavior in ProgressButton ctor if task container already

Re: wicket atmosphere not updating the page

2014-09-04 Thread Martin Grigorov
Hi, I am on my phone now so I can't check your quickstart but I remember a problem with bookmarkable pages fixed in 6.13.0 On Sep 4, 2014 10:45 PM, "fachhoch" wrote: > I am able reproduce this issue in a quickstart, The issue happens in > bookmarkable pages, any bookmarkable page, response to

Re: [ANNOUNCE] Apache Wicket 7.0.0-M3 Released

2014-09-05 Thread Martin Grigorov
On Sep 5, 2014 3:35 PM, "Martijn Dashorst" wrote: > > We have released the third in a series of milestone releases for Apache > Wicket 7. We aim to finalise Wicket 7 over the coming months and > request your help in testing the new major version. > > Caveats > --- > > It is still a development

Re: Variant Change Behavior

2014-09-08 Thread Martin Grigorov
String (actually a Regex) is in the response. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Sep 5, 2014 at 4:30 PM, Thibault Kruse wrote: > Thanks Martin, > > that works for us. I missed that Variants are inherited from parents. > > Is th

Re: AbstractDefaultAjaxBehavior target does not refresh components

2014-09-08 Thread Martin Grigorov
Hi, You should use Wicket.Ajax.post() instead of jQuery.ajax() to make Ajax call. Otherwise Wicket won't be able to calculate the baseUrl and all urls created in this request cycle would be wrong. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Sep 8,

Re: [ANNOUNCE] Apache Wicket 6.17.0 released

2014-09-08 Thread Martin Grigorov
I use this URL to check: http://central.maven.org/maven2/org/apache/wicket/wicket-core/6.17.0/ Most probably the index of search.maven.org is broken ... Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Sep 9, 2014 at 6:03 AM, Hendy Irawan wrote: > Afte

Re: JavaSerializer - Error serializing object class

2014-09-09 Thread Martin Grigorov
that injects the EJBs in itself. So the usage in Wicket would be: public class MyComponent extends ... { @Inject MyCDIBean cdiBean; ... cdiBean.getEjb().doSomething(); ... } Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Sep 9, 2014 at 9:53 AM, Stefan

Re: Variant Change Behavior

2014-09-09 Thread Martin Grigorov
Please check that the solution provided with https://issues.apache.org/jira/browse/WICKET-5694 will do the job. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Sep 8, 2014 at 10:45 AM, Thibault Kruse wrote: > Hm, thinking some more, the general solut

Re: Variant Change Behavior

2014-09-09 Thread Martin Grigorov
https://git-wip-us.apache.org/repos/asf?p=wicket.git;a=commit;h=702bf45a Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Sep 9, 2014 at 10:42 AM, Martin Grigorov wrote: > Please check that the solution provided with > https://issues.apache.org/jira/

Re: Global Ajax Event Handler

2014-09-09 Thread Martin Grigorov
What exactly you want to do ? Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Sep 9, 2014 at 11:58 AM, Tobias Soloschenko < tobiassolosche...@googlemail.com> wrote: > Hi all, > > is there a way to register a global ajax event handler wit

Re: Global Ajax Event Handler

2014-09-09 Thread Martin Grigorov
nts. Does this solve the problem ? If NO then please explain how you would do it "the local way". Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Sep 9, 2014 at 12:26 PM, Tobias Soloschenko < tobiassolosche...@googlemail.com> wrote: > I

Re: Global Ajax Event Handler

2014-09-09 Thread Martin Grigorov
meComponent#onEvent() use someEvent.getTarget().add(this) to add the component when SomeEvent is broadcasted Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Sep 9, 2014 at 12:40 PM, Richter, Marvin < marvin.rich...@freenetdigital.com> wrote: > What

Re: How to register a global resource with dependencies?

2014-09-09 Thread Martin Grigorov
need to use shared resources at all ? What benefit do you see ? Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Sep 9, 2014 at 1:20 PM, brushmate wrote: > Hi,I want to register a JS file globally, but it depends on jQuery. The > user > guide says

Re: CouldNotLockPageException while trying 'inspect' option of Debug bar

2014-09-09 Thread Martin Grigorov
The Inspector tries to get a reference to the page by its id to be able to get a list of its components. But another thread is already acquired the lock to this page... It seems to write the page's markup to the browser but I cannot say why it does this for more than a minute. Martin Gri

Re: How to register a global resource with dependencies?

2014-09-09 Thread Martin Grigorov
On Tue, Sep 9, 2014 at 1:35 PM, brushmate wrote: > Thanks for your answer. So everytime I want to reference a resource, I have > to declare its dependencies? > > I want to register it globally, because I can use it on different pages > then > and if the path to the resource changes in the future,

Re: How to register a global resource with dependencies?

2014-09-09 Thread Martin Grigorov
every request. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Sep 9, 2014 at 1:47 PM, brushmate wrote: > Okay, then I have another question: > > Where do I have to define the references. Until now, I always defined them > in the component tha

Re: Wicket logs

2014-09-09 Thread Martin Grigorov
Hi, The provided (none!) logs look fine. Please provide some more so we can check them too. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Sep 9, 2014 at 2:16 PM, dharmendra pandey < dharmendra.pan...@gmail.com> wrote: > Hi, > > My

Re: Global Ajax Event Handler

2014-09-09 Thread Martin Grigorov
be simple getPage())? > I didn't get this Please re-phrase > > 2014-09-09 11:51 GMT+02:00 Martin Grigorov : > > > I've re-read the message and I think I got it. > > What you really need is a mounted resource > > (WebApplication#mountResource(someResourceR

Re: CouldNotLockPageException while trying 'inspect' option of Debug bar

2014-09-09 Thread Martin Grigorov
Can you reproduce this in a simple quickstart app ? AbstractAjaxTimerBehavior will send a request on the defined timeout, but the processing of this request should be fast enough. Check what you do in #onTimer() callback. On Tue, Sep 9, 2014 at 2:02 PM, Rakesh A wrote: > Hi, > Strange thing is

Re: Global Ajax Event Handler

2014-09-09 Thread Martin Grigorov
parameters. Storing the pageId in the session is not OK because the user may open two different pages in separate tabs/windows and this will break. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Sep 9, 2014 at 3:01 PM, Tobias Soloschenko < t

Re: Global Ajax Event Handler

2014-09-09 Thread Martin Grigorov
Session#pageId is a counter that is used to give an id to the next created page. It is not the id of the currently used page! You will need to provide the pageId somehow to the class that generates the url. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue

Re: Global Ajax Event Handler

2014-09-09 Thread Martin Grigorov
reference to the page. Wicket uses this API internally every time you click a link or button. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Sep 9, 2014 at 3:45 PM, Tobias Soloschenko < tobiassolosche...@googlemail.com> wrote: > And thats the quest

Re: Global Ajax Event Handler

2014-09-09 Thread Martin Grigorov
Yes. This should be OK. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Sep 9, 2014 at 4:09 PM, Tobias Soloschenko < tobiassolosche...@googlemail.com> wrote: > PageRequestHandlerTracker.getLastHandler(RequestCycle.get()).getPageId() ? > Is this

Re: Referencing DataTable rows within the table column header

2014-09-09 Thread Martin Grigorov
Hi, Why don't you update the table itself ? This will update all its children components too. Otherwise I'd use Wicket's Event system to send a notification to all interested parties. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Sep 9,

Re: Problem getting data from a 'CharSequenceResource'

2014-09-09 Thread Martin Grigorov
null, click1, click2, etc. While data-bind's listener will get: click1, click2, click3, etc. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Sep 9, 2014 at 6:59 PM, manumoreno wrote: > Hi, I need some advice to get data from a CharSequenceResource: &

Re: Wicket logs

2014-09-10 Thread Martin Grigorov
Hi, The logging level is controlled by Log4j/Logback/... config files. Wicket's configuration mode doesn't affect the logging by any means. Edit your src/main/resources/(log4j.properties|logback.xml) Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On W

Re: Custom http error pages

2014-09-10 Thread Martin Grigorov
Hi, Instead of throwing AbortWithHttpErrorCodeException you can just use RestartResponseException/setResponsePage(). But using the standard way (web.xml) should be fine too. I think the message set by #setError(code, message) is stored as request attribute. Martin Grigorov Wicket Training and

Re: How to add checkboxes with AJAX?

2014-09-10 Thread Martin Grigorov
Check http://wicketinaction.com/2008/10/repainting-only-newly-created-repeater-items-via-ajax/ Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Sep 10, 2014 at 12:41 PM, brushmate wrote: > This is what it should look like: > > < > http:

Re: Global Ajax Event Handler

2014-09-10 Thread Martin Grigorov
Tobias sent me a quickstart app. TestPage is stateless and thus never stored in the storages. Just add setStatelessHint(false) to its constructor and the problem disappears. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Sep 9, 2014 at 10:10 PM, Tobias

Re: Problem getting data from a 'CharSequenceResource'

2014-09-10 Thread Martin Grigorov
On Wed, Sep 10, 2014 at 9:40 AM, manumoreno wrote: > Martin Grigorov-4 wrote > > Hi, > > > > The > > > element has two JavaScript event listeners for 'click' event - one > > by Wicket's AjaxFallbackLink and another by (Knockout.js ?!) data-bind

Re: respond with 404 page while keeping original URL

2014-09-10 Thread Martin Grigorov
Just throw AbortWithHttpErrorCodeException. The url will remain the same. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Sep 10, 2014 at 3:43 PM, Thibault Kruse wrote: > Hi, > > we have a page for some resource mounted at /resource/ > When us

Re: How to apply data to Wicket.Ajax.post

2014-09-11 Thread Martin Grigorov
/ when there is only one possible value per key/name or [{name: "name1", value: value1}, {name: "name1", value: value11}, {name: "name2", value: value2}] // just as jQuery#param() Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On

Re: Request for re-opening a Jira issue

2014-09-15 Thread Martin Grigorov
find a regression we cancel the release and cut a new one. You are very welcome to join us with testing your application, with your custom implementations of Wicket interfaces, and report regressions ! I'll copy my response to the ticket for cross reference. Martin Grigorov Wicket Trainin

[ANNOUNCE] Apache Wicket 1.5.12 is released

2014-09-15 Thread Martin Grigorov
This is the twelfth maintenance release of the Wicket 1.5.x series. This release brings over 5 bug fixes and improvements. Git tag: release/wicket-1.5.12 Changelog: https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12310561&version=12326154 Maven: org.apache.wicket wicket-core

Re: Ajax Post Data

2014-09-15 Thread Martin Grigorov
http://markmail.org/message/fw7cjfo7bzvkjfdu Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Sep 15, 2014 at 3:11 PM, Tobias Soloschenko < tobiassolosche...@googlemail.com> wrote: > Hi, > > is there a way to process post data with the wicke

Re: Ajax Post Data

2014-09-15 Thread Martin Grigorov
vascript object? > > ty for the fast response! > > Tobias > > > Am 15.09.2014 um 14:16 schrieb Martin Grigorov : > > > > http://markmail.org/message/fw7cjfo7bzvkjfdu > > > > Martin Grigorov > > Wicket Training and Consulting > > https:

Re: Ajax Post Data

2014-09-15 Thread Martin Grigorov
string or request body. Do you say that with method=post you still see the parameter in the query string ? Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Sep 15, 2014 at 4:24 PM, Tobias Soloschenko < tobiassolosche...@googlemail.com> wrote: > But they

Re: Ajax Post Data

2014-09-15 Thread Martin Grigorov
Please file a ticket with attached quickstart application. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Sep 15, 2014 at 4:44 PM, Tobias Soloschenko < tobiassolosche...@googlemail.com> wrote: > Let me show an example (%s are going to be replaced

Re: Ajax Post Data

2014-09-15 Thread Martin Grigorov
e query string or as request body ? > variable with the name data. The upload is now working like a charm. The > only thing the developer has to know about is the max of mb (2mb in example > of tomcat) for post requests: > > https://github.com/klopfdreh/wicket-components-playground >

Re: The order of setting mountPage and cryptoMapper changes behavior.

2014-09-17 Thread Martin Grigorov
Hi, This is by design. This way you can encrypt the urls for some pages (the ones mounted before making CryptoMapper as the root one), and leave unencrypted the urls for the pages mounted after the CryptoMapper. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On

Re: Expire page upon session timeout

2014-09-18 Thread Martin Grigorov
Hi, >From yesterday: http://markmail.org/message/jjhhmhcwg5zalgzm Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Sep 18, 2014 at 5:49 PM, Robin Shine wrote: > Hi, > > > When an ajax link is clicked after session is timed out, Wicket 1.6

Re: clicking Ajax SubmitLink button called submit method twice

2014-09-21 Thread Martin Grigorov
Hi, On Sun, Sep 21, 2014 at 10:48 AM, Ajayi Yinka wrote: > Hello everyone, > > submit method called more than one time trigering two modalWindows to open > at the same time. > > See snippet below. If I put the just only modal.show(target) in the > onsubmit method and others in Page constuctor, t

CVE-2014-3526

2014-09-22 Thread Martin Grigorov
014/08/24/wicket-6.17.0-released.html> - Apache Wicket 7.0.0-M3 <http://wicket.apache.org/2014/08/23/wicket-7.0.0-M3-released.html> Credit: This issue was reported by Andrea Del Bene and Martin Grigorov! Apache Wicket Team

Re: UploadProgressBar Wicket 6 issues

2014-09-22 Thread Martin Grigorov
Hi, I suggest you to: - upgrade to 6.17.0 (should be painless related to 1.4 > 6.x) - see how UploadProgressBar is used in wicket-examples Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Sep 22, 2014 at 9:34 PM, Wayne W wrote: > Hi, > >

Re: turning off page versioning

2014-09-23 Thread Martin Grigorov
hat maps sessionId+pageId to pageClass and use that pageClass with custom IMyPageStore and IMyDataStore impls. (Just an idea out of my mind.) Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Sep 23, 2014 at 3:42 AM, Garret Wilson wrote: > Can someone ex

<    2   3   4   5   6   7   8   9   10   11   >