Re: [OT] thanks

2013-08-14 Thread Dan Retzlaff
Have you considered nginx? We use httpd but our reverse-proxying needs are pretty simple. I've been meaning to try nginx. http://nginx.org/en/docs/http/websocket.html On Wed, Aug 14, 2013 at 7:42 AM, Pierre Goupil goupilpie...@gmail.comwrote: I use only Tomcat (7.0.40) and I must admit that

Re: How to resolve this java.util.ConcurrentModificationException

2013-08-06 Thread Dan Retzlaff
I'd use a debugger to look for live references to the map. In Eclipse, if you right-click the variable line in the Variables view, there is an All References option. The trick is instantiating the offending Wicket component to create the reference. But once created it should stick around at least

Re: How to resolve this java.util.ConcurrentModificationException

2013-08-06 Thread Dan Retzlaff
There isn't much information in that stack. Why don't you subclass LRUMap with a custom writeObject() implementation? Then you can breakpoint it, log from it, and maybe throw NotSerializableException to trigger Wicket SerializableChecker which gives nicer output. That way it triggers every time

Re: Wicket, Guice and the $Proxy object

2013-07-23 Thread Dan Retzlaff
@Inject the implementation, not the interface. @Inject'd implementations have some code smell, but no more than downcasting. On Tue, Jul 23, 2013 at 8:40 AM, Daniel Watrous dwmaill...@gmail.comwrote: That being the case, is there any way to get an instance that I can cast to a concrete type?

Re: Append elements in ajax request

2013-07-19 Thread Dan Retzlaff
Hi Bertrand, You can render into a hidden div, then use some JavaScript to move them into view. Something like this which uses jQuery. response.render(OnDomReadyHeaderItem.forScript($('#hiddenfeedback div').appendTo($('#visiblefeedback'));)); That behavior doesn't seem exactly right though. If a

Re: Grouping tags in a ListView without a parent tag

2013-07-19 Thread Dan Retzlaff
If you associate your ListView with a div that wraps your two li elements, you can call item.setRenderBodyOnly(true) to suppress the div from the markup. The two inner lis will remain. On Fri, Jul 19, 2013 at 10:34 AM, Victor Dolirio Ferreira Barbosa victor...@gmail.com wrote: Hello

Re: http://wicketinaction.com/ broken?

2013-07-19 Thread Dan Retzlaff
Busted for me. On Fri, Jul 19, 2013 at 12:54 PM, William Speirs wspe...@apache.org wrote: Worked for me... try again? Bill- On Fri, Jul 19, 2013 at 2:52 PM, Gabriel Landon glan...@piti.pf wrote: Hi, The website wicketinaction.com seems to be down, only the home page is working.

Re: http://wicketinaction.com/ broken?

2013-07-19 Thread Dan Retzlaff
request sent, awaiting response... 404 Not Found 2013-07-19 13:35:29 ERROR 404: Not Found. On Fri, Jul 19, 2013 at 1:26 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: works for me On Fri, Jul 19, 2013 at 1:19 PM, Dan Retzlaff dretzl...@gmail.com wrote: Busted for me. On Fri, Jul 19, 2013

Re: Last cause: can't serialize class $Proxy23

2013-07-18 Thread Dan Retzlaff
No, Wicket is not trying to serialize your DAO. The exception occurs in the action phase of the request handling. It looks like you've passed an object to MongoDB which has a reference to the @Injected DAO, or at least to the component that has the DAO. It's this MongoDB

Re: How to resolve this java.util.ConcurrentModificationException

2013-07-16 Thread Dan Retzlaff
Wicket serializes access to each page instance, but provides no further synchronization. Non-transient references to application data must be synchronized by you. On Tue, Jul 16, 2013 at 2:39 PM, saty satya...@gmail.com wrote: Thanks, but could you please explain how wicket handles

Re: Juniper Systems Network Filters Recently Updated Block Some Wicket URLs

2013-06-14 Thread Dan Retzlaff
Wild guess: link in query parameter is suspected of injecting malicious link into application's rendered page. On Fri, Jun 14, 2013 at 9:41 AM, Sven Meier s...@meiers.net wrote: Thanks for your information. I wonder what embedded HTML Script Tag Juniper sees in the given url:

Re: wicket-atmosphere issues

2013-06-11 Thread Dan Retzlaff
On Tue, Mar 26, 2013 at 4:31 AM, Emond Papegaaij emond.papega...@topicus.nl wrote: On Monday 25 March 2013 00:59:30 Leonid Bogdanov wrote: 3) In my app Apache Shiro framework is integrated via a plugin adapted from fiftyfive-wicket-shiro project. User credentials are checked in an AJAX

Re: PageableListView with two rows

2013-06-10 Thread Dan Retzlaff
Hi Pierre, Associate your PageableListView with a div that wraps your two trs. Use item.setRenderBodyOnly(true) to prevent the div from being rendered so your table markup is still valid. Dan On Mon, Jun 10, 2013 at 12:49 PM, Pierre Goupil goupilpie...@gmail.comwrote: Good evening, Is

Re: PageableListView with two rows

2013-06-10 Thread Dan Retzlaff
, one of one column and a last line of 4 columns. I've missed something, I'm afraid. Thank you anyway! Regards, Pierre On Mon, Jun 10, 2013 at 10:17 PM, Dan Retzlaff dretzl...@gmail.com wrote: Hi Pierre, Associate your PageableListView with a div that wraps your two trs. Use

Re: Handling user-specific timezones

2013-05-09 Thread Dan Retzlaff
Thanks, Bertrand. On Thu, May 9, 2013 at 9:47 AM, Bertrand Guay-Paquet ber...@step.polymtl.ca wrote: Do you avoid MessageFormats in StringResourceModels? (I don't see a way to configure its MessageFormat.) I convert my Dates to strings with the proper converter before passing them on to

Handling user-specific timezones

2013-05-08 Thread Dan Retzlaff
Hi all, I'd like to know what conventions you've established for your sites that deal with users in many time zones. Do you simply replace the converters (Date, SqlDate, SqlTime, SqlTimestamp)? Do you avoid MessageFormats in StringResourceModels? (I don't see a way to configure its

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

2013-05-02 Thread Dan Retzlaff
Martin-G elaborated a bit on this last year: http://mail-archives.apache.org/mod_mbox/wicket-users/201209.mbox/%3ccamomwmqdf3ytlstb_kbnvn9t1pump_-+npdtmtvyt+ac6ec...@mail.gmail.com%3E I think the gist is that you can avoid attaching listeners to each child with a single listener on the parent

Re: Interpolating variables inside web.xml

2013-04-20 Thread Dan Retzlaff
No, sorry. I'm familiar with Spring's PropertyPlaceholderConfigurer, but that only pulls properties into context definitions. The deployment descriptor lives outside of that, so that approach does not make sense to me. On Sat, Apr 20, 2013 at 5:30 AM, Leonardo D'Alimonte

Re: Interpolating variables inside web.xml

2013-04-19 Thread Dan Retzlaff
No, I don'It can't interpolate a deployment descriptor. On Fri, Apr 19, 2013 at 1:17 AM, Leonardo D'Alimonte leonardo.dalimo...@loginet.it wrote: Hey Dan, Maven War plugin is working fine as you suggested, it interpolates the ${wicket.configuration} variable correctly. I would like to see

Re: Interpolating variables inside web.xml

2013-04-19 Thread Dan Retzlaff
WicketFilter subclass that instantiates the app through the injector, and does whatever configuration you need. This is described here: http://software.danielwatrous.com/wicket-guice-including-unittests/ I'd guess that Spring provides a similar capability. On Fri, Apr 19, 2013 at 10:44 AM, Dan Retzlaff

Re: Interpolating variables inside web.xml

2013-04-18 Thread Dan Retzlaff
If you're using maven-war-plugin, you probably need to enable filtering of deployment descriptors. http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html#filteringDeploymentDescriptors On Thu, Apr 18, 2013 at 9:23 AM, Leonardo D'Alimonte leonardo.dalimo...@loginet.it wrote: Hi

Re: FileUploadField best approach to populating a file

2013-04-08 Thread Dan Retzlaff
If I understand you, the user uploads an Excel template, and the response is a populated version of that template. In this case, your form's onSubmit() should 1. get the template from an enclosed FileUploadField's model, 2. create a new file for download (temp directory is okay), and 3. schedule a

Re: Using Wicket-autocomplete.js in own custom textfield

2013-04-03 Thread Dan Retzlaff
Hi Merlijn, This is not a direct response to your question, but did you consider wicket-select2 as an alternative to AutoCompleteTextField? https://github.com/ivaynberg/wicket-select2 I don't know the specific navigation features you're talking about, but in our experience Select2 is a dramatic

Re: Best way to get the base application URL?

2013-04-03 Thread Dan Retzlaff
How about: Url relative = Url.parse(getRequest().getContextPath()); String full = getRequestCycle().getUrlRenderer().renderFullUrl(relative); Dan On Wed, Apr 3, 2013 at 5:44 AM, Andrea Del Bene an.delb...@gmail.comwrote: Hi, do you know the best way to get the base URL for our Wicket

Re: Denver

2013-04-03 Thread Dan Retzlaff
You bet! I'm just up the road in Boulder. Happy to meet up in any of the abundant local breweries. On Wed, Apr 3, 2013 at 8:01 PM, Jonathan Locke jonathan.lo...@gmail.comwrote: Hey there! Any Wicket people in Denver? I'm going on a trip from the 13th to the 21st of April and wanted to find

Re: Best Way to Perform a Quick Test

2013-04-01 Thread Dan Retzlaff
I think you misunderstand serialization. Only class member data is serialized, plus a small amount of metadata like the class name and a version. Normal methods, and any logging in those methods, have no effect on serialized output. If you tried printing and it didn't work, please share your code.

Re: Wicket and tomcat cluster

2013-03-29 Thread Dan Retzlaff
Retzlaff dretzl...@gmail.com wrote: Sorry I mistyped: default is REDIRECT_TO_BUFFER. On Thu, Mar 28, 2013 at 2:36 PM, Dan Retzlaff dretzl...@gmail.com wrote: Hi Marios, This behavior is determined by IDataStore interface. DiskDataStore is used by default, so only the most recent

Re: Proper resource versioning

2013-03-28 Thread Dan Retzlaff
Inline... On Wed, Mar 27, 2013 at 10:41 PM, Bertrand Guay-Paquet ber...@step.polymtl.ca wrote: First, when you say you serve files out of webapp folder, do you mean you're not using any ResourceReference? To answer your question, here's what I use to access my webapp resources:

Re: Proper resource versioning

2013-03-28 Thread Dan Retzlaff
On Thu, Mar 28, 2013 at 7:27 AM, Pointbreak pointbreak+wicketst...@ml1.netwrote: I don't think there's anything wrong with serving resources from the webapp-folder, I agree, it can work well for some use cases. But if you want better control over caching, and the ability point all rendered

Re: how to log an External Link

2013-03-28 Thread Dan Retzlaff
An external link by definition does not make a request to your Wicket application. The user simply bounces off to the given URL. Consider using a normal Link, and throwing RedirectToUrlException in its onClick. On Thu, Mar 28, 2013 at 9:44 AM, Karl-Heinz Golz karl-heinz.g...@t-online.de wrote:

Re: Events: Atmosphere vs. Guava vs Wicket native

2013-03-28 Thread Dan Retzlaff
Hi Jarnis. Since this didn't generate a response, I'll share some thoughts. First a disclaimer: I haven't used Wicket-Atmosphere yet, but I've read what there is to read and am looking forward to it. (We have several use cases that will benefit greatly.) Are there any good arguments for not just

Resource Serving Performance Comparison

2013-03-28 Thread Dan Retzlaff
http://www.techempower.com/blog/2013/03/28/framework-benchmarks/ For what it's worth :) Dan

Re: Wicket and tomcat cluster

2013-03-28 Thread Dan Retzlaff
Hi Marios, This behavior is determined by IDataStore interface. DiskDataStore is used by default, so only the most recent page is kept in the session (and available for failover). It puts page history into a directory specified in javax.servlet.context.tempdir servlet attribute (under work

Re: Wicket and tomcat cluster

2013-03-28 Thread Dan Retzlaff
Sorry I mistyped: default is REDIRECT_TO_BUFFER. On Thu, Mar 28, 2013 at 2:36 PM, Dan Retzlaff dretzl...@gmail.com wrote: Hi Marios, This behavior is determined by IDataStore interface. DiskDataStore is used by default, so only the most recent page is kept in the session (and available

Re: tomcat session replication

2013-03-27 Thread Dan Retzlaff
Hi, Sauli. The context of your question is not clear to me. Are you trying to upgrade a running cluster? I have not used Nginx, but Apache HTTPD allows you to disable balancer members from receiving new sessions. Alternatively, Tomcat 7 supports parallel deployments so theoretically you can

Re: Proper resource versioning

2013-03-27 Thread Dan Retzlaff
Hi, Bertrand. I don't have all your answers, but I can share my experience. First, when you say you serve files out of webapp folder, do you mean you're not using any ResourceReference? Just absolute paths from markup? I think improving that is the first thing to do. You need to process resource

Re: Adding a large amount of MarkupContainers into the ListView or RepeatingView

2013-03-26 Thread Dan Retzlaff
The javadoc for Component#put() refers to a now non-existent childForId map which got removed 8 years ago [1]! You might consider making your ListViewT into a ListViewListT and splitting the original dataset into say 10k List#subLists. It ain't pretty, but for a (nearly finished) app, it beats a

Re: readering strategy of the 'head' section

2013-03-25 Thread Dan Retzlaff
. On Sun, Mar 24, 2013 at 11:22 PM, Harrie Hazewinkel hhazewin...@gmail.comwrote: Hi Dan, Thanks for the example. On Mar 24, 2013, at 7:26 PM, Dan Retzlaff dretzl...@gmail.com wrote: Re: duplicate/conflicting contributions, Wicket automatically de-dups header contributions. See HeaderItem

Re: Serverside caching of IResource's that are expensive to generate

2013-03-25 Thread Dan Retzlaff
I believe Wicket's resource versioning and caching logic simply provides advice in HTTP response headers, and decorates filenames if so configured. Do your requests come directly to Wicket's container? We reverse proxy with HTTPD, which is probably better at caching than a Java solution could ever

Re: readering strategy of the 'head' section

2013-03-24 Thread Dan Retzlaff
We add a site-wide IHeaderContributor in Application#init() using getHeaderContributorListenerCollection(). Our initial implementation used wicket:head contributions as you do. This became difficult to maintain when we had multiple top-level pages. (Your site has only one top-level page?) We also

Re: Serialization of DAO

2013-03-17 Thread Dan Retzlaff
Wicket only injects Components and Behaviors by default. To inject into anything else, call Injector.get().inject(this) in its constructor. On Fri, Mar 15, 2013 at 2:27 PM, Stephen Walsh step...@connectwithawalsh.com wrote: I have a much better understanding on this now. Are there any plans

Re: wicket:for attribute definition in xsd

2013-01-22 Thread Dan Retzlaff
I think taking it to that level gets into the realm of xs:redefine as described here: http://www.w3.org/TR/xhtml-modularization/schema_developing.html On Tue, Jan 22, 2013 at 7:41 AM, Martin Grigorov mgrigo...@apache.orgwrote: Hi Jim, You are correct! I've missed those the other day. Do

Re: Possible to use static IBehavior/ReadOnlyModels?

2012-12-05 Thread Dan Retzlaff
Might be worth noting that as soon as it goes through a serialization round-trip it's no longer a singleton. Not a concern for a trivial AttributeAppender, but it's a Wicket+static+serialization gotcha we learned the hard way. :) On Wed, Dec 5, 2012 at 4:40 PM, Igor Vaynberg

Re: Session Destroy

2012-11-12 Thread Dan Retzlaff
Martin G put together a Session#onInvalidate() callback for this, but it didn't receive much interest. See https://issues.apache.org/jira/browse/WICKET- On Mon, Nov 12, 2012 at 8:32 PM, Corbin, James jcor...@iqnavigator.comwrote: Is there any way in Wicket 6+ to be notified when the session

Re: DownloadLink

2012-10-14 Thread Dan Retzlaff
Michael, check out the DownloadLink example here: http://www.wicket-library.com/wicket-examples/linkomatic/home Also check out the code for DownloadLink itself, and you'll see 1. Your IModel must return a File, but yours returns bytes. 2. The download is initiated in DownloadLink#onClick, which

Re: DownloadLink

2012-10-14 Thread Dan Retzlaff
some googling I noticed that ResourceLink should be like DownloadLink but for me better - it's for streamed data. But can't find any example for wicket 1.5 :-( MJ On 14.10.2012 21:00, Dan Retzlaff wrote: Michael, check out the DownloadLink example here: http://www.wicket-library.com

Re: DownloadLink

2012-10-14 Thread Dan Retzlaff
data as byte[] from database). On 14.10.2012 21:59, Dan Retzlaff wrote: I usually wrap a custom AbstractResource instance in a ResourceReference, and put that into the ResourceLink. AbstractResource#** newResourceResponse() is called when the link is clicked. You can query for the bytes

Re: CompoundPropertyModel not working... Warning message

2012-10-13 Thread Dan Retzlaff
Hi! It's not clear what you mean by not working but I'll assume you expect your Invoice object to be populated when the submit button is clicked. It won't work with your code because you have disabled default form processing with your submit button. You actually don't even need a Wicket component

Re: CompoundPropertyModel not working... Warning message

2012-10-13 Thread Dan Retzlaff
If you don't add any of the standard validators, doesn't that accomplish your goal? I think you still want form processing which includes population of model objects from the raw submitted strings. If you're using another post-submit validation framework, you probably want to override

Re: Wicket + Guice + unittests

2012-10-12 Thread Dan Retzlaff
in WicketTester. Daniel On Thu, Oct 11, 2012 at 6:10 PM, Dan Retzlaff dretzl...@gmail.com wrote: For what it's worth, we instantiate our applications through Guice. Having your application go get its Injector kind of violates the DI concept. filter(/*).through(WicketFilter.class

Re: Wicket + Guice + unittests

2012-10-12 Thread Dan Retzlaff
... Daniel On Fri, Oct 12, 2012 at 11:03 AM, Dan Retzlaff dretzl...@gmail.com wrote: I follow you. WicketTester doesn't know about GuiceFilter, so you'll need a different way of getting your Injector into your Wicket Application. Rather than getting the Injector from your servlet context

Re: Wicket + Guice + unittests

2012-10-11 Thread Dan Retzlaff
:10 PM, Dan Retzlaff dretzl...@gmail.com wrote: Daniel, What you're doing should work, but I think you're giving your GuiceComponentInjector a null Injector. Unit tests don't go through web.xml to set up its context listeners, so your GuiceServletContextListener never has a chance

Re: Wicket + Guice + unittests

2012-10-10 Thread Dan Retzlaff
Daniel, What you're doing should work, but I think you're giving your GuiceComponentInjector a null Injector. Unit tests don't go through web.xml to set up its context listeners, so your GuiceServletContextListener never has a chance to construct and register an Injector with the ServletContext.

Re: wicket-guice and Logger injection

2012-08-09 Thread Dan Retzlaff
Hi Sean, Keep in mind that Guice isn't directly injecting your Wicket components. That happens through org.apache.wicket.guice.GuiceComponentInjector. More specifically, see GuiceFieldValueFactory#supportsField() which only recognizes @Inject annotated fields as requiring injection. HTH, Dan On

Re: How to Mount Multiple URLS to Same Class in wicket 1.5.7

2012-08-02 Thread Dan Retzlaff
There is probably a better way, but I just create very simple subclasses to allow separate mounts. class ProductPage extends DynamicWebPage { ProductPage(PageParagemeters p) { super(p); } } On Wed, Aug 1, 2012 at 12:10 PM, vinitty vini...@gmail.com wrote: I am making an

Re: Which is the best way to manage the visibility of a component?

2012-07-29 Thread Dan Retzlaff
You could override C's onConfigure() to set its visibility based on B, and override C's onEvent() to add C to the ART if it's current visibility is wrong. https://cwiki.apache.org/WICKET/migration-to-wicket-15.html#MigrationtoWicket1.5-Defaultajaxevent On Sun, Jul 29, 2012 at 6:17 AM, Alberto

Re: HTTPS FORM POST FROM EXTERNAL SITE TO WICKET WEBPAGE

2012-07-29 Thread Dan Retzlaff
If your constructor isn't being called, you have something more basic to figure out. I just tested with a quickstart, and it worked as expected. See https://gist.github.com/3204518. Hitting localhost:8080 shows value is not specified, then submitting the (non-Wicketized) form shows value is

Re: Really slow code

2012-07-24 Thread Dan Retzlaff
Pro: session is a broader scope, so query will happen less often Con: session is serialized so cached value needs to be serializable or transient/detached Con: session is accessed by multiple threads simultaneously, so you need to handle synchronization Your call. :) On Tue, Jul 24, 2012 at

Re: Preventing users from re-submitting wizards

2012-07-18 Thread Dan Retzlaff
at 3:55 AM, Sven Meier s...@meiers.net wrote: I'd just keep a workflow identifier in the database If your workflow is so important, sooner or later your business people will want to an know about aborted wizards anyway. My 2 cents Sven Dan Retzlaff dretzl...@gmail.com schrieb: Hi all

Preventing users from re-submitting wizards

2012-07-17 Thread Dan Retzlaff
Hi all, We have a wizard workflow for our users that collects various inputs, and when submitted, persists entities and kicks off some processing. After the wizard is submitted, the user should not be able to navigate back and resubmit the wizard. The obvious solution of maintaining a boolean

Re: Retaining non-injected properties of a SpringBean

2012-07-15 Thread Dan Retzlaff
Hi Shu, We essentially use option 2. Since we use Guice, @Component and @Scope are unfamiliar to me. (DAODataProvider isn't created/managed by Spring, so why specify a scope like that?) Aside from those, I don't see any undue coupling... just an @Inject. Our general rule is that @Inject'd

Re: Components do not re-render when page is refreshed...

2012-06-30 Thread Dan Retzlaff
DataView/IDataProvider queries the database for each request too. The reason it is preferred over PageableListView is that it allows only the current page of results to be pulled from the database. PageableListView requires *all* results to be pulled, but then only renders a single page. At any

Re: how to connect elements - label and input (checkbox)

2012-06-30 Thread Dan Retzlaff
The easiest way is probably to use a wicket:for attribute: label wicket:for=enabledCheckEnabled/label input type=checkbox wicket:id=enabledCheck/ Alternatively, you can also use FormComponent#setLabel(IModelString) in Java to define an input's label value, then show that label by adding

Re: Components do not re-render when page is refreshed...

2012-06-29 Thread Dan Retzlaff
That's how Wicket manages stateful pages: it constructs it once, and subsequent actions (including re-rendering all or part) are handled by the same instance. If you want a label's content to be recomputed with each rendering, give it an IModelString at construction instead of the actual string.

Re: Components do not re-render when page is refreshed...

2012-06-29 Thread Dan Retzlaff
Instead of using entities and strings in your constructors, use IModels such as LoadableDetachableModel. When re-rendering (AJAX or reload), your constructors aren't called again, but IModel#getObject() are called. On Fri, Jun 29, 2012 at 12:09 PM, kshitiz k.agarw...@gmail.com wrote: Hi,

Re: Components do not re-render when page is refreshed...

2012-06-29 Thread Dan Retzlaff
Are you giving your ListView an IModelListT or a ListT? It needs to be the former to be redetermined on refresh. On Fri, Jun 29, 2012 at 12:48 PM, kshitiz k.agarw...@gmail.com wrote: Actually in that post panel, I am taking data from the database and displaying it as listview. Now, when I

Re: Components do not re-render when page is refreshed...

2012-06-29 Thread Dan Retzlaff
I can't guess what your errors are, but for pageable lists you should probably be using DataView. There are examples here: http://www.wicket-library.com/wicket-examples/repeater/ On Fri, Jun 29, 2012 at 1:08 PM, kshitiz k.agarw...@gmail.com wrote: I am using list only like this:

Re: Feedback next to each input field on form

2012-06-12 Thread Dan Retzlaff
You might find my wiki post on application-wide validation error styling helpful: https://cwiki.apache.org/confluence/display/WICKET/Automatic+styling+of+form+errors Putting the actual validation text next to the form component is trickier since it affects layout. If you can't make an application

Re: How to manage redirects using rewrite maps

2012-06-01 Thread Dan Retzlaff
Hi Jan, Have you tried proxying with AJP instead of HTTP? Some of this complexity goes away then. Using mod_rewrite's [P] flag to proxy requests shouldn't be incompatible with ProxyPassReverse or ProxyPassReverseCookieDomain. Did you try it? Dan On Fri, Jun 1, 2012 at 2:51 AM, Jan Riehn

Re: Batch process message to user

2012-06-01 Thread Dan Retzlaff
Hi Kemal, You could register your own root IRequestMapper. See the last paragraph under The new way in Wicket 1.5: https://cwiki.apache.org/WICKET/request-mapping.html Dan On Fri, Jun 1, 2012 at 9:52 AM, chrome1235 kemal.m...@gmail.com wrote: Hi, My Application has some batch processes,

Re: Single sign on (SSO) for two WicketApplication

2012-05-10 Thread Dan Retzlaff
Jens, I describe some details of our homegrown application handoff solution here: http://mail-archives.apache.org/mod_mbox/wicket-users/201202.mbox/%3ccac-l2fym4txq7733aeuvfdnustlte_nbsix2zojvytqkoga...@mail.gmail.com%3E On Thu, May 10, 2012 at 4:02 AM, jensiator jens.alen...@gmail.com wrote:

Re: Loadable-detachable model for ListView

2012-05-10 Thread Dan Retzlaff
I may have been wrong about that... I can't setup a test app right now, but I think the default configuration of DataView also discards models on detach. Sorry for the confusion. On Thu, May 10, 2012 at 12:06 PM, sudeivas sureshkumar@gmail.comwrote: Dan has mentioned I think ListView is

Re: igor's select2 script

2012-05-09 Thread Dan Retzlaff
for a 4-5 month hike! On Wed, May 9, 2012 at 8:12 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote: hi Uwe, Dan Retzlaff has created a wrapper, but as far as i know he hasnt publicly shared it yet. i havent really had much time to work on my own wrapper or to look at his yet. my recommendation

Re: igor's select2 script

2012-05-09 Thread Dan Retzlaff
Here you go, Uwe (and all): https://github.com/dretzlaff/wicket-select2 If you provide feedback in the next couple of days I'm happy to address it. Props to Igor for sharing Select2 itself. On Wed, May 9, 2012 at 10:01 AM, Dan Retzlaff dretzl...@gmail.com wrote: I'll post to github shortly. I

Re: igor's select2 script

2012-05-09 Thread Dan Retzlaff
Use in 1.4 requires some relatively simple code changes. For example the resource syntax (for serving Select2 AJAX requests) is different. But after little changes like that, it should work fine. On Wed, May 9, 2012 at 1:04 PM, Emmanouil Batsis (Manos) ma...@abiss.grwrote: this is cool! Any

Re: Loadable-detachable model for ListView

2012-05-09 Thread Dan Retzlaff
Suresh, I haven't seen a packaged solution for inifinte scroll in Wicket. But the way I'd implement it is to detect that more content is needed with JavaScript (some kind of jQuery event listeners), then make a request to a Wicket AJAX behavior. I'd have the behavior render content into a hidden

Re: Store models short-term

2012-05-05 Thread Dan Retzlaff
mentioning with a caveat. And I do appreciate your emphasizing the caveat. :) On Sat, May 5, 2012 at 2:31 PM, Jeremy Thomerson jer...@wickettraining.comwrote: On Fri, May 4, 2012 at 6:15 PM, Dan Retzlaff dretzl...@gmail.com wrote: I'll mention one hack for which another Wicket user should rightly

Re: Store models short-term

2012-05-04 Thread Dan Retzlaff
Hi, Jason. Welcome to Wicket! If you want to tie an entity to a page, best save the entity within the page itself. You can do this by using a simple o.a.w.model.Model. If you don't want to detach between requests, then LDM is not a good fit. There are use cases where serializing entities at the

Re: AW: Open page in new window when clicking on button

2012-05-03 Thread Dan Retzlaff
Your back button isn't really taking the user back; it's taking the user to a new instance of the search page. How about: button value=Back type=button onclick=window.history.back()Back/button On Thu, May 3, 2012 at 12:54 PM, laine78 meldsa...@hotmail.com wrote: I went ahead and terminated the

Re: Wicket 1.5 and jbpm spring configuration

2012-05-03 Thread Dan Retzlaff
I think you're trying to post code, but as Igor indicated, it's not coming through. Maybe you should paste into https://gist.github.com/ and give us a link. Not sure what your IDE is, but you might look into heap analysis tools such as the Eclipse Memory Analysis Tool[1]. I kind of doubt there

Re: browser resolution info .. ClientProperties question

2012-05-02 Thread Dan Retzlaff
If you look into the extended browser info detection, you'll see the results of some JavaScript tests being submitted as a form, and saved in a session-scoped object for server-side use. Instead of using these results, you can use your own session-scoped information, and your own Wicket behavior

Re: deserialization - got nulll lastPage

2012-05-02 Thread Dan Retzlaff
Hi Dale, Wicket keeps the most recent page from each session in a deserialized state, in addition to writing it to disk. This is an optimization since most requests interact with only the most recent page. After restart, these deserialized pages will not be available, forcing Wicket to restore

Re: Unusual problem is coming in rendering component

2012-05-02 Thread Dan Retzlaff
I'd guess that you're using CompoundPropertyModel. This kind of confusion is common with CPM, which is why people often recommend against it. On Wed, May 2, 2012 at 12:09 PM, Richard W. Adams rwada...@up.com wrote: It means it's looking for a method called getPostTextField() in your model, but

Re: Passing parameter to a portion of a page

2012-04-30 Thread Dan Retzlaff
I'm not sure what you mean by passing a parameter-- you control the forms' construction, so you can pass anything you'd like. If your goal is to make bookmarkable construction parameters available to all forms, getPage().getPageParameters() would help. (That doesn't change with AJAX, though, so

Re: dynamic vertical menu

2012-04-30 Thread Dan Retzlaff
Hi, Lenin. Have you looked into these two examples? They might help you get started. http://www.wicket-library.com/wicket-examples/nested/ http://www.wicket-library.com/wicket-examples/navomatic/ Dan On Mon, Apr 30, 2012 at 12:30 AM, lenin lening...@gmail.com wrote: Dear, i am new in the

Re: Setting value to object when validation failed

2012-04-30 Thread Dan Retzlaff
Generally when a field validation fails, the user's raw input is re-rendered instead of the original model value. This lets the user correct his input instead of retyping the whole thing. Since this is not the behavior you want, you can call firstName.clearInput() in your onError(). On Mon, Apr

Re: Passing parameter to a portion of a page

2012-04-30 Thread Dan Retzlaff
What you describe sounds like Wicket's default behavior. It knows which widgets correspond to which Java components, and routes data accordingly when submitted. On Mon, Apr 30, 2012 at 10:05 AM, kshitiz k.agarw...@gmail.com wrote: Thanks for the reply Dan...now consider a situation: You have

Re: Setting value to object when validation failed

2012-04-30 Thread Dan Retzlaff
Check out Form#clearInput() which calls FormComponent#clearInput() on all of its components. You can do similiar, but incorporate FormComponent#hasErrorMessage() so you don't also reset fields with valid input. On Mon, Apr 30, 2012 at 11:11 AM, meduolis meduol...@gmail.com wrote: This solves my

Re: ListView (or other Repeater) with backing map

2012-04-30 Thread Dan Retzlaff
You can call LDM#detach() after the modification, but since this particular implementation is so light, I'd just use AbstractReadyOnlyModel instead. It doesn't cache, so detach is not required. On Mon, Apr 30, 2012 at 11:36 AM, cmagnollay cmagnol...@gmail.com wrote: And I can force the model to

Re: ListView (or other Repeater) with backing map

2012-04-30 Thread Dan Retzlaff
:57 AM, Carl-Eric Menzel cmen...@wicketbuch.dewrote: On Mon, 30 Apr 2012 11:38:36 -0700 Dan Retzlaff dretzl...@gmail.com wrote: You can call LDM#detach() after the modification, but since this particular implementation is so light, I'd just use AbstractReadyOnlyModel instead. It doesn't

Re: getting client's TimeZone and performace

2012-04-26 Thread Dan Retzlaff
That depends on how much you value the landing experience. There will be an extra page rendering and redirect for each new session. I haven't noticed this pattern from any big online retailers, for example, but it may make sense for you. On Thu, Apr 26, 2012 at 6:56 PM, infiniter

Re: how to create DISQUS like web widgets that can be deployed to third party web pages

2012-04-23 Thread Dan Retzlaff
That approach is not a conventional use of Wicket AJAX, and I think it would be very tricky. Can you have your partner host an IFRAME, populated from your site with a Wicket page? That page can then easily host repeaters, AJAX links, and panels. Dan On Mon, Apr 23, 2012 at 5:42 PM, bad boy

Re: How to enable SSI in wicket framework.

2012-04-12 Thread Dan Retzlaff
I think the challenge is getting content from a /ssi/footer request integrated into a Wicket-rendered page. AFAIK Wicket doesn't provide any component for that. It might be possible using servlet's forward capability from a custom Wicket component's onComponentTagBody. It seems to be used for

Re: Page Map versions and Ajax Requests

2012-04-12 Thread Dan Retzlaff
. the only state we will lose is noise from component replacement in listviews and user's onbeforerender() overrides which i think is acceptable since they do not represent true state mutation that comes from intentional callbacks. -igor On Wed, Apr 11, 2012 at 6:40 PM, Dan Retzlaff dretzl

Re: Running thread + AJAX + page serialization

2012-04-12 Thread Dan Retzlaff
Hi, Martin. I don't think it's appropriate to have your background thread referencing page objects, especially not modifying them. In general, pages get deserialized from the page store, in which case the thread's changes won't even be seen. Maybe you are saved by an optimization that leaves the

Re: Page Map versions and Ajax Requests

2012-04-12 Thread Dan Retzlaff
...@gmail.comwrote: On Thu, Apr 12, 2012 at 7:26 AM, Dan Retzlaff dretzl...@gmail.com wrote: Your second suggestion seems pretty solid, but I think people do make non-trivial component hierarchy changes in onBeforeRender. my point was that such changes are not worthy of a page version increment because

Re: Same versioned link opens different pages on different machines

2012-04-12 Thread Dan Retzlaff
When re-rendering a page, can you parse the new request URL and make sure all the parameters are the same as those used at construction? I don't think Wicket saves the original parameters now, but maybe it should. On Thu, Apr 12, 2012 at 12:15 PM, Alec Swan alecs...@gmail.com wrote: And I see

Re: How to enable SSI in wicket framework.

2012-04-11 Thread Dan Retzlaff
SSI is implemented with its own servlet which is totally separate from Wicket's filter, so you cannot use both Wicket and SSI for a single page. However, Wicket provides a variety of ways to include content into pages it renders: panels, fragments, labels, and more. Once you're familiar with these

Re: rawInput, page reload and error messages

2012-04-11 Thread Dan Retzlaff
You might want to subclass Form to retain additional state. It could save the validation errors and put them back onto components in onBeforeRender, clearing them when validation is eventually successful. This could probably also be accomplished with a Behavior. On Wed, Apr 11, 2012 at 7:19 AM,

Re: Javascript call on AjaxFallbackDefaultDataTable

2012-04-11 Thread Dan Retzlaff
Yes. You're returning your decorator in an AjaxLink#getAjaxCallDecorator() override? I think you'll need to pastebin some code for us to help. On Tue, Apr 10, 2012 at 11:27 PM, cellis christopher.el...@uwa.edu.auwrote: I've tried to implement the ajaxCallDecorator as you specified, but I fail

  1   2   3   >