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 wrote: > I use only Tomcat (7.0.40) and I must admit that with NIO connector and

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 the

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 u

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 wrote: > That being the case, is there any way to get an instance that I can cast to > a concrete type? > > > On Tue, Jul 2

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 wrote: > works for me > > > On Fri, Jul 19, 2013 at 1:19 PM, Dan Retzlaff wrote: > > > Busted for me. > > > > > > On Fri, J

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 wrote: > Worked for me... try again? > > Bill- > > > On Fri, Jul 19, 2013 at 2:52 PM, Gabriel Landon wrote: > > > Hi, > > > > The website wicketinaction.com seems to be down, only the home page is > > working. > > All the other pa

Re: Grouping tags in a ListView without a parent tag

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

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

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 DefaultDBEncoder.writeObjec

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 wrote: > Thanks, but could you please explain how wicket handles serialization of > objects th

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 into application's rendered page. On Fri, Jun 14, 2013 at 9:41 AM, Sven Meier wrote: > Thanks for your information. > > I wonder what embedded "HTML Script Tag" Juniper sees in the given url: > > > http://130.126.114.121

Re: wicket-atmosphere issues

2013-06-11 Thread Dan Retzlaff
On Tue, Mar 26, 2013 at 4:31 AM, Emond Papegaaij 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 login form. In order

Re: PageableListView with two rows

2013-06-10 Thread Dan Retzlaff
View.setRenderBodyOnly(true); > this.add(columnListView); > this.add(new AjaxPagingNavigator("navigator", columnListView)); > > > > > I think I did what you've suggested but instead of two rows of 5 columns, I > got one line of 5 columns, one of o

Re: PageableListView with two rows

2013-06-10 Thread Dan Retzlaff
Hi Pierre, Associate your PageableListView with a that wraps your two s. Use item.setRenderBodyOnly(true) to prevent the from being rendered so your table markup is still valid. Dan On Mon, Jun 10, 2013 at 12:49 PM, Pierre Goupil wrote: > Good evening, > > Is there a way to have a PageableLi

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 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 string resources.

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 MessageFormat

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 with

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 < leonardo.dalimo...@logi

Re: Interpolating variables inside web.xml

2013-04-19 Thread Dan Retzlaff
easy to use a custom 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

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

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 every

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: 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 wrote: > 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 out a bit about the loc

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 wrote: > Hi, > > do you know the best way to get the base URL for our Wicket application? > For exam

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 i

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
, thanks for you answer. > > As you said, with the default implementation of DiskDataStore only the most > recent page is kept in the session state and available on all servers. So > are using non-sticky sessions and having a stateful page open a modal > window with a new stateful page will

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

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

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

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: Proper resource versioning

2013-03-28 Thread Dan Retzlaff
On Thu, Mar 28, 2013 at 7:27 AM, Pointbreak wrote: > 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 resource references to a CDN wi

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

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 r

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 upgra

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 ListView into a ListView> and splitting the original dataset into say 10k List#subLists. It ain't pretty, but for a "(nearly finished)" app, it beats a se

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-25 Thread Dan Retzlaff
icket. On Sun, Mar 24, 2013 at 11:22 PM, Harrie Hazewinkel wrote: > Hi Dan, > > Thanks for the example. > > On Mar 24, 2013, at 7:26 PM, Dan Retzlaff wrote: > > Re: duplicate/conflicting contributions, Wicket automatically de-dups > > header contributions. See HeaderItem

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

Re: Repeaters and AjaxSelfUpdatingTimerBehavior

2013-03-22 Thread Dan Retzlaff
Have you considered subclassing AjaxSelfUpdatingTimerBehavior's parent, AbstractAjaxTimerBehavior? You can do whatever you like in your onTimer(), including get access the component to which it's attached with getComponent(). On Fri, Mar 22, 2013 at 3:48 PM, heikki wrote: > hello, > > I've a que

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 wrote: > Hi Jim, > > You are correct! > I've missed those the other day. > > Do you know what XSD

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 wrote: > yes, you can

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 wrote: > Is there any way in Wicket 6+ to be notified when the session is ABOUT to > be destr

Re: DownloadLink

2012-10-14 Thread Dan Retzlaff
e > (in fact I have 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() &g

Re: DownloadLink

2012-10-14 Thread Dan Retzlaff
t; > After 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 o

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 yo

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 Form#onVal

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 componen

Re: Wicket + Guice + unittests

2012-10-12 Thread Dan Retzlaff
Filter.FILTER_MAPPING_PARAM, "/*"); > wicketFilterParams.put("applicationClassName", > "com.hp.honeybadger.web.WicketApplication"); > return wicketFilterParams; > } > > I'm now trying to figure out how to make sure that the wicket filter > is called... > &g

Re: Wicket + Guice + unittests

2012-10-12 Thread Dan Retzlaff
ork and I need the > injector to be available in WicketTester. > > Daniel > > On Thu, Oct 11, 2012 at 6:10 PM, Dan Retzlaff wrote: > > For what it's worth, we instantiate our applications through Guice. > Having > > your application "go get"

Re: Wicket + Guice + unittests

2012-10-11 Thread Dan Retzlaff
mpt to get the bootStrapInjector like this: > Injector bootStrapInjector = (Injector) > this.getServletContext().getAttribute(Injector.class.getName()); > > I just can't figure out how to get the injector into the > ServletContext before init() is run in my WicketApplication

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 wrote: > I am making an application where multipl

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: HTTPS FORM POST FROM EXTERNAL SITE TO WICKET WEBPAGE

2012-07-29 Thread Dan Retzlaff
If you look at FormComponent#getInputAsArray(), you can see how Wicket gets access to posted values: getRequest().getRequestParameters().getParameterValues(inputName); On Sun, Jul 29, 2012 at 3:06 PM, hannach wrote: > Hi there, > > I need to provide returnURL for payment portal like Paypal. > I c

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 wro

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 12:46

Re: Preventing users from re-submitting wizards

2012-07-18 Thread Dan Retzlaff
r inputs! On Wed, Jul 18, 2012 at 3:55 AM, Sven Meier 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 R

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

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 depende

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: Enabled Alternatively, you can also use FormComponent#setLabel(IModel) in Java to define an input's label value, then show that label by adding (Simple)FormComponentLabel as a separate component (i.e. with its own wicket:id). On Sat, Jun

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 ra

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 wrote: > I am using list only like this: > > > PageableListView postDomainLi

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

2012-06-29 Thread Dan Retzlaff
Are you giving your ListView an IModel> or a List? It needs to be the former to be redetermined on refresh. On Fri, Jun 29, 2012 at 12:48 PM, kshitiz wrote: > Actually in that post panel, I am taking data from the database and > displaying it as listview. Now, when I manually enter a new entry i

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 wrote: > Hi, > > Thanks for the reply.

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 IModel at construction instead of the actual string. On Fri,

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: 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 wrote: > Hi, > My Application has some batch processes, therefore I want to r

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 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 wrote: > Dan has mentioned "I think > ListView is better than DataView beca

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 wrote: > What about if I say

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 l

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) wrote: > > > this is cool! Any chance it wor

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 wrote: > I'll post to github shortly. I was

Re: igor's select2 script

2012-05-09 Thread Dan Retzlaff
.. I leave on Friday for a 4-5 month hike! On Wed, May 9, 2012 at 8:12 AM, Igor Vaynberg wrote: > 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.

Re: Store models short-term

2012-05-05 Thread Dan Retzlaff
ed it was worth mentioning with a caveat. And I do appreciate your emphasizing the caveat. :) On Sat, May 5, 2012 at 2:31 PM, Jeremy Thomerson wrote: > On Fri, May 4, 2012 at 6:15 PM, Dan Retzlaff 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 a

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 wil

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: Back On Thu, May 3, 2012 at 12:54 PM, laine78 wrote: > I went ahead and terminated the tags with /> > Here is the html code generated by my browser. Everything looks okay to

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 wrote: > It means it's looking for a method called getPostTextField() in your > model, but not finding o

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 the

Re: browser resolution info .. ClientProperties question

2012-05-01 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 to

Re: ListView (or other Repeater) with backing map

2012-04-30 Thread Dan Retzlaff
at 11:57 AM, Carl-Eric Menzel wrote: > On Mon, 30 Apr 2012 11:38:36 -0700 > Dan Retzlaff wrote: > > > You can call LDM#detach() after the modification, but since this > > particular implementation is so light, I'd just use > > AbstractReadyOnlyModel instea

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 wrote: > And I can force the model to update, via AJAX, o

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 wrote: > This solves my problem. Is there

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 wrote: > Thanks for the reply Dan...now consider a situation: > > You have 5 drop downs, each

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 30

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 wrote: > Dear, > > i am new in the wicket1.5.5 framewo

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: 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 wrote: > So, no

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 wrote

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 wrote: > "And I see no way to detect s

Re: Page Map versions and Ajax Requests

2012-04-12 Thread Dan Retzlaff
g wrote: > On Thu, Apr 12, 2012 at 7:26 AM, Dan Retzlaff 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 > i

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 mo

Re: Page Map versions and Ajax Requests

2012-04-12 Thread Dan Retzlaff
tate the state of the page - meaning urls that just render > the page and do not invoke any listeners. 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

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 gen

Re: Wicket 1.5 - Generic JSON Response

2012-04-11 Thread Dan Retzlaff
Hi, Ahijah. I think you should use a resource for this, not a page. Something like: class MyResource extends AbstractResource { ResourceResponse newResourceResponse(Attributes a) { ResourceResponse r = new ResourceResponse(); r.setContentType("application/json"); r.setWriteCallback(n

  1   2   3   >