Re: FormComponent and FormComponentPanel ClassCast Issue

2023-01-29 Thread Maxim Solodovnik
>>> [com.ibm.ws.webcontainer.jar:na] > >>> at > >>> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:463) > >>> [com.ibm.ws.runtime.jar:na] > >>> at > >>> com.ibm.ws

Re: FormComponent and FormComponentPanel ClassCast Issue

2023-01-29 Thread Eric Hamel
s.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:530) >>> [com.ibm.ws.runtime.jar:na] >>> at >>> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:316) >>> [com.ib

Re: FormComponent and FormComponentPanel ClassCast Issue

2023-01-23 Thread Eric Hamel
If it helps here is the full ClassificationPanel class: - class ClassificationsPanel extends FormComponentPanel { private static final long serialVersionUID = 1L; private static final String TOGGLE_CLASS = "list-group-item-warning"; public ClassificationsPanel(String

Re: FormComponent and FormComponentPanel ClassCast Issue

2023-01-23 Thread Eric Hamel
.ws.runtime.jar:na] >> at >> com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1833) >> [com.ibm.ws.runtime.jar:na] >> at >> com.ibm.ws.tcp.channel.impl.WorkQueueManager.re

Re: FormComponent and FormComponentPanel ClassCast Issue

2023-01-23 Thread Martin Grigorov
.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:985) > [na:CCX.CF [o1800.01]] >at > com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1074) > [na:CCX.CF [o1800.01]] >at > com.ibm.ws.util.ThreadPool$Worker.run(Thr

FormComponent and FormComponentPanel ClassCast Issue

2023-01-23 Thread Eric Hamel
with FormComponent, however ClassificationPanel extends FormComponentPanel class ClassificationsPanel extends FormComponentPanel { ... } I’m sure there’s a simple answer here but I’m not seeing it. It’s only happening on WebSphere and are not seeing this behavior on test Jetty environment. We are using

how to restrict the feedback message to display only one time for FormComponentPanel

2018-02-07 Thread extraquoo
our app has a phone number field like ###-###- x## on the page <http://apache-wicket.1842946.n4.nabble.com/file/t375760/phone_number_fields.png> We define a phone number class as FormComponentPanel in our app like below public class PhoneFormComponent extends FormComponen

Re: FormComponentPanel with tag

2016-12-22 Thread Olivier Dutrieux
/FormComponentPanel-with-input-type-test-tag-tp4676516p4676520.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h

Re: FormComponentPanel with tag

2016-12-22 Thread Martin Grigorov
k : I thought for FormComponentPanel.class > it's necessary to have a tag like (with open and close tag) : > it > is normal ? > > * when I update the afterFieldComponent (FormComponentPanel) by ajax > (AjaxRequestTarget) the label () is add (not replace) on the dom > each > ti

FormComponentPanel with tag

2016-12-22 Thread Olivier Dutrieux
the afterFieldComponent (FormComponentPanel) by ajax (AjaxRequestTarget) the label () is add (not replace) on the dom each time a update the afterFieldComponent : I think it's a bug Best regarde Duto - Duto -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/FormComponentPanel

Re: clearInput() if FormComponentPanel does not delegate to its inner FormComponents

2016-03-08 Thread Martin Grigorov
; >> On Mon, Mar 7, 2016 at 3:24 PM, Sven Meier <s...@meiers.net> wrote: >> >> Hi, >>> >>> it always has been that way. >>> I'm not aware of any benefit which would justify a change - besides >>> consistency. >>> >>>

Re: clearInput() if FormComponentPanel does not delegate to its inner FormComponents

2016-03-07 Thread Sven Meier
:24 PM, Sven Meier <s...@meiers.net> wrote: Hi, it always has been that way. I'm not aware of any benefit which would justify a change - besides consistency. Have fun Sven On 07.03.2016 15:10, Patrick Davids wrote: Hi Wicket Pros, is it bug or an feature, that FormComponen

Re: clearInput() if FormComponentPanel does not delegate to its inner FormComponents

2016-03-07 Thread Martin Grigorov
> I'm not aware of any benefit which would justify a change - besides > consistency. > > Have fun > Sven > > > > On 07.03.2016 15:10, Patrick Davids wrote: > >> Hi Wicket Pros, >> >> is it bug or an feature, that FormComponentPanel is not o

Re: clearInput() if FormComponentPanel does not delegate to its inner FormComponents

2016-03-07 Thread Sven Meier
Hi, it always has been that way. I'm not aware of any benefit which would justify a change - besides consistency. Have fun Sven On 07.03.2016 15:10, Patrick Davids wrote: Hi Wicket Pros, is it bug or an feature, that FormComponentPanel is not overriding clearInput() to delegate

clearInput() if FormComponentPanel does not delegate to its inner FormComponents

2016-03-07 Thread Patrick Davids
Hi Wicket Pros, is it bug or an feature, that FormComponentPanel is not overriding clearInput() to delegate the clearing to its inner FormComponents? For me, it should behave the same way, when extending FormComponent. But I'm not sure here about consequences... (As I can see

Re: Immutable Object for FormComponentPanel ?

2015-06-08 Thread smallufo
2015-06-08 14:36 GMT+08:00 Martin Grigorov mgrigo...@apache.org: MyFormComponentPanel.this.setModelObject(getModelObject().withDayOfMonth(DayOfMonth)); Excuse me Where should I put this code to ? DatePanel's constructor ? or override DropDownChoice's some method ? or DatePanel's

Re: Immutable Object for FormComponentPanel ?

2015-06-08 Thread smallufo
OK . It seems I figure it out ... add(yangDayChoice = new DropDownChoice( day, new PropertyModelInteger(localDate, dayOfMonth) { @Override public void setObject(Integer value) { LocalDate ld = getModelObject(); LocalDate ld2 =

Re: Immutable Object for FormComponentPanel ?

2015-06-08 Thread Martin Grigorov
and Consulting https://twitter.com/mtgrigorov On Mon, Jun 8, 2015 at 5:27 AM, smallufo small...@gmail.com wrote: Hi : I have a question about immutable object in FormComponentPanel . If the object doesn't have setters , how to correctly handle it ? for example : Java8's LocalDate , it only has

Immutable Object for FormComponentPanel ?

2015-06-07 Thread smallufo
Hi : I have a question about immutable object in FormComponentPanel . If the object doesn't have setters , how to correctly handle it ? for example : Java8's LocalDate , it only has getYear() , getMonthValue() , getDayOfMonth() no setters. And in my code : public class DatePanel extends

Re: FormComponentPanel and propagating model value to components

2015-04-09 Thread mscoon
to your inner textfiled by implementing an own setXYZModel()-method? Or bind your inner textfield direct by providing a particular model in your Constructor of your custom MyFormComponentPanel? And no onInitialize()-method... public class MyFormComponentPanel extends FormComponentPanel { public

FormComponentPanel and propagating model value to components

2015-04-08 Thread mscoon
Hi all, I have a FormComponentPanel. Is it okay if I set its components models using a behavior that overrides onConfigure() as below? public class MyFormComponentPanel extends FormComponentPanel { protected void onInitialize() { super.onInitialize(); componentA = new

Re: FormComponentPanel and propagating model value to components

2015-04-08 Thread Patrick Davids
()-method... public class MyFormComponentPanel extends FormComponentPanel { public MyFormComponentPanel(IModel myModel){ add(new TextField(id, myModel)); } } (add generics if needed) Patrick Am 08.04.2015 um 09:27 schrieb mscoon: Hi all, I have a FormComponentPanel. Is it okay if I set

Re: Unit testing FormComponentPanel

2014-08-07 Thread lucast
/Unit-testing-FormComponentPanel-tp4666900p4666923.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h

Re: Unit testing FormComponentPanel

2014-08-07 Thread Martin Grigorov
this message in context: http://apache-wicket.1842946.n4.nabble.com/Unit-testing-FormComponentPanel-tp4666900p4666923.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr

Unit testing FormComponentPanel

2014-08-06 Thread lucast
Dear Forum, I am trying to unit test a FormComponentPanel. I would like to populate its fields and test some ajax behaviour as well. Is it possible to test a FormComponentPanel and its behaviour in isolation and not as part of a form? How can this be achieved? For testing a form, I call

Re: Unit testing FormComponentPanel

2014-08-06 Thread Martin Grigorov
https://twitter.com/mtgrigorov On Wed, Aug 6, 2014 at 1:38 PM, lucast lucastol...@hotmail.com wrote: Dear Forum, I am trying to unit test a FormComponentPanel. I would like to populate its fields and test some ajax behaviour as well. Is it possible to test a FormComponentPanel and its behaviour

Re: Unit testing FormComponentPanel

2014-08-06 Thread lucast
need to pass to tester.executeAjaxEvent(), please? Thanks, once more, Lucas -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Unit-testing-FormComponentPanel-tp4666900p4666914.html Sent from the Users forum mailing list archive at Nabble.com

Re: getting values from FormComponentPanel outside form.onSubmit()

2014-02-17 Thread lucast
I am missing something. Thanks, Lucas -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/getting-values-from-FormComponentPanel-outside-form-onSubmit-tp4664462p4664498.html Sent from the Users forum mailing list archive at Nabble.com

getting values from FormComponentPanel outside form.onSubmit()

2014-02-14 Thread lucast
Dear forum, I have implemented a FormComponentPanel as suggested both in the Apache Wicket Cookbook (chapter 2) and wicket guide (chapter 12.8) http://wicket.apache.org/guide/guide/forms2.html#forms2_8 . Before I submit the form, I would like to have the option of adding the content from

Re: getting values from FormComponentPanel outside form.onSubmit()

2014-02-14 Thread Sven Meier
FormComponentPanel.getConvertedInput(), which in turns calls FormComponentPanel.convertInput(). Not true. See FormComponentPanel#onEvent() on how to properly process a single FormComponent. Regards Sven On 02/14/2014 06:14 PM, lucast wrote: Dear forum, I have implemented

Re: getting values from FormComponentPanel outside form.onSubmit()

2014-02-14 Thread Richter, Marvin
Why wouldn’t you just use the defaultFormProcessing an add the converted value of the FormComponentPanel to the list inside your onSubmit method? Best, Marvin Am 14.02.2014 um 18:14 schrieb lucast lucastol...@hotmail.com: Dear forum, I have implemented a FormComponentPanel as suggested

Re: OnChangeAjaxBehavior on FormComponentPanel: model object is null

2013-07-10 Thread Sven Meier
a specific sort of inputs needs to be derived from FormComponentPanel. One of these simply contains a DropDownChoiceString of which the model object is simply passed through. In some context I added an OnChangeAjaxBehavior to this component and found that in its onChange() method the component's model

DropDownChoice in FormComponentPanel

2013-05-20 Thread Richard W. Adams
I have a FormComponentPanel with both string fields DropDownChoice controls. How do I get the drop downs' current selections from inside my override of convertInput()? I can get the string fields' values by calling the fields' convertInput() methods, but when I call convertInput() on the drop

RE: DropDownChoice in FormComponentPanel

2013-05-20 Thread Paul Bors
) { setConvertedInput(dropDown.getConvertedInput()); } ... } But it really depends on what your FormComponentPanel is wrapping and how you share its model among the child components. Refer to the Wicket Users Guide section 1.8 Creating comples form components with FormComponentPanel: http://wicket.apache.org

RE: DropDownChoice in FormComponentPanel

2013-05-20 Thread Richard W. Adams
...@bors.ws To: users@wicket.apache.org Date: 05/20/2013 11:35 AM Subject:RE: DropDownChoice in FormComponentPanel Simplest way I can think of is something like: @Override protected void onBeforeRender() { if(isValid()) { dropDown.getFormField().setDefaultModel(getDefaultModel

RE: DropDownChoice in FormComponentPanel

2013-05-20 Thread Paul Bors
- From: Richard W. Adams [mailto:rwada...@up.com] Sent: Monday, May 20, 2013 12:54 PM To: users@wicket.apache.org Subject: RE: DropDownChoice in FormComponentPanel I'm not finished investigating this yet, but my preliminary findings indicate that the solution (at least in my case) is to call

FormComponentPanel resets my user's input when an error is reported

2013-05-17 Thread Paul Bors
Suppose I want to preserve my user's raw input when I wrap some form fields inside a FormComponentPanel after an error is generated, would I be wrong to only update my form field's model only for the first time around and thereafter only for Ajax requests? I've notice that the raw user input

RE: FormComponentPanel resets my user's input when an error is reported

2013-05-17 Thread Paul Bors
N/M, forgot about the valid() method J ~ Thank you, Paul Bors From: Paul Bors [mailto:p...@bors.ws] Sent: Friday, May 17, 2013 5:35 PM To: users@wicket.apache.org Subject: FormComponentPanel resets my user's input when an error is reported Suppose I want to preserve my user's

how can I get the input value of a customized formcomponentpanel

2013-03-20 Thread cosmindumy
. Or is it other better way? Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-can-I-get-the-input-value-of-a-customized-formcomponentpanel-tp4657375.html Sent from the Users forum mailing list archive at Nabble.com

Re: Custom FormComponentPanel and validation

2013-03-14 Thread Paul Bors
Have you tried this: https://cwiki.apache.org/WICKET/creating-custom-formcomponentpanels-to-build-valid-objects-using-wickets-form-validation-logic.html ~ Thank you, Paul Bors On Thu, Mar 14, 2013 at 9:39 AM, Jeremy Levy jel...@gmail.com wrote: I have a FormComponentPanel with 3 TextFields

FormComponentPanel / counterpart of convertInput() ?

2013-03-11 Thread Patrick Davids
Hi all, I'm implementing a FormComponent which devides Date from Time in two input fields. It results in a simple Date Object... due to the method convertInput(). Works so far... But how to fill/load the FormComponent fields by Date on init? I'm looking for the counterpart of convertInput(),

Re: FormComponentPanel / counterpart of convertInput() ?

2013-03-11 Thread Sven Meier
You should set up your nested components with appropriate models. See DateTimeField for inspirations. Regards Sven On 03/11/2013 04:16 PM, Patrick Davids wrote: Hi all, I'm implementing a FormComponent which devides Date from Time in two input fields. It results in a simple Date Object...

AjaxSubmitLink.onSubmit() Not Called in FormComponentPanel

2013-03-01 Thread Richard W. Adams
I created an AjaxSubmitLink in a FormComponent Panel, and set a break point in its onSubmit() method. For some reason, the breakpoint never gets hit when I click the link. I've used an AjaxSubmitLink on a normal, non-panel page successfully, and modeled the panelized link after that, so am not

Re: AjaxSubmitLink.onSubmit() Not Called in FormComponentPanel

2013-03-01 Thread Sven Meier
Do you have unrendered feedback messages? Override #onError() and see if it gets invoked. Sven On 03/01/2013 06:53 PM, Richard W. Adams wrote: I created an AjaxSubmitLink in a FormComponent Panel, and set a break point in its onSubmit() method. For some reason, the breakpoint never gets hit

Re: AjaxSubmitLink.onSubmit() Not Called in FormComponentPanel

2013-03-01 Thread Richard W. Adams
Yikes! You're right. OnError() was called instead of onSubmit(). (Hides red face slinks away...) From: Sven Meier s...@meiers.net To: users@wicket.apache.org Date: 03/01/2013 12:24 PM Subject:Re: AjaxSubmitLink.onSubmit() Not Called in FormComponentPanel Do you have

Re: FormComponentPanel onchange Events

2012-12-15 Thread William Speirs
; always null So just about all combinations still seem to only return null :-( I put the code for my FormComponentPanel up on pastebin: http://pastebin.com/AMvYbv2B Any insight would be great. Thanks... Bill- On Wed, Dec 12, 2012 at 10:57 PM, Colin Rogers colin.rog...@objectconsulting.com.au

FormComponentPanel onchange Events

2012-12-12 Thread William Speirs
I've created a FormComponentPanel with 2 text boxes: A B. I've add this new FormComponentPanel to my page twice: 1 2. What I'd like to have happen is when I change the value of 1A I want that same value copied into 2A. I call setOutputMarkupId to true on 1A, 1B, 2A, and 2B. I setup

RE: FormComponentPanel onchange Events

2012-12-12 Thread Chris Colman
: FormComponentPanel onchange Events I've created a FormComponentPanel with 2 text boxes: A B. I've add this new FormComponentPanel to my page twice: 1 2. What I'd like to have happen is when I change the value of 1A I want that same value copied into 2A. I call setOutputMarkupId to true on 1A, 1B, 2A, and 2B

RE: FormComponentPanel onchange Events

2012-12-12 Thread Colin Rogers
the non-working code up if those suggestions don't solve it? I'd be happy to have a look at it. Cheers, Col. -Original Message- From: William Speirs [mailto:wspe...@apache.org] Sent: Thursday, 13 December 2012 1:51 PM To: users Subject: FormComponentPanel onchange Events I've created

RE: Model is null after submit, using FormComponentPanel

2012-12-07 Thread Raul
Here is the example to prove it's package it and deploy it in an application server. http://ul.to/ymfabds0 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Model-is-null-after-submit-using-FormComponentPanel-tp4654441p4654586.html Sent from the Users forum mailing

Re: Model is null after submit, using FormComponentPanel

2012-12-07 Thread Sven Meier
Hi Raul, there are a few things to improve here: - in your case you don't need to extend FormComponentPanel - if you really want to control the textField's inputName, you have to let the component know about it - usage of models could be improved. See here for some ideas: http

Re: Model is null after submit, using FormComponentPanel

2012-12-07 Thread Raul
Thanks, your suggestion solved my problem. Greetings from Spain. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Model-is-null-after-submit-using-FormComponentPanel-tp4654441p4654594.html Sent from the Users forum mailing list archive at Nabble.com

Re: Model is null after submit, using FormComponentPanel

2012-12-06 Thread Raul
); dc.add(behaviors); number.add(behaviors); return this; } } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Model-is-null-after-submit-using-FormComponentPanel-tp4654441p4654545.html Sent from the Users forum

Re: Model is null after submit, using FormComponentPanel

2012-12-06 Thread Tobias Gierke
Hi, I think you need to override FormComponentPanel#convertInput(). Cheers, Tobias Thanks for the reply, I tried to use the component on the form with the object CompoundPropertyModel. As follows, ccc = new CustomerAccountCode(ccc, new CompoundPropertyModelAccount(new Account(config.getCcc

Re: Model is null after submit, using FormComponentPanel

2012-12-06 Thread Raul
I've tried to override FormComponentPanel#convertInput (), but in the execution of this, both the method TextField#getConvertedInput () and TextField#getModelObject () return null. By the way I'm using Wicket 6.3 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com

RE: Model is null after submit, using FormComponentPanel

2012-12-06 Thread Paul Bors
I would suggest overriding FormComponentPanel#convertInput() only if your domain object can't be easily converted by Wicket given the model you have. If you're using CompoundPropertyModel and set the model on your FormComponentPanel then your TextField ID and type should be all you need

Re: Model is null after submit, using FormComponentPanel

2012-12-06 Thread Joachim Schrod
Paul Bors wrote: I would suggest overriding FormComponentPanel#convertInput() only if your domain object can't be easily converted by Wicket given the model you have. If you're using CompoundPropertyModel and set the model on your FormComponentPanel then your TextField ID and type should

RE: Model is null after submit, using FormComponentPanel

2012-12-06 Thread Raul
I created a quickstart, Where I can upload it for what you may see? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Model-is-null-after-submit-using-FormComponentPanel-tp4654441p4654566.html Sent from the Users forum mailing list archive at Nabble.com

RE: Model is null after submit, using FormComponentPanel

2012-12-06 Thread Paul Bors
Assuming that you don't set a model for the FormComponet won't Wicket fail back to the CompountPropertyModel of the form? Who will perform the conversion then? I only override FormComponentPanel#convertInput() when I force my clients to provide the model for my FormComponentPanel and even then I

RE: Model is null after submit, using FormComponentPanel

2012-12-06 Thread Paul Bors
after submit, using FormComponentPanel I created a quickstart, Where I can upload it for what you may see? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Model-is-null-after-submit-using- FormComponentPanel-tp4654441p4654566.html Sent from the Users forum mailing list

Re: Model is null after submit, using FormComponentPanel

2012-12-06 Thread Joachim Schrod
Paul Bors wrote: Assuming that you don't set a model for the FormComponet won't Wicket fail back to the CompountPropertyModel of the form? Yes, for sure. But you explicitly recommended: If you're using CompoundPropertyModel and set the model on your FormComponentPanel then your TextField ID

Re: Model is null after submit, using FormComponentPanel

2012-12-05 Thread Paul Borș
Take a look at https://cwiki.apache.org/WICKET/working-with-wicket-models.html Okay so Account is the type of the model object and your FormComponentPanel seem to work off a CustomerAccountCodeModel: CustomerAccountCodeModel ccc = getModelObject(); If I'm understanding this right, what does

Re: Model is null after submit, using FormComponentPanel

2012-12-04 Thread Joachim Schrod
Raul wrote: Thank Col, But I have no validation, my component code is the code of the component is public class CustomerAccountCode extends FormComponentPanelAccount { private FormComponentString entity; private FormComponentString office; private

Re: Model is null after submit, using FormComponentPanel

2012-12-04 Thread Raul
I tried to use CompoundPropertyModel Account in CustomerAccountCode object constructor, and similarly -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Model-is-null-after-submit-using-FormComponentPanel-tp4654441p4654490.html Sent from the Users forum mailing list

Model is null after submit, using FormComponentPanel

2012-12-03 Thread Raul
Hello, I want to create a reusable component for use as part of a form, for this class use FormComponentPanel, As the following article. https://cwiki.apache.org/WICKET/creating-custom-formcomponentpanels-to-build-valid-objects-using-wickets-form-validation-logic.html My problem is that when I

RE: Model is null after submit, using FormComponentPanel

2012-12-03 Thread Colin Rogers
. -Original Message- From: Raul [mailto:ralva...@netwie.com] Sent: Tuesday, 4 December 2012 8:35 AM To: users@wicket.apache.org Subject: Model is null after submit, using FormComponentPanel Hello, I want to create a reusable component for use as part of a form, for this class use

No Ajax Model Update in FormComponentPanel

2012-11-15 Thread Richard W. Adams
I have a drop down choice in a FormComponentPanel, and need to update other parts of the panel when the user changes the selected value in the drop down. My panel class is defined as: PointLocationPanel extends FormComponentPanelPointLocation Its constructor begins like this: public

Re: No Ajax Model Update in FormComponentPanel

2012-11-15 Thread Sven Meier
. Adams wrote: I have a drop down choice in a FormComponentPanel, and need to update other parts of the panel when the user changes the selected value in the drop down. My panel class is defined as: PointLocationPanel extends FormComponentPanelPointLocation Its constructor begins like

Subclassing FormComponentPanel / propagating setRequired() to child components ?

2012-10-01 Thread Tobias Gierke
Hi, With setRequired() being final, I'm not sure how to propagate a setRequired() call to my child components ... I found some discussion about the pro's and con's of having a final setRequired() method () (

Re: Subclassing FormComponentPanel / propagating setRequired() to child components ?

2012-10-01 Thread Sebastien
Hi, Don't think you have to propagate #setRequired() to child components because the whole formcomponent is required. But I think you could overrive #checkRequired() - which is not final - to fit best your use case (which is called underneath by #validate()) Hope this helps, Sebastien. On Mon,

Re: Subclassing FormComponentPanel / propagating setRequired() to child components ?

2012-10-01 Thread Tobias Gierke
Hi, I decided to just override isRequired() on the child components and let it delegate to FormComponentPanel.this#isRequired() ... didn't test it yet but I suppose it should work. Thanks for your reply! Tobias Hi, Don't think you have to propagate #setRequired() to child components

FormComponentPanel with default form processing disabled

2012-06-21 Thread Hill, Joel (DTMB)
With a normal FormComponent, you can disable default form processing on a submit button, and still process that component by calling processInput(). This doesn't work with FormComponentPanel, because processInput() doesn't call the processInput() method of child FormComponents, and is final so

Re: Models in a FormComponentPanel

2011-11-21 Thread Martin Grigorov
Hi, See org.apache.wicket.extensions.yui.calendar.DateTimeField.convertInput() for example On Mon, Nov 21, 2011 at 5:20 AM, infiniter infini...@gmail.com wrote: I've created a FormComponentPanel to represent the current time which consists of 3 drop downs for hour and minute and meridiem

Re: Models in a FormComponentPanel

2011-11-21 Thread infiniter
I cannot replace it at this point of the development... I just need to able to get accurate date from its model object. Also I really want to learn how to accomplish this. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Models-in-a-FormComponentPanel

Models in a FormComponentPanel

2011-11-20 Thread infiniter
I've created a FormComponentPanel to represent the current time which consists of 3 drop downs for hour and minute and meridiem. The model object of the FormComponentPanel is a Date object and the model of the drop down represents the selected option, but I need to change the model object in my

Re: formComponentPanel with content generated by RepeatingView

2011-04-24 Thread kamiseq
yep I did it like that and it works public class Editor extends FormComponentPanelListString { private ListViewString item; /** * If you dont have ArrayList you can always copy your collection to new ArrayList. * * @param id of the control * @param accounts a list of

Re: formComponentPanel with content generated by RepeatingView

2011-04-23 Thread kamiseq
heh i thought I was smart :] as each component in FormComponentPanel is converted and validated so it would be easy to intercept value set on components model and add it to List (which is model of whole FCPanel) because Im not really converting components value to something bigger. the only

Re: formComponentPanel with content generated by RepeatingView

2011-04-23 Thread Pedro Santos
On Sat, Apr 23, 2011 at 2:45 PM, kamiseq kami...@gmail.com wrote: heh i thought I was smart :] as each component in FormComponentPanel is converted and validated so it would be easy to intercept value set on components model and add it to List (which is model of whole FCPanel) because Im

Re: formComponentPanel with content generated by RepeatingView

2011-04-22 Thread kamiseq
hej, on the second thought I can implement (in this simple case) a model backuped by List or Set and then let Form (or FormComponentPanel) to process all fields. pozdrawiam Paweł Kamiński kami...@gmail.com pkaminski@gmail.com __

Re: formComponentPanel with content generated by RepeatingView

2011-04-22 Thread Pedro Santos
). It don't set the model already. On Fri, Apr 22, 2011 at 4:12 AM, kamiseq kami...@gmail.com wrote: hej, on the second thought I can implement (in this simple case) a model backuped by List or Set and then let Form (or FormComponentPanel) to process all fields. pozdrawiam Paweł Kamiński kami

formComponentPanel with content generated by RepeatingView

2011-04-21 Thread kamiseq
hi, Im trying to implement a simple form component that accepts List of Strings *public class AccountsPanel extends FormComponentPanelListString { ****public AccountsPanel(String id, ArrayListString accounts) { ******super(id, new Model(accounts)); buildComponents(); } }

Re: formComponentPanel with content generated by RepeatingView

2011-04-21 Thread Pedro Santos
Override convertInput is a good option. Keep in mind that at this point of the form processing (converting input), component models will not be updated yet. So you need to rely on children converted data (see FormComponet#getConvertedInput) in order to assemble the FormComponentPanel converted

Re: FormComponentPanel and invalid child FormComponents question

2011-01-27 Thread Sam Zilverberg
Thanks again. Just tried it out and it works perfect. ContainerFeedbackMessageFilter for my form-comp-panel's feedback panel allowed it to show it's children messages. Using a visitor in my invalid-css-class-behavior allowed me to enable the behavior when one of the children has an error. This

FormComponentPanel and invalid child FormComponents question

2011-01-26 Thread Sam Zilverberg
I have a FormComponentPanel that represents a Time object - not java.sql.Time but my own Time object. This Time object has 2 fields - hours and minutes. The panel has textfields for the hours and minutes that are defined as class type Integer. I have a behavior on the panel that whenever it has

Re: FormComponentPanel and invalid child FormComponents question

2011-01-26 Thread Igor Vaynberg
your form component panel should check if any of its children have error messages as well. use a visitor. -igor On Wed, Jan 26, 2011 at 8:32 AM, Sam Zilverberg samzilverb...@gmail.com wrote: I have a FormComponentPanel that represents a Time object - not java.sql.Time but my own Time object

Re: FormComponentPanel and invalid child FormComponents question

2011-01-26 Thread Sam Zilverberg
That is an excellent idea. However I don't want to just set the panel to be invalid when one of it's children is invalid. I'd like to also steal its' feedback message. I want this to happen because I have a feedback panel next to the form component that shows feedback messages registered to it.

Re: FormComponentPanel and invalid child FormComponents question

2011-01-26 Thread Igor Vaynberg
give the panel containerfeedbackmessagefilter which will filter on the specified component and any of its children. -igor On Wed, Jan 26, 2011 at 9:03 AM, Sam Zilverberg samzilverb...@gmail.com wrote: That is an excellent idea. However I don't want to just set the panel to be invalid when one

Re: FormComponentPanel and invalid child FormComponents question

2011-01-26 Thread Pedro Santos
Hi Sam, you can change the feedback panel to show not only messages registered for the panel, but also for the inner components. The Wicket feedback panel uses the IFeedbackMessageFilter to filter what messages to display. You can provide one that test if the reporter is an panel children. See

FormComponentPanel and CompoundPropertyModels

2011-01-20 Thread Olivier Croisier
Hi, After searching unsuccessfully through the ML archive, I come here to seek some advice on FormComponentPanels (FCP). What I want to do is build a small, reusable form component that lets me edit an Address (address, zipCode, city, country). I know that FCP are usually used as a bridge

Re: FormComponentPanel and CompoundPropertyModels

2011-01-20 Thread Jan Ferko
Hi, id of your TextFields should match name of property in Address model. something like that.. public class Address { private String address1; private String address2; private String city; //getters public String getAddress1(){} ... } Jan Ferko On 01/20/2011 12:45

Re: FormComponentPanel and CompoundPropertyModels

2011-01-20 Thread Olivier Croisier
When I use the second solution I gave above, the data I enter in the form is not saved to the model, and I don't understand why... I also tried to override convertInput() - still does not work protected void convertInput() { setConvertedInput(getModelObject()); } For info,

Re: nested form in FormComponentPanel validation issue

2010-12-07 Thread Joseph Pachod
On 12/05/2010 09:21 AM, Igor Vaynberg wrote: the problem is in DecoratedEdit classs, the tmp variable is not updated with converted input of the inner textfield, so composeConvertedInput() incorrectly returns null when it should return the converted input of the inner text component. hi

FormComponentPanel + unknown collection type

2010-12-06 Thread alex shubert
Hello! I got a problem with type mysmatch then implementing custom component. First of all, the code^ public class EnumCheckGroupT extends Enum extends FormComponentPanelCollectionT { public EnumCheckGroup(final String id, final IModel? extends CollectionT model, final ClassT enumClass) {

Re: FormComponentPanel + unknown collection type

2010-12-06 Thread alex shubert
Anyone? ( On 6 December 2010 15:59, alex shubert alex.shub...@gmail.com wrote: Hello! I got a problem with type mysmatch then implementing custom component. First of all, the code^ public class EnumCheckGroupT extends Enum extends FormComponentPanelCollectionT {  public

Re: FormComponentPanel + unknown collection type

2010-12-06 Thread alex shubert
Oh, I fouled myself There nothing to do with setType at all and WiA uses explicit call only instead of generics. So, if there are code such as mine, all one have to do is properly assembly object on it's way to model. private CollectionT modelField; @Override protected void

Re: nested form in FormComponentPanel validation issue

2010-12-05 Thread Igor Vaynberg
the problem is in DecoratedEdit classs, the tmp variable is not updated with converted input of the inner textfield, so composeConvertedInput() incorrectly returns null when it should return the converted input of the inner text component. -igor On Thu, Dec 2, 2010 at 2:18 AM, Joseph Pachod

Re: nested form in FormComponentPanel validation issue

2010-12-02 Thread Joseph Pachod
On 11/26/2010 05:41 PM, Igor Vaynberg wrote: quickstart, jira issue. -igor hi igor I've created a quickstart for it (cf attachement) however, it may be linked to self made DecoratedEdit/TextFieldEdit classes (cf attachement again). As such, I'm not sure if it's a wicket bug or not, so I

Re: nested form in FormComponentPanel validation issue

2010-11-26 Thread Joseph Pachod
On 11/25/2010 08:26 PM, Igor Vaynberg wrote: addressedit should be composing itself in its convertinput() method based on the converted input of the subcomponents. thanks igor it did so but the nested form was validating after the FormComponentPanel, so the converted inputs of the nested

Re: nested form in FormComponentPanel validation issue

2010-11-26 Thread Igor Vaynberg
so but the nested form was validating after the FormComponentPanel, so the converted inputs of the nested form components were all null... - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands

Re: nested form in FormComponentPanel validation issue

2010-11-26 Thread Joseph Pachod
On 11/26/2010 05:41 PM, Igor Vaynberg wrote: quickstart, jira issue. thanks, I wasn't sure about creating an issue I will do then, but since I moved on (removing the nested form), so it could take a little while (+ we are on 1.4.9, so maybe latest versions are better there, no clue) ++

  1   2   3   >