Teaming up remotely

2014-01-29 Thread Lucio Crusca
Hello everybody, today I need to begin a project where, for the 1st time in my life, the team members won't work close to each other, and, again for the 1st time, I'm going to use Wicket in such a project. I'm in charge of writing all the code (mostly Java with Wicket being the framework of

Re: Teaming up remotely

2014-01-29 Thread Steve
I would think that using common version control and just telling them to ignore any wicket tags or wicket attributes they see after you've modified the markup. That part is not too hard for them to get their head around. The difficulty I would think is when you start to split up html files to

Re: Teaming up remotely

2014-01-29 Thread Lucio Crusca
In data mercoledì 29 gennaio 2014 19:06:09, Steve ha scritto: The difficulty I would think is when you start to split up html files to seperate sections into their own panels. If the designer only has a view of the markup it may not be obvious to them where the subsection of the html has

Re: Is there an equivalent for ResourceReference in wicket 6

2014-01-29 Thread Simon B
Hello, I override the renderHead(HtmlHeaderContainer) method if its a Panel and renderHead(IHeaderResponse) if its a WebPage : So in the case of a Panel, I guess it would be something like: Hope that helps. -- View this message in context:

Re: Teaming up remotely

2014-01-29 Thread thomas
Am 29.01.2014 10:22, schrieb Lucio Crusca: In data mercoledì 29 gennaio 2014 19:06:09, Steve ha scritto: The difficulty I would think is when you start to split up html files to seperate sections into their own panels. If the designer only has a view of the markup it may not be obvious to

Re: Is there an equivalent for ResourceReference in wicket 6

2014-01-29 Thread Martin Grigorov
Hi, Read http://wicketinaction.com/2012/07/wicket-6-resource-management/ I am not sure where you read that ResourceReference is removed. It is still around. @Simon: renderHead(HtmlHeaderContainer) is an internal thingy that is hidden from you in Wicket 7. You should use

Which is recomended way to implemen an editable repeating view

2014-01-29 Thread cosmindumy
Hello, I want to know which is the best way to implement a repeating view, preferable data view which contains an input field in each row. On submit, I need to get an iterator to get reference both to row model (example a Person object) and to editable component (ex an input text for age). The

Re: Can I get an input text value if it's not in a form?

2014-01-29 Thread cosmindumy
Thanks. I wrapped the input in a form and used an ajax submit link. I could not figure out how can I send parameters from client by doing the work manually, but I will take a deeper look. Thanks. -- View this message in context:

Re: Teaming up remotely

2014-01-29 Thread Lucio Crusca
In data mercoledì 29 gennaio 2014 10:57:59, tho...@jarnot.de ha scritto: Is there really a need of splitting up the markup files? Well, I don't know, I mean, I've always split them up because a Wicket webapp is typically a collection of {1 java file, 1 html file by the same name} tuples.

Re: Teaming up remotely

2014-01-29 Thread Steve
I'm not sure how the MarkupParser would handle multiple wicket:panel tags in one file? How would it identify which instance of wicket:panel belonged to which java Panel? On 29/01/14 20:44, Lucio Crusca wrote: In data mercoledì 29 gennaio 2014 10:57:59, tho...@jarnot.de ha scritto: Is there

Re: Teaming up remotely

2014-01-29 Thread thomas
Sorry that my attemp to explain misled you thinking, that everything should be one file. Trying again... Taking the case of a panel. I still think working on different aspects of the file (design and logic) can be a non-conflicting business. From a desinger's point of view, the markup file,

AjaxLazyLoadPanel loading asynchronously

2014-01-29 Thread Vishal Popat
Hi, I have a situation where I have to make multiple REST calls to different suppliers. I currently am using AjaxLazyLoadPanel to make these calls but loading time is very slow and not scaleable if I wanted to add more suppliers. Is there a way to make AjaxLazyLoadPanel asynchronously? I have

Re: Teaming up remotely

2014-01-29 Thread Nick Pratt
We found the simplest way to handle this situation was to let the HTML/CSS folks design and style the page in pure HTML, no Wicket tags, with sample data they made up. They then committed their changes into the shared VCS. The designers Ive worked with in the past just didn't (or didn't want to)

Re: AjaxLazyLoadPanel loading asynchronously

2014-01-29 Thread Ernesto Reinaldo Barreiro
Hi, I remember Igor posted and example of a non-blocking lazy load panel (long time ago). As far as I remember all it did was: 1-Check is results where ready is so render the panel 2-If not then schedule a timer to poll the panel again On Wed, Jan 29, 2014 at 1:28 PM, Vishal Popat

Re: Teaming up remotely

2014-01-29 Thread Steve
I think the lesson here is that designers will never be programmers and programmers will never be designers but each needs to have a little of the other or the end result will be functionaly useless static web pages (in the case of designers) or functional pages that look like a dogs breakfast.

Re: Is there an equivalent for ResourceReference in wicket 6

2014-01-29 Thread Simon B
Hello Martin, Thanks for the heads up, I'll definitely make that change in my project, Cheers -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Is-there-an-equivalent-for-ResourceReference-in-wicket-6-tp4664014p4664041.html Sent from the Users forum mailing list

Re: Wicket 6 - JavaScriptHeaderItem renders too early

2014-01-29 Thread Entropy
For posterity, the solution that eventually worked for me: response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(ExtGrid.class, ExtGridSupport.js))); response.render(OnDomReadyHeaderItem.forScript(writeGridJS())); The on dom ready delays my init long enough to serve

Invoke Wicket from JavaSctipt

2014-01-29 Thread Entropy
I want a javascript method to wrap the wicket invocation. I passed the following to Wicket.Ajax.ajax. This is what I see in firebug. attrs { c=grid6, u=./?3-6.IBehaviorListene...ent-assetListTable-grid, ep=[{action=cellClick}, {key=8}, {column=caseNumber} ] } But

Re: Invoke Wicket from JavaSctipt

2014-01-29 Thread Martin Grigorov
Hi, extra parameters supports two syntaxes: - simple: { k1: v1, k2: v2 } - advanced: [ {name: k1, value: v1}, {name: k2, value: v2} ] The advanced way should be used when you have several values for the same key. On Wed, Jan 29, 2014 at 4:31 PM, Entropy blmulholl...@gmail.com wrote: I

Re: AjaxLazyLoadPanel loading asynchronously

2014-01-29 Thread Peter Henderson
On 29 January 2014 12:28, Vishal Popat vishal.po...@cipriati.co.uk wrote: Hi, I have a situation where I have to make multiple REST calls to different suppliers. I currently am using AjaxLazyLoadPanel to make these calls but loading time is very slow and not scaleable if I wanted to add

XSS in wicket. Wicket fault or my fault?

2014-01-29 Thread Gonzalo Aguilar Delgado
Hi there, I'm building an application for a client and my security advisor told me about a XSS attack that can be performed on the site. When user logs-in I welcome they by Saying Hello user. div class=thumbnail p wicket:id=message Hello

ApacheCon US 2014 Call for Presentations!

2014-01-29 Thread Martijn Dashorst
From my asking on dev@ it seems like there won't be a presence for Wicket at the revamped ApacheCon, which would be a huge shame. I am unable to make it due to scheduling conflicts, otherwise I would've done a whole Wicket track! It would be great if anyone would submit a talk about

Re: Invoke Wicket from JavaSctipt

2014-01-29 Thread Entropy
Thanks. Using the advanced method worked. Though I wasn't repeating parameters, so I am not sure why the previous didn't work. But it doesn't matter now. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Invoke-Wicket-from-JavaSctipt-tp4664043p4664050.html Sent from

Re: XSS in wicket. Wicket fault or my fault?

2014-01-29 Thread Paul Bors
No need, Wicket escapes your model objects, see Component#setEscapeModelStrings(true) for when HTML should be escaped and thus the browser won't execute it as HTML or JS. http://ci.apache.org/projects/wicket/apidocs/6.x/org/apache/wicket/Component.html#setEscapeModelStrings(boolean) That is on by

Re: Which is recomended way to implemen an editable repeating view

2014-01-29 Thread Paul Bors
Take your pick at one of the Repeaters from: http://www.wicket-library.com/wicket-examples/index.html More on them in Ch 13 Displaying multiple items with repeaters of the Wicket free guide at: http://wicket.apache.org/guide/guide/repeaters.html Or pruchase a book on Wicket such as Wicket in

Re: Invoke Wicket from JavaSctipt

2014-01-29 Thread Martin Grigorov
Pay attention to the details: In your pseudo code you have an array of objects with single key/value pair. In my simple code there is an object with many key/value pairs. Martin Grigorov Wicket Training and Consulting On Wed, Jan 29, 2014 at 9:22 PM, Entropy blmulholl...@gmail.com wrote: