Enclosure around a RefreshingView

2019-06-28 Thread Boris Goldowsky
What’s the best practice for a list (built in this case with a RefreshingView) that has a header, which should be hidden if the list is empty? The most obvious would be to wrap around the whole thing, but the RefreshingView is still considered visible even when empty, so that doesn’t work by

Re: Redirect based on a header?

2018-03-01 Thread Boris Goldowsky
osition with Wicket ? Contact me! > https://twitter.com/mtgrigorov > > > On Thu, Feb 22, 2018 at 5:55 PM, Boris Goldowsky <bgoldow...@cast.org> > wrote: > >> I’m not sure if there is a wicket-y way to do this. >> >> In the environ

Redirect based on a header?

2018-02-22 Thread Boris Goldowsky
I’m not sure if there is a wicket-y way to do this. In the environment where I’m deploying my wicket app (google cloud + kubernetes + docker + tomcat), a request that came in to the load balancer under insecure http is forwarded to wicket, and identified by the request containing an

Re: AjaxCallListener and promises

2017-05-12 Thread Boris Goldowsky
1. https://github.com/apache/wicket/blob/b24decd2f60983c11e75e5f2c34d0c6a93b56426/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js#L614 Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, May 3, 2017 a

Re: header item uniqueness

2017-05-10 Thread Boris Goldowsky
Sven, do you expect your fix for this to get into the next point release of Wicket 7, or will it only be in Wicket 8? Just trying to determine if I need to build a work-around or if I can wait for an official fix. Thanks! Boris On 4/25/17, 9:07 PM, "Boris Goldowsky" <bgoldo

AjaxCallListener and promises

2017-05-03 Thread Boris Goldowsky
Is there any way to use a method that returns a promise as the onBefore of an IAxaxCallListener? I don’t want the ajax operation to move forward until the promise resolves. Due to the nature of promises in Javascript, there doesn’t seem to be a way to simply wait for it. Boris

Re: header item uniqueness

2017-04-25 Thread Boris Goldowsky
ave fun Sven On 25.04.2017 15:32, Boris Goldowsky wrote: > I think Sven is right. > Debugging through, it appears to be here in ResourceAggregator: > > private void recordHeaderItem(HeaderItem item, Set depsDone) > { >

Re: header item uniqueness

2017-04-25 Thread Boris Goldowsky
l check tomorrow. Sven On 24.04.2017 23:41, Martin Grigorov wrote: > On Mon, Apr 24, 2017 at 11:39 PM, Martin Grigorov <mgrigo...@apache.org> > wrote: > >> Hi, >> >> On Mon, Apr 24, 2017 at 10:20 PM, Boris Goldowsky <bgol

header item uniqueness

2017-04-24 Thread Boris Goldowsky
I have a situation like this: public void renderHead(IHeaderResponse response) { … response.render(JavaScriptHeaderItem.forReference(resRef, pageParameters1, “id1”)); response.render(JavaScriptHeaderItem.forReference(resRef, pageParameters2, “id2”)); } where same ResourceReference

Re: Snapshot testing for wicket?

2016-12-15 Thread Boris Goldowsky
he.org> wrote: Hi, What exactly do you need to do ? To test your application against Wicket 7.6.0-SNAPSHOT ? Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Dec 15, 2016 at 12:40 PM, Boris Goldowsky <bgoldow...@

Snapshot testing for wicket?

2016-12-15 Thread Boris Goldowsky
Has anyone implemented snapshot testing for a wicket app or have suggestions on how it might be done? Boris (yes, I know there are different schools of thought on whether snapshot testing is a good idea or not)

Annotation for detachable field

2016-12-05 Thread Boris Goldowsky
Is there any way to create an annotation that would mark a field’s value as something that ought to be detached? That is, instead of: private IModel userModel; @Override public void onDetach() { super.onDetach();

Re: Adding a row to a ListView (or any repeater) programmatically for Ajax update

2016-07-11 Thread Boris Goldowsky
You might also try “QuickView” : https://github.com/vineetsemwal/quickview This has worked well for us for situations where we are appending items to a repeater. Boris On 7/11/16, 10:59 AM, "Martin Grigorov" wrote: Hi, The article is

Re: JQuery 3.0.0

2016-07-07 Thread Boris Goldowsky
OK, thanks. From the release notes it sounds like 2.2.3 at least should be safe to use? Boris On 7/7/16, 1:38 PM, "Martin Grigorov" <martin.grigo...@gmail.com> wrote: Hi, Yes, there are known problems. It is not recommended to upgrade yet! On Jul 7, 2016 8:25 PM, "Bori

JQuery 3.0.0

2016-07-07 Thread Boris Goldowsky
Are there any problems with replacing the default jQuery reference in Wicket 7.3 (jQuery 1.12.3) with the latest (jQuery 3.0.0)? Have others tried this configuration? Thanks Boris

simple automated accessibility testing

2016-03-19 Thread Boris Goldowsky
I¹m thinking it would be handy to automate testing of the simplest of validity & accessibility requirements ­ eg, checking that every element has an alt attribute, and every form input has a label. Eventually maybe taking this up a notch and connecting with existing HTML validation and

Re: AJAX-Behavior that decides activation of a link

2015-01-08 Thread Boris Goldowsky
If I¹m understanding you correctly, wouldn¹t it be sufficient to code this as a simple AjaxLink, which responds with a regular AJAX update when the link is disabled, or uses setResponsePage when it¹s enabled? Boris On 1/7/15, 9:15 PM, Joachim Schrod jsch...@acm.org wrote: Hi, I have a class

Re: How to set cache scope for mapped resources

2014-12-12 Thread Boris Goldowsky
On 12/12/14, 11:22 AM, Martin Grigorov mgrigo...@apache.org wrote: On Fri, Dec 12, 2014 at 2:52 AM, Boris Goldowsky bgoldow...@cast.org wrote: Ah, yes that works. I can now reference my resources too. Now, sorry to be a pain about this, but I would like to get it hooked up to something

mod_pagespeed with wicket?

2014-12-11 Thread Boris Goldowsky
Is anyone using google’s mod_pagespeed with Wicket? I would be interested in comparing notes. As a test, we’ve installed mod_pagespeed (default configuration) on an Apache web server that is a proxy in front of the Tomcat instance which runs Wicket, and are seeing some somewhat mysterious

Re: mod_pagespeed with wicket?

2014-12-11 Thread Boris Goldowsky
with Ajax ? If you need help then please share the related HTTPD configuration so we can try to debug it. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Dec 11, 2014 at 3:25 PM, Boris Goldowsky bgoldow...@cast.org wrote: Is anyone using google¹s

Re: How to set cache scope for mapped resources

2014-12-11 Thread Boris Goldowsky
/ It describes the idea. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Dec 9, 2014 at 3:45 AM, Boris Goldowsky bgoldow...@cast.org wrote: The mapper maps a url path to a filesystem directory, so we can mount, say, /static/* to a directory of static files

Re: How to set cache scope for mapped resources

2014-12-11 Thread Boris Goldowsky
, Dec 11, 2014 at 8:42 PM, Boris Goldowsky bgoldow...@cast.org wrote: Thanks for this. I’m trying replacing the mapper with an extension of AbstractResource and an extension of ResourceReference, as suggested in that post, and then using something like application.mountResource(“/img

How to set cache scope for mapped resources

2014-12-08 Thread Boris Goldowsky
I have a request mapper that extends AbstractMapper, and returns a ResourceStreamRequestHandler from mapRequest(). The resource is being send with a Cache-Control: private header, which is unfortunate for caching in this case; we want the resources to be publicly cacheable. How can I set the

Re: How to set cache scope for mapped resources

2014-12-08 Thread Boris Goldowsky
have much better control on the response headers. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Dec 8, 2014 at 11:03 PM, Boris Goldowsky bgoldow...@cast.org wrote: I have a request mapper that extends AbstractMapper, and returns

Re: [SOLVED] Re: PropertyModel / PropertyResolver / Map or List access

2014-11-10 Thread Boris Goldowsky
I would recommend against using .object inside a PropertyModel, at least if your application makes use of detachable models. When a component uses the property model in your example, new PropertyModel(MyPage.this, list.object[1].anyProperty) The model returned by MyPage.getList() will be

Modify items in quickview?

2014-10-30 Thread Boris Goldowsky
How would you set things up to have the best of both worlds with a QuickView? I need to have (a) a button like an AjaxItemsNavigator that adds additional elements to the QuickView without repainting the entire view, AND (b) some AJAX operations that change the entire content of the QuickView –

Re: Modify items in quickview?

2014-10-30 Thread Boris Goldowsky
:16 PM, Boris Goldowsky bgoldow...@cast.org wrote: How would you set things up to have the best of both worlds with a QuickView? I need to have (a) a button like an AjaxItemsNavigator that adds additional elements to the QuickView without repainting the entire view, AND (b) some AJAX

Re: equals() method for LoadableDetachableModels

2014-07-11 Thread Boris Goldowsky
Thank you all for your replies, very helpful! Sven Meier s...@meiers.netmailto:s...@meiers.net wrote: detachable models should never use getObject() in their implementation of equals()? generally this is a good advice: there are several places in Wicket checking for model equality (e.g.

equals() method for LoadableDetachableModels

2014-07-10 Thread Boris Goldowsky
I’ve started using CheckingObjectOutputStream to test for models of database objects that are not properly detached, and find it very useful. However I just diagnosed (after many hours of frustration) that it can also cause problems rather than solve them. CheckingObjectOutputStream causes

Re: How to implement an auto-save behavior

2014-02-11 Thread Boris Goldowsky
: Is not a function? If I look at the source code I see something like submitMultipartForm = function(context) { }, On Mon, Feb 10, 2014 at 5:41 PM, Boris Goldowsky bgoldow...@cast.org wrote: Thanks, but that also results in Wicket.Ajax.Call.submitMultipartForm is not a function. I suspect

How to implement an auto-save behavior

2014-02-10 Thread Boris Goldowsky
I’m attempting to migrate an auto-saving behavior from wicket 1.5 to wicket 6. In wicket 1.5 it worked by doing something like this every 30 seconds to loop through auto-save-enabled forms on the page and submit them: $(form.ajaxAutoSave).each(function() { var form = $(this);

Re: How to implement an auto-save behavior

2014-02-10 Thread Boris Goldowsky
a working example that would be really helpful. Boris On Feb 10, 2014, at 11:08 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Maybe Wicket.Ajax.Call.subitMultipartForm? On Mon, Feb 10, 2014 at 4:56 PM, Boris Goldowsky bgoldow...@cast.orgwrote: I'm attempting to migrate an auto

Question on role-based authorization

2013-12-20 Thread Boris Goldowsky
I’m trying to use wicket-auth-roles (in Wicket 1.5.9) to make a component that is enabled only for logged-in users. In my case if you’re not logged in, you have only a role called GUEST. If you are logged in you have a role called STUDENT (and also GUEST, since everything guests can do,

Re: Question on role-based authorization

2013-12-20 Thread Boris Goldowsky
s...@meiers.net wrote: AnnotationsRoleAuthorizationStrategy#check() looks good to me. Can you debug what's happening there in your case? Sven On 12/20/2013 01:53 PM, Boris Goldowsky wrote: I’m trying to use wicket-auth-roles (in Wicket 1.5.9) to make a component that is enabled only

Re: Question on role-based authorization

2013-12-20 Thread Boris Goldowsky
. Can you debug what's happening there in your case? Sven On 12/20/2013 01:53 PM, Boris Goldowsky wrote: I’m trying to use wicket-auth-roles (in Wicket 1.5.9) to make a component that is enabled only for logged-in users. In my case if you’re not logged in, you have only a role called GUEST

Contract opportunity in Boston area

2013-05-29 Thread Boris Goldowsky
in Wakefield, MA a day or two a week, but we will certainly consider other options as well. Please contact me directly by email if you are interested - Boris Goldowsky Director of Technology CAST, Inc. - To unsubscribe, e-mail: users

Static-file resource serving question

2013-01-17 Thread Boris Goldowsky
Hi all - Trying to upgrade a number of wicket applications from 1.4 to wicket 1.5, and then once that's working, to 6.x. One thing we want to handle is having any reference in the markup such as img src=img/logo.png/ be able to find that image in a filesystem directory known to the

Re: Static-file resource serving question

2013-01-17 Thread Boris Goldowsky
the current .html is. On Thu, Jan 17, 2013 at 2:52 PM, Boris Goldowsky bgoldow...@cast.orgwrote: Hi all - Trying to upgrade a number of wicket applications from 1.4 to wicket 1.5, and then once that's working, to 6.x. One thing we want to handle is having any reference in the markup

ATOM display in wicket?

2011-10-12 Thread Boris Goldowsky
Is wicketstuff-rome still a usable package with recent Wicket versions, or does anyone have an alternative simple way to display an ATOM or RSS feed on a wicket page? Thanks! Boris - To unsubscribe, e-mail:

Job opening - Boston area

2010-07-14 Thread Boris Goldowsky
Our educational RD non-profit is looking to hire a programmer who has a real interest in working to improve education. You'd have to be in commuting distance of Wakefield, MA (just north of Boston). The job will involve lots of building experimental web apps using Wicket. Please see

Re: Recover from session expiration ?

2010-04-12 Thread Boris Goldowsky
Thanks for the suggestion! StatelessAjaxFallbackLink is very nearly magical. It in fact almost works, but unfortunately seems incompatible with most UrlCodingStrategies. It generates some spurious URLs with the wrong number of ..'s if the page has a subdirectory or two in the URL. Back to

Recover from session expiration ?

2010-04-08 Thread Boris Goldowsky
I have a wicket website that stores some user choices around how a page is displayed in the Session - simple, non-critical information. It also uses Ajax to do things like bring up a zoomed-in version of an image. The problem is when sessions expire after an hour or so, trying to zoom an

Re: better way setting up ID for a Wicket component?

2010-03-30 Thread Boris Goldowsky
IDs are needed for e.g. AJAX functionality. The default Wicket implementation of markup IDs will create them smartly, never creating duplicate ids even in the case of multiple instances of panels, repeaters, etc. As I understand Wicket best practice, it is never to call setMarkupId() at

Wicketstuff updated!

2010-03-24 Thread Boris Goldowsky
As discussed, and not hearing any objections, I've updated the wicketstuff-core project to depend on Wicket 1.4.7. wicketstuff-core's version number is now 1.4.7-SNAPSHOT, and the idea is that people can test it, and barring any major problems it can be released as a stable version 1.4.7 .

Re: Wicketstuff versioning

2010-03-23 Thread Boris Goldowsky
I may be wrong, but wouldn't it make sense to delay creating a 1.4.x branch until/unless someone actually wants to commit some code that would be different for 1.4.x and 1.5-SNAPSHOT? Once we branch, we have to start committing every bug fix to two different versions, right? If we're lucky,

Re: Wicketstuff versioning

2010-03-23 Thread Boris Goldowsky
Péter [mailto:majorpe...@sch.bme.hu] Gesendet: Dienstag, 23. März 2010 11:38 An: users@wicket.apache.org Betreff: Re: Wicketstuff versioning 2010-03-23 11:24 keltezéssel, Boris Goldowsky írta: I may be wrong, but wouldn't it make sense to delay creating a 1.4.x branch until/unless someone

Re: Wicketstuff versioning

2010-03-19 Thread Boris Goldowsky
nino martinez wael wrote: I'll be happy to join in Boris. That would be awesome, thanks Nino. I'm thinking the first thing would be to bump the wicket dependency to v1.4.7 and do a maven release of the current state of wicketstuff-core as version 1.4.7. Make sense? Is that something you

Re: Easies way to set custom HTML

2010-03-19 Thread Boris Goldowsky
Do you mean you have HelloPanel with one markup, and HelloMyDearFriends with the same functionality but different markup? In that case define a trivial class HelloMyDearFriends.java extending HelloPanel but not changing the function. Drop in your HelloMyDearFriends.html next to it, and you

Responding to JSON request

2010-03-19 Thread Boris Goldowsky
I'm trying to make the spellcheck part of the wicketstuff tinymce module work. I think the protocol used by the spellchecking plugin may have changed since this module was written. TinyMCE sends a POST request to the server; the post data looks something like this (this is JSON format,

Re: Responding to JSON request

2010-03-19 Thread Boris Goldowsky
and parse it. So perhaps TinyMCE is doing this in a non-standard way? Bng Igor Vaynberg wrote: there is no parameter name that it sends it under? the {} string has to be assigned to something -igor On Fri, Mar 19, 2010 at 9:17 AM, Boris Goldowsky bgoldow...@cast.org wrote: I'm trying

Re: Wicketstuff versioning

2010-03-18 Thread Boris Goldowsky
Thank you for your thoughts Jeremy -- and your previous work on WicketStuff. I am certainly unhappy to hear that it felt like torture and that junk was being dumped on you rather than getting support from the community. I'd volunteer to put a bit of time into this, but I don't have time to be

Re: Wicketstuff versioning

2010-03-17 Thread Boris Goldowsky
. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Mar 16, 2010 at 1:00 PM, Boris Goldowsky bgoldow...@cast.orgwrote: The wicketstuff-core is calling itself version 1.4.2 in the HEAD of SVN. Shouldn't this be updated to 1.4.7 now to keep in sync with Wicket? Bng

Wicketstuff versioning

2010-03-16 Thread Boris Goldowsky
The wicketstuff-core is calling itself version 1.4.2 in the HEAD of SVN. Shouldn't this be updated to 1.4.7 now to keep in sync with Wicket? Bng - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional

Re: TinyMCE components in WicketStuff

2010-03-16 Thread Boris Goldowsky
The TinyMCE package depends on the Jazzy spell checker, which doesn't seem to be in any public maven repository. Would it be reasonable to put that jar into the wicketstuff repository? The latest version appears to be the one at https://sourceforge.net/projects/jazzy/files/ Bng

Re: TinyMCE components in WicketStuff

2010-03-16 Thread Boris Goldowsky
Great. Can someone with write access to the repository do this? Or if i can do it via my SVN credentials, tell me how. Thanks! Bng Igor Vaynberg wrote: sure -igor On Tue, Mar 16, 2010 at 12:21 PM, Boris Goldowsky bgoldow...@cast.org wrote: The TinyMCE package depends on the Jazzy

Re: Wicket session never expires

2010-03-15 Thread Boris Goldowsky
I once tested when Tomcat sessions actually get expired, and it can be very much longer than the given session-timeout value. Probably if there was active traffic the session would be recycled sooner, but I think if you need accurate timing then you have to implement something yourself rather

Re: TinyMCE components in WicketStuff

2010-03-15 Thread Boris Goldowsky
dont think the project is maintained so most likely no one will pay attention to the jira entry. if you would like to take over the maintenance we can grant you svn access. -igor On Fri, Mar 5, 2010 at 9:13 AM, Boris Goldowsky bgoldow...@cast.org wrote: Just curious, is the TinyMCE

TinyMCE components in WicketStuff

2010-03-05 Thread Boris Goldowsky
Just curious, is the TinyMCE wicketstuff project abandoned, or are there plans to update it? It's using a version of TinyMCE from 2008. If we updated it, is there someone that we should send patches to? Boris - To

Question on resource caching

2008-08-19 Thread Boris Goldowsky
Hi, I have some pages that reference images that are in files external to the web application and I am serving the images via SharedResources like so: public class ExternalImageResource extends WebResource { ... public IResourceStream getResourceStream() { return new