Wicket URL Encryption Key

2010-01-20 Thread MZemeck
On page 331 of Wicket In Action is the following excerpt, Note that you should modify the default encryption key that is stored in ISecuritySettings to prevent malicious hackers from using the default publicly available key as an attack vector. Does this only pertain to when Sun JCE is not

Re: @SpringBean injection expensive - a bug?

2010-02-16 Thread MZemeck
Any updates on this issue? Will there be a fix? Igor Vaynberg igor.vaynb...@gmail.com 02/10/2010 06:15 PM Please respond to users@wicket.apache.org To users@wicket.apache.org cc Subject Re: @SpringBean injection expensive - a bug? create a jira issue and a quickstart. thanks. -igor

Wicket Stuff Html Validator

2010-02-22 Thread MZemeck
I've added htmlvalidator-1.3.1.jar to my classpath, and the appropriate code in the application's init method (see link below). I get the following error when running the app; java.io.FileNotFoundException: Could not find dtds folder null

Re: Wicket Stuff Html Validator

2010-02-23 Thread MZemeck
I downloaded the jar from wicketstuff repo... Here is the DTD; !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml; xmlns:wicket= http://wicket.apache.org/; xml:lang=en lang=en Martijn

Re: [wicket-stuff] project sitemap-xml

2010-03-25 Thread MZemeck
I am also interested in a sitemap project. Check out the Wiki about dynamic sitemap below. Would be nice if someone encapsulated this into a project for reuse. http://cwiki.apache.org/WICKET/seo-search-engine-optimization.html Fernando Wermus fernando.wer...@gmail.com 03/25/2010 11:49 AM

Re: [wicket-stuff] project sitemap-xml

2010-03-25 Thread MZemeck
I would gather they are eluding to the fact that search engines may not index url's with duplicate titles, so its a best practice to provide a title unique to the url. Fernando Wermus fernando.wer...@gmail.com 03/25/2010 01:46 PM Please respond to users@wicket.apache.org To

WicketFilter Config

2010-03-25 Thread MZemeck
Due to the fact that SpringWebApplication is deprecated, we evaluated several ways of configuring Wicket using WicketFilter. I found ContextParamWebApplicationFactory to work with a Spring Annotation approach. SpringWebApplicationFactory also works with a Spring Annotation approach, but

Re: WicketFilter Config

2010-03-29 Thread MZemeck
Igor, We are using WicketFilter with SpringWebApplicationFactory. This works fine, but I've noticed SpringWebApplication has been deprecated, and since SpringWebApplicationFactory returns a SpringWebApplication we tried the ContextParamWebApplicationFactory which also works. Which is

Re: WicketFilter Config

2010-03-29 Thread MZemeck
Yes we are using Spring. Our Spring configuration works with either the SpringWebApplicationFactory or ContextParamWebApplicationFactory. James Carman jcar...@carmanconsulting.com 03/29/2010 04:31 PM Please respond to users@wicket.apache.org To users@wicket.apache.org cc Subject Re:

Re: resource (css) loading

2010-04-07 Thread MZemeck
One difference I am aware of (and community correct me if I am wrong), Wicket GZIPs resources. So if you directly link to the css using an href you will not have that feature. sahar rostami sahar.rost...@gmail.com 04/07/2010 11:16 AM Please respond to users@wicket.apache.org To Wicket

Re: Bigger sites running on wicket?

2010-05-13 Thread MZemeck
Some things I've seen on this forum...Wal-Mart's mobile site, lasvegas.com Notice: This communication, including any attachments, is intended solely for the use of the individual or entity to which it is addressed. This communication may contain information that is protected from disclosure

Re: Clean URLs without /?wicket:interface=:0:::: stuff - is it possible?

2010-07-21 Thread MZemeck
https://cwiki.apache.org/WICKET/url-coding-strategies.html Laurentiu Trica laurentiu.tr...@finalfolder.biz 07/21/2010 11:24 AM Please respond to users@wicket.apache.org To users@wicket.apache.org cc Subject Clean URLs without /?wicket:interface=:0 stuff - is it possible? Hello,

Re: Passing raw value to html

2010-07-26 Thread MZemeck
Let me know if you find a solution for this... Sam Barrow s...@sambarrow.com 07/26/2010 11:43 AM Please respond to users@wicket.apache.org To users@wicket.apache.org cc Subject Passing raw value to html Is there a way to pass a raw value to be displayed in a wicket markup file? I'm

Re: Passing raw value to html

2010-07-26 Thread MZemeck
I saw the replies and the markmail link, thanks guys... mzem...@osc.state.ny.us 07/26/2010 01:51 PM Please respond to users@wicket.apache.org To users@wicket.apache.org cc Subject Re: Passing raw value to html Let me know if you find a solution for this... Sam Barrow

Re: Error integrating with Hibernate and Spring

2010-07-27 Thread MZemeck
Which version of hibernate? Try the latest 3.5 version? Luther Baker lutherba...@gmail.com 07/26/2010 06:55 PM Please respond to users@wicket.apache.org To users@wicket.apache.org cc Subject Error integrating with Hibernate and Spring I'm sure I'm doing something incorrectly. For

Encrypt Form Fields Using JS

2010-08-02 Thread MZemeck
Problem: Encrypt sensitive form fields (ie ssn) on client (javascript) Solution: Create behavior which fires javascript to hash field value and replace original value (###-##-) This sounds simple enough, but since the length of the hashed string will be considerably longer than the

Re: Encrypt Form Fields Using JS

2010-08-02 Thread MZemeck
I totally agree, seems like double-duty that accomplishes very little, and actually adds overhead. But this is another debate and the feature has been requested and must be implemented as I described... Craig McIlwee craig.mcil...@openroadsconsulting.com 08/02/2010 03:06 PM Please respond

Re: Encrypt Form Fields Using JS

2010-08-02 Thread MZemeck
Thanks for the reply, that would work however per our business rules the encryption must be one-way and will not be decrypted... Igor Vaynberg igor.vaynb...@gmail.com 08/02/2010 03:23 PM Please respond to users@wicket.apache.org To users@wicket.apache.org cc Subject Re: Encrypt Form

Re: Encrypt Form Fields Using JS

2010-08-02 Thread MZemeck
The only thing I've come up with to meet all the requirements is to set the hashed value to a hidden field, and replace the original value (123-45-6789) with all nines (999-99-). This would allow the validator to pass but puts a requirement on the js to validate the original value, ie it

Re: Encrypt Form Fields Using JS

2010-08-03 Thread MZemeck
Ok, the value will be hashed, one-way...anyone have any ideas? James Carman ja...@carmanconsulting.com Sent by: jcar...@carmanconsulting.com 08/02/2010 04:42 PM Please respond to users@wicket.apache.org To users@wicket.apache.org cc Subject Re: Encrypt Form Fields Using JS Then it's

Re: Encrypt Form Fields Using JS

2010-08-03 Thread MZemeck
An already existing system is being rewritten and the db currently stores hashed values. I don't disagree there are better ways to reach the end goal, but this is the spec I am working with. James Carman ja...@carmanconsulting.com Sent by: jcar...@carmanconsulting.com 08/03/2010 01:45 PM

Re: Encrypt Form Fields Using JS

2010-08-03 Thread MZemeck
Correct James Carman ja...@carmanconsulting.com Sent by: jcar...@carmanconsulting.com 08/03/2010 02:12 PM Please respond to users@wicket.apache.org To users@wicket.apache.org cc Subject Re: Encrypt Form Fields Using JS So, you never need to get the original values out of the

Re: Encrypt Form Fields Using JS

2010-08-03 Thread MZemeck
I have to laugh because I also agree its kind of crazy... Yes the original value must be hashed by the client. The reasoning being that SSL could be broken and expose the data. I don't necessarily agree but thats how the original system was written. James Carman ja...@carmanconsulting.com

Re: Encrypt Form Fields Using JS

2010-08-06 Thread MZemeck
I should make it clear, the intention is to use SSL and JS one-way hash, not just JS... Jeremy Thomerson jer...@wickettraining.com 08/03/2010 03:49 PM Please respond to users@wicket.apache.org To users@wicket.apache.org cc Subject Re: Encrypt Form Fields Using JS On Tue, Aug 3, 2010

Re: Wicket adds jsessionid to redirect onto external page

2010-08-06 Thread MZemeck
On a related note... The Wicket Strings class provides the method stripJSessionId... http://wicket.apache.org/apidocs/1.4/org/apache/wicket/util/string/Strings.html#stripJSessionId(java.lang.CharSequence) And the Wicket SEO wiki provides a way to remove the JSessionId...

Re: Wicket adds jsessionid to redirect onto external page

2010-08-06 Thread MZemeck
Yes I realize you've solved the jetty issue, but I was posing some additional questions relating to jsessionid... 1. What are the implications of stripping jsessionid for all users...like so in app object... CharSequence encodedUrl = super.encodeURL(url); return

Re: Wicket adds jsessionid to redirect onto external page

2010-08-06 Thread MZemeck
As a side effect you will disable session for cookieless connections. Wouldn't this be desired, ie bots... Depends what you want to strip/not-strip... skipping encoding also strips but I am not sure if there is any other encoding happening... Right, I guess that's my question, what are you

Re: automatically sizing modal window

2010-09-27 Thread MZemeck
Sounds like a nice feature, however be careful, if the content is too large the close button may be off-screen and make it impossible to close. So maybe it should auto adjust within the bounds of the screen... From: andrea del bene andrea.on@libero.it To: users@wicket.apache.org

Re: chrome + wicket ajax + back button = problem?

2010-10-06 Thread MZemeck
I've had similar issues, have you tried HybridUrlCodingStrategy? Notice: This communication, including any attachments, is intended solely for the use of the individual or entity to which it is addressed. This communication may contain information that is protected from disclosure under

Re: Can i execute an inline-javascript added to head for replaced panel on ajax-response?

2010-10-12 Thread MZemeck
Can you share the final solution? From: Per Newgro per.new...@gmx.ch To: users@wicket.apache.org Date: 10/12/2010 01:37 PM Subject:Re: Can i execute an inline-javascript added to head for replaced panel on ajax-response? Jeeehhaa. Thanks alot Igor. That did it. Both tips

Re: DownloadLink with AjaxIndicator

2010-10-13 Thread MZemeck
AjaxIndicatorAppender? http://wicket.apache.org/apidocs/1.4/org/apache/wicket/extensions/ajax/markup/html/AjaxIndicatorAppender.html From: Ann Baert ann.ba...@tvh.be To: users@wicket.apache.org Date: 10/13/2010 10:09 AM Subject:DownloadLink with AjaxIndicator I would like to

Re: Dynamically loading image

2010-11-30 Thread MZemeck
Where are you storing the image, on the file system, classpath, database...? From: Matthew Goodson matt...@spidertracks.co.nz To: users@wicket.apache.org Date: 11/29/2010 10:12 PM Subject:Dynamically loading image Hi all, I'm needing to generate the url to an image

Re: IndicatingAjaxButton (Doesn't display indicator in Internet Explorer)

2010-11-30 Thread MZemeck
+1 Yes I have seen this as well... From: Corbin, James jcor...@iqnavigator.com To: users@wicket.apache.org users@wicket.apache.org Date: 11/30/2010 04:07 PM Subject:IndicatingAjaxButton (Doesn't display indicator in Internet Explorer) I recently noticed that the

Re: Visibility setting with Ajax

2010-12-21 Thread MZemeck
I think you are correct, calling setOutputMarkupId(true) is not necessary when calling setOutputMarkupPlaceholderTag(true). If I remember correctly from looking at the code for setOutputMarkupPlaceholderTag(), this will call setOutputMarkupId(true) for you. From: Duro

Re: Wicket web site down with a few hits

2011-01-04 Thread MZemeck
Just a hunchtry WicketServlet instead of WicketFilter (in web.xml)... From: LucHub luca.abb...@luchub.com To: users@wicket.apache.org Date: 01/04/2011 03:26 PM Subject:Re: Wicket web site down with a few hits Hi, thank you for the fast reply, Nothing strange from tomcat

Re: Feedback messages with parameter substitution

2011-01-06 Thread MZemeck
Or... Object[] vars = ...add dynamic file name object StringResourceModel rModel = new StringResourceModel(message.fileAlreadyUploaded, null, vars); error(rModel.getObject()); From: James james.eliye...@gmail.com To: users@wicket.apache.org Date: 01/04/2011 09:22 PM Subject:

Re: IndicatingAjaxButton (Doesn't display indicator in Internet Explorer)

2011-01-07 Thread MZemeck
This problem still exists in Wicket 1.14.15. IndicatingAjaxButton does not show the busy indicator in IE, it does work in Firefox. IndicatingAjaxLink does show the indicator in IE. - Forwarded by Matthew Zemeck/ADM/NYSOSC on 01/07/2011 03:32 PM - From: mzem...@osc.state.ny.us To:

Re: Using Wicket with businness model classes that check for rules

2011-01-28 Thread MZemeck
Just a suggestion, pass the UserDto to the service layer and let the service layer do the conversion. Then you can look at a href= http://code.google.com/p/simple-object-assembler/;Simple Object Assembler/a to encapsulate the conversion. Hint: use automapWhenNoConverterFound property and you

Re: Using Wicket with businness model classes that check for rules

2011-01-28 Thread MZemeck
Right right right, good catch, but I suppose you could write a conversion service which throws the business exception. Not really a solution to your question, but it would clean up your code a bit and take conversion logic out of the frontend. From: James Carman ja...@carmanconsulting.com

Re: Using Wicket with businness model classes that check for rules

2011-01-28 Thread MZemeck
Ok but if the conversion has to be done multiple times why not encapsulate it and clean up your code, rather than coding a conversion for each dto every time its needed. With my suggestion the frontend calls a service to do the conversion, then supplies the primed object to the service to

Re: Static member wicket version... post 1.4.13

2011-01-31 Thread MZemeck
The Wicket version and deployment mode are also output during startup... From: James Carman ja...@carmanconsulting.com To: users@wicket.apache.org Date: 01/31/2011 11:33 AM Subject:Re: Static member wicket version... post 1.4.13 Sent by:jcar...@carmanconsulting.com

Re: Regarding AjaxIndicatorAppender and IE

2011-02-03 Thread MZemeck
This may be related to... https://issues.apache.org/jira/browse/WICKET-3321 From: Muro Copenhagen copenha...@gmail.com To: users@wicket.apache.org Date: 02/02/2011 08:19 AM Subject:Regarding AjaxIndicatorAppender and IE Hi, Has anyone experienced problems with IE (v. 8)

Re: FOSDEM 2011 presentation online

2011-02-08 Thread MZemeck
Can you link the mailing list to it when its posted? I'm very interested in seeing it, especially after the positive remarks on this list... From: Martijn Dashorst martijn.dasho...@gmail.com To: users@wicket.apache.org Date: 02/08/2011 09:15 AM Subject:Re: FOSDEM 2011

Re: usage of JavascriptFilteredIntoFooterHeaderResponse

2011-02-14 Thread MZemeck
Interesting how the HeaderResponseFilteredResponseContainer in this example is after the /body tag even though best practices as well as the Javadoc suggest it should be just before the /body. Perhaps the example should be changed so as not to set a bad...er...example... A header response

Re: Just 100K per session? That would be my dream come true! (Anyone here who has tuned session size before?)

2011-02-17 Thread MZemeck
How are you storing/retrieving your photos? I recently did some session size testing and I found the sessions were surprisingly small. Once I removed the detachable model wrapped around an object holding a photo (byte array) retrieved from the database my session size shot up considerably.

Re: requestCycle.getRequestTarget() not giving the target

2011-02-22 Thread MZemeck
This is the best solution I have found... http://www.richardnichols.net/2010/03/apache-wicket-force-page-reload-to-fix-ajax-back/ Note that when refreshing the page it will return to its default state (first tab selected). I have been meaning to test with HybridUrlCodingStrategy to see if the

Re: Perfomance of IDataProvider

2011-02-28 Thread MZemeck
If I understand where you are going I completely agree the example is a little misleading. Some ways to think about it differently... id is synonymous with a small sub-set of the entire result-set which can be used to rehydrate the detached model The model is the data you want to provide to

RE: Perfomance of IDataProvider

2011-03-01 Thread MZemeck
Here's a start, please anyone correct me if I've made any mistakes... public class ListLDM extends LoadableDetachableModelList { private String id; public ListLDM(List l, String id) { //constructor with primed model super(l);

Re: Perfomance of IDataProvider

2011-03-01 Thread MZemeck
). It will cache the list until after the request cycle is complete. Upon subsequent request cycles, the load() method will be called to re-load the list. On Tue, Mar 1, 2011 at 12:51 PM, Juansoft andresnet2...@yahoo.es wrote: Thank for the replies! MZemeck wrote: Here's a start, please

Re: Just 100K per session? That would be my dream come true! (Anyone here who has tuned session size before?)

2011-03-01 Thread MZemeck
Great stuff, could you let us know when you have completed a 'final' version so I can check back? From: Per p...@hamburg.de To: users@wicket.apache.org Date: 03/01/2011 02:22 PM Subject:Re: Just 100K per session? That would be my dream come true! (Anyone here who has tuned

Re: LoadableDetachableModel small issue

2011-03-04 Thread MZemeck
Not completely sure what you're getting at, would RefreshingView help you? http://wicket.apache.org/apidocs/1.4/org/apache/wicket/markup/repeater/RefreshingView.html From: Alexandru Artimon aarti...@dgfoundation.org To: users@wicket.apache.org Date: 03/04/2011 08:31 AM Subject:

Re: LoadableDetachableModel small issue

2011-03-04 Thread MZemeck
I'm not totally understanding so I will let someone else try to answer but RefreshingView may apply to this question... what if the user decides to leave the page without saving the form. At the next load the empty-items will be there which is not the desired functionality From:

Re: Disable form prettyfier

2011-03-04 Thread MZemeck
Okay but why not use an AjaxEditableLabel, then you don't have to manage multiple components and state is managed for you? From: robert.mcguinness robert.mcguinness@gmail.com To: users@wicket.apache.org Date: 03/04/2011 08:59 AM Subject:Re: Disable form prettyfier

RE: Wicket thinks setOutputMarkupId property is not set to true

2011-03-11 Thread MZemeck
I've run into this using tab-panels, you have to get the target right by calling getParent() or something similar. If you look at the rendered html the wicket id's can help yo track down the component you need to target. From: Coleman, Chris chris.cole...@thalesgroup.com.au To:

RE: Wicket thinks setOutputMarkupId property is not set to true

2011-03-11 Thread MZemeck
Note, I'm referring to ajax-tab-panels which are ajax ready by default... From: mzem...@osc.state.ny.us To: users@wicket.apache.org Date: 03/11/2011 03:11 PM Subject:RE: Wicket thinks setOutputMarkupId property is not set to true I've run into this using tab-panels, you have

RE: mountSharedResource() on huge amount of images

2011-03-15 Thread MZemeck
For that many photos I would suggest storing them in a database. Storing that many images on the file system is cumbersome and inefficient in my opinion. You might run into many headaches especially around backups, deploys, upgrades, performance, file names, storage space, etc... From:

Re: mountSharedResource() on huge amount of images

2011-03-15 Thread MZemeck
No offense Bas but that seems like a major hassle, especially considering with an ORM its a simple update/delete/find. When it comes time to build out new servers now you have to shuffle around 300k photos instead of simply replicating a database. Also sounds like it would make debugging

Re: PackageResourceReference, MetaInfStaticResourceReference and timestamps

2011-03-25 Thread MZemeck
Hi, I made a new test (serving a png and a js) with current trunk and the gap is much smaller now: tomcat is 25% faster on average. Attila Attila can you elaborate on your tests? Are you comparing the difference between using a resource reference (js) and image component (png) in wicket vs

Re: model help

2011-03-29 Thread MZemeck
Not sure what your objects look like but I will try to answer question 2... Not sure if this will work for you...sometimes I find myself using PropertyModels mixed with CPMs... new ListView(myId, new PropertyModel(foo, widgets)) And it may not be entirely obvious you can use dot notation to

Re: flexible authentication

2011-03-29 Thread MZemeck
I think you could do it by using a base role that all users receive, then add additional roles to tighten it down. You would then need to fake authentication of the base users by calling session.authenticate(user, pass) and assigning the BASE role, even though the user won't explicitly log

Re: [VOTE] Behavior of CheckBox With Respect to setRequired(true)

2011-04-01 Thread MZemeck
I second Daniel's comments. +1 for option 1 From: Daniel Neugebauer mailingli...@energiequant.de To: users@wicket.apache.org Date: 04/01/2011 02:56 PM Subject:Re: [VOTE] Behavior of CheckBox With Respect to setRequired(true) I would stick with 1 (required to be checked).

UploadProgressBar Possible Bug

2011-04-04 Thread MZemeck
Sorry but I do not have the time/resources to create a quickstart (I don't use Maven) but I wanted to alert the group to an issue I had in case anyone wanted to test/fix it. Using the following; Wicket 1.4.16 UploadWebRequest in App object Form with setMaxSize() (I'm using 1MB) FileUploadField

Re: UploadProgressBar Possible Bug

2011-04-04 Thread MZemeck
The form does not process anything besides the file upload, and everything works fine until the UploadProgressBar is introduced (and yes I set mutlipart to true). I will open a jira if/when time permits, if you have the appropriate credentials please create a jira on my behalf, I am not

Re: link within modal window should reload parent page

2011-04-11 Thread MZemeck
How about using setResponsePage in ModalWindow.WindowClosedCallback() or ModalWindow.CloseButtonCallback()? Does modalwindow.close(target); fire CloseButtonCallback? From: hrbaer herber.m...@gmail.com To: users@wicket.apache.org Date: 04/11/2011 06:03 AM Subject:Re:

Re: link within modal window should reload parent page

2011-04-12 Thread MZemeck
The only thing that comes to mind is storing a flag in session. Or perhaps if you are updating you datastore when the link is clicked you could check there. Not the best solution in my mind, if you find something else let me know... From: hrbaer herber.m...@gmail.com To:

Re: Continue navigating while on submit button process stuff on the background

2011-04-25 Thread MZemeck
Send your emails in a batch at a later time, or if you are using Spring you could use the new @Async annotation. From: lucast lucastol...@hotmail.com To: users@wicket.apache.org Date: 04/25/2011 08:32 AM Subject:Continue navigating while on submit button process stuff on the

Re: Continue navigating while on submit button process stuff on the background

2011-04-25 Thread MZemeck
or if you are not using Spring...use Java Futures... http://download.oracle.com/javase/6/docs/api/java/util/concurrent/Future.html From: lucast lucastol...@hotmail.com To: users@wicket.apache.org Date: 04/25/2011 08:32 AM Subject:Continue navigating while on submit button