Using twice wicket:message in element

2008-04-06 Thread Martin Grigorov
Hi, I want to internationalize both 'alt' and 'title' attributes of element: But Wicket complains with that: Caused by: java.text.ParseException: Same attribute found twice: wicket:message at org.apache.wicket.markup.parser.XmlPullParser.parseTagText(XmlPullParser.java:637) at

Re: Using twice wicket:message in element

2008-04-06 Thread Martin Grigorov
gt; > cant remember if its a comma or semicolon though... > > -igor > > On Sun, Apr 6, 2008 at 4:19 AM, Martin Grigorov > <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I want to internationalize both 'alt' and 'title' attributes of &

Re: Promotion

2008-04-06 Thread Martin Grigorov
Congrats Cristi, I like the styling of the "sign in" modal window! Really cool (self-documenting) ids ;-) On Sun, 2008-04-06 at 21:03 +0300, Cristi Manole wrote: > Hi, > > Please excuse me for taking 2 minutes of your time, but I would like to > promote a website developed with Wicket: www.sss

Re: How to pass an arbitrary javascript variable to onSubmit?

2008-04-13 Thread Martin Grigorov
See https://issues.apache.org/jira/browse/WICKET-1379 On Fri, 2008-04-11 at 09:32 -0400, Jeremy Levy wrote: > Check out IAjaxCallDecorator getAjaxCallDecorator(). > > Jeremy > > On Fri, Apr 11, 2008 at 4:42 AM, Vitaly Tsaplin <[EMAIL PROTECTED]> > wrote: > > > I am doing it exactly like this.

Re: clarification on page versioning

2008-04-19 Thread Martin Grigorov
Probably you should move this code in onBeforeRender() (and use addOrReplace(). This way every time you'll have the right panel. On Sat, 2008-04-19 at 07:28 -0700, Doug Donohoe wrote: > I have a page which displays a [login box] (if not logged in) or an info box > [user name|logout link] if logged

StatelessForm + UrlCompressingWebRequestProcessor

2008-04-24 Thread Martin Grigorov
Hi, My application uses UrlCompressingWebRequestProcessor. After changing the Form in my LoginPage to StatelessForm the following exception occurred: ERROR - RequestCycle - For input string: "loginForm" java.lang.NumberFormatException: For input string: "loginForm" at java.l

Re: StatelessForm + UrlCompressingWebRequestProcessor

2008-04-24 Thread Martin Grigorov
if there isnt already one, there are some but dont > know for this specific case) > > please add a sample. > > > On Thu, Apr 24, 2008 at 10:20 AM, Martin Grigorov > <[EMAIL PROTECTED]> wrote: > Hi, > > My application uses UrlCompressingW

Re: Gzipping of pages (HTML output, not only resources)

2008-04-24 Thread Martin Grigorov
in MyApplication.java: @Override public WebResponse newWebResponse(final HttpServletResponse httpResponse) { return (getRequestCycleSettings().getBufferResponse() ? new BufferedCompressingWebResponse(httpResponse)

Re: [Inmethod-grid] column resize event?

2008-04-29 Thread Martin Grigorov
see com.inmethod.grid.common.AbstractGrid.onColumnStateChanged() On Tue, 2008-04-29 at 12:24 -0700, ChuckDeal wrote: > Would it be possible to get a column resize event added? > > I am attempting to use a Dojo Combobox as the editable cell content. The > grid has a css style defined for edited c

RE: AJAX fails with error failure code 0x80040111

2008-05-01 Thread Martin Grigorov
This happens when you have debugger suspending this thread (in this case Thread[btpool0-1,5,main]). About the Ajax problem: http://radio.javaranch.com/pascarello/2006/02/07/1139345471027.html This is the very first result returned by Google (out of ~1300). Next time just search the archives.. O

RE: ajax progress indicator

2008-05-02 Thread Martin Grigorov
It depends what you want to achieve. For simple things just use IndicatingAjaxButton/Link from wicket-extensions. On Fri, 2008-05-02 at 13:09 +, i ii wrote: > much work for simple feature, no? > > > Date: Fri, 2 May 2008 15:46:04 +0300 > > From: [EMAIL PROTECTED] > > To: users@wicket.apache.o

Re: How to lookup Page or Class from a URI path ?

2008-05-03 Thread Martin Grigorov
http://wicketstuff.org/wicket13/niceurl/the/homepage/path Browse the source code of NiceUrlApplication.java to see how to use mounts On Sat, 2008-05-03 at 18:35 +0200, Johan Compagner wrote: > Use mounts > > On 5/2/08, Chris Lintz <[EMAIL PROTECTED]> wrote: > > > > Hi, > > Any one know how I can

Re: Open new window or tab with setResponsePage

2008-05-06 Thread Martin Grigorov
use Link with PopupSettings I think there is an example for this in wicket-examples On Tue, 2008-05-06 at 03:11 -0700, AlexTM wrote: > Is it possilble to use setResponsePage to redirect to a new window or tab in > the browser? > > Regards > Alex ---

Re: Regarding Print page function?

2008-05-07 Thread Martin Grigorov
Edi, On Wed, 2008-05-07 at 01:18 -0700, Edi wrote: > no. how can i use this html validator for that print? please tell me. > > thanks > regards, > edi > > > Martin Makundi wrote: > > > > Hi... have you validated your page using a HTML validator? > > > > ** > > Martin > > > > 2008/5/6 Edi <[

Re: How to detect model changes in form submission

2008-06-14 Thread Martin Grigorov
On Sat, 2008-06-14 at 09:52 -0400, Michael Allan wrote: > > Is there an easy way to detect what model objects have changed as a result > > of > > a form submission? I see that wicket compares the old values to the > > submitted values but where can I hook into tthat change detection? I have a > >

Re: Passing data to Modal Window

2008-06-14 Thread Martin Grigorov
On Sat, 2008-06-14 at 18:08 -0300, Manuel Corrales wrote: > Hi, i have a table with one ajax link per line. When i click the link, an > Modal Window is opened. Now, i want that modal window to show some info, > just that. How can i "pass" information to this modal window? This > information will de

Re: Disable loading remote DTD

2008-01-29 Thread Martin Grigorov
Check http://java.sun.com/javase/6/docs/api/org/xml/sax/EntityResolver.html On Tue, 2008-01-29 at 21:01 +0800, Boon Aik Chew wrote: > Little bit off topic, how do I disable transformer from loading remote > DTD to do validation? > > > DOMSource domSource = new DOMSource(doc); > StreamResult st

Re: Including dynamic JSP content in Wicket page

2008-02-12 Thread Martin Grigorov
Can you attach with debugger to see what is in the Session actually? Because if you set the User object via Wicket's Session then it prepends a prefix to the key of all objects in the session. See o.a.w.protocol.http.WebApplication.getSessionAttributePrefix(WebRequest) On Tue, 2008-02-12 at 02:2

Decorating Ajax(Fallback)Link

2008-02-26 Thread Martin Grigorov
Hi, I want to decorate AjaxLink with custom JavaScript: @Override protected IAjaxCallDecorator getAjaxCallDecorator() { return new AjaxCallDecorator() { @Override public CharSequence decorateScript(final CharSequence

Re: Decorating Ajax(Fallback)Link

2008-02-27 Thread Martin Grigorov
can use an early exit instead > > if (!confirm('foo')) return; > > -igor > > > On Tue, Feb 26, 2008 at 9:20 AM, Martin Grigorov > <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I want to decorate AjaxLink with custom JavaScript: > > > >

Re: css menu and wicket

2008-03-15 Thread Martin Grigorov
See https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-suckerfish On Fri, 2008-03-14 at 16:17 -0700, Mathias P.W Nilsson wrote: > Hi! > > I have troubles creating a css menu with wicket and css. > > I'm using the RepeatingView in Wicket for the UL, LI list. But the U

Re: [vote] Release 1.4 with only generics and stop support for 1.3

2008-03-17 Thread Martin Grigorov
[X] +1, Wicket 1.4 is 1.3 + generics, drop support for 1.3 Martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Is it possible to auto discover images in ?

2008-03-17 Thread Martin Grigorov
Wrap them all in . On Tue, 2008-03-18 at 04:22 +0800, smallufo wrote: > I have a lot of images bound to some component under the same directory. > Images and htmls are located at the same directory in classes/ , > It's necessary to assign wicket:id for each tag. > It is tedious and error-prone ,

Re: Panel switching and back button

2008-06-26 Thread Martin Grigorov
We use ReallySimpleHistory (http://code.google.com/p/reallysimplehistory/) for this. Every AjaxLink (or component+AjaxEventBehavior) records the url of the current page + some indicator in the hash path (e.g. '../blah/page#someId') in rsh.js (via AjaxCallDecorator). Later when the user presses 'ba

Re: New browser window on RedirectRequestTarget(url)

2008-06-27 Thread Martin Grigorov
On Thu, 2008-06-26 at 23:02 -0400, Karen Schaper wrote: > Hello Again, > > I'm hoping there is a simple solution for this. I can't seem to find the > right place to look. > > Basically this line of code, I'd like to open a new browser window to > display it in. > >getRequestCycl

Re: TextField in IE and Opera

2008-07-04 Thread Martin Grigorov
On Thu, 2008-07-03 at 12:21 +0200, Alexander Landsnes Keül wrote: > I'm having a wee bit of a problem getting TextFields to cooperate in our > project. I'm baffled by the problem, because it's something that's been > working fine for months. > > > > The panel I'm working with is very a simple

Re: TreeGrid and DataGrid open source

2008-07-30 Thread Martin Grigorov
Examples : http://wicketstuff.org/grid-examples/ Source: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/inmethod-grid On Wed, 2008-07-30 at 18:26 -0700, TahitianGabriel wrote: > Hi Matej, > > The website (http://www.inmethod.com/) seems to be down. > I've got a tomcat welcom

Re: embedding Wicket into JSP

2008-08-12 Thread Martin Grigorov
On Tue, 2008-08-12 at 09:21 -0700, kgignatyev wrote: > Hi, > > I have problem embedding Wicket pages (1.3.4) into JSP application. > index.jsp > > > > and the cause is that inside WicketFilter > public String getRelativePath(HttpServletRequest request) returns empty > string because the reques

Re: I'm adding a new item to a ListView via ajax - how to get reference to the new item?

2008-08-17 Thread Martin Grigorov
On Sun, 2008-08-17 at 13:36 +0200, Wayne Pope wrote: > Hi, > > But how do I get that target? > > As the items are being rendered using a ListView - the only time I can get > access is during the populateItem - but thats a ListItem, I need a > AjexRequestTarget to append the javascript? > You cou

Re: Getting copy of html source

2008-08-21 Thread Martin Grigorov
See IResponseFilter. An example: AjaxServerAndClientTimeFilter. On Thu, 2008-08-21 at 16:14 +0200, [EMAIL PROTECTED] wrote: > Hi, > > Is there an easy way to retrieve a copy of the html that is send to the > browser as part of a response. I would like to be able to e.g. send the > source of requ

Re: Page serialisation

2008-08-21 Thread Martin Grigorov
On Thu, 2008-08-21 at 16:23 +0200, Matej Knopp wrote: > I was thinking about implementing it like this. > > But, it would make code that is already complicated even more > complicated. What's worst, it wouldn't work in clustered environment > where you need to send the page across cluster on every

Re: Fw: Exception when parsing a xml file, which doesn't follow properties.dtd

2008-08-23 Thread Martin Grigorov
Take a look at o.a.w.resource.PropertiesFactory#loadPropertiesFile(String, IResourceStream) and o.a.w.util.io.Streams#loadFromXml(Properties, InputStream) At first sign I didn't find a way to do what you need. On Sat, 2008-08-23 at 12:44 +0200, Liz Huber wrote: > Hi, > > > > does anyone know

Re: Add a javascript window to a Link when text input not saved

2008-09-05 Thread Martin Grigorov
Hi, you'll need some javascript to do this. your link (alink) will have to call some JS function which will check for changed inputs and if there is such input just call event.preventDefault() to prevent the request to the LinkPage.class On Wed, 2008-09-03 at 11:40 -0700, liza6218 wrote: > Hi, >

Re: How to trigger Ajax event from client side javascript?

2008-09-06 Thread Martin Grigorov
OnChangeAjaxBehavior applies only to AbstractTextComponent. Such components are: TextField and TextArea. HiddenField is not! You may try with a AjaxFormComponentUpdatingBehavior instead. changed.add(new AjaxFormComponentUpdatingBehavior("myevent") {...}); and in JavaScript: function change(){

Re: How to trigger Ajax event from client side javascript?

2008-09-06 Thread Martin Grigorov
Hi Timo, You are right! Looking closer at the code I see that it just makes some additional work for TextField and TextArea. Thanks! On Sat, 2008-09-06 at 21:37 +0300, Timo Rantalaiho wrote: > On Sat, 06 Sep 2008, Martin Grigorov wrote: > > OnChangeAjaxBehavior applie

Re: hi, question about wicket maven project

2008-09-17 Thread Martin Grigorov
The easiest approach is to use Wicket's quickstart and start Start.java in debug mode in your favorite IDE. With "hot code replace" and DEVELOPMENT mode you will have all your changes in .java and resources files reloaded automatically. Other options are: 1. use Jetty's Maven plugin (mvn jetty:run

Re: How to get rid of wicket:id in XML output

2008-10-02 Thread Martin Grigorov
On Thu, 2008-10-02 at 09:35 -0700, Jonathan Locke wrote: > > btw, shouldn't we fail init if super isn't called in this case like those > other protections we built in? +1 > > Martijn Dashorst wrote: > > > > Why mocking with that setter. Put wicket in deployment mode. That way > > you can't mess

Re: using Prototype.js and Scriptaculous with latest version of wicket

2008-10-03 Thread Martin Grigorov
Wicket is (mostly) server-side web framework so it is no problem to mix it with any client-side JS library. Get inspired by: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-scriptaculous On Thu, 2008-10-02 at 08:18 -0700, ilanfox wrote: > Hello, > > I am consideri

Re: How to get rid of wicket:id in XML output

2008-10-04 Thread Martin Grigorov
https://issues.apache.org/jira/browse/WICKET-1859 On Fri, 2008-10-03 at 09:22 -0700, Igor Vaynberg wrote: > jira issue > > -igor > > On Thu, Oct 2, 2008 at 11:45 PM, Martin Grigorov <[EMAIL PROTECTED]> wrote: > > > > On Thu, 2008-10-02 at 09:35 -0700, Jo

Re: Mount URL to another host?

2008-10-10 Thread Martin Grigorov
On Fri, 2008-10-10 at 09:51 -0700, Zach Cox wrote: > I feel dumb for even asking this, as there's got to be an easy way, but my > brain is blocked today... > > I need a URL on my site, say http://mysite.com/something to redirect to > another site entirely, say http://othersite.com. Is there some

Permissions to commit in wicket-stuff

2008-10-14 Thread Martin Grigorov
Hi, Could you give me perms to commit in wicketstuff-jquery(-examples) projects ? My SF account name is: martingrigorov Thanks martin-g - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

Re: inmethod / grid website?

2008-10-21 Thread Martin Grigorov
Jars: http://wicketstuff.org/maven/repository/com/inmethod/ Demo: http://wicketstuff.org/grid-examples/ Update your bookmarks. On Tue, 2008-10-21 at 11:53 +0200, Martin Voigt wrote: > Hi, > > this may be the wrong place to ask, but anyways. What happened to the > inmethod/ grid web site? > > h

Ajax back/forward button support

2008-10-26 Thread Martin Grigorov
Hi, I just committed a demo implementation of a basic support for back and forward buttons for Ajax requests. The code could be found at: impl: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-jquery/src/main/java/org/wicketstuff/jquery/ajaxbackbutton examples: cod

Re: [Wicketstuff jQuery] not compiling?

2008-10-28 Thread Martin Grigorov
I've changed it. Since r4284 wicketstuff-parent/pom.xml has this: 1.5 1.4-m3 1.5.2 target/velocity.log Where did you see 1.3.1 ? Martin On Tue, 2008-10-28 at 14:42 +0100, Nino Saturnino Martinez Vazquez Wael wrote: > H

Re: [Wicketstuff jQuery] not compiling?

2008-10-28 Thread Martin Grigorov
fresh that one, or even better make a new version > so it will not break with otherstuff using it? > > Martin Grigorov wrote: > > I've changed it. > > > > Since r4284 wicketstuff-parent/pom.xml has this: > > > > 1.5 > >

Re: [Wicketstuff jQuery] not compiling?

2008-10-28 Thread Martin Grigorov
10-29 at 00:43 +0200, Martin Grigorov wrote: > I've updated and build locally all projects that "extends" > wicketstuff-parent when I changed the dependency and everything was > fine. > > But ... the 1.3.x projects > (https://wicket-stuff.svn.sourceforge.net/svnr

Re: using wicket

2008-10-29 Thread Martin Grigorov
You could download it from Maven repos as any other artefact: http://repo1.maven.org/maven2/org/apache/wicket/wicket/1.4-m3/wicket-1.4-m3-javadoc.jar Since 1.4 is actually 1.3 + generics (and very few other changes) you could start with 1.4 and downgrade to 1.3 any time if you are concerned that y

Re: Disabling 'back'/'next' web browser button usage in application

2008-10-29 Thread Martin Grigorov
Hi Tomasz, Recently I integrated a JavaScript library with Wicket that could help you with this particular application. Take a look at the code and examples: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-jquery/src/main/java/org/wicketstuff/jquery/ajaxbackbutton

Re: Session timeout page

2008-10-29 Thread Martin Grigorov
Is this session expiration or page expiration ? I know it is a bit misleading but Wicket throws PageExpiredException when it doesn't find a particular version of the requested page in the page store. There could be different reasons why the page is not found but in my experience the most often ca

Re: Disabling 'back'/'next' web browser button usage in application

2008-10-29 Thread Martin Grigorov
/forward buttons, then you > will have a better application in the end -- one that the user's will > appreciate more. > > On Wed, Oct 29, 2008 at 6:12 AM, Martin Grigorov <[EMAIL PROTECTED]>wrote: > > > Hi Tomasz, > > > > Recently I integrated a JavaScript

Re: Hot deployment / Server restart

2008-10-30 Thread Martin Grigorov
Wicket doesn't control the lifecycle of the web container. There is something else that triggers the restart (maybe the IDE ?!). On Thu, 2008-10-30 at 01:46 -0700, geke wrote: > Hi, > > on every change in my HTML or Java file the tomcat 6.0 server restarts > completely, for example if I change th

Re: Javadoc for wicket 1.3.5 - how to include it in eclipse

2008-10-31 Thread Martin Grigorov
It has to be -DdownloadSources=true (with capital 'S'). Or eevn better put this in the pom.xml itself. If it still doesn't work by some reason then you could download it from Maven repos and tell Eclipse about it. There is no need to checkout the code just to generate the javadoc. Fri, 2008-10-

Re: wicket event /ajax/call/complete check if ajax response is a redirect to a new page

2014-01-21 Thread Martin Grigorov
Hi, Better use '/ajax/call/success'. There you have the 'data' parameter or even jqXHR.responseText. You can check for element and extract its content with regex. Yet another way is to use the response header: jqXHR.getResponseHeader('Ajax-Location'); Marti

Re: Understanding setPageExpiredErrorPage and onUnauthorizedInstantiation

2014-01-21 Thread Martin Grigorov
Hi, Check your impl of org.apache.wicket.authorization.IAuthorizationStrategy Somewhere in YourApp#init you must have getSecuritySettings().setAuthorizationStrategy(...) Martin Grigorov Wicket Training and Consulting On Wed, Jan 22, 2014 at 7:31 AM, jchappelle wrote: > I'm trying

Re: 10th aniversary of wicket

2014-01-22 Thread Martin Grigorov
On Wed, Jan 22, 2014 at 12:26 PM, Martin Funk wrote: > Btw. does anyone know which date might count for the birthdate? > > Jonathan wrote something like "in the spring of 2004" in Wicket in Action. > > I googled around a little bit, finding the initial first commit is kinda > hard, but I came up

[ANNOUNCE] WicketStuff 6.13.0 is released

2014-01-22 Thread Martin Grigorov
nation in javadoc of GMapStateless [gmap3] Added better explanation in javadoc of GMapStateless Martin Grigorov (5): Merge pull request #278 from lorentzg/master Merge pull request #280 from lorentzg/master Merge pull request #281 from paulbors/jGrowl-success Merge pu

Re: Are resource reference instances necessary to access a resource?

2014-01-22 Thread Martin Grigorov
es, you can load any .js file by specifying its full path. Wicket will use the parsed locale, style and variation to look up just one path in the file system. Martin Grigorov Wicket Training and Consulting On Wed, Jan 22, 2014 at 6:16 PM, tertioptus wrote: > I have a few JS files in a package,

Re: Understanding setPageExpiredErrorPage and onUnauthorizedInstantiation

2014-01-23 Thread Martin Grigorov
Hi, On Thu, Jan 23, 2014 at 6:42 AM, jchappelle wrote: > Martin, > > I noticed in one of your posts you point out the difference between session > expiration and page expiration. I have been thinking they are the same > thing > when they are obviously not. I'm looking to redirect when the sessio

Re: Error with getPageCount() when extending the Datatable in Wicket 6.13

2014-01-23 Thread Martin Grigorov
Hi, In your DataTable impl change the signature of #getPageCount() from int to long. Martin Grigorov Wicket Training and Consulting On Thu, Jan 23, 2014 at 10:20 AM, chathuraka.waas wrote: > Hi François, > > Thanks for the quick reply. I'm fairly new to wicket and didnt underst

Re: Error with getPageCount() when extending the Datatable in Wicket 6.13

2014-01-23 Thread Martin Grigorov
Right. The method is final - https://github.com/apache/wicket/blob/master/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/repeater/data/table/DataTable.java?source=c#L303 Show us the error please. Martin Grigorov Wicket Training and Consulting On Thu, Jan 23, 2014 at

Re: Error with getPageCount() when extending the Datatable in Wicket 6.13

2014-01-23 Thread Martin Grigorov
Check that wicket-extensions dependency is also 6.x. Martin Grigorov Wicket Training and Consulting On Thu, Jan 23, 2014 at 11:01 AM, chathuraka.waas wrote: > Hi, > > the compile time error netbeans gives me is > > getPageCount() in DataTable cannot implement getPageCount

Re: Wicket 6 - JavaScriptHeaderItem renders too early

2014-01-23 Thread Martin Grigorov
Hi, Read http://wicketinaction.com/2012/07/wicket-6-resource-management/ Martin Grigorov Wicket Training and Consulting On Thu, Jan 23, 2014 at 4:24 PM, Entropy wrote: > Hello, I am just converted to Wicket 6, and I have a line like this in one > component: > > res

Re: Cannot add InputHintFormBehavior to a form element

2014-01-24 Thread Martin Grigorov
Hi, Showing us the error would help. InputHintFormBehavior is not from Wicket distro. It is your own class, or from a third party library. Martin Grigorov Wicket Training and Consulting On Fri, Jan 24, 2014 at 10:12 AM, chathuraka.waas wrote: > Hi, > > i'm trying to migrate

Re: timing for Wicket 7?

2014-01-24 Thread Martin Grigorov
es we did. There are no other planned big changes for 7.x. I am working on markup driven component tree construction in a branch. We discuss it in dev@ but unless it is super stable and simple and approved by other devs it won't be added to 7.0.0. Martin Grigorov Wicket Training and Consultin

Re: how to implement AjaxPagingNavigator.newNavigation in wicket 6

2014-01-24 Thread Martin Grigorov
Hi, https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/ajax/markup/html/navigation/paging/AjaxPagingNavigator.java?source=cc#L124 It is not deprecated... Martin Grigorov Wicket Training and Consulting On Fri, Jan 24, 2014 at 11:01 AM, chathuraka.waas

Re: timing for Wicket 7?

2014-01-24 Thread Martin Grigorov
On Fri, Jan 24, 2014 at 2:30 PM, Martijn Dashorst < martijn.dasho...@gmail.com> wrote: > I'm hoping to finalise wicket 7 somewhere before the summer. But I can't > guarantee that. > > My reasoning: > - I expect Wicket 8 to be Java 8 based (lambda expressions and the new > date/time APIs would mak

Re: Wicket 6 - JavaScriptHeaderItem renders too early

2014-01-27 Thread Martin Grigorov
/ResourceManagementApplication.java#L102 Martin Grigorov Wicket Training and Consulting On Fri, Jan 24, 2014 at 11:08 PM, Entropy wrote: > I am still having this problem. The wicket:container solution leads me to > the following exception. Note that this exception is different than the > one > in th

Re: Custom search and filter a DataTable

2014-01-27 Thread Martin Grigorov
Hi, You can implement something like what FilterForm+FilterToolbar provide. All you need is a Form with a TextField inside. On form submission you have to use the textfield's model as a filter for the table's IDataProvider. Martin Grigorov Wicket Training and Consulting On Sat, Jan 2

Re: html table with each column representing a day in a month

2014-01-27 Thread Martin Grigorov
use IDataProvider. Wicket-Examples have demos of all this. Martin Grigorov Wicket Training and Consulting On Mon, Jan 27, 2014 at 10:29 AM, gerritqf wrote: > Hello Wicket users, > > I want to have a table (in html) which has the following look. > A header table row with seperate

Re: Can I get an input text value if it's not in a form?

2014-01-27 Thread Martin Grigorov
m/apache/wicket/blob/442932d4e4c5cc27940bc2ef956cb24c1ba54df0/wicket-core/src/main/java/org/apache/wicket/ajax/AjaxNewWindowNotifyingBehavior.java#L92for example Martin Grigorov Wicket Training and Consulting On Mon, Jan 27, 2014 at 4:11 PM, cosmindumy wrote: > Hello, > I want to get the v

Re: Continuous page reload

2014-01-27 Thread Martin Grigorov
Please give a link to NoVersionMapper. Martin Grigorov Wicket Training and Consulting On Mon, Jan 27, 2014 at 7:19 PM, Maxim Solodovnik wrote: > Hello Martin, > > finally was able to find what is wrong: > > Everything starts working after replacing lines 122 and 123 in

Re: Continuous page reload

2014-01-27 Thread Martin Grigorov
Ah, it is inner class. Easy :) I will check it soon. Martin Grigorov Wicket Training and Consulting On Mon, Jan 27, 2014 at 9:00 PM, Martin Grigorov wrote: > Please give a link to NoVersionMapper. > > Martin Grigorov > Wicket Training and Consulting > > > On Mon, Jan 27, 2

Re: Continuous page reload

2014-01-27 Thread Martin Grigorov
nceof BookmarkableListenerInterfaceRequestHandler) { return null; } else { return super.mapHandler(requestHandler); } } Martin Grigorov Wicket Training and Consulting On Mon, Jan 27, 2014 at 9:01 PM, Martin Grigorov wrote: > Ah, it is inner class. Easy :) > I will check it soon. > > Martin Grigorov > Wicket Tra

Re: Web Sockets proxying

2014-01-28 Thread Martin Grigorov
x27;t see any difference in the url path too :) Please let us know when you have some progress! Martin Grigorov Wicket Training and Consulting On Tue, Jan 28, 2014 at 3:24 AM, Maxim Solodovnik wrote: > Thanks for the quick answer Paul, > > Segmentation fault is definitely caused by me,

Re: timing for Wicket 7?

2014-01-28 Thread Martin Grigorov
Servlet API v3 will be used ... Am I wrong? > JDK7 and Servlet 3.0 are mandatory for Wicket 7 already. This has been done several months ago. > > Best, > Marvin Richter > > On Fr, 2014-01-24 at 11:04 +0200, Martin Grigorov wrote: > > Hi Ernesto, > > > >

Re: Wicket 6.13 ListView#removeLink

2014-01-28 Thread Martin Grigorov
Hi, http://www.wicket-library.com/wicket-examples-6.0.x/library is an example that uses LstView#removeLink and it properly deletes the correct item. Martin Grigorov Wicket Training and Consulting On Tue, Jan 28, 2014 at 3:19 PM, Igor Dvorzhak wrote: > Hi all, > > Link created by the

Re: How to resolve page from url part without (hardcoded) mapping in application class

2014-01-28 Thread Martin Grigorov
https://github.com/apache/wicket/blob/master/wicket-examples/src/main/java/org/apache/wicket/examples/requestmapper/RequestMapperApplication.java#L55 for example Martin Grigorov Wicket Training and Consulting On Tue, Jan 28, 2014 at 3:24 PM, armandoxxx wrote: > Hey guys > > I'm w

Re: How to resolve page from url part without (hardcoded) mapping in application class

2014-01-28 Thread Martin Grigorov
RenderPageRequestHandler(new PageProvider(SomePage.class)). If there is no match then use the delegate to resolve it. See https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/protocol/https/HttpsMapper.java?source=c#L92 Martin Grigorov Wicket Training and Consulting On Tue

Re: Using "AjaxRequestTarget" with parent/child window

2014-01-28 Thread Martin Grigorov
Hi, On Tue, Jan 28, 2014 at 4:05 PM, fmoriguchi wrote: > Hi, > > I have two windows, a parent and a child (using PopupSettings). > The parent window has a component that will receive the value of a selected > object in the child window. > > My problem is when you receive the object of child win

Re: Using "AjaxRequestTarget" with parent/child page

2014-01-28 Thread Martin Grigorov
On Tue, Jan 28, 2014 at 8:49 PM, fmoriguchi wrote: > Hi all, > > Simon, I tried this solution, as follows: > > - The child page raises the event. (IEventSource). > - The parent page listens for the event (IEventSink). > - The parent page receive through the event to instance of > "AjaxRequestTarg

Re: Is there an equivalent for ResourceReference in wicket 6

2014-01-29 Thread Martin Grigorov
(IHeaderResponse) in your apps. Martin Grigorov Wicket Training and Consulting On Wed, Jan 29, 2014 at 10:56 AM, Simon B wrote: > Hello, > > I override the renderHead(HtmlHeaderContainer) method if its a Panel and > renderHead(IHeaderResponse) if its a WebPage : > > So in the case of a

Re: Invoke Wicket from JavaSctipt

2014-01-29 Thread Martin Grigorov
Hi, extra parameters supports two "syntaxes": - simple: { k1: v1, k2: v2 } - advanced: [ {name: "k1", value: "v1"}, {name: "k2", value: "v2"} ] The advanced way should be used when you have several values for the same key. On Wed, Jan 29, 2014 at 4:31 PM, Entropy wrote: > I want a javascr

Re: Invoke Wicket from JavaSctipt

2014-01-29 Thread Martin Grigorov
Pay attention to the details: In your pseudo code you have an array of objects with single key/value pair. In my simple code there is an object with many key/value pairs. Martin Grigorov Wicket Training and Consulting On Wed, Jan 29, 2014 at 9:22 PM, Entropy wrote: > Thanks. Using

Re: XSS in wicket. Wicket fault or my fault?

2014-01-30 Thread Martin Grigorov
Hi, On Wed, Jan 29, 2014 at 6:26 PM, Gonzalo Aguilar Delgado < gagui...@aguilardelgado.com> wrote: > Hi there, > > I'm building an application for a client and my security advisor told me > about a XSS attack that can be performed on the site. > > When user logs-in I welcome they by Saying "Hello

Re: XSS in wicket. Wicket fault or my fault?

2014-01-30 Thread Martin Grigorov
changes that wicket 6.13 enabled. > +1 ping me if you need help > > On 30/01/14 19:03, Martin Grigorov wrote: > > Hi, > > > > On Wed, Jan 29, 2014 at 6:26 PM, Gonzalo Aguilar Delgado < > > gagui...@aguilardelgado.com> wrote: > > > >> Hi there,

Capture client side logs and improve your apps

2014-01-30 Thread Martin Grigorov
Hi, At http://wicketinaction.com/2014/01/capture-javascript-errors-and-log-them-at-the-server/I posted a short article about something recommended by ThoughtWorks' radar <http://www.thoughtworks.com/radar/#/techniques> Martin Grigorov Wicket Training and Consulting

Re: AjaxLazyLoadPanel loading asynchronously

2014-01-30 Thread Martin Grigorov
(); if (newData != null) { NewComponent c = new Component(image.getId(), newData); image.replaceWith(c); target.add(c); } else { // target.appendJavaScript("still waiting ..."); } } Martin Grigorov Wicket Training and Consulting On Thu, Jan 30, 201

Re: onchange event always being fired before onclick event

2014-01-31 Thread Martin Grigorov
? input, select, div, ... ? Martin Grigorov Wicket Training and Consulting On Thu, Jan 30, 2014 at 8:15 PM, Rafael Barrera Oro wrote: > Hello everyone! > > I'm trying to to mantain the focus of the last component that was clicked > regardless of the refresh of part of the page

Re: setting response parameters in wicket 6

2014-01-31 Thread Martin Grigorov
Hi, As Francois suggested you need WebResponse to see these methods. Also check org.apache.wicket.markup.html.WebPage#configureResponse(WebResponse). Martin Grigorov Wicket Training and Consulting On Fri, Jan 31, 2014 at 9:17 AM, chathuraka.waas wrote: > Hi, > > i'm trying

Re: setting response parameters in wicket 6

2014-01-31 Thread Martin Grigorov
response.setContentType("text/xml; charset=" + encoding); Martin Grigorov Wicket Training and Consulting On Fri, Jan 31, 2014 at 9:48 AM, chathuraka.waas wrote: > Hi, > > thanks for the replies. > > ((WebResponse) > requestCycle.getResponse()).setContentType(&quo

Re: wicket session and wildfly

2014-01-31 Thread Martin Grigorov
Hi, I think the problem is that JBoss cannot load ObjectId class. I remember such issues with older versions of JBoss AS. Ask in JBoss forums and let us know what was the problem. Martin Grigorov Wicket Training and Consulting On Thu, Jan 30, 2014 at 6:15 PM, miguel wrote: > i'm

Re: RedirectToUrlException in Wicket 6

2014-01-31 Thread Martin Grigorov
Hi, Can you please give more details ? Martin Grigorov Wicket Training and Consulting On Fri, Jan 31, 2014 at 11:14 AM, Gereon Steffens < gereon.steff...@finanzen100.de> wrote: > Hi, > > I'm currently migrating a project from Wicket 1.5 to Wicket 6.13 a

Re: Iterating through the Pageparameters

2014-01-31 Thread Martin Grigorov
org.apache.wicket.request.mapper.parameter.PageParameters#getAllNamed Martin Grigorov Wicket Training and Consulting On Fri, Jan 31, 2014 at 11:01 AM, chathuraka.waas wrote: > Hi, > > i'm trying to migrate my application from 1.4 to 6.13. and i was able to > iterate through t

Re: RedirectToUrlException in Wicket 6

2014-01-31 Thread Martin Grigorov
It is part of https://issues.apache.org/jira/browse/WICKET-5387 Wicket won't call any lifecycle methods on not fully initialized page. Martin Grigorov Wicket Training and Consulting On Fri, Jan 31, 2014 at 12:13 PM, Gereon Steffens < gereon.steff...@finanzen100.de> wrote: >

Re: multiple path parameters in path segment

2014-01-31 Thread Martin Grigorov
for your scheme. See MountedMapper and its super classes for inspiration. Martin Grigorov Wicket Training and Consulting On Fri, Jan 31, 2014 at 3:33 PM, Richter, Marvin < marvin.rich...@jestadigital.com> wrote: > Hey geeks, > > Hope you can help me. > I'm actually t

Re: Make wicket fetch js from different server

2014-02-01 Thread Martin Grigorov
Hi, getJavaScriptLibrarySettings().setJQueryReference(new UrlResourceReference("some url")) Martin Grigorov Wicket Training and Consulting On Sat, Feb 1, 2014 at 8:02 AM, Chris Colman wrote: > What is involved in telling wicket to fetch its js (jquery etc) from a > diff

Re: Retrieving the submit button value

2014-02-03 Thread Martin Grigorov
Cast frm.getRootForm().findSubmittingButton() to FormComponent Martin Grigorov Wicket Training and Consulting On Mon, Feb 3, 2014 at 9:35 AM, chathuraka.waas wrote: > Hi, > > i'm trying to migrate my application wicket 1.4 to 6.13 and my earlier code > has this code snippet

Re: AjaxLazyLoadPanel loading asynchronously

2014-02-03 Thread Martin Grigorov
Because it is transient: https://gist.github.com/jonnywray/636875#file-futureupdatebehavior-java-L19 After deserialization it will be null. Martin Grigorov Wicket Training and Consulting On Mon, Feb 3, 2014 at 10:33 AM, vp143 wrote: > Martin Grigorov-4 wrote > > Hi, > > >

Re: Accessing WebApplication from the service layer

2014-02-03 Thread Martin Grigorov
Hi, Extract the locking managing code in a service. Then use Spring/CDI/Guice/... to manage the service dependencies for you. Martin Grigorov Wicket Training and Consulting On Mon, Feb 3, 2014 at 2:38 PM, ChambreNoire wrote: > Hey, > > I've just been sketching out an entity loc

Re: Accessing WebApplication from the service layer

2014-02-03 Thread Martin Grigorov
class MyApp extends WebApplication { @Inject EntityLockService lockService; @Override public void sessionUnbound(String sessionId) { lockService.cleanup(sessionId); } } Martin Grigorov Wicket Training and Consulting On Mon, Feb 3, 2014 at 3:09 PM, ChambreNoire wrote: > Yes however I a

  1   2   3   4   5   6   7   8   9   10   >