Re: RadioChoice - what's wrong?

2010-10-08 Thread Zeldor
186 is System.out.println(_numbers); -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/RadioChoice-what-s-wrong-tp2967576p2967903.html Sent from the Users forum mailing list archive at Nabble.com. -

Re: RadioChoice - what's wrong?

2010-10-08 Thread Igor Vaynberg
in that case either your System or your System.out is null :) -igor On Thu, Oct 7, 2010 at 11:35 PM, Zeldor pgronkiew...@gmail.com wrote: 186 is System.out.println(_numbers); -- View this message in context:

Re: RadioChoice - what's wrong?

2010-10-08 Thread Zeldor
Well, _numbers is null :) That's why I wonder what's wrong with getting the ObjectModel - I must be doing smth wrong there :) On Fri, Oct 8, 2010 at 8:43 AM, Igor Vaynberg-2 [via Apache Wicket] ml-node+2967914-1064517663-152...@n4.nabble.comml-node%2b2967914-1064517663-152...@n4.nabble.com

Re: RadioChoice - what's wrong?

2010-10-08 Thread Igor Vaynberg
if number is null it will just print null -igor On Thu, Oct 7, 2010 at 11:49 PM, Zeldor pgronkiew...@gmail.com wrote: Well, _numbers is null :) That's why I wonder what's wrong with getting the ObjectModel - I must be doing smth wrong there :) On Fri, Oct 8, 2010 at 8:43 AM, Igor Vaynberg-2

Testing concurrant updates on database

2010-10-08 Thread CREMONINI Daniele
Hi everybody, My problem is I have to test a Page that should prevent lost updates via optimistic lock checking. I resolved the problem using JPA optimistic lock and if I use two different browsers then the Page works in the desired way. The problem comes in the test phase: to emulate two

Customizing the Datepicker for a background mask

2010-10-08 Thread amigo
Hi, I have used the datepicker component in my application and it works great. But currently when I click the icon attached with the datetextfield, it opens up the datepicker, and if I click on a text box or anyother form element outside the calendar, the popup remains opens still open and

Nice URL for non-bookmarkable page

2010-10-08 Thread fadeyev
In my onSubmit handler I have a statement: setResponsePage(new AfterPaymentPage(payment)); Where payment is an object of the Payment class, so AfterPaymentPage is non-bookmarkable AfterPaymentPage opens with url looking like this: applicationcontext/?wicket:interface=:3:: Is there any way

displaying error messages on respective panel

2010-10-08 Thread Ben
I have 3 panels on a page, all 3 panels also have form in them. And I have a wicket form wrapping all 3 panels. On panel3 I have a submit button and in that submit logic I am validating panel 1 and panel 2 components. As I have the submit logic in panel3 the error messages are being displayed

Re: Bean injection

2010-10-08 Thread Daniel Stoch
On Thu, Oct 7, 2010 at 5:47 PM, Mauro Ciancio maurocian...@gmail.com wrote: It's not so important, but I can't figure out why I have the same bean instance, taking into account that the page is serialized at the end of the request and the inyected bean is actually a proxy of the bean, so no

RE: Wicket site on Android phone

2010-10-08 Thread Chris Colman
The Android market is going through spectacular growth at the moment. It's going bezerk! http://blogs.wsj.com/digits/2010/10/05/the-rise-of-android-what-does-it- mean-for-apple-users/ The fact that it supports Flash and that its apps are written in Java instead of Objective C like the iPhone

Re: displaying error messages on respective panel

2010-10-08 Thread vov
new FeedbackPanel(feedback, new ContainerFeedbackMessageFilter(form) { @Override public boolean accept(FeedbackMessage message) { return {Your code}; } }); -- View this message in context:

Re: Wicket 1.5 Ajax issue?

2010-10-08 Thread nino martinez wael
ticket with quickstart : https://issues.apache.org/jira/browse/WICKET-3101 2010/10/5 Martin Grigorov mgrigo...@apache.org Hi Nino, If there is an error then Wicket will show either the configured InternalErrorPage in DEPLOYMENT mode or the developer friendly page with the details for the

page over HTTP with sign in panel over HTTPs

2010-10-08 Thread Melinda Dweer
Hi, I has the following use case: I have some public pages (should be served over HTTP) containing a sign in panel which must be submitted over HTTPs. I have though of doing this as follows: -use an iframe to host the sign in panel: actually it would be a page served over HTTPs to the iframe.

Re: wicket 1.5, css resourcereference from string?

2010-10-08 Thread nino martinez wael
Has someone an idea? I am just trying to read a custom css from a string and render it as a reference on the page. Do I need to register the reference somewhere or sormething? 2010/10/7 nino martinez wael nino.martinez.w...@gmail.com Hi I cant get below working: public void

Re: Bean injection

2010-10-08 Thread James Carman
On Fri, Oct 8, 2010 at 4:30 AM, Daniel Stoch daniel.st...@gmail.com wrote: Yes: after deserialization :). And yes: after deserialization of yout page version this bean is relocated from Spring again. You can chcek this: go to the previous page version by clicking back button and press refresh

Re: Testing concurrant updates on database

2010-10-08 Thread James Carman
What exactly are you trying to test? Are you trying to test the optimistic locking? You didn't write that. If you want to test that you actually have optimistic locking turned on, then you can do that by checking the metadata. On Fri, Oct 8, 2010 at 3:27 AM, CREMONINI Daniele

calculated columns in a pivot table

2010-10-08 Thread Ivana Cace
Hi list, This isnt so much a question, it's more that i'd like to hear your thoughts on the following. I'm making an webapp that shows a number of pivot tables or crosstables. Most repeaters are made for showing a list of objects, where each row is one object. While in a crosstab there is no

Re: displaying error messages on respective panel

2010-10-08 Thread Ben
Thanks for your reply. But I am displaying my own custom error messages reading from some other file. In this case how can i achieve that. Thanks, Ben -- View this message in context:

Re: wicket and ext-js

2010-10-08 Thread Fabio Fioretti
Hi Frank, Sorry for the late reply. We are currently migrating our main application from Wicket 1.3 to 1.4 and contextually upgrading ext-wicket. This might eventually be the right occasion to update the project, though we are still targetting Ext 2.2. With regard to behaviors and components, we

Re: multiple html pages to 1 class

2010-10-08 Thread Altuğ Bilgin Altıntaş
Thanks... 2010/10/8 Jeremy Thomerson jer...@wickettraining.com I forgot to include the URLs you should try in that quickstart: http://localhost:8080/example1 http://localhost:8080/example1?template=red http://localhost:8080/example2 http://localhost:8080/example2?template=red Here's the

Re: RadioChoice - what's wrong?

2010-10-08 Thread Zilvinas Vilutis
Oh come on! no one will want to steal your non-working code! Use http://pastebin.com/ to show your code if you want someone's help ;) Žilvinas Vilutis Mobile:   (+370) 652 38353 E-mail:   cika...@gmail.com On Thu, Oct 7, 2010 at 11:35 PM, Zeldor pgronkiew...@gmail.com wrote: 186 is

Re: Bean injection

2010-10-08 Thread Mauro Ciancio
Hi, Yes: after deserialization :). And yes: after deserialization of yout page version this bean is relocated from Spring again. You can chcek this: go to the previous page version by clicking back button and press refresh button (if page is cached in a browser). Then you can see that a new

Re: Bean injection

2010-10-08 Thread James Carman
On Fri, Oct 8, 2010 at 10:42 AM, Mauro Ciancio maurocian...@gmail.com wrote: Wel, that explains the whole issue. If only if had known it before. :) Thanks to all for the replies. Regards. - For this particular use case (the current date), I would suggest you just calculate that on-the-fly,

Re: page over HTTP with sign in panel over HTTPs

2010-10-08 Thread Martin Grigorov
See org.apache.wicket.protocol.https.HttpsRequestCycleProcessor On Fri, Oct 8, 2010 at 11:44 AM, Melinda Dweer melinda.dw...@gmail.comwrote: Hi, I has the following use case: I have some public pages (should be served over HTTP) containing a sign in panel which must be submitted over

Re: Nice URL for non-bookmarkable page

2010-10-08 Thread Igor Vaynberg
make the page bookmarkable and mount it onto /thankyou url -igor On Thu, Oct 7, 2010 at 11:04 PM, fadeyev fade...@yandex.ru wrote: In my onSubmit handler I have a statement: setResponsePage(new AfterPaymentPage(payment)); Where payment is an object of the Payment class, so AfterPaymentPage

Re: displaying error messages on respective panel

2010-10-08 Thread Igor Vaynberg
see ContainerFeedbackMessageFilter, baically each panel has its own feedback panel and they each use the filter to only display messages from their respective children. -igor On Fri, Oct 8, 2010 at 1:09 AM, Ben benarje...@yahoo.com wrote: I have 3 panels on a page, all 3 panels also have form

Re: wicket 1.5, css resourcereference from string?

2010-10-08 Thread Igor Vaynberg
what you are trying to do doesnt make sense, think about it. how is wicket supposed to build a url to your anonymous reference instance? you have two options, use renderCssReference(String url) to output the url to your custom css or if you need to stream it from somewhere inaccessible by the

Re: page over HTTP with sign in panel over HTTPs

2010-10-08 Thread Igor Vaynberg
you can try tweaking the form so that its action is https, so class httpsform extens form { oncomponenttag(tag) { super.oncomponenttag(tag); string action=tag.get(action); action=requestutils.toabsoluteurl(action); action=https+action.substring(4); tag.put(action,

RE: PropertyModel Not Refreshing

2010-10-08 Thread Shelli Orton
Hi, I have been trying different things to see if I could get my code to work (and understand Wicket models better), but am still stuck. I have a attached the (latest) panel class code which I hope is sufficient to help. I was reading about different models (both online and the Wicket in

Re: wicket 1.5, css resourcereference from string?

2010-10-08 Thread nino martinez wael
hmm right, could I just embed it in the html page then, I guess the answer is yes? I guess the reason I took this path was because of the texttemplateresourcereference which seems to do something much like this. regards Nino 2010/10/8 Igor Vaynberg igor.vaynb...@gmail.com what you are trying

Re: GridView for A-Symmetric tables - issues

2010-10-08 Thread Arjun Dhar
Hi, I've solved this problem by writing a new implementation of DataViewBase. GridView did not seem appropriate to simply extend due to a few reasons. (It assumes Symmetry for the most in its code). This Code can merge areas within the GRID and extract data from the data model accordingly and

Re: Integrating Separate Different Wicket Applications Into One

2010-10-08 Thread kugaprakash
Hi, I am trying to solve similar problem as the Original Post. Can you please share some details of your ideas that you done? Much appreciated. Best Regards -- View this message in context:

Re: GridView for A-Symmetric tables - issues

2010-10-08 Thread Igor Vaynberg
attach it to a jira issue, post the url back here -igor On Fri, Oct 8, 2010 at 9:57 AM, Arjun Dhar dhar...@yahoo.com wrote: Hi,  I've solved this problem by writing a new implementation of DataViewBase. GridView did not seem appropriate to simply extend due to a few reasons. (It assumes

Catching maxSize of fileUpload error

2010-10-08 Thread meduolis
Hello, is it possible to handle validation of maxSize of file upload (FileUploadField)? I need something like this onFileMaxSizeError() { someOtherField.error(someValidationMessage); } I hope someone understand what I want :D, if not, please let me know, i will try to describe

Re: RadioChoice - what's wrong?

2010-10-08 Thread Zeldor
Sure, but I posted pretty much everything related to radiochoice :) So I am just not doing some obvious important steps for making RadioChoice work :) Code, with all non-related parts removed, looks like that: public class Registration extends WebPage { public Registration() {

Re: Bean injection

2010-10-08 Thread Mauro Ciancio
For this particular use case (the current date), I would suggest you just calculate that on-the-fly, not at bean creation time.  It's not that expensive to calculate. Yes, I appreciate your suggestion. :) Thanks James. Regards. -- Mauro Ciancio

Re: PropertyModel Not Refreshing

2010-10-08 Thread jcgarciam
The attachment didn't make it, Can you try to extract out the relevant part and creates a quickstart project that actually reproduces your issue? On Fri, Oct 8, 2010 at 1:41 PM, Shelli Orton [via Apache Wicket]

Re: Help with custom component that implements IOnChangeListener

2010-10-08 Thread Igor Vaynberg
easiest way to help you is if you create a quickstart and attach it to a jira issue -igor On Thu, Oct 7, 2010 at 7:08 AM, Rut Bastoni rut.bast...@poste.it wrote: Hi everyone, i'm trying to implement a  custom TextField that fires onchange event without using Ajax (it is a requirement of my

Re: page over HTTP with sign in panel over HTTPs

2010-10-08 Thread Melinda Dweer
Martin, Thanks for your answer! Yes, I know about that class: my questions was more how to have a form submitted over HTTPs on a page served over HTTP. Regards, Ernesto On Fri, Oct 8, 2010 at 5:34 PM, Martin Grigorov mgrigo...@apache.orgwrote: See

Re: page over HTTP with sign in panel over HTTPs

2010-10-08 Thread Melinda Dweer
I will give it a try. Thanks! Melinda On Fri, Oct 8, 2010 at 5:51 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: you can try tweaking the form so that its action is https, so class httpsform extens form { oncomponenttag(tag) { super.oncomponenttag(tag); string

Re: AjaxFormComponentUpdatingBehavior Question

2010-10-08 Thread meduolis
I dont know if it works, but you can try to make a hack :) endDateDropDown = new DropDownChoiceDate(endDateDropDown, new PropertyModel(viewHistoryCriteria, endDate), ProcessDateContext.getSixtyDayRange()); endDateDropDown.add(new AjaxFormComponentUpdatingBehavior(onchange) { protected

Re: AjaxFormComponentUpdatingBehavior Question

2010-10-08 Thread pjacobsma
meduolis wrote: I dont know if it works, but you can try to make a hack :) endDateDropDown = new DropDownChoiceDate(endDateDropDown, new PropertyModel(viewHistoryCriteria, endDate), ProcessDateContext.getSixtyDayRange()); endDateDropDown.add(new

Re: AjaxFormComponentUpdatingBehavior Question

2010-10-08 Thread meduolis
Again, I can offer a hack :D public class DoSomeHackBehavior extends AbstractBehavior { private static final long serialVersionUID = 3554634545756435367L; @Override public void onComponentTag(Component component, ComponentTag tag) { FormComponent? comp =