Re: internationalization of FileUploadField labels

2014-05-12 Thread rajsolitary
on html side i am writing input wicket:id=fileInput id=upload type=file/ and java side i have written FileUploadField fileUploadField = new FileUploadField(fileInput, new Model()); label which is coming is Chosse File and No file chosen if not any file is being selected . i wanted to change

Re: adding Foundation

2014-05-12 Thread Martin Grigorov
Please create a quickstart app demonstrating the issue. Martin Grigorov Wicket Training and Consulting On Mon, May 12, 2014 at 9:38 AM, Lucio Crusca lu...@sulweb.org wrote: There are no opening tags for body and html. I don't see how it is W3C valid! I posted only the last lines of a

Re: Behavior rendering

2014-05-12 Thread Nick Pratt
in the beforeRender() and afterRender(), is there anything better than adding something like: WebRequest request = (WebRequest) component.getRequest(); boolean ajax = request.isAjax(); if( ajax ) { return; } prior to appending the additional markup? On Fri, May 9, 2014 at 2:34 PM, Nick

Re: Please help explain the script below, what's the 'className';'unloadConfirmation','mask' stand for? Is there relative docs could be refered to?

2014-05-12 Thread Francois Meillet
From the modal.js file org/apache/wicket/extensions/ajax/markup/html/modal/res/modal.js className set the class of window (blue or silver by default) unloadConfirmation Display confirmation dialog if the user is about to leave a page (IE and FF). mask Transparent or semi-transparent masks that

AjaxRequestTarget weirdness

2014-05-12 Thread Pierre Goupil
Hello folks, Sorry if this is double-posting, but I have the feeling that my previous message didn't find its way. I'm currently trying to roll my own on Wicket-Atmosphere: I've forked the github repo and I'm trying to make the project unit testable. I must admit that I'm not far from reaching

Re: adding Foundation

2014-05-12 Thread Lucio Crusca
In data lunedì 12 maggio 2014 10:46:28, Martin Grigorov ha scritto: Please create a quickstart app demonstrating the issue. http://www.sulweb.org/download/sparsi/Quickstart.zip - To unsubscribe, e-mail:

Re: internationalization of FileUploadField labels

2014-05-12 Thread Martin Grigorov
Hi, As I said - try to accomplish this with just HTML. Ignore Wicket for a moment. Create a simple HTML page and play with it. Ask Google, etc. Martin Grigorov Wicket Training and Consulting On Mon, May 12, 2014 at 9:17 AM, rajsolitary rajsolit...@gmail.com wrote: on html side i am writing

Re: Request.getClientUrl() usage when using reverse proxy

2014-05-12 Thread Rakesh A
Hi, After some investigation into configuration, we found that few headers were not set and resulted the behavior I mentioned. Enabling the following solved it. proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

Re: FilterToolbar with composite PK problem

2014-05-12 Thread Sandor Feher
Hi, Here is my entity's PK. In my DataTable I added one field of PK to filter on. columns.add(new TextFilteredPropertyColumnHrpBbstorzs, Number,String(new ResourceModel(beosztottakform.torzsszam), HrpBbstorzsPK.torzsszam, HrpBbstorzsPK.torzsszam)); If this field is part of

Re: wicket facebook,6.15 Circular dependency detected

2014-05-12 Thread Fergal Keating
Hi, I don't believe we we're getting any errors in 6.5.0. Wro4j works for our designers to allow them to add files without referencing java code. For the moment I added the various wicket javascript (minus the debugbar) to a bundle so its loaded as one file, I will look more into

Re: Behavior rendering

2014-05-12 Thread Nick Pratt
This works great - thank you. Nick On Sun, May 11, 2014 at 3:26 PM, Martin Grigorov mgrigo...@apache.orgwrote: Hi, See org.apache.wicket.ajax.IAjaxRegionMarkupIdProvider Martin Grigorov Wicket Training and Consulting On Fri, May 9, 2014 at 9:34 PM, Nick Pratt nbpr...@gmail.com wrote:

Re: How to replace deprecated visitChildren() and filterByClass()?

2014-05-12 Thread Sven Meier
parent.visitChildren(FormComponent.class, new IVisitorFormComponent, Void() { @Override public void component(final FormComponent component, final IVisitVoid visit) { // do something with form components } });

Re: SPDY

2014-05-12 Thread Martin Grigorov
Hi, I have tried SPDY several months ago and had problems with NPN. See http://stackoverflow.com/questions/19543581/jetty-9-0-spdy-embedded-config I have never finished it because it wasn't important for me. Martin Grigorov Wicket Training and Consulting On Wed, May 7, 2014 at 9:15 PM, Jan

Re: problem with AbstractEntityModel from Igor Vaynberg

2014-05-12 Thread Piratenvisier
If I include the folowing lines : if(NachweiseForm.this.getModelObject().getKunde()!=null) { Kunde kunde = kundeManager.get(NachweiseForm.this.getModelObject().getKunde().getId()); NachweiseForm.this.getModelObject().setKunde(kunde);

Email template with css

2014-05-12 Thread Sandor Feher
Hi, I use WebPages for rendering my emails content. The above code works fine but I can't get my css styles work in this way. public String renderTemplate(WebPage webPage) { BufferedWebResponse bufferedWebResponse = new BufferedWebResponse(null);

[QUESTION] Apache Wicket 6.X modal window with Selenium web driver 2.41

2014-05-12 Thread andrea patricelli
Hi all, I'm running integration tests with Selenium 2.41 over a web application whose interface is developed with Apache Wicket 6.14.0, and I created an instance of Selenium Firefox web driver this way: protected WebDriver seleniumDriver = new FirefoxDriver(); || I've a page creating a

Re: Email template with css

2014-05-12 Thread Martin Grigorov
Hi, On Mon, May 12, 2014 at 5:36 PM, Sandor Feher sfe...@bluesystem.hu wrote: Hi, I use WebPages for rendering my emails content. The above code works fine but I can't get my css styles work in this way. public String renderTemplate(WebPage webPage) { BufferedWebResponse

Re: adding Foundation

2014-05-12 Thread Martin Grigorov
Hi, The problem is elsewhere: https://issues.apache.org/jira/browse/WICKET-3433 Use a html no wrapped in conditional comments and it works fine. Martin Grigorov Wicket Training and Consulting On Mon, May 12, 2014 at 12:06 PM, Lucio Crusca lu...@sulweb.org wrote: In data lunedì 12 maggio 2014

Ajax timer not counting when tab doesn't have focus?

2014-05-12 Thread Bruce Lombardi
This message is related to an original thread Link to Wicket page from Javascript but the focus is changed so much that I though a new title would be better. In the earlier thread I asked about linking to a Wicket page, but the real need was for help in implementing a session timeout that would

Re: adding Foundation

2014-05-12 Thread Lucio Crusca
There are no opening tags for body and html. I don't see how it is W3C valid! I posted only the last lines of a 690 lines W3C valid html file. Anyway, if you need the whole file here it is: http://hastebin.com/ubuwodevet.xml

RE: Ajax timer not counting when tab doesn't have focus?

2014-05-12 Thread Bruce Lombardi
Thanks Ernesto. Yes, I do mean another browser tab. I have some new information. The timer seems to slow way down, but not stop counting down when the user switches focus to another tab, either opening a new tab, or just clicking on another tab. This is happening in both Chrome and Firefox.

Re: Behavior rendering

2014-05-12 Thread Nick Pratt
Martin While this updates correctly, Im running in to a problem of state with regards to visibility. Is there anyway to preserve client side state (specifically the value of 'display') when updating a component with such a border wrapped around it? Is there a way to inspect the value of the

XSS vulnerability

2014-05-12 Thread Wayne W
Hi Its been brought to my attention that wicket seems to be XSS vulnerable. We have a public internet facing form, and by simply putting img src=x onerror=prompt(1); In the fields you can get a js prompt appearing. As add the fields have validators on them, all code is passing through the

Re: Ajax timer not counting when tab doesn't have focus?

2014-05-12 Thread Ernesto Reinaldo Barreiro
Hi Bruce, On Mon, May 12, 2014 at 4:52 PM, Bruce Lombardi brlom...@gmail.com wrote: This message is related to an original thread Link to Wicket page from Javascript but the focus is changed so much that I though a new title would be better. In the earlier thread I asked about linking to

Re: Behavior rendering

2014-05-12 Thread Martin Grigorov
Wicket.Event.subscribe(Wicket.Event.Topic.DOM_NODE_REMOVING, function(jqEvent, toBeRemovedElement) { preserveAttrs(toBeRemovedElement) }) Wicket.Event.subscribe(Wicket.Event.Topic.DOM_NODE_ADDED, function(jqEvent, addedElement) { restoreAttrs(addedElement) }) Martin Grigorov Wicket Training and

# in URL

2014-05-12 Thread infiniter
Wicket version: 6.7.0 I need to get the url parameters even if there is a #, because I have an AngularJS app running inside my Wicket page, which requires it. E.g.: mysite.com/myapp/#/john. John is shown by Wicket and AngularJS. However if there is a # in the url, the PageParemeters object comes