Re: Header contribution ordering

2015-04-09 Thread Nick Pratt
wrote: Hi, On Thu, Apr 9, 2015 at 9:23 PM, Nick Pratt nbpr...@gmail.com wrote: Based on the wicket guide, since 1.5 the header contributions of children should occur before that of the Page they are contained in so that the Page can override any component contributions. Is this still

Header contribution ordering

2015-04-09 Thread Nick Pratt
Based on the wicket guide, since 1.5 the header contributions of children should occur before that of the Page they are contained in so that the Page can override any component contributions. Is this still valid? We've got a case where a Panel is contributing a CSS file that's appearing in the

Re: Gzipping served resources

2015-04-06 Thread Nick Pratt
web.xml ? Put a debugger in it and see what happens when a Wicket static resource is requested. Martin Grigorov Freelancer, available for hire! Wicket Training and Consulting https://twitter.com/mtgrigorov On Sun, Apr 5, 2015 at 8:52 PM, Nick Pratt nbpr...@gmail.com wrote: We've checked all

Re: Gzipping served resources

2015-04-06 Thread Nick Pratt
and .js files being served? Nick On Mon, Apr 6, 2015 at 11:32 AM, Nick Pratt nbpr...@gmail.com wrote: I had a feeling I did, but the problem still remains. Anyway, the resources served by Wicket are served on a response that is committed (likely due to a flush() invocation). The Jetty

Re: Gzipping served resources

2015-04-06 Thread Nick Pratt
Any chance it can be back ported into 6.20 ? On Mon, Apr 6, 2015 at 12:17 PM, Martin Grigorov mgrigo...@apache.org wrote: We've figured out that some time ago and removed it for Wicket 7.x. On Apr 6, 2015 7:00 PM, Nick Pratt nbpr...@gmail.com wrote: OK, now the Wicket cause of this: Why

Re: Gzipping served resources

2015-04-06 Thread Nick Pratt
Done: https://issues.apache.org/jira/browse/WICKET-5873 Regards Nick On Mon, Apr 6, 2015 at 12:22 PM, Martin Grigorov mgrigo...@apache.org wrote: Afaik it didn't break anything in 7.x so I think it is safe to be back ported. Please file a ticket. On Apr 6, 2015 7:20 PM, Nick Pratt nbpr

Having Wicket manage resources outside classpath

2015-01-30 Thread Nick Pratt
is it possible to have Wicket manage resources (.css and .js) outside of the classpath, so that we can leverage all the great dev/prod things that Wicket does with resources served from within the classpath? We typically put our resources at the root of the context: /assets/css /assets/js

Handling errors in dynamic Resource generation

2015-01-12 Thread Nick Pratt
I have an AbstractResource modelled after section 15.9 in the Wicket Guide: http://wicket.apache.org/guide/guide/resources.html What is the correct way to handle errors (such as expected dynamic data not available) during the writeCallback? The specific line in the example is:

Re: Handling errors in dynamic Resource generation

2015-01-12 Thread Nick Pratt
Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Jan 12, 2015 at 8:46 PM, Nick Pratt nbpr...@gmail.com wrote: I have an AbstractResource modelled after section 15.9 in the Wicket Guide: http://wicket.apache.org/guide/guide/resources.html What is the correct way

Re: Ordering of OnDomReadyHeaderItem

2014-11-03 Thread Nick Pratt
I've just added a new global event that is fired once all Wicket.Ajax.ajax() calls are done. https://issues.apache.org/jira/browse/WICKET-5746 Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Oct 31, 2014 at 7:58 PM, Nick Pratt nbpr...@gmail.com wrote

Ordering of OnDomReadyHeaderItem

2014-10-31 Thread Nick Pratt
Is is possible to modify the ordering of OnDomReadyHeaderItem? I see a way to modify the JS lib ordering using IResourceSettings#setHeaderItemComparator, but that doesn't get invoked for all the click handlers and scripts added via OnDomReadyHeaderItem. I have a script that needs to be invoked

Re: Ordering of OnDomReadyHeaderItem

2014-10-31 Thread Nick Pratt
lower down the page. On Fri, Oct 31, 2014 at 11:01 AM, Nick Pratt nbpr...@gmail.com wrote: Is is possible to modify the ordering of OnDomReadyHeaderItem? I see a way to modify the JS lib ordering using IResourceSettings#setHeaderItemComparator, but that doesn't get invoked for all the click

Unit testing RadioChoice with AjaxFormComponentUpdatingBehavior

2014-10-30 Thread Nick Pratt
Wicket 6.17.0 I have a RadioChoice (in a Form) that has an attached AjaxFormComponentUpdatingBehavior. The onUpdate() method of the Behavior fires an event for other components on the page to update (change visibility depending on user selection in radio choice). Im trying to unit test it

Re: Unit testing RadioChoice with AjaxFormComponentUpdatingBehavior

2014-10-30 Thread Nick Pratt
an.delb...@gmail.com wrote: On 30/10/14 21:08, Nick Pratt wrote: Wicket 6.17.0 I have a RadioChoice (in a Form) that has an attached AjaxFormComponentUpdatingBehavior. The onUpdate() method of the Behavior fires an event for other components on the page to update (change visibility depending

Re: Unit testing RadioChoice with AjaxFormComponentUpdatingBehavior

2014-10-30 Thread Nick Pratt
to create the AjaxTarget and etc. See Testing AJAX behaviors section at: http://wicket.apache.org/guide/guide/testing.html On Thu, Oct 30, 2014 at 4:27 PM, Andrea Del Bene an.delb...@gmail.com wrote: On 30/10/14 21:08, Nick Pratt wrote: Wicket 6.17.0 I have a RadioChoice (in a Form

Re: Unit testing RadioChoice with AjaxFormComponentUpdatingBehavior

2014-10-30 Thread Nick Pratt
a RadioChoice with a ListString of choices, A,B,C,D,E. There must be something in our application that's causing the invocation to be rejected which Ill dig in to. On Thu, Oct 30, 2014 at 4:27 PM, Andrea Del Bene an.delb...@gmail.com wrote: On 30/10/14 21:08, Nick Pratt wrote: Wicket 6.17.0 I have

Re: turning off page versioning

2014-09-24 Thread Nick Pratt
impact data flow between the browser and Wicket. I do also think that developer knowledge on webapp construction/architecture has changed/improved a lot in the last 6 years, and perhaps we've all learnt something about simpler constructs. Perhaps not :-) JM2C. Nick On Wed, Sep 24, 2014 at 8:26 AM

Extending Border

2014-05-16 Thread Nick Pratt
I get the child markup dropped in to the wicket:body section)? I'm currently hitting: B.html: Unable to find wicket:border tag in associated markup file for Border: [B [Component id = bPanel]] MarkupStream: [unknown] Regards Nick

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: 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: Behavior rendering

2014-05-12 Thread Nick Pratt
of the element attributes being replaced before Wicket replaces the element in the DOM, and then after its replaced the element set some attribute values back that were set previously? N On Mon, May 12, 2014 at 8:06 AM, Nick Pratt nbpr...@gmail.com wrote: This works great - thank you. Nick On Sun

Behavior rendering

2014-05-11 Thread Nick Pratt
I have a Behavior attached to a WebMarkupContainer with a bind() method as follows: @Override public void bind( Component component ) { this.boundComponent = component; component.setOutputMarkupId( true ); component.setOutputMarkupPlaceholderTag( true );

Re: WildCard URL strategy for E-Commerce Products

2014-03-15 Thread Nick Pratt
Mount your product details page and then use PagePatameters to extract the query params. N On Mar 15, 2014 10:44 AM, Arjun Dhar dhar...@yahoo.com wrote: Hi, for the sake of SEO. It is recommended that URL path params for a product look like: Example --

Testing Form with AjaxSubmitLink

2014-03-13 Thread Nick Pratt
How do you submit a form via WicketTester and an AjaxSubmitLink? *HomePage.java:* public class HomePage extends WebPage { private static final long serialVersionUID = 1L; private String email; public HomePage( final PageParameters parameters ) { super( parameters ); Form form = new Form(

Re: Testing Form with AjaxSubmitLink

2014-03-13 Thread Nick Pratt
#clickLink(java.lang.String, boolean) Martin Grigorov Wicket Training and Consulting On Thu, Mar 13, 2014 at 8:06 PM, Nick Pratt nbpr...@gmail.com wrote: How do you submit a form via WicketTester and an AjaxSubmitLink? *HomePage.java:* public class HomePage extends WebPage

ListView - onComponentTag

2014-03-10 Thread Nick Pratt
Is there any reason why onComponentTag() wouldn't be invoked on a ListView: ListViewUser users = new ListViewUser( team-members, usersModel ) { @Override protected void onComponentTag( ComponentTag tag ) { super.onComponentTag( tag ); int i = 0; } ... I set a breakpoint on 'int i =0'; but

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)

Form submit without URL modification

2013-12-20 Thread Nick Pratt
Is it possible to create a form submission that hits a specific URL and doesn't modify the original URL displayed in the browser. e.g. I have a single simple Page, that has a StatelessForm on it. I hit this via http://localhost:8080/ When I hit the form submit button, the URL in the browser

WicketTester - asserting on HTML

2013-11-21 Thread Nick Pratt
Is it possible to to make assertions on the rendered HTML of a Wicket page? Im trying to make assertions on element attributes (class contents specifically). Is this possible with WicketTester? N

Re: Conditionally include header item when page contains ajax components

2013-11-14 Thread Nick Pratt
The javascript will only be included if your Ajax enabled component is included that in turn references the JS ResourceReference, otherwise it wont be. N On Thu, Nov 14, 2013 at 7:59 AM, Marios Skounakis msc...@gmail.com wrote: If I'm not mistaken this will cause JQuery to be included

Re: Conditionally include header item when page contains ajax components

2013-11-14 Thread Nick Pratt
loaded in Page A then some component on that page requires the Wicket JS libraries and is causing it to be added. N On Thu, Nov 14, 2013 at 8:56 AM, Marios Skounakis msc...@gmail.com wrote: Thanks Martin, this worked well. Sebastien and Nick, I tried the solution

Re: Conditionally include header item when page contains ajax components

2013-11-14 Thread Nick Pratt
this all in Application.init() )? Nick On Thu, Nov 14, 2013 at 3:04 PM, Marios Skounakis msc...@gmail.com wrote: I probably wasn't clear enough. Here's my case: BasePage.renderHead() adds veil.js as javascript resource reference. All my pages inherit from BasePage. But veil.js is only useful

Re: Issue w/ Ajax and setting form containers visible in Deployment mode.

2013-11-07 Thread Nick Pratt
This functionality does work - can you put your code up on pastebin/gist/whatever so we can take a look? (Markup and Source please) On Wed, Nov 6, 2013 at 8:14 PM, Ben S br...@yahoo.com wrote: Hello, I've been trying to work on this issue for hours and have had no luck. Basically, my code

Component detecting Ajax update

2013-11-01 Thread Nick Pratt
Is there a way for a Component to detect if its been added to an AjaxRequestTarget? N

RequestCycle with multiple handlers

2013-10-31 Thread Nick Pratt
Wicket 6.11 I have an AbstractDefaultAjaxBehavior that returns JSON in its protected void respond( AjaxRequestTarget target ) method by: requestCycle.scheduleRequestHandlerAfterCurrent( new TextRequestHandler( text/plain, UTF-8, json ) ); This ADAB is used for returning status information back

Re: RequestCycle with multiple handlers

2013-10-31 Thread Nick Pratt
you can return your JSON as part as a javaScript eval target.append(myEvalaJSON('JSON')) ? On Thu, Oct 31, 2013 at 8:35 PM, Nick Pratt nbpr...@gmail.com wrote: Wicket 6.11 I have an AbstractDefaultAjaxBehavior that returns JSON in its protected void respond( AjaxRequestTarget

Re: RequestCycle with multiple handlers

2013-10-31 Thread Nick Pratt
On Thu, Oct 31, 2013 at 5:28 PM, Nick Pratt nbpr...@gmail.com wrote: The JS component sends JSON to the server and expects JSON in response. I was stepping through the Wicket code, and it looks like I can only invoke scheduleRequestHandlerAfterCurrent once since there is only a single 'next

Re: CSS include order

2013-10-24 Thread Nick Pratt
See http://wicketinaction.com/2012/07/wicket-6-resource-management/ for explanation of all of those approaches. On Wed, Oct 23, 2013 at 6:34 PM, Nick Pratt nbpr...@gmail.com wrote: Is there a quick/simple way to ensure that our site-wide CSS is included last (as included in our BasePage.html

CSS include order

2013-10-23 Thread Nick Pratt
Is there a quick/simple way to ensure that our site-wide CSS is included last (as included in our BasePage.html head section), after all other Components have contributed their CSS files? N

Re: continueToOriginalDestination issue

2013-10-02 Thread Nick Pratt
One thing to check is if your login page is stateless. If its not, and you attempt to login using your login page some time after your initially loaded the page in the browser, then the original login page displayed would have timed out and the attempted login wont succeed. Ive seen this

Re: continueToOriginalDestination issue

2013-10-02 Thread Nick Pratt
() + - + component.getPageRelativePath() ); } } ); } On Wed, Oct 2, 2013 at 5:05 PM, shimin_q smq...@hotmail.com wrote: This could explain the intermittent nature of the problem. Thanks, Nick! Could you elaborate on what you mean by stateless login page? Here is my Login page and Login Form inside it. Could you

Re: continueToOriginalDestination issue

2013-10-02 Thread Nick Pratt
Are you entering the URL of your main page or your login page? You also have to check if there is a continue-to-destination field set and if not you have to send your user to a default home page. N On Oct 2, 2013 8:18 PM, shimin_q smq...@hotmail.com wrote: Thanks - that sounds exactly what I

Re: Rendering conditional html tags for IE CSS targetting

2013-08-14 Thread Nick Pratt
The workaround we use is to have multiple html close tags: !--[if lt IE 7]/html![endif]-- !--[if IE 7]/html![endif]-- !--[if IE 8]/html![endif]-- !--[if gt IE 8]!--/html!--![endif]-- On Wed, Aug 14, 2013 at 7:17 AM, Robert Gründler r.gruend...@gmail.comwrote: Hi, i'm trying to use the

Re: receive non-wicket json payload via wicket website

2013-08-04 Thread Nick Pratt
Write a servlet. On Aug 4, 2013 10:35 AM, ricb r...@brinydeep.net wrote: I have a requirement to receive some json payloads via a wicket website. (I have IP and port restrictions that make it difficult to receive it elsewhere.) These payloads are unrelated to the content of the website, and

Re: Wicket with Spring for IOC

2013-06-25 Thread Nick Pratt
I have the following in my web.xml: filter filter-nameWicketAppFilter/filter-name filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class init-param param-name*applicationClassName*/param-name

Re: Introduction and some questions about Wicket

2013-06-13 Thread Nick Pratt
to understanding Java and/or Wicket, and thus a significant impedance mismatch exists between the two efforts. If you find a Java dev with solid CSS knowledge, hang on to them! Nick On Wed, Jun 12, 2013 at 3:47 PM, Michael Pence mike.pe...@gmail.com wrote: Hi guys, My name is Mike Pence. I think that I

Re: Wicket mail and pdf

2013-06-13 Thread Nick Pratt
Did you modify your pom.xml to include the PDF? In buildresources you should have something similar to: resource filteringfalse/filtering directorysrc/main/java/directory includes include**/include

Re: Spring @Autowire not working

2013-05-12 Thread Nick Pratt
to annotate the fields you want autowired. There are a handful of other cases where you will have to trigger the bean injection manually, but get your basic app working first with Spring. N On Sun, May 12, 2013 at 12:34 AM, ORACLEADF ora@gmail.com wrote: Hi Nick Thank you. I create a file

Re: Spring @Autowire not working

2013-05-11 Thread Nick Pratt
@Autowired is a Spring thing. If you want to use auto wired beans within a Wicket instantiated page (as opposed to an object instantiated inside/by the Spring container) you need to use the @SpringBean annotation (which is a Wicket provided annotation) N On Sat, May 11, 2013 at 11:27 AM,

Re: Spring @Autowire not working

2013-05-11 Thread Nick Pratt
Are your unit tests extending one of the Spring unit test base classes, or are you running with one of the Spring Junit Test runners? On Sat, May 11, 2013 at 12:12 PM, ORACLEADF ora@gmail.com wrote: Nick, you are probably right and maybe this post doesn't belong on the Wicket forum

Re: Redirect user in Ajax response

2013-05-06 Thread Nick Pratt
case works as expected. Enter anything for user and password. On Mon, May 6, 2013 at 11:04 AM, Nick Pratt nbpr...@gmail.com wrote: Im trying to redirect a user from an emailed link to an authenticated page. The user clicks the link, I show a page (after checking the link validity etc

Re: Adding javascript to form submit

2013-05-06 Thread Nick Pratt
Add an AjaxFormSubmitBehavior and override getPreconditionScript() (or override that for your AjaxButton) On Mon, May 6, 2013 at 11:39 AM, krishnamohank k.krishnamoha...@gmail.comwrote: I have a wicket Form and a AjaxButton on it, my requirement is to create a cookie/local storage on form

Re: May Ajax handlers in Wicket 6 slow down rendering?

2013-05-03 Thread Nick Pratt
family. On Fri, May 3, 2013 at 12:15 AM, Nick Pratt nbpr...@gmail.com wrote: Any demos of this with Wicket form components or simple click listeners ? I'd much rather a repeater have a single listener for grouped events (or maybe at the column level for tables) N

Re: May Ajax handlers in Wicket 6 slow down rendering?

2013-05-02 Thread Nick Pratt
Any demos of this with Wicket form components or simple click listeners ? I'd much rather a repeater have a single listener for grouped events (or maybe at the column level for tables) N On May 2, 2013 6:10 PM, Dan Retzlaff dretzl...@gmail.com wrote: Martin-G elaborated a bit on this last

Re: Skip dynamically an item in populateItem of ListView

2013-04-30 Thread Nick Pratt
Surely the list is provided to the ListView (either via a List or IModelList). So just wrap that List or IModel in another IModel (LoadableDetachableModel) and then filter the List contents inside the getObject() call. N On Tue, Apr 30, 2013 at 9:21 AM, Marco Di Sabatino Di Diodoro

Changes in Wicket 6.x branch related to page instantiation?

2013-04-19 Thread Nick Pratt
, showed the login page and allowed authentication, and then after successful auth, the page I had constructed was shown. Now with Wicket 6.7.0 Im hitting exceptions during the initial page construction - Im getting a RestartResponseAtInterceptPageException during the constructor. Any thoughts? Nick

Re: Changes in Wicket 6.x branch related to page instantiation?

2013-04-19 Thread Nick Pratt
There is no stack. All I see in the Exception is: org.apache.wicket.RestartResponseAtInterceptPageException Nick On Fri, Apr 19, 2013 at 9:42 AM, Martin Grigorov mgrigo...@apache.orgwrote: Show us the stacktrace. On Fri, Apr 19, 2013 at 4:36 PM, Nick Pratt nbpr...@gmail.com wrote

Re: Update ListView with Ajax, performance.

2013-04-12 Thread Nick Pratt
fairly minimal in nature - you'll need to understand the JS docs to get anywhere with it. I think there's a Wicket lib for Datatables, but I dont know its maintenance status. There are countless other JS libraries to do this as well. Nick On Fri, Apr 12, 2013 at 4:05 PM, Raul ralva...@netwie.com

Re: Update ListView with Ajax, performance.

2013-04-12 Thread Nick Pratt
, and work very well. N On Fri, Apr 12, 2013 at 4:36 PM, Raul ralva...@netwie.com wrote: Nick, I sensed that the solution was going to use Javascript, my question was if there was any easier than the framework could provide. Select2 prove. Alexy single client solution does not help me as I

AddOrReplace with Ajax

2013-04-11 Thread Nick Pratt
value? Regards Nick

Repainting repeaters - why the need for the enclosing element

2013-04-09 Thread Nick Pratt
I've never really understood this concept, and Im hoping that someone can explain: When I have a repeater, say a ListView, and I have the tags set up: div wicket:id=myRepeater ... whatever ... /div Why cant I repaint that component via Ajax? There's an ID etc. - what in Wicket forces us to

Markup ID set on a container

2013-04-03 Thread Nick Pratt
Ive started to see this in my logs: 2013-04-03 14:11:31,332 WARN [http-bio-8080-exec-2] org.apache.wicket.Component - Markup id set on a component that is usually not rendered into markup. Markup id: wmcb7, component id: wmc, component tag: container. 2013-04-03 14:11:35,079 WARN

Re: Markup ID set on a container

2013-04-03 Thread Nick Pratt
Ah, many thanks Igor! Nick On Wed, Apr 3, 2013 at 2:23 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: this warning is because you attach the webmarkupcontainer to a wicket:container tag this tag is not rendered in deployment mode, so the id you want to output using setOutputMarkupId

Re: Tracking performance issues on requests best practices

2013-04-01 Thread Nick Pratt
We use JProfiler, but Ive also used Yourkit (both very good profilers). N On Mon, Apr 1, 2013 at 3:45 PM, Serban.Balamaci thespamtr...@gmail.comwrote: Hello guys, I'm trying to have a finer look at what is taking time on the serverside in our application. What I have so far is that I'm

Re: Wicket and Stripe integration

2013-03-12 Thread Nick Pratt
This really boils down to being able to intercept the form submit action, fire off the Stripe JS, and then once that action returns, trigger the normal Wicket form submission. Can such form interception be done? On Tue, Mar 12, 2013 at 3:36 PM, Nick Pratt nbpr...@gmail.com wrote: Has anyone

Re: Page Hierachy and Packages

2013-03-08 Thread Nick Pratt
Do the pages in your auth package inherit from your BasePage class? In your auth package pages markup, do you have wicket:extend tags? Nick On Fri, Mar 8, 2013 at 9:17 AM, David Beer david.m.b...@gmail.com wrote: Hi All I am new Wicket and like what I have found so far. My problem is that I

Re: ThreadLocal with ajax

2013-03-06 Thread Nick Pratt
How are you ensuring that the thread that created the page is the same one that's used to service the AJAX call? N On Mar 6, 2013 6:37 AM, Ann Baert ann.ba...@tvh.com wrote: Hi, I have a springbean with a ThreadLocal property. On the page (constructor and onBeforeRenderer) I set a value to

Re: Sending Data via Javascript and AJAX

2013-03-06 Thread Nick Mudge
that is then sent the server via AJAX. Then I need to update a label on the webpage saying that the data has been saved. How can I do this? Thanks Nick On Wed, Mar 6, 2013 at 12:34 AM, Martin Grigorov mgrigo...@apache.orgwrote: Hi, Take a look at AjaxEditableLabel, it sends a parameter named save

Re: Sending Data via Javascript and AJAX

2013-03-06 Thread Nick Mudge
Hi, Where is the example? Nick On Wed, Mar 6, 2013 at 8:32 AM, Martin Grigorov mgrigo...@apache.orgwrote: On Wed, Mar 6, 2013 at 6:24 PM, Nick Mudge mud...@gmail.com wrote: Hi, Why would I look at the AjaxEditableLabel? According to the javadoc for it, To see an example how

Re: Sending Data via Javascript and AJAX

2013-03-06 Thread Nick Mudge
I see, Martin wanted me to look at the source code of AjaxEditableLabel. I didn't know that. I understand now. Thank you. On Wed, Mar 6, 2013 at 9:01 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Hi, On Wed, Mar 6, 2013 at 5:57 PM, Nick Mudge mud...@gmail.com wrote: Hi

Re: Sending Data via Javascript and AJAX

2013-03-06 Thread Nick Mudge
on the webpage that says the data has been saved. The string value contains a lot of data and so the value cannot be put in a URL. I am using Wicket 1.4. Thanks Nick On Wed, Mar 6, 2013 at 9:09 AM, Nick Mudge mud...@gmail.com wrote: I see, Martin wanted me to look at the source code

Re: JS execution order problem

2013-03-06 Thread Nick Pratt
and then the Datatables.net JS (which is on the parent DefaultDataTable) To reproduce simply click any of the Click Me cells in the table. Any suggestions would be most appreciated, Regards Nick --**--**- To unsubscribe, e-mail: users-unsubscribe

Re: JS execution order problem

2013-03-06 Thread Nick Pratt
the order of the JS of the parent and child elements? N On Wed, Mar 6, 2013 at 12:27 PM, Nick Pratt nbpr...@gmail.com wrote: Thanks - that seems to confirm the problem - delaying the Datatables JS to after the Wicket link listeners have executed will fix it, since the errors are coming from

Re: Sending Data via Javascript and AJAX

2013-03-06 Thread Nick Mudge
Great, do you know of any good examples using wicketAjaxPost? On Wed, Mar 6, 2013 at 9:35 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Hi, On Wed, Mar 6, 2013 at 6:18 PM, Nick Mudge mud...@gmail.com wrote: Looks like the problem with AjaxEditableLabel is that it sends data

Re: JS execution order problem

2013-03-06 Thread Nick Pratt
I logged: https://issues.apache.org/jira/browse/WICKET-5082 and added some comments with my interpretation of what's going on. N On Wed, Mar 6, 2013 at 12:31 PM, Nick Pratt nbpr...@gmail.com wrote: I take some of that back: In the initial page rendering, the Javascript is ordered as I expect

Re: Loading different ApplicationContexts(Spring) for each WicketServlet

2013-03-05 Thread Nick Pratt
You could embed Jetty inside your app (rather than deploying a war to tomcat) and run multiple copies taking a couple of command line params - namely port number and config file location. N On Mar 5, 2013 7:19 AM, MG miha.go...@gmail.com wrote: You can try with different interfaces for the

Sending Data via Javascript and AJAX

2013-03-05 Thread Nick Mudge
in a database. Then I want a label to appear on the webpage that says the data has been saved. I am new to Wicket and I am using Wicket 1.4. How should I do this? Is there an example of something like this? Thanks Nick Mudge

Re: Dynamic Sidebar

2013-03-04 Thread Nick Pratt
will be something like: ol li wicket:id=linksId a wicket:id=linkId/a /li /ol Nick On Sat, Mar 2, 2013 at 5:26 PM, Stephen Walsh step...@connectwithawalsh.com wrote: I think that's what I'm having trouble with. I have created the list view like this: //define menu items final ListLink

Re: Dynamic Sidebar

2013-03-02 Thread Nick Pratt
You can use a ListView or any of the other repeaters to achieve this. Your repeated markup will be an anchor. N On Mar 2, 2013 3:35 PM, Stephen Walsh step...@connectwithawalsh.com wrote: I want to create a sidebar panel that is dynamic based on the links attach to it. So far I have created a

Re: Conditional Logic in HTML

2013-02-28 Thread Nick Pratt
, Nick Pratt nbpr...@gmail.com wrote: Should the following work with Wicket 6.5/6.6? !DOCTYPE html !--[if IE] html class=IE ![endif]-- !--[if !IE] -- html class=NOT_IE !-- ![endif]-- /html Wicket is not parsing the conditional when its around the html element itself - its failing

Re: Infinite Scrolling in Wicket 6

2013-02-27 Thread Nick Pratt
Ive used Datatables (www.datatables.net) for similar features and it works pretty well. N On Wed, Feb 27, 2013 at 4:58 AM, Martin Dietze d...@fh-wedel.de wrote: I will soon have to implement infinite scrolling in my project and would thus like to know if there are already libraries or code

Re: a loading ... something ...

2013-02-13 Thread Nick Pratt
AjaxLazyLoadingPanel or write your own async models. Look back at the recent mailing list history - someone kindly posted an example application utilizing various async loading techniques. This would be a good topic for the new ref docs! N On Wed, Feb 13, 2013 at 12:15 PM, grazia

Re: Wicket job market

2013-02-05 Thread Nick Heudecker
HTML and Java support. Right now Wicketforge has no open tickets. If the plugin doesn't do something you want it to do, checkout the source and contribute back. I'm sure Minas would love to get some patches, and if he's busy I'll come out of plugin retirement and take a look. -Nick On Tue, Feb 5

Re: Wicket job market

2013-02-05 Thread Nick Heudecker
Did you file a ticket for the problems you experienced? On Tue, Feb 5, 2013 at 12:21 PM, procrastinative.developer procrastinative.develo...@gmail.com wrote: I was testing this plugin a some time ago and I had a lot of problems with it (NPE, no switching between files). I was so frustrated

Re: ReferenceError: wicketGet is not defined

2013-02-01 Thread Nick Pratt
Some examples here for 6.0: https://cwiki.apache.org/WICKET/calling-wicket-from-javascript.html On Fri, Feb 1, 2013 at 11:27 AM, Martin Grigorov mgrigo...@apache.orgwrote: wicketGet - Wicket.get() (or Wicket.$()) For Wicket 6 all such small methods were moved into Wicket.** namespace. There

Re: collecting JavaScripts evals to improve client side rendering times and decrease response sizes

2013-01-25 Thread Nick Pratt
Couldn't we make some of these additional optimizations part of the deployment options, similar to how other things are enabled in development vs deployment? N On Fri, Jan 25, 2013 at 8:42 AM, Martin Grigorov mgrigo...@apache.orgwrote: On Fri, Jan 25, 2013 at 3:30 PM, Ernesto Reinaldo Barreiro

Re: Component to String

2013-01-24 Thread Nick Pratt
The real issue here is that most Email clients render HTML really badly, or dont render it at all (or their implementations of such rendering is just wrong). Even modern email clients, like the latest Outlook or GMail dont render significant portions of HTML/CSS correctly, and you will likely

Re: Best way to set up a handler for 'Internal error'

2012-12-25 Thread Nick Pratt
Does Application getExceptionSettings().setUnexpectedExceptionDisplay( ); help? Look at DefaultExceptionMapper (which I think you can also set in Application.init() ) N On Tue, Dec 25, 2012 at 3:15 PM, Chris Colman chr...@stepaheadsoftware.comwrote: When running in production mode and an

Re: Form submit with CollectionChild

2012-12-11 Thread Nick Pratt
It works well, but not ideal - making it work with JPA does require some tweaking to prevent the Collection being replaced (and thus Hibernate will complain about the Collection not being the one it was managing) or duplicates being created. On Mon, Dec 10, 2012 at 4:11 PM, Nick Pratt nbpr

Form submit with CollectionChild

2012-12-10 Thread Nick Pratt
until the entire form is submitted (Im using JPA cascade). How do I code this part of the form/logic so that when I hit submit, I get those 2 new B entities added to the A.b collection, so that I can save(a) and have everything update? Regards Nick

Re: Form submit with CollectionChild

2012-12-10 Thread Nick Pratt
. ~ Thank you, Paul Bors -Original Message- From: Nick Pratt [mailto:nbpr...@gmail.com] Sent: Monday, December 10, 2012 1:11 PM To: users@wicket.apache.org Subject: Form submit with CollectionChild My understanding of Form submit behavior with models is that onSubmit, Wicket

Re: Form submit with CollectionChild

2012-12-10 Thread Nick Pratt
I have an LDM that I pass in to the Panel containing the Form. I wrap the passed-in LDM IModel with a CompoundPropertyModel which I supply to the Form. All my components then use wicketid--propertyExpressions. I supply the A.b name as the Wicket Id when I construct the LV. N On Mon, Dec 10,

Re: Form submit with CollectionChild

2012-12-10 Thread Nick Pratt
Here is a quickstart: https://dl.dropbox.com/u/107816727/quickstart.tar.gz Two problems: 1. Hit add more than once causes an exception 2. On form submit doesnt set the ListB up in the A instance. Any pointers would be appreciated. Regards Nick On Mon, Dec 10, 2012 at 2:49 PM, Paul Bors p

Re: Form submit with CollectionChild

2012-12-10 Thread Nick Pratt
I just found this: http://wicketinaction.com/2008/10/building-a-listeditor-form-component/which works great. N On Mon, Dec 10, 2012 at 3:56 PM, Nick Pratt nbpr...@gmail.com wrote: Here is a quickstart: https://dl.dropbox.com/u/107816727/quickstart.tar.gz Two problems: 1. Hit add more

Re: Conditional JS includes

2012-12-07 Thread Nick Pratt
Do TextTemplate's aggregate, and can that aggregate be provided as a single Resource? N On Fri, Dec 7, 2012 at 3:28 AM, Martin Grigorov mgrigo...@apache.orgwrote: You can also use TextTemplate(s) to construct/concat the JS dynamically. On Fri, Dec 7, 2012 at 12:51 AM, Nick Pratt nbpr

Create/Edit domain object data

2012-12-07 Thread Nick Pratt
Im looking for recommendations on how to work with Form data and a JPA/Hibernate model, specifically around creating and editing domain data. I have a JPA backed domain model, and I want to create a page/panel/form that allows entry of a new Foo, as well as being able to pass an existing LDMFoo

Re: Create/Edit domain object data

2012-12-07 Thread Nick Pratt
As a followup, Ive used both approaches - although we tended to wrap the non-persisted entity inside a DomainLDM N On Fri, Dec 7, 2012 at 1:14 PM, Nick Pratt nbpr...@gmail.com wrote: Im looking for recommendations on how to work with Form data and a JPA/Hibernate model, specifically around

Re: Upload file and display its contents using AJAX

2012-12-04 Thread Nick Pratt
Once the file is uploaded, set the contents of the IModel backing the TextArea, and then add the Form(or TextArea) to the AjaxRequestTarget. On Tue, Dec 4, 2012 at 11:51 AM, pureza pur...@gmail.com wrote: Hi, I need to upload a file, parse it and display its contents inside a textarea, all

Re: How to display PDF in wicket 6.0?

2012-12-04 Thread Nick Pratt
Do you want to display the PDF on screen, or provide a PDF download so that the file could be opened in Acrobat Reader (or PDF viewer of your choice)? On Tue, Dec 4, 2012 at 11:06 AM, appwicket wwx@gmail.com wrote: Hi all, I have been trying all the ways to display PDF through wicket. I

Re: which server?

2012-12-03 Thread Nick Pratt
Tomcat is stable, very widely used, and has lots of documentation / examples out there. Jetty also works well. We normally deploy on Tomcat (7.x now) On Mon, Dec 3, 2012 at 10:28 AM, Lucio Crusca lu...@sulweb.org wrote: Hello *, I'm approaching my 1st web application deployment (be it

  1   2   3   >