Re: wicket-bootstrap navbar - SEARCH button

2012-11-15 Thread heapifyman
As far as I know, wicket-bootstrap's Navbar currently does not support adding a search form out of the box because you can only add buttons/links to the Navbar. I have been advised to override Navbar and adapt the html markup according to my needs, which was pretty easy to do and works just fine.

Re: Wicket and file upload with blueimp jquery file upload

2012-11-15 Thread Raul
Thanks for the demo, everything works fine except for some problems I've found in the configuration, for example, the demo comes with the option (previewSourceFileTypes: / ^ image \ / (gif | jpeg | png) $ /,). But really allow to upload all types of files. On the other hand (and this is important

Re: Wicket and file upload with blueimp jquery file upload

2012-11-15 Thread Martin Grigorov
On Thu, Nov 15, 2012 at 4:57 PM, Raul ralva...@netwie.com wrote: Thanks for the demo, everything works fine except for some problems I've found in the configuration, for example, the demo comes with the option (previewSourceFileTypes: / ^ image \ / (gif | jpeg | png) $ /,). But really allow

Re: Remove cookie problem

2012-11-15 Thread cosmindumy
Hi, I couldn't find yet a solution. When pressing login button, after validation, it should be redirected to /j_acegi_security_check?j_usernameand so on. Using getRequestCycle().setRequestTarget(..) makes parameters visible in browser. Which is the best solution? Thanks. -- View

Re: Remove cookie problem

2012-11-15 Thread Martin Grigorov
Hi, It is not clear what exactly you need and do but I think you just need a plain form in the markup, no need of Wicket Form component. On Thu, Nov 15, 2012 at 5:05 PM, cosmindumy cosmind...@yahoo.com wrote: Hi, I couldn't find yet a solution. When pressing login button, after validation,

Re: Remove cookie problem

2012-11-15 Thread Martin Grigorov
You cannot redirect with POST. Redirects are always GET. You can use HttpClient/UrlConnection to send a POST request to the other url and then parse the response to see whether the authentication was OK. The problem with this approach is that it will need two http worker threads for a single

ConcurrentModificationException with Fancybox

2012-11-15 Thread Karl-Heinz Golz
hello, I'm using wicket 1.5.9. My application shows some dynamic pictures via fancybox (native without e.g. visural wicket). That works almost well, i.e. you click the small picture and you get the big picture via fancybox. And you can click through the show (up to 3 pictures) properly. But

Re: ConcurrentModificationException with Fancybox

2012-11-15 Thread Martin Grigorov
Hi, Do you add white-list patterns to SecurePackageResourceGuard somewhere outside of MyApplication#init() ? The exception says that SecurePackageResourceGuard's patterns list is being modified during the request processing. It should be changed only at application startup. On Thu, Nov 15,

Re: ConcurrentModificationException with Fancybox

2012-11-15 Thread Karl-Heinz Golz
Yes, I do it in getHomePage: public class StartApplication extends WebApplication { @Override public void init() { . . . } @Override public Class? extends Page getHomePage() { IPackageResourceGuard packageResourceGuard =

Re: ConcurrentModificationException with Fancybox

2012-11-15 Thread Martin Grigorov
Yes. There is no need to add it again and again for each request. On Thu, Nov 15, 2012 at 6:11 PM, Karl-Heinz Golz karl-heinz.g...@t-online.de wrote: Yes, I do it in getHomePage: public class StartApplication extends WebApplication { @Override public void init() { . . .

Re: wicketstff-minis 6.0.0 errors

2012-11-15 Thread saty
Anyone? I tried the component hierarchy based renderHead(IHeaderResponse response), but it does work, for some reason the prototip-min.js always appears first in the list of scripts. My java script appear as below: I need them to appear as: -- View this message in context:

Re: ConcurrentModificationException with Fancybox

2012-11-15 Thread Karl-Heinz Golz
Now it works :)) Thank you very much for your prompt support. Am 15.11.2012 17:15, schrieb Martin Grigorov: Yes. There is no need to add it again and again for each request. On Thu, Nov 15, 2012 at 6:11 PM, Karl-Heinz Golz karl-heinz.g...@t-online.de wrote: Yes, I do it in

Re: Load external css file outside of the .war file.

2012-11-15 Thread Martin Grigorov
org.apache.wicket.settings.IResourceSettings#getResourceFinders().add(new org.apache.wicket.util.file.Path(/usr/)) On Thu, Nov 15, 2012 at 3:20 PM, matt123 matt.dudley1...@gmail.com wrote: Hi Guys, Iv been trying for a few days with no luck. But I need help loading a css file from

Re: Deploy on production: optimization tip tricks

2012-11-15 Thread Oscar Besga Arcauz
(I respond myself, which is not a good policy ) I've been playing with wicket api, and now I'm doing this public final static String GOOGLE_URL = //ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js;     @Override     public void init() {     super.init();     /*

Re: Asking for user confirmation - Wicket 6

2012-11-15 Thread Sven Meier
Overwrite #updateAjaxAttributes in your behavior or AjaxLink: @Override protected void updateAjaxAttributes(AjaxRequestAttributes attributes) { super.updateAjaxAttributes(attributes); AjaxCallListener ajaxCallListener = new

Re: Wicket 1.5 migration: AbstractCrypt#decryptByteArray(..) throws IllegalBlockSizeException

2012-11-15 Thread Alec Swan
Does anybody have thoughts on this? Was this broken on 1.5? On Sun, Nov 11, 2012 at 4:39 PM, Alec Swan alecs...@gmail.com wrote: what is the salt that you use? because we use the session specific key, but that can also already be used like that in 1.4 is it maybe a different default so that

Re: Wicket 1.5 migration: AbstractCrypt#decryptByteArray(..) throws IllegalBlockSizeException

2012-11-15 Thread Sven Meier
Nothing I can think of. A testcase for 1.4 and 1.5 would help pinpointing the problem. Sven On 11/15/2012 06:52 PM, Alec Swan wrote: Does anybody have thoughts on this? Was this broken on 1.5? On Sun, Nov 11, 2012 at 4:39 PM, Alec Swan alecs...@gmail.com wrote: what is the salt that you

No Ajax Model Update in FormComponentPanel

2012-11-15 Thread Richard W. Adams
I have a drop down choice in a FormComponentPanel, and need to update other parts of the panel when the user changes the selected value in the drop down. My panel class is defined as: PointLocationPanel extends FormComponentPanelPointLocation Its constructor begins like this: public

Re: No Ajax Model Update in FormComponentPanel

2012-11-15 Thread Sven Meier
final Integer newSubdivision = getModelObject().getSubdivision(); You're using the wrong model object, this should be: final Integer newSubdivision = dropdown.getModelObject(); or: final Integer newSubdivision = PointLocationPanel.this.subdivision Sven On 11/15/2012 09:13 PM, Richard

Re: Deploy on production: optimization tip tricks

2012-11-15 Thread Serban.Balamaci
Hi Oscar, Probably nobody responded because this is not a simple topic but with many implications and turns. There are many optimizations that can be done not necessarily related to wicket. I'd recomend http://stevesouders.com/ blog, http://www.bookofspeed.com/ , http://www.guypo.com/ But ok

Wicket 6 and Page Versions

2012-11-15 Thread Toxic53
I noticed some weird behavior when a bookmarkable page contains a Form. If I deep dive to the page I can see the page id start at ?0. When I deep dive to it it increments by 1 which it seems normal to me. However when I navigate to the same page with either an autolink or a

Relative Path and Resource loading in wicket

2012-11-15 Thread delta458
Hello, Im sitting now 6 hours non-stop on this problem and cant get it work. I want a simple thing. I have a Invoice.js file in my resource folder. I want to get this file and write something to it: so I did: /URL url = getClass().getResource(Invoice.js); File file = new