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.htt

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
s.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(Thread

FormComponent and FormComponentPanel ClassCast Issue

2023-01-23 Thread Eric Hamel
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
e.com/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: us

Re: FormComponentPanel with tag

2016-12-22 Thread Martin Grigorov
27;s a work : 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 &g

FormComponentPanel with tag

2016-12-22 Thread Olivier Dutrieux
en I update 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/For

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

2016-03-08 Thread Martin Grigorov
n, Mar 7, 2016 at 3:24 PM, Sven Meier 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 >>&

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

2016-03-07 Thread Sven Meier
2016 at 3:24 PM, Sven Meier 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 FormComponentPanel is not overri

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

2016-03-07 Thread Martin Grigorov
t 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 >> clearI

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 delegat

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 ca

Re: Immutable Object for FormComponentPanel ?

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

Re: Immutable Object for FormComponentPanel ?

2015-06-08 Thread smallufo
2015-06-08 14:36 GMT+08:00 Martin Grigorov : > > 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 convertInput() ? or somewhere

Re: Immutable Object for FormComponentPanel ?

2015-06-07 Thread Martin Grigorov
g and Consulting https://twitter.com/mtgrigorov On Mon, Jun 8, 2015 at 5:27 AM, smallufo 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 Loca

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 DatePan

Re: FormComponentPanel and propagating model value to components

2015-04-09 Thread mscoon
; > Why dont you delegate 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 clas

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

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: Unit testing FormComponentPanel

2014-08-07 Thread Martin Grigorov
side > the test? > > I fear I am missing something really obvious in my tests. > > Thanks, once more, > Lucas > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Unit-testing-FormComponentPanel-tp4666900p4666923.html > Sent from

Re: Unit testing FormComponentPanel

2014-08-07 Thread lucast
n 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...@wicket.apache.o

Re: Unit testing FormComponentPanel

2014-08-06 Thread lucast
ect I 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 Nabbl

Re: Unit testing FormComponentPanel

2014-08-06 Thread Martin Grigorov
ining and Consulting https://twitter.com/mtgrigorov On Wed, Aug 6, 2014 at 1:38 PM, lucast 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 FormComponentP

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 Is

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

2014-02-17 Thread lucast
e via form submit. Maybe 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 arch

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 : > Dear forum, > > I have implemented a FormComponentPanel as suggested both in t

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 a

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 conten

Re: OnChangeAjaxBehavior on FormComponentPanel: model object is null

2013-07-10 Thread Sven Meier
cific sort of inputs needs to be derived from FormComponentPanel. One of these simply contains a DropDownChoice 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

RE: DropDownChoice in FormComponentPanel

2013-05-20 Thread Paul Bors
al Message- 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 c

RE: DropDownChoice in FormComponentPanel

2013-05-20 Thread Richard W. Adams
Paul Bors To: 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(getDe

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.

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 co

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 u

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

how can I get the input value of a customized formcomponentpanel

2013-03-20 Thread cosmindumy
rocessing. 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 a

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 wrote: > I have a FormComponentPanel with 3 TextFields. I'd

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... due

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(), so

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 To: users@wicket.apache.org Date: 03/01/2013 12:24 PM Subject:Re: AjaxSubmitLink.onSubmit() Not Called in FormComponentPanel Do you have unrendered

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 whe

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

RE: FormComponentPanel & onchange Events

2012-12-12 Thread Colin Rogers
avior? Can you post 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 &am

RE: FormComponentPanel & onchange Events

2012-12-12 Thread Chris Colman
o: users >Subject: 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

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,

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

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 ma

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 >

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

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

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 yo

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.

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 CompoundPropertyModel(new Account(con

Re: Model is null after submit, using FormComponentPanel

2012-12-06 Thread Raul
correctly displayed data, but when you throw the "onSubmit" form, the model the "ccc.getModelObject()" still returns null. //New implementation public class CustomerAccountCode extends FormComponentPanel { private FormComponent entity;

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

Re: Model is null after submit, using FormComponentPanel

2012-12-04 Thread Raul
I tried to use CompoundPropertyModel 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 archive

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 > FormComponentPanel { > > private FormComponent entity; > private FormComponent office; >

RE: Model is null after submit, using FormComponentPanel

2012-12-04 Thread Raul
Thank Col, But I have no validation, my component code is the code of the component is public class CustomerAccountCode extends FormComponentPanel { private FormComponent entity; private FormComponent office; private FormComponent dc; private

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

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: No Ajax Model Update in FormComponentPanel

2012-11-19 Thread Richard W. Adams
You were right, Sven. It was that simple! Sometimes I can't see the forest for the trees. From: Sven Meier To: users@wicket.apache.org Date: 11/15/2012 03:41 PM Subject:Re: No Ajax Model Update in FormComponentPanel > final Integer newSubdivision = getMod

Re: No Ajax Model Update in FormComponentPanel

2012-11-15 Thread Sven Meier
Richard W. 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 FormComponentPanel Its constructor begins like t

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 FormComponentPanel Its constructor begins like this: public PointLocationP

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 becau

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, O

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 () ( http://apache-wicket.1842946.n4.nabble.com/VOTE-setRequired-final-or-not-td1903843.htm

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 i

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

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 wrote: > I've created a FormComponentPanel to represent the current time which > consists of 3 drop downs for hour and minute and meridiem. > The m

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

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 FormComponentPanel> { private ListView 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 all accou

Re: formComponentPanel with content generated by RepeatingView

2011-04-23 Thread Pedro Santos
On Sat, Apr 23, 2011 at 2:45 PM, kamiseq 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 I

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-22 Thread Pedro Santos
don't set the model already. On Fri, Apr 22, 2011 at 4:12 AM, kamiseq 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

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

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 FormComponentPanel> { ****public AccountsPanel(String id, ArrayList accounts) { ******super(id, new Model(accounts)); buildComponents(); } } *and I am us

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 i

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 Cont

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

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
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 wrote: > I have a FormComponentPanel that represents a Time object - not > java.sql.Time but my own Time object. > This Ti

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 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: FormComponentPanel and CompoundPropertyModels

2011-01-20 Thread Jan Ferko
FormComponentPanel { private Address address = new Address(); private TextField address1; private TextField address2; private TextField zipCode; private TextField city; private CountryCodeDropDownChoice countryCode; public AddressField(String id) { super

FormComponentPanel and CompoundPropertyModels

2011-01-20 Thread Olivier Croisier
between an external model and a set of individual components ; but in my case, the internal and external models are the same. Below is my current code (adapted from Wicket In Action) ; as you can see, it is very verbose and redundant. public class AddressField extends FormComponentPanel

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 igo

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 Collection modelField; @Override protected void onInitialize()

Re: FormComponentPanel + unknown collection type

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

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 EnumCheckGroup extends FormComponentPanel> { public EnumCheckGroup(final String id, final IModel> model, final Class enumClass) { //noinspection unc

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 wrot

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 p

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   >