Re: problem with AbstractEntityModel from Igor Vaynberg

2014-05-12 Thread Stefan Renz
Hi, Piratenvisier wrote: > 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); >

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

2014-05-12 Thread Martin Grigorov
It could be that https://issues.apache.org/jira/browse/WICKET-5570 is the issue. Please try with 6.16.0-SNAPSHOT if you can. Martin Grigorov Wicket Training and Consulting On Mon, May 12, 2014 at 8:02 PM, Bruce Lombardi wrote: > Thanks Ernesto. > > Yes, I do mean another browser tab. I have so

# 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

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 Co

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 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 a Wicket > pag

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 In the fields you can get a js prompt appearing. As add the fields have validators on them, all code is passing through the wicket based code. If there any wa

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 elem

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. I

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 ---

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 woul

Re: adding Foundation

2014-05-12 Thread Martin Grigorov
Hi, The problem is elsewhere: https://issues.apache.org/jira/browse/WICKET-3433 Use a 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 wrote: > In data lunedì 12 maggio 2014 10:46:28, Martin Gr

Re: Email template with css

2014-05-12 Thread Martin Grigorov
Hi, On Mon, May 12, 2014 at 5:36 PM, Sandor Feher 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 bufferedWebResponse = n

[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 Wick

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); webPage.getRequestCycle().setRespo

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); kunde.addNachweis(NachweiseForm.this.

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 Moxt

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

2014-05-12 Thread Sven Meier
parent.visitChildren(FormComponent.class, new IVisitorVoid>() { @Override public void component(final FormComponent component, final IVisit visit) { // do something with form components } }); Regards Sven On 05/08

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 wrote: > Hi, > > See org.apache.wicket.ajax.IAjaxRegionMarkupIdProvider > > Martin Grigorov > Wicket Training and Consulting > > > On Fri, May 9, 2014 at 9:34 PM, Nick Pratt wrote: > > > I have a Behavior attac

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 resourceDecoratio

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 TextFilteredPropertyColumn(new ResourceModel("beosztottakform.torzsszam"), "HrpBbstorzsPK.torzsszam", "HrpBbstorzsPK.torzsszam")); If this field is part of filterform then I have to fill

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; Than

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 wrote: > on html side i am writing > > > and java side i

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: users-unsubscr...@wick

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 m

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

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 Pratt

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 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 690 line

Re: internationalization of FileUploadField labels

2014-05-12 Thread rajsolitary
on html side i am writing 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 this default value which is coming to my cu