Re: Request for re-opening a Jira issue

2014-09-23 Thread Martin Grigorov
See http://markmail.org/message/ofyvgybcjp5cvf75 You talk about the same idea. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Sep 16, 2014 at 12:10 PM, Bernard wrote: > Martin, > > First I appreciate very much your hard work in the mailing

Re: access to url at http 404

2014-09-23 Thread Martin Grigorov
Hi, You can use http://docs.oracle.com/javaee/7/api/javax/servlet/RequestDispatcher.html#ERROR_REQUEST_URI to get the original uri. It is stored as request attribute. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Sep 23, 2014 at 4:00 PM, Karl-Heinz Golz

Re: turning off page versioning

2014-09-23 Thread Martin Grigorov
licking on LinkA PanelA is replaced with PanelB. case 1) with the pageId in the url if you refresh the page then you will still see PanelB in the page case 2) without the pageId you will see PanelA, because a new page instance is created Now imagine that Wicket stores pages by type. Once the user

Re: turning off page versioning

2014-09-24 Thread Martin Grigorov
Hi, On Wed, Sep 24, 2014 at 2:13 AM, Garret Wilson wrote: > On 9/23/2014 12:08 PM, Martin Grigorov wrote: > >> On Tue, Sep 23, 2014 at 4:44 PM, Garret Wilson >> wrote: >> >> OMG. What a sad email to wake up to. :( >>> >>> Let me let all that d

Re: turning off page versioning

2014-09-24 Thread Martin Grigorov
Thibault, On Wed, Sep 24, 2014 at 11:23 AM, Thibault Kruse wrote: > On Wed, Sep 24, 2014 at 2:13 AM, Garret Wilson > wrote: > > I'm not denying that versioned pages may be a useful concept for some use > > cases (even though I can't think of any offhand). I'm just saying it's > not > > my use c

Re: turning off page versioning

2014-09-24 Thread Martin Grigorov
On Wed, Sep 24, 2014 at 3:30 PM, Nick Pratt wrote: > Funny this thread appeared this week - I had a client question our > forward/back navigation last Wednesday and we got into a fairly lengthy > discussion about this specific topic. What came out of that was that their > expectations of page na

Re: turning off page versioning

2014-09-25 Thread Martin Grigorov
Garret, Please take a look at https://github.com/martin-g/single-page-instance - single page instance per class - stateful - no ?pageId in the url I hope when your next application is bought by Facebook/Microsoft/Amazon/... you say a good word about Apache Wicket ;-) Martin Grigorov Wicket

Re: turning off page versioning

2014-09-26 Thread Martin Grigorov
behavior in Wicket. The "hole" is that F5 (page refresh) loses the state and creates a completely new page instance with its own state. Using back/forward will lose the state too. This is the reason why NoVersionMapper is not in the official Wicket distro. Martin Grigorov Wicket Tr

Re: turning off page versioning

2014-09-26 Thread Martin Grigorov
ing" interactions with the page than now. > > > > On Fri, Sep 26, 2014 at 11:58 AM, Martin Grigorov > wrote: > > > Hi, > > > > What you describe is what several users currently do by using > > NoVersionMapper. > > NoVersionMapper is the thing that hides t

Re: turning off page versioning

2014-09-26 Thread Martin Grigorov
Thanks for testing! I'm sure there will be problems to be solved. The app is just a proof of concept that it is not that hard to accomplish what Garret wanted. If someone wants to use this in production then (s)he will have to test and optimize it further. Martin Grigorov Wicket Trainin

Re: Error page for AJAX requests

2014-09-26 Thread Martin Grigorov
Hi, Check org.apache.wicket.settings.ExceptionSettings#setAjaxErrorHandlingStrategy Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Sep 26, 2014 at 1:25 PM, Wayne W wrote: > Hi all, > > we've recently moved to Wicket 6.17 from 1.4 and I&#x

Re: respond with 404 page while keeping original URL

2014-09-26 Thread Martin Grigorov
Hi, I think it is 200 because this is the status code of the error page - it is rendered successfully. You need org.apache.wicket.util.tester.BaseWicketTester#setFollowRedirects(false) if you want to assert the response for MyPage. Martin Grigorov Wicket Training and Consulting https

Re: [Problem] Attribute not found

2014-09-26 Thread Martin Grigorov
Hi, WicketHelper is your own class. We cannot know how it works. You can use WicketTester.getTagBy(Wicket)Id() instead. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Sep 26, 2014 at 1:41 PM, Maxime00 wrote: > Hello, I have a weird issue in my tests

Re: turning off page versioning

2014-09-26 Thread Martin Grigorov
The magic happens in WebPageRenderer#respond() method. But beware that this is one of the most scary (to reason about) code in Wicket. We know about this problem, we simplified it somehow for Wicket 7, but still as the comments there say "it is hairy". Martin Grigorov Wicket Tr

Re: respond with 404 page while keeping original URL

2014-09-26 Thread Martin Grigorov
OK. Right. ErrorCodeRequestHandler returns a response with code 404 and then the web container uses the definition in web.xml to get the url for 404 ... There is no web.xml with WicketTester and thus no redirect to /404.html. Your code is good! Martin Grigorov Wicket Training and Consulting https

Re: respond with 404 page while keeping original URL

2014-09-26 Thread Martin Grigorov
Use getLastResponse(). getRequest() and getResponse() return the ones which will be used for the next interaction. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Sep 26, 2014 at 2:04 PM, Thibault Kruse wrote: > Sorry I just realized I pasted someth

Re: respond with 404 page while keeping original URL

2014-09-26 Thread Martin Grigorov
() to return the last response would break many apps! getRequest() is useful though! It is used to set any request parameters (form submit, wantOnSelectionChangedNotifications, etc.) before #processRequest() Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Sep 26,

Re: [Problem] Attribute not found

2014-09-26 Thread Martin Grigorov
See IMarkupSettings#setStripWicketTags(). It has to be 'false' to be able to use tester.getTagByWicketId(). Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Sep 26, 2014 at 2:29 PM, Maxime00 wrote: > We used : > >

Re: [Problem] Attribute not found

2014-09-26 Thread Martin Grigorov
Use org.apache.wicket.util.tester.BaseWicketTester#getLastResponseAsString() to print the response. Make sure the element is there. If it is there then fire the debugger and see why getTagByWicketId() doesn't see it. Then file a bug at JIRA. Martin Grigorov Wicket Training and Consulting

Re: Make wicket aware of loaded javascript

2014-09-27 Thread Martin Grigorov
Hi, It should work. It won't work if the appended JS is executed in a different context, e.g. inside an iframe (a ModalWindow with a Page). Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Sat, Sep 27, 2014 at 2:36 PM, Mathias Nilsson < wicket

Re: AjaxSubmitLink not working when fileUpload in Form

2014-09-28 Thread Martin Grigorov
Hi, The demo example at http://www.wicket-library.com/wicket-examples-6.0.x/ajax/upload seems to work fine. Take a look at its code (wicket-examples module) and see what is different with your code. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Sun, Sep 28

Re: DownloadLink in a separate thread?

2014-09-29 Thread Martin Grigorov
Hi, Yes. Using ResourceLink will produce a url to IResource and thus avoid locking the page instance. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Sep 29, 2014 at 4:01 AM, trlt wrote: > Never mind. I found my solution by using AbstractResource

Re: Add Background image to Modal Window

2014-09-29 Thread Martin Grigorov
Hi, ModalWindow sets CSS classes for its main panel, the title, the content, etc. If you use a Panel as content then you will need to add custom CSS rule to set the background image. If you use a Page as content then set the background image in your page's CSS. Martin Grigorov Wicket Tra

Re: Add Background image to Modal Window

2014-09-29 Thread Martin Grigorov
Hi, modalWindow.setCssClassName("myModal"); in some #renderHead(IHeaderResponse) in your page do: response.render(CssHeaderItem.forCss(".myModal {background-image: 'the/path/to/the/image.png'} ")) Martin Grigorov Wicket Training and Consulting https://twitter.

Wicket Bootstrap 0.9.6 is released

2014-09-29 Thread Martin Grigorov
Hi, Wicket Bootstrap 0.9.6 has been released and soon will be available at Maven Central. We've added some new components: - Ladda buttons - http://msurguy.github.io/ladda-bootstrap/ - X-Editable behavior - http://vitalets.github.io/x-editable/ - Twitter Typeahead v 0.10 - https://twitter.github.

Re: List editor

2014-09-29 Thread Martin Grigorov
Hi, I am not aware of a newer article on this topic. - ListItem - use the one from the article - getModelObject() - getDefaultModelObject() Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Sep 29, 2014 at 3:59 PM, Andreas Lundblad < andreas.lu

Re: Add Background image to Modal Window

2014-09-29 Thread Martin Grigorov
Hi, Open the browser Dev Tools and play with the CSS rules until you make it as you wish. Then put the working CSS rules in your code. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Sep 29, 2014 at 4:24 PM, Ajayi Yinka wrote: > Thanks Martin, > >

Re: DateTimeRangePicker

2014-09-30 Thread Martin Grigorov
Hi, I haven't seen such JavaScript widget so far. Do you know one ? If it supports Bootstrap (getbootstrap.com) then I'll be glad to add integration for it to https://github.com/l0rdn1kk0n/wicket-bootstrap Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov O

Re: FormValidators and messages property file

2014-09-30 Thread Martin Grigorov
/resource/loader Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Sep 30, 2014 at 9:36 PM, msalman wrote: > Hi, > > I have created form validator classes as shown below. The problem is that > the code is not picking up messages from the c

Re: how to connect elements - label and input (checkbox)

2014-10-01 Thread Martin Grigorov
Hi, Please attach a quickstart that reproduce this in a ticket in JIRA. Thanks! Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Oct 1, 2014 at 6:49 AM, miguel wrote: > wow this is the strangest thing. i searched for the same thing a year later > (

Re: unable to find property UploadProgressBar.starting

2014-10-01 Thread Martin Grigorov
s/src/main/java/org/apache/wicket/extensions/Initializer.properties Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Oct 1, 2014 at 5:10 PM, Garret Wilson wrote: > Friends, > > I have a Wicket page using the upload progress bar: > > [

Re: unable to find property UploadProgressBar.starting

2014-10-01 Thread Martin Grigorov
, java.lang.String) and set condition on the "key" parameter to be equal to the missing resource key. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Oct 1, 2014 at 5:55 PM, Andrew Geery wrote: > As a sanity check, is the property file with

Re: unable to find property UploadProgressBar.starting

2014-10-01 Thread Martin Grigorov
icket's side, is it really a good practice to stick some > file in the root directory of a JAR, outside of any package, with a name > you expect to be identical across JARs but with different contents? I > naively would imagine that some better approach exists. > > Garret >

Re: FormValidators and messages property file

2014-10-01 Thread Martin Grigorov
it fails. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Oct 1, 2014 at 7:04 PM, msalman wrote: > Hi Martin, > > Thanks for your help. That worked but I had to do a few extra things such > as setting the values for '${label0}', etc

Re: unable to find property UploadProgressBar.starting

2014-10-01 Thread Martin Grigorov
On Wed, Oct 1, 2014 at 9:49 PM, Garret Wilson wrote: > On 10/1/2014 3:31 PM, Martin Grigorov wrote: > >> Apache Isis uses >> http://simplericity.org/jetty-console/jetty-console-maven-plugin/ to >> generate an executable .jar that contains all dependencies in WEB-I

Re: FormValidators and messages property file

2014-10-02 Thread Martin Grigorov
if (fromDate != null && toDate != null && fromDate.after(toDate)) { form.error(getClass().getSimpleName() + "." + "fromDateAfterToDate"); } }

Re: unable to find property UploadProgressBar.starting

2014-10-02 Thread Martin Grigorov
https://issues.apache.org/jira/browse/WICKET-5713 Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Oct 1, 2014 at 11:11 PM, Garret Wilson wrote: > On 10/1/2014 5:17 PM, Martin Grigorov wrote: > >> ... >> Are you aware of JDK APIs (e.

Re: Add extra debug information to component markup

2014-10-02 Thread Martin Grigorov
Hi, You can use Behavior#onComponentTag(). And IComponentInstantiationListenener to add this behavior to all/some components. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Oct 2, 2014 at 12:35 PM, Daniel Stoch wrote: > Hi, > > I want to add ex

Re: DateTimeRangePicker

2014-10-02 Thread Martin Grigorov
support both 'range' and 'time' select functionality in one Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Oct 2, 2014 at 2:28 PM, manoj kumar wrote: > Thanks for your reply Martin Grigorov-4. > > but i am unable to find a

Re: Mapping two UI componets to Single Model

2014-10-02 Thread Martin Grigorov
Yes! Sure you can! Give us more information what you want to do and we will give you more information how to do it! Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Oct 2, 2014 at 2:21 PM, manoj kumar wrote: > Can i Map a Two UI Components to a Sin

Re: byte[] from SharedResourceReference

2014-10-06 Thread Martin Grigorov
Hi, Yes. See ByteArrayResource Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Oct 7, 2014 at 8:09 AM, Stefan Lorenz wrote: > Hi, > > is it possible to get a byte[] from a SharedResourceReference or IResource? > > Thx and regards > Stefan >

Re: Websocket message from Spring bean

2014-10-07 Thread Martin Grigorov
Hi, I think it should work. What kind of problems do you face ? Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Oct 3, 2014 at 4:55 PM, Maxim Solodovnik wrote: > Hello All, > > I wonder is it possible to send IWebSocketPushMessage from Spring

Re: Could not clear select2Choice component model value.

2014-10-07 Thread Martin Grigorov
Hi, You should call formComponent.clearInput() too. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Oct 7, 2014 at 9:13 AM, MadasamySankarapandian < madas...@mcruncher.com> wrote: > > This is regarding wicket-select2 project. I could not find

Re: How to get this URL pattern working in newer versions of Wicket?

2014-10-07 Thread Martin Grigorov
Hi, On Mon, Oct 6, 2014 at 6:31 AM, Steve Swinsburg wrote: > Hi all, > > I've been working on Wicket 1.4 for a while and in upgrading to Wicket 6 > I've found an inconsistency in the way URLs are handled, specifically in > the inmethod data grid but also the editable data grid. > > I have a part

Re: Websocket message from Spring bean

2014-10-07 Thread Martin Grigorov
rName"); WebSocketSettings wsSettings = WebSocketSettings.Holder.get(app); IWebSocketConnectionRegistry registry = wsSettings.getConnectionRegistry(); WebSocketPushBroadcaster broadcaster = new WebSocketPushBroadcaster(registry); broadcaster.... Martin Grigorov Wicket Training and Consul

Re: Lost in Queueing 7.0.0M3

2014-10-07 Thread Martin Grigorov
Hi, Please create a proper quickstart application with this code and attach it to a ticket in JIRA. Thanks! Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Oct 7, 2014 at 3:43 PM, Aurèl wrote: > Hi,I'm trying to migrate my Webapp from 6.x to 7.x w

Re: How to get this URL pattern working in newer versions of Wicket?

2014-10-07 Thread Martin Grigorov
what exactly breaks. Fire the debugger and let us know when you have more information. > > cheers, > Steve > > On Tue, Oct 7, 2014 at 8:06 PM, Martin Grigorov > wrote: > > > Hi, > > > > On Mon, Oct 6, 2014 at 6:31 AM, Steve Swinsburg < > steve.swinsb...

Re: disabling IndicatingAjaxButton during submision?

2014-10-09 Thread Martin Grigorov
/main/java/de/agilecoders/wicket/extensions/markup/html/bootstrap/ladda/LaddaAjaxCallListener.java#L15-L16 i.e. in onBeforeSend() do whatever your button needs to make itself disabled. In onComplete() revert it. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu,

Re: disabling IndicatingAjaxButton during submision?

2014-10-10 Thread Martin Grigorov
to meet. We're > going to have to go with just IndicatingAjaxButton and leave it at that. > Hopefully we can come back and address this in a future version of our > project. > > I'm just explaining our situation as it is. Nothing personal directed to > anyone, and I

Re: Returning some default markup when rendering of a component (subtree) fails with a RuntimeException ?

2014-10-10 Thread Martin Grigorov
ws an exception. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Oct 10, 2014 at 12:59 PM, Ernesto Reinaldo Barreiro < reier...@gmail.com> wrote: > Hi, > > On Fri, Oct 10, 2014 at 11:50 AM, Tobias Gierke < > tobias.gie...@voipfuture.com>

Re: [7.0.0-SNAPSHOT] WebSocketResponse#sendError throws UnsupportedOperationException

2014-10-10 Thread Martin Grigorov
RequestHandler and return something that your client side logic should process as an error. Or maybe WebSocketResponse.sendError() can write this for you: {"type": "error", "code": 456, "message": "optional"} ? But again it is up to your client side

Re: [7.0.0-SNAPSHOT] WebSocketResponse#sendError throws UnsupportedOperationException

2014-10-10 Thread Martin Grigorov
and Wicket neither logs it nor sends any feedback back to the browser ... > > Checking that target IS-A WebSocketRequestHandler will be probably very > useful in a near future! :) > > Best regards, > Sebastien. > > > On Fri, Oct 10, 2014 at 5:21 PM, Martin Grigorov >

Re: DataView, OrderByBorder, CheckGroup

2014-10-13 Thread Martin Grigorov
Hi, On Mon, Oct 13, 2014 at 2:59 AM, Colin Rogers < colin.rog...@objectconsulting.com.au> wrote: > Wicketeers, > > I don't know if this is a bug, bad coding on my behalf or incompatible > components or what not. It's only a minor thing, but I thought it worth > raising (as usually, I end up learn

Re: Could not clear select2Choice component model value.

2014-10-13 Thread Martin Grigorov
Maxim, Feel free to fork it! I.e. move it to WicketStuff. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Oct 9, 2014 at 8:53 PM, Maxim Solodovnik wrote: > Additionally select2 seems to need to be forked to wicketstuff to be fixed, > should I d

Re: Returning some default markup when rendering of a component (subtree) fails with a RuntimeException ?

2014-10-13 Thread Martin Grigorov
https://issues.apache.org/jira/browse/WICKET-4321 this is the ticker I meant it suggests to restart the rendering completely for the whole page and this is not enough I'll see what kind of changes would be needed to accomplish this. Martin Grigorov Wicket Training and Consulting

Re: Returning some default markup when rendering of a component (subtree) fails with a RuntimeException ?

2014-10-13 Thread Martin Grigorov
so trivial. The failure may happen in the middle of the rendering and the content collected so far in RequestCycle#getResponse() could be invalid HTML. Appending anything (loaded from a file or generated on the fly) is not really a solution. > > On Mon, Oct 13, 2014 at 4:02 PM, Mart

Re: Returning some default markup when rendering of a component (subtree) fails with a RuntimeException ?

2014-10-13 Thread Martin Grigorov
esult"; } } }); Something like this should do it. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Oct 13, 2014 at 5:39 PM, Ernesto Reinaldo Barreiro < reier...@gmail.com> wrote: > I see... you may have already streamed content --> Maybe same interface > s

Re: Returning some default markup when rendering of a component (subtree) fails with a RuntimeException ?

2014-10-14 Thread Martin Grigorov
Hi, Here is a demo app with Wicket 6.x: https://github.com/martin-g/component-rendering-default Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Oct 13, 2014 at 6:13 PM, Martin Grigorov wrote: > Here is a possible solution *now*: > > portletLik

Re: ModalWindow - full screen

2014-10-14 Thread Martin Grigorov
you can define CSS rules to show any element having this custom CSS class as fullscreen. I am not CSS master but I guess you have to play with "position", "top", "left". "width" and "height" properties. Martin Grigorov Wicket Training and Consult

Re: Returning some default markup when rendering of a component (subtree) fails with a RuntimeException ?

2014-10-14 Thread Martin Grigorov
Hi Ernesto, I didn't get the question. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Oct 14, 2014 at 1:10 PM, Ernesto Reinaldo Barreiro < reier...@gmail.com> wrote: > Thanks! Whose PortletLike on > > https://github.com/martin-g

Re: Returning some default markup when rendering of a component (subtree) fails with a RuntimeException ?

2014-10-14 Thread Martin Grigorov
st to have the behavior. This is just a simple demo. I'd like some feedback from a real usage before even thinking about adding this to core. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Oct 14, 2014 at 1:24 PM, Ernesto Reinaldo Barreiro < reier..

Re: Returning some default markup when rendering of a component (subtree) fails with a RuntimeException ?

2014-10-14 Thread Martin Grigorov
spond(WebPageRenderer.java:281) This is even before starting rendering the page itself. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Oct 14, 2014 at 2:50 PM, Tobias Gierke wrote: > Sorry for the noise, I should've read your e-mail more thorougly :( > &

Re: Returning some default markup when rendering of a component (subtree) fails with a RuntimeException ?

2014-10-14 Thread Martin Grigorov
I changes would mean that the change will be applied only in 7.x branch! Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Oct 14, 2014 at 3:27 PM, Tobias Gierke wrote: > Hi, > > I've just come to the same conclusion. And I don't really li

Re: WICKET-5727: PageAccessSynchronizer$PageLock.waitForRelease problem with opening pdf files

2014-10-14 Thread Martin Grigorov
Hi, On Tue, Oct 14, 2014 at 3:36 PM, Marieke Vandamme wrote: > Hi, > > On this jira issue we got some directions on how to solve our problems, > but some things aren't clear yet. > *"then use a AjaxTimerBehavior to monitor progress, and redirect to a > ResourceReference once the thread is done."

Re: DataView, OrderByBorder, CheckGroup

2014-10-15 Thread Martin Grigorov
ion it - thanks for the info :) > > Cheers, > Col. > > -Original Message- > From: Martin Grigorov [mailto:mgrigo...@apache.org] > Sent: Monday, 13 October 2014 6:01 PM > To: users@wicket.apache.org > Subject: Re: DataView, OrderByBorder, CheckGroup > > Hi, > > On Mo

Re: Is this possible?

2014-10-16 Thread Martin Grigorov
Hi, I'd recommend you to use JS for something like this. See http://wicketinaction.com/2008/10/repainting-only-newly-created-repeater-items-via-ajax/ . Additionally I'd recommend to use event delegation, i.e. one change listener on the dataview that handles 'change' fo

Re: Exceptional upgrade experience 6.14.0 -> 6.17.0

2014-10-16 Thread Martin Grigorov
I don't believe you ! Especially with OSGi involved ! :) I hope the experience will be similar when upgrading to Wicket 7.x following our most detailed to date migration guide <https://cwiki.apache.org/confluence/display/WICKET/Migration+to+Wicket+7.0> . Martin Grigorov Wicket T

Re: Adding custom string resource bundle

2014-10-17 Thread Martin Grigorov
Hi, Try with properties.xml as extension. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Oct 17, 2014 at 11:11 AM, Maxim Solodovnik wrote: > Hello All, > > I'm currently migration huge 1.4.x project to 6.17.0 and have question > ab

Re: Adding custom string resource bundle

2014-10-17 Thread Martin Grigorov
On Fri, Oct 17, 2014 at 11:11 AM, Maxim Solodovnik wrote: > Hello All, > > I'm currently migration huge 1.4.x project to 6.17.0 and have question > about custom string bundle > > CommonWebApplication.java > CommonWebApplication.xml > CommonWebApplication_de.xml > > class CommonWebApplication exte

Wicket Bootstrap 0.9.7 is released

2014-10-17 Thread Martin Grigorov
Hi, Wicket Bootstrap 0.9.7 has been released and soon will be available at Maven Central. New features: - three state checkbox based on https://github.com/kartik-v/bootstrap-checkbox-x/ - automatic detection of IE6-8 and contribution of html5shiv.js and respond.js - Integration with https://githu

Re: Handling page refresh or redirect when the server reboots

2014-10-20 Thread Martin Grigorov
Hi, HttpXmlRequest is asynchronous by default. It is not finished by the time you return from your function. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Oct 21, 2014 at 8:37 AM, msalman wrote: > Sebastian, thanks for your response and i

Re: Could not clear select2Choice component model value.

2014-10-20 Thread Martin Grigorov
Hi Maxim, Please prepare a quickstart at GitHub and I'll take a look. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Oct 17, 2014 at 5:42 PM, Maxim Solodovnik wrote: > Martin, > > I have forked select2, unfortunately I'm still not

Re: ModalWindow - full screen

2014-10-21 Thread Martin Grigorov
Hi, I see two ways to do it then: 1) ModalWindow#setMarkupId("myFullscreenId"); $("#myFullscreenId") 2) $(".OWN_CLASS_NAME").closest("div) both gives you a reference to the div.modal-window. >From there on you can manipulate it to make it fullscreen.

Re: Lock timeout per page class

2014-10-21 Thread Martin Grigorov
Hi Guillaume, You can use org.apache.wicket.request.cycle.PageRequestHandlerTracker#getFirstHandler() to check what is the requested page in your own org.apache.wicket.settings.def.RequestCycleSettings#getTimeout Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On

Re: org.apache.wicket.util.upload.FileUploadBase#fileSizeMax

2014-10-21 Thread Martin Grigorov
Hi, It is not clear to me what you want to accomplish. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Oct 21, 2014 at 4:39 PM, Roman Grigoriadi < roman.grigori...@gmail.com> wrote: > Hi Wicket users, > > I am trying to check size of a s

Re: org.apache.wicket.util.upload.FileUploadBase#fileSizeMax

2014-10-22 Thread Martin Grigorov
container you use. 1. https://issues.apache.org/jira/browse/WICKET-3525 Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Oct 22, 2014 at 7:59 AM, Roman Grigoriadi < roman.grigori...@gmail.com> wrote: > I am trying to check size of each of uploaded fi

Re: Lock timeout per page class

2014-10-22 Thread Martin Grigorov
Hi, You are right! On Tue, Oct 21, 2014 at 11:11 PM, Guillaume Smet wrote: > Hi Martin, > > On Tue, Oct 21, 2014 at 1:19 PM, Martin Grigorov > wrote: > > You can > > use > org.apache.wicket.request.cycle.PageRequestHandlerTracker#getFirstHandler() > > to ch

Re: org.apache.wicket.util.upload.FileUploadBase#fileSizeMax

2014-10-22 Thread Martin Grigorov
icket/blob/master/wicket-core/src/main/java/org/apache/wicket/protocol/http/servlet/MultipartServletWebRequestImpl.java#L164 Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Oct 22, 2014 at 11:19 AM, Roman Grigoriadi < roman.grigori...@gmail.com> wrote:

Re: create and triigger custom js event on element

2014-10-22 Thread Martin Grigorov
: item.setOutputMarkupId(true). Make sure the HTML element for 'item' has a unique id and there is Wicket.Ajax.ajax({c: sameId, ...}) in the page content. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Oct 22, 2014 at 11:27 AM, Maxim Solodovnik wrote: > Hello

Re: create and triigger custom js event on element

2014-10-22 Thread Martin Grigorov
jquery.com/on/ that they use "keydown.myPlugin" as an example. So far there were no complains about this and I suggest to leave this as is in 6.x and 7.x, and remove the lower-casing in 8.x. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Oct

Re: create and triigger custom js event on element

2014-10-22 Thread Martin Grigorov
Yes, I guess. Just FYI: there is a standard 'dblclick' event too. I'm not sure why you needed a custom one. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Oct 22, 2014 at 11:56 AM, Maxim Solodovnik wrote: > I believe this is because

Re: org.apache.wicket.util.upload.FileUploadBase#fileSizeMax

2014-10-22 Thread Martin Grigorov
some more custom settings What do you think ? Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Oct 22, 2014 at 1:12 PM, Roman Grigoriadi < roman.grigori...@gmail.com> wrote: > Martin, sorry, but "maxSize" is not the "maxFileSize" (

Re: org.apache.wicket.util.upload.FileUploadBase#fileSizeMax

2014-10-22 Thread Martin Grigorov
I was suggesting to do both of them. Please file a ticket in JIRA and I'll implement it. Or attach a patch/send a pull request if you have the time :-) Thanks! Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Oct 22, 2014 at 3:08 PM, Roman Grigo

Re: EditablePropertyColumn and a callback to save

2014-10-23 Thread Martin Grigorov
Right! You have to override https://github.com/wicketstuff/core/blob/master/jdk-1.7-parent/inmethod-grid-parent/inmethod-grid/src/main/java/com/inmethod/grid/column/editable/EditablePropertyColumn.java#L107 and attach such ajax behavior to the textfield on 'change' Martin Grigo

Re: IndicatorAware and BookmarkablePageLink

2014-10-23 Thread Martin Grigorov
Hi, BookmarkablePageLink unloads the current page and loads a new page. As soon as the current page is unloaded the "busy" indicator stops working. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Oct 23, 2014 at 8:46 PM, msalman wrote: > H

Re: Page Parameters logging

2014-10-23 Thread Martin Grigorov
Hi, Maybe you want to encrypt the value of this special parameter ?! It will be a never ending story to patch all places where this parameter may leak. See CryptoMapper for inspiration how to encrypt and decrypt strings. Martin Grigorov Wicket Training and Consulting https://twitter.com

Re: Lock timeout per page class

2014-10-24 Thread Martin Grigorov
lassName map in the Session. Then when PageAccessSynchronizer is requested to lock a page by id use that id to resolve the class name and to decide what timeout to use. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Oct 23, 2014 at 5:44 PM, Guillaume Sme

Re: Lock timeout per page class

2014-10-24 Thread Martin Grigorov
If you have a base page then BasePage#onInitialize() should be a good place. Or you could add the pageIds of the special/slow pages only in the map. Otherwise you may use PageRequestHandlerTracker#getLastHandler in a custom IRequestCycleListener#onDetach(). Martin Grigorov Wicket Training and

Re: KeyInSessionSunJceCryptFactory doesn't work in Wicket 6.0

2014-10-24 Thread Martin Grigorov
Hi, It has been fixed with https://issues.apache.org/jira/browse/WICKET-5326. Will be released with 6.18.0. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Oct 24, 2014 at 2:37 PM, tomask79 wrote: > Hi guys, > > in order to protect our portal be

Re: KeyInSessionSunJceCryptFactory doesn't work in Wicket 6.0

2014-10-24 Thread Martin Grigorov
I'll ask our release manager to cut 6.18 next Friday. If the testing passes then it will be released around Nov 5. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Oct 24, 2014 at 3:21 PM, tomask79 wrote: > Thanks a lot Martin for quick reply. &g

Re: Wicket error page runs twice

2014-10-24 Thread Martin Grigorov
Hi, It seems like the error page is being rendered after a redirect. That's why the request cycle is empty, because it is a new one. On Oct 25, 2014 1:42 AM, "Entropy" wrote: > I have a requirement that when certain kinds of exceptions are thrown, I > want > to customize my exception error page.

Re: jquery DataTable + wicket Cannot bind a listener

2014-10-26 Thread Martin Grigorov
Hi, Try with Ajax loading of the new pages. I am not sure how DataTables removes and re-adds the rows later. It should use jQuery's clone(true, true) to preserve the event bindings. Ask in their forums. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Sun

Re: Wicket error page runs twice

2014-10-27 Thread Martin Grigorov
On Mon, Oct 27, 2014 at 1:26 PM, Entropy wrote: > The exception occurred within an AjaxButton. In this case, a service was > not > responding, we want to show our error page, and put a custom message up > indicating that it is a service problem, call the help line or try again > later blah blah

Re: Wicket error page runs twice

2014-10-27 Thread Martin Grigorov
http://central.maven.org/maven2/org/apache/wicket/wicket-core/6.12.0/wicket-core-6.12.0-sources.jar Hint: org.apache.wicket.settings.IRequestCycleSettings.RenderStrategy Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Oct 27, 2014 at 2:20 PM, Entropy wrote

Re: Wicket error page runs twice

2014-10-27 Thread Martin Grigorov
On Mon, Oct 27, 2014 at 2:35 PM, Entropy wrote: > Okay, I found this, the first request URL and query string are: > > > /EquitableSharing/?19-1.IBehaviorListener.1-share-form-toolContainer-declineSharingButton > > The second is: > > > /EquitableSharing/wicket/bookmarkable/gov.usdoj.afms.esp.appli

Re: Lock timeout per page class

2014-10-28 Thread Martin Grigorov
Hi, I share Sebastien's concern. I'll see how to workaround this. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Sat, Oct 25, 2014 at 2:57 PM, Sebastien wrote: > Hi Guillaume, > > Generally speaking, you cannot call a non final method f

Re: jquery DataTable + wicket Cannot bind a listener

2014-10-28 Thread Martin Grigorov
" for events only on specific children, e.g. 'tr', 'td', 'td div', etc. This is more lightweight than using Wicket's built-in AjaxLink, but it is also a bit more complex for you as an application developer. Good luck! Martin Grigorov Wicket Training and

Re: Lock timeout per page class

2014-10-28 Thread Martin Grigorov
Here is my version: http://pastie.org/9680245 Please create a ticket in JIRA if you like it. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Oct 28, 2014 at 9:52 AM, Martin Grigorov wrote: > Hi, > > I share Sebastien's concern. > I'll

Re: [7.0.0-SNAPSHOT] WebSocketResponse#sendError throws UnsupportedOperationException

2014-10-28 Thread Martin Grigorov
Hi Sebastien, I've improved it with https://issues.apache.org/jira/browse/WICKET-5737 Please let me know if you see more improvements. Thanks ! Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Oct 23, 2014 at 8:08 PM, Sebastien wrote: > Hi Marti

Re: jquery DataTable + wicket Cannot bind a listener

2014-10-28 Thread Martin Grigorov
But I don't see it as a project at https://github.com/reiern70/antilia-bits } > }); > > > Thanks, Jason > > > On 10/28/14, 1:10 AM, Martin Grigorov wrote: > >> Hi, >> >> You should read about JavaScript event delegation. This is wh

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