Re: static or nonstatic inner classes

2010-06-30 Thread Jeremy Thomerson
Use the same decision making process you would for any other java class Do you need access to any private variables of the containing class? Jeremy Thomerson -- sent from my smartphone - please excuse formatting and spelling errors On Jun 30, 2010 12:56 AM, Sigmar Muuga meedi...@gmail.com

Re: static or nonstatic inner classes

2010-06-30 Thread Sigmar Muuga
Actually not. I was thinking that maybe I have missed something from the docs. Such issues are sometimes hard to find :) On Wed, Jun 30, 2010 at 8:59 AM, Jeremy Thomerson jer...@wickettraining.com wrote: Use the same decision making process you would for any other java class Do you need

Re: Best practice: AJAX and how to implement state indicator image?

2010-06-30 Thread Erich W Schreiner
Hi Igor, thank you for your suggestion, the lookup of the icon to display works fine. I now override ResourceReference.newResource() Unfortunately, the lookup only works correctely the first time, i.e. when the Page is displayed. Subsequent Ajax updates and re-rendering of parts will always

Re: Best practice: AJAX and how to implement state indicator image?

2010-06-30 Thread Ernesto Reinaldo Barreiro
use non caching image? Ernesto On Wed, Jun 30, 2010 at 10:54 AM, Erich W Schreiner eschrei...@yahoo.com wrote: Hi Igor, thank you for your suggestion, the lookup of the icon to display works fine. I now override ResourceReference.newResource() Unfortunately, the lookup only works

difference between getSession().getLocale() and getRequest().getLocale()

2010-06-30 Thread David Meulemans
Hi I've noticed a difference in getting the locale from the request and from the session. getSession().getLocale() shows en but getRequest().getLocale() shows en_GB. thus not only the language but also the country. Why is this, or what am I doing wrong perhaps? Are there maybe other drawbacks

Re: question about adding synchronized on mountsOnPath at WebRequestCodingStrategy

2010-06-30 Thread dannyboy
Optimization helped! Thank you for fixing it. Kind regards, Danny -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/question-about-adding-synchronized-on-mountsOnPath-at-WebRequestCodingStrategy-tp1878901p2272701.html Sent from the Wicket - User mailing list archive

Update page after redirecting to blank page

2010-06-30 Thread Milan Křápek
Hi, I have problem with updating my page with Ajax after redirecting to some new page. I have page with list view. In this list view I have some links to audio records represented by AjaxLinks. If I click to the AjaxLink, user is redirected to new _blank page that sends him an audie record.

Re: Mulitple Forms in ListView

2010-06-30 Thread vov
Not a best solution but it works:) final FeedbackPanel feedback = new FeedbackPanel(feedback, new ContainerFeedbackMessageFilter(form) { @Override public boolean accept(FeedbackMessage message) { return

Refreshing DataView fails if it was initially empty

2010-06-30 Thread Steve Hiller
Hi All, I have what seems like a strange problem with refreshing a DataView. I have a WebMarkupContainer that contains a DataView. The DataView uses a SortableDataProvider as its DataProvider. The WebMarkupContainer uses the DataView's SortableDataProvider to determine if there are any items to

Re: Refreshing DataView fails if it was initially empty

2010-06-30 Thread Ernesto Reinaldo Barreiro
Hi Steve, I would do the following (which might not be the best solution;-): 1- Create panel EmptyOrTablePanel with setOutputMarkupId(true); 2- and then have a child of this panel that either displays an EmptyPanel or your table: depending on whether you have records or not. You could determine

Re: Model not Updating on Multiple Form Submits

2010-06-30 Thread Jacob Brookover
Hey, I guess the quick summary is whether it's fundamentally okay to share a single model among several components, including a form, through several ajax submits, using setObject() on that model during each submit? My behavior is that one of the components is not getting the updated

Re: Refreshing DataView fails if it was initially empty

2010-06-30 Thread Ernesto Reinaldo Barreiro
I meant something like: === import org.apache.wicket.Component; import org.apache.wicket.markup.html.panel.Panel; public abstract class CondiotionalPanel extends Panel { private static final long serialVersionUID = 1L; public CondiotionalPanel(String id) {

How to customize the pages of a DataTable, DataView or DataGrid.

2010-06-30 Thread adp
Friends, there is some way to customize the pages of a DataTable, DataView or DataGrid, meaning that with each page to load only the data in memory at the time. please expect some response. Thank you very much. -- View this message in context:

Re: Model not Updating on Multiple Form Submits

2010-06-30 Thread Ernesto Reinaldo Barreiro
Hi Jake, It sounds like you're not opposing that idea and suggesting that there actually is a bug, which is certainly possible.  I would love to make a quickstart - but I'm not sure what you mean by that.  I'm a long-time programmer, but new to Java web development/deployment.  Can you point

Re: Mulitple Forms in ListView

2010-06-30 Thread vov
Not a best solution but it works:) final FeedbackPanel feedback = new FeedbackPanel(feedback, new ContainerFeedbackMessageFilter(form) { @Override public boolean accept(FeedbackMessage message) { return

Re: wiQuery grid row expander

2010-06-30 Thread John Armstrong
Ahh missed that. Tx Ernesto, I will take a look at jq and see if I can help! J On Tue, Jun 29, 2010 at 10:57 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: John, See [1] and in particular the answer from Cemal (the one on Jun 16...) That might answer part of your question. Some

Re: Model not Updating on Multiple Form Submits

2010-06-30 Thread Jeremy Thomerson
On Wed, Jun 30, 2010 at 9:24 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Hi Jake, It sounds like you're not opposing that idea and suggesting that there actually is a bug, which is certainly possible. I would love to make a quickstart - but I'm not sure what you mean by

Re: How to customize the pages of a DataTable, DataView or DataGrid.

2010-06-30 Thread Jeremy Thomerson
On Wed, Jun 30, 2010 at 9:24 AM, adp adp1...@gmail.com wrote: Friends, there is some way to customize the pages of a DataTable, DataView or DataGrid, meaning that with each page to load only the data in memory at the time. please expect some response. Thank you very much. What do you

Re: Links in DataTable

2010-06-30 Thread Nelson Segura
Can anyone explain to me why this does not work with AjaxFallbackDefaultDataTable, but does with DefaultDataTable. Does anyone know of a solution for this problem? On Mon, Jun 28, 2010 at 6:18 PM, Nelson Segura nsegu...@gmail.com wrote: Since AjaxLink is AJAX and not a proper link, then it does

Request for how to process incoming E-mails on Google App Engine

2010-06-30 Thread Ian Marshall
I am developing a Wicket application on Google App Engine for Java (GAE/J). I want to process incoming E-mails, which GAE/J routes to addr...@[gae application ID].appspotmail.com by sending a HTTP POST request to the application-relative URL: /_ah/mail/[addr...@[gae application

Re: Links in DataTable

2010-06-30 Thread Branislav Kalas
Put this into WicketApplication.java @Override protected void init() { super.init(); getPageSettings().setAutomaticMultiWindowSupport(true); } Problem was, that you opened new windows in same page map. I cannot explain it better cause, i don't understand page maps very

Re: Links in DataTable

2010-06-30 Thread Branislav Kalas
and i forgot this in the onclick handler : @Override protected void onClick() { setResponsePage(new HomePage(parameters)); System.out.println(clicked on link); } On 06/30/2010 07:59 PM, Branislav Kalas wrote: Put this into WicketApplication.java @Override protected void

Refreshing modal window

2010-06-30 Thread Anna Simbirtsev
Hi, My problem is that after the user clicks AjaxSubmit button, and the confirmation message is displayed in feedback panel, the window does not refresh, so if the user scrolled to the bottom of the model window, he/she does not see the confirmation message. How can I get the modal window to

org.apache.wicket.WicketRuntimeException: Unable to write the response

2010-06-30 Thread tommaso
Hello, I have just noticed that the various components I have that render the same underlying data, when the exception occurs, then they all have a different instance of the underlying data. I have used: add(new CompnentX(getSession().getMyData())) so they were all constructed with

3.5 Hibernate 1.1 tutorial wicketized/eclipseized

2010-06-30 Thread david
Hello, mostly of interest to wicket noobs: i have a wicketized/eclipseized hibernate 1.1 tutorial that should work out-of-the-box albeit for mysql only. Where to upload the project? Or, I can put it on my blog for download? :-David.

Re: Links in DataTable

2010-06-30 Thread Nelson Segura
Thanks for your answers. I set the multi window support settings to true, and that did not make a difference. Interestingly, the javadoc shows that multiwindow support is true by default. I also tried setting it to false, with no luck. However, setting the response to a new page on click seems

Re: Refreshing modal window

2010-06-30 Thread Nelson Segura
Are you refreshing the whole window or just the feedback panel? You can try to refresh the whole window, or you can include some java script that scrolls your window to the top on the ajax response. -Nelson On Wed, Jun 30, 2010 at 12:22 PM, Anna Simbirtsev asimbirt...@gmail.comwrote: Hi, My

Re: How to customize the pages of a DataTable, DataView or DataGrid.

2010-06-30 Thread adp
I need to implement a data table in wicket with load on demand. The problem in use the existent implementations is that they load in advance all data and if that data contains a lot of rows, it may produce memory errors. Then, I need find (if it exists) a way to implement the load on demand

Re: How to customize the pages of a DataTable, DataView or DataGrid.

2010-06-30 Thread James Carman
You don't have to load all the data. You can page the data in your data provider. On Wed, Jun 30, 2010 at 4:35 PM, adp adp1...@gmail.com wrote: I need to implement a data table in wicket with load on demand. The problem in use the existent implementations is that they load in advance all

Re: How to customize the pages of a DataTable, DataView or DataGrid.

2010-06-30 Thread Ernesto Reinaldo Barreiro
loading page by page is fully supported by DefaultDataTable or AjaxFallbackDefaultDataTable via IDataProvider interface. Did you have a look at those? Ernesto On Wed, Jun 30, 2010 at 10:35 PM, adp adp1...@gmail.com wrote: I need to implement a data table in wicket with load on demand. The

Re: Refreshing modal window

2010-06-30 Thread Anna Simbirtsev
I need to scroll to the top on ajax response. Would you have an example on how to do it? On Wed, Jun 30, 2010 at 4:27 PM, Nelson Segura nsegu...@gmail.com wrote: Are you refreshing the whole window or just the feedback panel? You can try to refresh the whole window, or you can include some

Re: How to customize the pages of a DataTable, DataView or DataGrid.

2010-06-30 Thread adp
Now I'll review it. Thank you. if you have any information about this, please send me. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-customize-the-pages-of-a-DataTable-DataView-or-DataGrid-tp2272728p2274247.html Sent from the Wicket - User mailing list

Re: wiQuery grid row expander

2010-06-30 Thread Ernesto Reinaldo Barreiro
John, I just uploaded an small demo of [1] to [2]. Please ping me offline if you want to contribute to the project. Best, Ernesto 1-http://code.google.com/p/wiquery-plugins/source/browse/#svn/trunk/wiquery-plugins/j 2-http://wiquery-plugins-demo.appspot.com/demo/ On Wed, Jun 30, 2010 at 4:56

Re: Generating static HTML pages with Wicket

2010-06-30 Thread jverstry
OK thanks. I managed to work something out by fiddling with the BaseWicketTester class. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Generating-static-HTML-pages-with-Wicket-tp2271517p2274291.html Sent from the Wicket - User mailing list archive at Nabble.com.

open Modal Window without AjaxRequestTarget

2010-06-30 Thread Pierre Goupil
Hello, I'm well aware of https://issues.apache.org/jira/browse/WICKET-12 but I can't figure out how to open a modal window without an AjaxRequestTarget. My guess is that it's related to getWindowOpenJavascript() but is there any example available, please? I use Wicket 1.4.9. Thanks in advance,

Re: Asynchronous tree

2010-06-30 Thread Sven Meier
Hi Bilgin, I'm currently experimenting with something similar in wicket-tree: http://code.google.com/p/wicket-tree/source/browse/trunk/wicket-tree-examples/src/main/java/wickettree/examples/TimeoutPage.java Perhaps it gives you a start. Try it out here:

Re: Refreshing modal window

2010-06-30 Thread Nelson Segura
To execute javascript after AJAX, do the following ajaxRequestTarget.appendJavascript(alert('hello');); To jump to a section using javascript use window.location.hash = '#idname'; You can put a #top anchor on top of your window, and then jump to it using the combination of code above. I have

Re: Request for how to process incoming E-mails on Google App Engine

2010-06-30 Thread Jeremy Thomerson
Just map the servlet that Google gives you in the way that you would normally map any servlet in web.xml. This is not Wicket specific. On Wed, Jun 30, 2010 at 12:28 PM, Ian Marshall ianmarshall...@gmail.comwrote: I am developing a Wicket application on Google App Engine for Java (GAE/J). I

Re: Links in DataTable

2010-06-30 Thread Jeremy Thomerson
On Wed, Jun 30, 2010 at 1:14 PM, Branislav Kalas bka...@gmail.com wrote: and i forgot this in the onclick handler : @Override protected void onClick() { setResponsePage(new HomePage(parameters)); System.out.println(clicked on link); } The whole point of a constructor that

Re: debugging PageExpiredExceptions

2010-06-30 Thread sbrookes2
ver 1.3.6 I have been tracking this issue for a few months now in our app. Similar to the following threads: http://apache-wicket.1842946.n4.nabble.com/PageExpiredException-getting-this-when-the-session-hasn-t-timeout-td1894202.html#a1894216 PageExpiredException - getting this when the session

Rerender modal window fields without ajaxtargetrequest

2010-06-30 Thread Anna Simbirtsev
Hi, AjaxSubmitLink removeLink = new AjaxSubmitLink(removeLink) { @Override public void onSubmit(AjaxTargetRequest target) { MyPanel.this.replaceWith(new ConfirmDeletePanel( MyPanel.this.getId(), are you sure) { @Override protected void onCancel() {

Wicket Sessions and Load Balancing

2010-06-30 Thread Steven Haines
Hi, I just setup my production environment for a wicket-based application today and I am having a problem with Page Expired messages. I have three servers that are not clustered together, but rather are configured with Apache's proxy_balancer to use sticky sessions (with failover turned off.)

Re: how to pass parameters to javascript function?

2010-06-30 Thread Igor Vaynberg
or let your page implemen IHeaderResponseContributor -igor On Tue, Jun 29, 2010 at 8:57 PM, Jeremy Thomerson jer...@wickettraining.com wrote: On Tue, Jun 29, 2010 at 9:44 PM, Gustavo Henrique gustavo...@gmail.comwrote: Hi! I need to put in the page a javascript function with name and Id of

Re: question about adding synchronized on mountsOnPath at WebRequestCodingStrategy

2010-06-30 Thread Igor Vaynberg
did it reduce it or is the hotspot completely gone? -igor On Wed, Jun 30, 2010 at 3:38 AM, dannyboy danny.bolla...@gmail.com wrote: Optimization helped! Thank you for fixing it. Kind regards, Danny -- View this message in context:

Re: difference between getSession().getLocale() and getRequest().getLocale()

2010-06-30 Thread Igor Vaynberg
not sure why they would be different unless you explicitly change it in Session. when the session is created it sets its locale from the request by default: public Session(Request request) { ... locale = request.getLocale(); ... } -igor On Wed, Jun 30, 2010 at 2:02 AM, David Meulemans

Re: Mulitple Forms in ListView

2010-06-30 Thread TH Lim
Thank you for providing a solution to that. It not so much of the solution I am looking for. I am curious why it didn't work out of the box for non-Ajax submit but it works for AjaxSubmitLink. Basically the code to determine if the FormComponent is the child of the container is the same but for

How to override container markup package loaction?

2010-06-30 Thread Arjun Dhar
How does one override container markup package loaction? If I provide mysite.wicket.pages for my Java Wicket components, then the html markup must be in the same package. I want the HTML to live in html. So how can I override mysite.wicket.pages with html when wicket searches for components?