RE: JWicket drag/drop handle

2011-02-01 Thread Stefan Lindner
You are right! jWicket is missing a setHandle method. I will implement this in the future. For now you can use the setRawOption() method for all unimplemented options. In your case you sould try setRawOptions(cancel:'p.ui-widget-header' ); Stefan -Ursprüngliche Nachricht- Von:

Wickettester, cookies and redirects in Wicket 1.4.15

2011-02-01 Thread Robert Dahlström
Hi, I currently have an application reading a cookie in my session. All of my unit tests where the pattern is: Create page - submit form - redirect to new page fails to read this cookie after the redirect to new page. The cookie is added both to the response and request before each new test

Re: Mapping wicket:id to component without changing Java code

2011-02-01 Thread Andrea Del Bene
Hi Alec, I don't think Wicket has a configuration option that can help you. But you can create a web page superclass that parses HTML and adds your form if it finds tag div wicket:id=creditCardForm/. For example you can override onInitialize method and add something like this: MarkupParser

Provide the user with immediate feedback

2011-02-01 Thread Patrick Petermair
Hey! In our wicket application we are using a lot of Ajax links/forms. Sometimes, those requests take a second or two. We now want to give the user some feedback, that his request is being processed (to avoid double clicking or the impression that the webapp is slow). What would be the best

Re: Provide the user with immediate feedback

2011-02-01 Thread Pedro Santos
You can register an handler to show some message and another one to remove it at the end of request. See Wicket.Ajax.registerPreCallHandler / registerPostCallHandler and https://cwiki.apache.org/WICKET/generic-busy-indicator-for-both-ajax-and-non-ajax-submits.html

Re: Provide the user with immediate feedback

2011-02-01 Thread Ernesto Reinaldo Barreiro
Patrick, I think you can: 1-use interface IAjaxIndicatorAware to mark a page or Panel as a context for showing some indicator of AJAX activity (usually a veil + some activity icon) 2- or you can use IAjaxCallDecorator to manually decorate your links. Ernesto On Tue, Feb 1, 2011 at 12:39 PM,

Re: Wickettester, cookies and redirects in Wicket 1.4.15

2011-02-01 Thread Pedro Santos
Hi Hobert, I reopened the WICKET-1886 2011/2/1 Robert Dahlström robert.dahlst...@bwin.org Hi, I currently have an application reading a cookie in my session. All of my unit tests where the pattern is: Create page - submit form - redirect to new page fails to read this cookie after the

Re: Wickettester, cookies and redirects in Wicket 1.4.15

2011-02-01 Thread Robert Dahlström
Thanks, I'll add the info I have to the bug. Regards Robert On 02/01/2011 01:02 PM, Pedro Santos wrote: Hi Hobert, I reopened the WICKET-1886 2011/2/1 Robert Dahlströmrobert.dahlst...@bwin.org Hi, I currently have an application reading a cookie in my session. All of my unit tests where the

Re: Wickettester, cookies and redirects in Wicket 1.4.15

2011-02-01 Thread Pedro Santos
I attached an test case, possible simulating your described bug 2011/2/1 Robert Dahlström robert.dahlst...@bwin.org Thanks, I'll add the info I have to the bug. Regards Robert On 02/01/2011 01:02 PM, Pedro Santos wrote: Hi Hobert, I reopened the WICKET-1886 2011/2/1 Robert

Problem with Wickettester and Maven

2011-02-01 Thread Dmitriy Neretin
Hello everybody, I have problems with unit testing. All the time I have used NetBeans 6.9.1 with Glassfish and there wasn't any problems. Just create a new UnitTest with WicketTester and it worked pretty fine. Today I changed the project infrastructure to Maven with surifire plug-in. The problem

Re: Problem with Wickettester and Maven

2011-02-01 Thread Pedro Santos
You need to add the test or provided scope servlet-api dependency in your project pom On Tue, Feb 1, 2011 at 11:11 AM, Dmitriy Neretin dmitriy.nere...@googlemail.com wrote: Hello everybody, I have problems with unit testing. All the time I have used NetBeans 6.9.1 with Glassfish and there

Re: Problem with Wickettester and Maven

2011-02-01 Thread Dmitriy Neretin
I don't really understand how to do that? On 1 February 2011 14:46, Pedro Santos pedros...@gmail.com wrote: You need to add the test or provided scope servlet-api dependency in your project pom On Tue, Feb 1, 2011 at 11:11 AM, Dmitriy Neretin dmitriy.nere...@googlemail.com wrote: Hello

Re: Problem with Wickettester and Maven

2011-02-01 Thread Dmitriy Neretin
Oh sorry!!! It works now! Thank you! I should add this to my pom: dependency groupIdjavax.servlet/groupId artifactIdservlet-api/artifactId version2.4/version scopeprovided/scope /dependency On 1 February 2011 14:51, Dmitriy Neretin

Re: setResponsePage weirdness

2011-02-01 Thread msj121
Worse case scenario, though I understand not wanting to do it, is using a javascript/html redirect and by passing Wicket, not the nicest scenario, I wish I knew more about redirects, sorry. -- View this message in context:

Re: Using non-Model fields in Form

2011-02-01 Thread nimmy
I'm a newbie also but Can't you just create a new model specifically for the RadioChoice component? Each component can have its own model. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Using-non-Model-fields-in-Form-tp3251063p3251807.html Sent from the

Re: Mapping wicket:id to component without changing Java code

2011-02-01 Thread msj121
You can add an empty label to replace the content if not adding the component. You can have a repeating list if you have lots of dynamic content, this way whatever you add to the list is added or you can just add an empty component. It does seem odd to me that in your html you know whether to

Re: Using non-Model fields in Form

2011-02-01 Thread msj121
As Nimmy said you should be able to supply your own model to the RadioChoice which will override the CompoundPropertyModel Assuming NUMBERS is a list... RadioChoiceString rc = new RadioChoiceString(numberRadioChoice, new Model(),NUMBERS); Look at

Re: Using non-Model fields in Form

2011-02-01 Thread Pedro Santos
Sure. When you create an radio choice like: RadioChoiceString rc = new RadioChoiceString(numberRadioChoice, NUMBERS); your are passing the wicket id and a list of choices to the component, but no model. Components without model inherit one from the first parent CompoundPropertyModel based on the

Re: Provide the user with immediate feedback

2011-02-01 Thread msj121
Interesting the Ajax call decorator mentioned above sounds like a good choice, I don't know the transactional steps for each solution, but to have the javascript written entirely in the page without requiring some sort of connection to the wicket server, does sound like it will be more immediate

Re: Mapping wicket:id to component without changing Java code

2011-02-01 Thread James Carman
On Tue, Feb 1, 2011 at 10:27 AM, msj121 msj...@gmail.com wrote: You can add an empty label to replace the content if not adding the component. Or, use EmptyPanel or a plain ole WebMarkupContainer? - To unsubscribe, e-mail:

Re: Dynamic tab question - now to pass a model to the panel?

2011-02-01 Thread msj121
I don't quite understand the problem... some code might help. But why can't you do something like the following: tabs.add(new AbstractTab(item.getModel()) { public Panel getPanel(String panelId) { return new AlbumPanel(panelId, );// can be item.getModelObject() or something }

Re: Using non-Model fields in Form

2011-02-01 Thread James Carman
This is exactly why I tell folks not to use CPM. People start relying on them too heavily and when all doesn't work as planned, they freak out. It's like the blonde that got locked in her car because the battery died and her automatic locks didn't work. On Tue, Feb 1, 2011 at 10:25 AM, nimmy

[1.4.15] FLAG_INHERITABLE_MODEL and default model change

2011-02-01 Thread Alexander Morozov
Hi, I have the question about correctness of Component#setDefaultModel (Component#setModelImpl) method behavior. I expect that the flag FLAG_INHERITABLE_MODEL should be checked there and turned off if the provided model is not a IComponentInheritedModel. Let check the next code: public

Re: export to excel AjaxFallbackDefaultDataTable

2011-02-01 Thread fachhoch
Now I want to export the same table in PDF , I did the export to excel using apache POI, Now I have to export the same table to PDF. Is there any libray which serves export to various formats ? I saw display Tag http://displaytag.sourceforge.net/10/export.html it provides export to

Re: Dynamic tab question - now to pass a model to the panel?

2011-02-01 Thread nimmy
Hi, Thanks for your reply. I'm pretty much doing what you suggested but have a concrete Tab class as it is reused on another page: public class AlbumTab extends AbstractTab { private static final long serialVersionUID = 1L; private IModelAlbum model; public

Using DataView newItem method to display a BreadCrumbPanel

2011-02-01 Thread shetc
Hi All, I am trying to add an onclick event to a table row -- each row is created using a DataView. To make an entire row clickable, I add an AjaxEventBehavior via the DataView's Item newItem method. This seems to work as far as an onEvent event being raised when I click on a table row. However,

Re: [1.4.15] FLAG_INHERITABLE_MODEL and default model change

2011-02-01 Thread Igor Vaynberg
please file a jira -igor On Tue, Feb 1, 2011 at 8:16 AM, Alexander Morozov alexander.v.moro...@gmail.com wrote: Hi, I have the question about correctness of Component#setDefaultModel (Component#setModelImpl) method behavior. I expect that the flag FLAG_INHERITABLE_MODEL should be checked

Set default locale when suitable locale not found

2011-02-01 Thread planime
In project i have several *.properties files for custom locale (page_en_GB and page_ru_RU).When user with default locale en US come, hes got exception. Can I do that if a suitable location has not been found to use my custom locale ? I try to use Locale.setDafault(...), but it doesnt work. --

Re: Dynamic tab question - now to pass a model to the panel?

2011-02-01 Thread msj121
the method .detach() or some variation should be called on every Loadable Detachable Model (LDM) if your model is being used as a default model to any component in the page hierarchy. To make this LDM your page model, I think there is a trick in the sense you should call super(model), and not

Re: Using DataView newItem method to display a BreadCrumbPanel

2011-02-01 Thread msj121
not sure what activate does, I would hope though that it would add the object to a panel on the page, and then you call target.addComponent(panel); As this target (the AjaxRequestTarget) deals with actually updating the front end of the page. Also Data Repeaters are somewhat dubious in that they

Re: Set default locale when suitable locale not found

2011-02-01 Thread Igor Vaynberg
if no matches are made the user should fall back to page.html and page.properties. so put your default locale into those files instead of specific locales. otherwise you can call session.setlocale() to force it. -igor On Tue, Feb 1, 2011 at 11:36 AM, planime planime...@mailforspam.com wrote:

Re: export to excel AjaxFallbackDefaultDataTable

2011-02-01 Thread jcgarciam
See http://itextpdf.com/ On Tue, Feb 1, 2011 at 1:21 PM, fachhoch [via Apache Wicket] ml-node+3252116-297151156-65...@n4.nabble.comml-node%2b3252116-297151156-65...@n4.nabble.com wrote: Now I want to export the same table in PDF , I did the export to excel using apache POI, Now I have to

RE: JWicket drag/drop handle

2011-02-01 Thread flavius
This did the trick. setRawOptions is exactly what I needed. Thanks Stefan -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/JWicket-drag-drop-handle-tp3250469p3253344.html Sent from the Users forum mailing list archive at Nabble.com.

how to set cookie domain?

2011-02-01 Thread Paolo
Hi, I want add a cookie, and I saw on this site, how to do this. https://cwiki.apache.org/WICKET/dealing-with-cookies.html ((WebResponse)RequestCycle.get().getResponse()).addCookie(new Cookie(cookieName, cookieValue)); but I need to specify also the domanin. I need something like this PHP

Re: Mapping wicket:id to component without changing Java code

2011-02-01 Thread Alec Swan
Thank you everybody for the clever ideas. msj121, I just started building the credit card form and was planning to just use Authorize.net APIs. This is not directly related to Wicket, so we should take this discussion off this forum. Email me directly if you have some thoughts or just wanted to

How to set cookie domain?

2011-02-01 Thread Paolo
Hi, I want add a cookie, and I saw on this site, how to do this. https://cwiki.apache.org/WICKET/dealing-with-cookies.html ((WebResponse)RequestCycle.get().getResponse()).addCookie(new Cookie(cookieName, cookieValue)); but I need to specify also the domanin. I need something like this PHP