Re: nested form in FormComponentPanel validation issue

2010-11-26 Thread Igor Vaynberg
gt; thanks igor > > it did 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-unsubsc

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-25 Thread Igor Vaynberg
addressedit should be composing itself in its convertinput() method based on the converted input of the subcomponents. -igor On Thu, Nov 25, 2010 at 5:07 AM, Joseph Pachod wrote: > Hi > > I've an AddressEdit which is a FormComponentPanel > > The addressEdit is comp

nested form in FormComponentPanel validation issue

2010-11-25 Thread Joseph Pachod
Hi I've an AddressEdit which is a FormComponentPanel The addressEdit is composed of two parts: a structured address and a displayed text. The displayed text can be generated from the structured address (provided the structured address is valid, meaning it has all its field apart fro

Re: FormComponentPanel and list edit

2010-08-06 Thread Igor Vaynberg
so make it extend it. the same way formcomponentpanel does but minus the markup bits. -igor On Fri, Aug 6, 2010 at 6:01 AM, Joseph Pachod wrote: > hi > >  > >  > List convertedInput ; >  > >  > public void convertInput(){ >  >  List list= new ArrayLis

Re: FormComponentPanel and list edit

2010-08-06 Thread Joseph Pachod
hi > > List convertedInput ; > > public void convertInput(){ > List list= new ArrayList() > // how to compose the list ? listeditor.convertinput(); setConvertedInput(listeditor.getconvertedinput()); -igorlisteditor isn't a FormComponent, so there's no convertinput to

Re: FormComponentPanel and list edit

2010-08-04 Thread Igor Vaynberg
, but with > the wrapper around the list item. > > For example (pseudo code): > public class ContactListEdit extends FormComponentPanel>{ > > (...) > private ListEditor contactListEdit ; > > onBeforeRender(){ >  if(!hasBeenRendered()){ >   contactListEdit = new L

Re: FormComponentPanel and list edit

2010-08-04 Thread Joseph Pachod
FormComponentPanel>{ (...) private ListEditor contactListEdit ; onBeforeRender(){ if(!hasBeenRendered()){ contactListEdit = new ListEditor("id",listModel){ void onPopulateItem(item){ item.add(new TextField("firstname", new PropertyModel(item.getModel(), "first

Re: FormComponentPanel and list edit

2010-08-04 Thread Igor Vaynberg
why not? convertinput() will cascade down to all components that need them. -igor On Wed, Aug 4, 2010 at 12:03 AM, Joseph Pachod wrote: > Igor Vaynberg wrote: >> >> visit all the children, check if they are a FormComponent and call >> convertinput() followed by getconvertedinput() >> >> -igor >>

Re: FormComponentPanel and list edit

2010-08-04 Thread Joseph Pachod
Igor Vaynberg wrote: visit all the children, check if they are a FormComponent and call convertinput() followed by getconvertedinput() -igor hi thanks igor we thought of that, but the issue is that we need to handle the getconvertedinput For example, if I've a ContactListEdit, with each

Re: FormComponentPanel and list edit

2010-08-03 Thread Igor Vaynberg
quot;good form citizen". On our way, we spotted the > FormComponentPanel, which seems to achieve our goal. > > Yet, a question has popped up: how to deal with List edit ? Indeed, none of > the class extending AbstractRepeater is a form component. As such, there's no >

FormComponentPanel and list edit

2010-08-03 Thread Joseph Pachod
hi IF we're heavily reusing the edit components we do, and as such we wanted them to behave as "good form citizen". On our way, we spotted the FormComponentPanel, which seems to achieve our goal. Yet, a question has popped up: how to deal with List edit ? Indeed, none of the

Re: FormComponentPanel Behavior

2010-07-30 Thread bht
Yes I did. Is it better not to not do this? Regards, Bernard On Thu, 29 Jul 2010 16:54:28 -0300, you wrote: >Hi Bernard, did you call setRequired method on your FormComponentPanel input >components? >like: formComponentPanel.fieldOne.setRequired(true) > >On Thu, Jul 29, 2010 at

Re: FormComponentPanel Behavior

2010-07-30 Thread loic
Hello Bernard, why did you ask a new question in this topic? I think my issue is lost now :) Dos anybody have an idea for the original question? Thanks Loic -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/WicketTester-and-Palette-component-tp2306743p2307708.html S

Re: FormComponentPanel Behavior

2010-07-29 Thread Pedro Santos
Hi Bernard, did you call setRequired method on your FormComponentPanel input components? like: formComponentPanel.fieldOne.setRequired(true) On Thu, Jul 29, 2010 at 4:33 PM, wrote: > Hi, > > org.apache.wicket.markup.html.form.FormComponentPanel > aims to act to the outside

FormComponentPanel Behavior

2010-07-29 Thread bht
Hi, org.apache.wicket.markup.html.form.FormComponentPanel aims to act to the outside world as one component. I want it to behave in a way that it flags missing required input on behalf of its enclosed components. Imagine an input component with 4 fields for a credit card number. If input in an

How to get checkRequired() called in FormComponentPanel

2010-07-25 Thread bht
Hi, I have implemented a date chooser custom component with 3 combined DropDownChoice components. Like http://blog.aparnachaudhary.net/2009/07/29/date-dropdownchoice-apache-wicket/ My overriding boolean checkRequired() is not called when the form is submitted. I then used FormComponentPanel

Re: FormComponentPanel

2009-12-04 Thread Igor Vaynberg
override convertinput() and check that all three are filled in by calling getconvertedinput() on the child components -igor On Fri, Dec 4, 2009 at 8:39 AM, Sam Barrow wrote: > > I have a FormComponentPanel called Name with 3 fields. > Is there a way to set it up so that by filling o

FormComponentPanel

2009-12-04 Thread Sam Barrow
I have a FormComponentPanel called Name with 3 fields. Is there a way to set it up so that by filling out one of the fields, this makes the other ones required? For example if there is an optional Name field on a form it can be completely filled out or completely empty, but i dont want somebody

FormComponentPanel - ajaxifying

2009-06-04 Thread Ned Collyer
Hi, I have a FormComponentPanel which contains several select boxes. Title Model Transmission I'd like to be able to be able to do the following - but not sure how to achieve it. MyAwesomeComponent extends FormComponentPanel new MyAwesomeComponent.add(new OnChangeAjaxBehavior() { onU

Re: Example for FormComponentPanel/best-practice for reusable form-components

2009-05-05 Thread Igor Vaynberg
create a quickstart and attach it to a jira issue -igor On Tue, May 5, 2009 at 1:47 PM, FlyingMustang wrote: > > > John Krasnay wrote: >> >> AddressFormComponent should extend Panel, not FormComponentPanel. >> > > Thank you for yout help! Now AddressFormCompone

Re: Example for FormComponentPanel/best-practice for reusable form-components

2009-05-05 Thread FlyingMustang
John Krasnay wrote: > > AddressFormComponent should extend Panel, not FormComponentPanel. > Thank you for yout help! Now AddressFormComponent extends from Panel and fixed the wrong chainigs. I also asserted that the address is NOT null right before I submit the form in my test-case.

Re: Example for FormComponentPanel/best-practice for reusable form-components

2009-05-05 Thread John Krasnay
AddressFormComponent should extend Panel, not FormComponentPanel. FormComponentPanel is used for special cases where you have several FormComponents that work together to edit a model value, such as a date editor that has dropdowns for month and day. On a FormComponentPanel, you have to implement

Re: Example for FormComponentPanel/best-practice for reusable form-components

2009-05-05 Thread Igor Vaynberg
empty. The PersonFormComponent works well as it only sets some > String-Properties of the Person-Object. But I have trouble with the > AddressFormComponent which looks like this: > > public class AddressFormComponent extends > FormComponentPanel { >        protected TextField cityField, postcode

Re: Example for FormComponentPanel/best-practice for reusable form-components

2009-05-05 Thread FlyingMustang
.add(addressFormComponent); After creation of this Panel I call form.setModelObject(...). So the model ist not empty. The PersonFormComponent works well as it only sets some String-Properties of the Person-Object. But I have trouble with the AddressFormComponent which looks like this: public class Add

Re: Example for FormComponentPanel/best-practice for reusable form-components

2009-05-05 Thread Igor Vaynberg
show us your code. -igor On Tue, May 5, 2009 at 10:04 AM, Marc Hauptmann wrote: > Hello, > > I want to use FormComponentPanels in forms to deal with more complex > model-objects. I think it should be possible to chain the Model of every > FormComponentPanel to the Model of the

Example for FormComponentPanel/best-practice for reusable form-components

2009-05-05 Thread Marc Hauptmann
Hello, I want to use FormComponentPanels in forms to deal with more complex model-objects. I think it should be possible to chain the Model of every FormComponentPanel to the Model of the Form. So every FormComponent has automatically the right data in its Model when it changes. But somehow I

Re: FormComponentPanel woes

2009-03-26 Thread triswork
van der Pal wrote: > > Arg, I wanted to make my changes bold. But now I see stars. Not sure if > you get those too, but if you do: leave out the stars :) > -- View this message in context: http://www.nabble.com/FormComponentPanel-woes-tp22720502p22721785.html Sent from the W

Re: FormComponentPanel woes

2009-03-26 Thread Linda van der Pal
ender, which prepares for rendering, and convertInput, which handles receiving input." So your code would become something like this: public class LimitedTextArea extends FormComponentPanel implements IHeaderContributor { *private String text; private TextArea textField; *public LimitedTextA

Re: FormComponentPanel woes

2009-03-26 Thread Linda van der Pal
edTextArea extends FormComponentPanel implements IHeaderContributor { *private String text; private TextArea textField; *public LimitedTextArea(String id, IModel model, int limit) { super(id, model); * PropertyModel textModel = new PropertyModel(this, "text");*

RE: FormComponentPanel woes

2009-03-26 Thread Stefan Lindner
tan.k...@gmail.com] Gesendet: Donnerstag, 26. März 2009 13:52 An: users@wicket.apache.org Betreff: RE: FormComponentPanel woes Hi Stefan You have completely lost me on this one. All I want to do is have my TextArea (contained within my FormComponentPanel) to render properly without sticking arbitrary bi

RE: FormComponentPanel woes

2009-03-26 Thread triswork
Hi Stefan You have completely lost me on this one. All I want to do is have my TextArea (contained within my FormComponentPanel) to render properly without sticking arbitrary bits of markup inside itself. That markup you have quoted is being generated by Wicket - not by me :( Stefan Lindner

RE: FormComponentPanel woes

2009-03-26 Thread Stefan Lindner
Should do it -Ursprüngliche Nachricht- Von: triswork [mailto:tristan.k...@gmail.com] Gesendet: Donnerstag, 26. März 2009 13:14 An: users@wicket.apache.org Betreff: Re: FormComponentPanel woes Hi Linda, No, I haven't :( I didn't realise I had to... Do you know where I can

Re: FormComponentPanel woes

2009-03-26 Thread Linda van der Pal
I found it in the book Wicket in Action. triswork wrote: Hi Linda, No, I haven't :( I didn't realise I had to... Do you know where I can find some documentation explaining this? Thanks T Linda van der Pal wrote: Hi Did you override onBeforeRender and convertInput? Regards, Linda

Re: FormComponentPanel woes

2009-03-26 Thread triswork
mething? > > Cheers - Steve > -- View this message in context: http://www.nabble.com/FormComponentPanel-woes-tp22720502p22720956.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: us

Re: FormComponentPanel woes

2009-03-26 Thread triswork
iew this message in context: http://www.nabble.com/FormComponentPanel-woes-tp22720502p22720806.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For ad

Re: FormComponentPanel woes

2009-03-26 Thread Steve Flasby
s, that my text area is always rendered containing its own HTML. Basically, I have: public class LimitedTextArea extends FormComponentPanel implements IHeaderContributor { public LimitedTextArea(String id, IModel model, int limit) { super(id, model); TextArea textField = ne

Re: FormComponentPanel woes

2009-03-26 Thread Linda van der Pal
that my text area is always rendered containing its own HTML. Basically, I have: public class LimitedTextArea extends FormComponentPanel implements IHeaderContributor { public LimitedTextArea(String id, IModel model, int limit) { super(id, model); TextArea textField = new Tex

FormComponentPanel woes

2009-03-26 Thread triswork
ublic class LimitedTextArea extends FormComponentPanel implements IHeaderContributor { public LimitedTextArea(String id, IModel model, int limit) { super(id, model); TextArea textField = new TextArea("content", model); add(textField); ... } } And it

Re: Ajaxifying FormComponentPanel

2009-03-09 Thread Linda van der Pal
problem is that selectedGenre stays null. So I'm looking for the cause of that. My guess is that it is because the model isn't updated. (I did implement convertInput() in GenreFieldSwitchPanel, which extends FormComponentPanel.) Linda jWeekend wrote: Linda, Take a look at AjaxFormC

Re: Ajaxifying FormComponentPanel

2009-03-06 Thread Linda van der Pal
ays null. So I'm looking for the cause of that. My guess is that it is because the model isn't updated. (I did implement convertInput() in GenreFieldSwitchPanel, which extends FormComponentPanel.) Linda jWeekend wrote: Linda, Take a look at AjaxFormComponentUpdatingBehavior. Regar

Re: Ajaxifying FormComponentPanel

2009-03-06 Thread jWeekend
Linda, Take a look at AjaxFormComponentUpdatingBehavior. Regards - Cemal http://jWeekend.com jWeekend Linda van der Pal wrote: > > I have a FormComponentPanel that contains a TextField and a > DropDownChoice. Of those two only one is visible at any moment. (The > TextField

Ajaxifying FormComponentPanel

2009-03-06 Thread Linda van der Pal
I have a FormComponentPanel that contains a TextField and a DropDownChoice. Of those two only one is visible at any moment. (The TextField is there for when the DropDownChoice doesn't offer the wanted result.) On the panel that contains the FormComponentPanel, I want another element to re

FormComponentPanel and specifying tabindex for form input

2009-01-29 Thread Gianni Doe
I've got a custom date picker component that extends FormComponentPanel and I include it in my markup with. [date picker] The component uses a hidden form field to store an ISO formatted date value and a display field to show the localised full date. It's the hidden field that

Re: Using CompoundPropertyModel with FormComponentPanel

2008-11-26 Thread Ned Collyer
FYI, you are awesome. Always obvious what the problem is after its fixed hey ;) igor.vaynberg wrote: > > then just"model.object" will do :) > > -igor > -- View this message in context: http://www.nabble.com/Using-CompoundPropertyModel-with-FormComponentPanel-tp20

Re: Using CompoundPropertyModel with FormComponentPanel

2008-11-26 Thread Igor Vaynberg
>> >> String.format("model.object.%s", id))); >> >> > > -- > View this message in context: > http://www.nabble.com/Using-CompoundPropertyModel-with-FormComponentPanel-tp20697019p20709911.html > Sent from the Wicket - User mailing list archive at Nabble.co

Re: Using CompoundPropertyModel with FormComponentPanel

2008-11-26 Thread Ned Collyer
ned for class: class java.lang.String expression: name Rgds Ned igor.vaynberg wrote: > > String.format("model.object.%s", id))); > > -- View this message in context: http://www.nabble.com/Using-CompoundPropertyModel-with-FormComponentPanel-tp20697019p20709911.html Sent from

Re: Using CompoundPropertyModel with FormComponentPanel

2008-11-26 Thread Igor Vaynberg
t; through. > > I've gotta be close! > > > /* the class itself */ > > private final FormComponentLabel label; > private final Label labelText; > private final TextField editor; > private Fragment componentFragment; > > public class LabelledTextField

Re: Using CompoundPropertyModel with FormComponentPanel

2008-11-26 Thread Nino Saturnino Martinez Vazquez Wael
ahhh, didnt catch that you were doing that.. Ned Collyer wrote: I'm going to be sourcing the labelText from a properties file relatve to the class of the modelObject (in this case it will be the User - eg, user.properties). If I use the binding, then I need to have scope to the CPM in java worl

Re: Using CompoundPropertyModel with FormComponentPanel

2008-11-26 Thread Ned Collyer
l("labelText", CPM.bind("propertyname")); > > You can also do this for your property models btw... > -- View this message in context: http://www.nabble.com/Using-CompoundPropertyModel-with-FormComponentPanel-tp20697019p20699724.html Sent from

Re: Using CompoundPropertyModel with FormComponentPanel

2008-11-26 Thread Nino Saturnino Martinez Vazquez Wael
! /* the class itself */ private final FormComponentLabel label; private final Label labelText; private final TextField editor; private Fragment componentFragment; public class LabelledTextField extends FormComponentPanel { public LabelledTextField(String id) { super(id);

Re: Using CompoundPropertyModel with FormComponentPanel

2008-11-26 Thread Ned Collyer
I'm not sure how to get the textfield "editor" working on the property "name" of the user object - I am aware the CPM is trying to look at the id "editor" which is wrong :). -- View this message in context: http://www.nabble.com/Using-CompoundPr

Using CompoundPropertyModel with FormComponentPanel

2008-11-26 Thread Ned Collyer
h from wicketopia - which I've had a good dig through. I've gotta be close! /* the class itself */ private final FormComponentLabel label; private final Label labelText; private final TextField editor; private Fragment componentFragment; public class LabelledTextField extends FormCompo

Re: AjaxFormComponentUpdatingBehavior("onchange") does not work when added to a FormComponentPanel

2008-09-06 Thread Timo Rantalaiho
On Fri, 05 Sep 2008, Lutz Müller wrote: > I expected problems, mostly because the enclosing div (the panels container) > gets the onchange listener added. but to my surprise, an js event was > generated when i changed the selected value in one of the select elements, > and People who know more

AjaxFormComponentUpdatingBehavior("onchange") does not work when added to a FormComponentPanel

2008-09-05 Thread Lutz Müller
Hello all, I created a Component called TimePanel which is a FormComponentPanel containing two DropDownChoices. As you may have guessed from the components name, its used to input time. It is intended to be used with Jodas LocaTime as a ModelObject. One DDC is for hours, the other one for

Problem with custom FormComponentPanel and AjaxSubmitLink

2008-08-09 Thread Kaspar Fischer
: [text field] Add I have implemented the component as a FormComponentPanel>, with AjaxLink's to realize the remove links (x) and with an AjaxSubmitLink for the Add button. The remove links work but the Add button's onSubmit() always fails with a NullPointerException when it tri

Re: markupId of formcomponent nested inside a FormComponentPanel

2008-07-22 Thread Maarten Bosteels
component: public String getInnerMarkupId() { return dateField.getMarkupId(); } Please let me know if there's a better solution. And whether it would make sense to add this method to FormComponentPanel so that subclasses can override it to return the markupid of their 'main' formcompon

markupId of formcomponent nested inside a FormComponentPanel

2008-07-22 Thread Maarten Bosteels
Hello, How can I add a SimpleFormComponentLabel for an org.apache.wicket.extensions.yui.calendar.DateField ? The problem is that the SimpleFormComponentLabel uses the markupid of the DateField itself instead of the markupid of the nested DateTextField. This code DateField departure = new Da

Re: Validation in FormComponentPanel

2008-06-17 Thread Igor Vaynberg
instead of invalid() call error(msg); -igor On Tue, Jun 17, 2008 at 8:01 AM, NTS <[EMAIL PROTECTED]> wrote: > > Hi, > I have written a simple date component with 3 dropdowns using > FormComponentPanel. > In the method convertInput, I am doing > >

Validation in FormComponentPanel

2008-06-17 Thread NTS
Hi, I have written a simple date component with 3 dropdowns using FormComponentPanel. In the method convertInput, I am doing Integer day = (Integer) day.getConvertedInput(); Integer month = (Integer) month.getConvertedInput(); Integer year = (Integer

Re: hasErrorMessage() for FormComponentPanel

2008-05-01 Thread Maurice Marrink
Since the validator is custom can't you make the validator send the error to the formcomponentpanel instead of the inner component. then hasErrorMessage will work automatically. Maurice On Thu, May 1, 2008 at 9:43 PM, Clay Lehman <[EMAIL PROTECTED]> wrote: > Hey Everyone, > >

hasErrorMessage() for FormComponentPanel

2008-05-01 Thread Clay Lehman
Hey Everyone, I have made a FormComponentPanel that contains components in it. I add a custom validator to the inner component to validate the input. However, when I call hasErrorMessage on the FormComponentPanel, it always returns false, even if the custom validator found a problem. Is

Re: Good example for FormComponentPanel?

2008-04-14 Thread Igor Vaynberg
b info is > actually what I need, so this should work. > > Michael > > > -Original Message- > From: Igor Vaynberg [mailto:[EMAIL PROTECTED] > > > Sent: Monday, April 14, 2008 5:48 PM > To: users@wicket.apache.org > Subject: Re: Good example for FormComp

RE: Good example for FormComponentPanel?

2008-04-14 Thread Michael Mehrle
FormComponentPanel? On Mon, Apr 14, 2008 at 3:52 PM, Michael Mehrle <[EMAIL PROTECTED]> wrote: > Oh, I think you misunderstood no, i didnt. instead of all this theorizing why dont you try to implement this and see what the problems with it are. you will find that since tabbed panel uses are regu

Re: Good example for FormComponentPanel?

2008-04-14 Thread Igor Vaynberg
ay, April 14, 2008 3:33 PM > To: users@wicket.apache.org > Subject: Re: Good example for FormComponentPanel? > > yes, those links. by default they are regular a href links, so they > wont submit the values of components that are inside the tab. you can > override tabbedpane

RE: Good example for FormComponentPanel?

2008-04-14 Thread Michael Mehrle
e: Good example for FormComponentPanel? yes, those links. by default they are regular a href links, so they wont submit the values of components that are inside the tab. you can override tabbedpanel.newlink and return a submitlink instead. -igor On Mon, Apr 14, 2008 at 3:28 PM, Michael Mehrle &l

Re: Good example for FormComponentPanel?

2008-04-14 Thread Igor Vaynberg
he.org > Subject: Re: Good example for FormComponentPanel? > > if you replace tabbedpanel links to submitlink it will > > -igor > > > On Mon, Apr 14, 2008 at 12:51 PM, Michael Mehrle > <[EMAIL PROTECTED]> wrote: > > So, a form CAN contain a pa

RE: Good example for FormComponentPanel?

2008-04-14 Thread Michael Mehrle
FormComponentPanel? if you replace tabbedpanel links to submitlink it will -igor On Mon, Apr 14, 2008 at 12:51 PM, Michael Mehrle <[EMAIL PROTECTED]> wrote: > So, a form CAN contain a panel? Meaning, I am able to add a tabbedpanel > to a form and it'll work? > > Michael > &g

Re: Good example for FormComponentPanel?

2008-04-14 Thread Igor Vaynberg
t; > > -Original Message- > From: Nick Heudecker [mailto:[EMAIL PROTECTED] > Sent: Monday, April 14, 2008 10:29 AM > To: users@wicket.apache.org > Subject: Re: Good example for FormComponentPanel? > > A FormComponentPanel is used to combine several individual form >

RE: Good example for FormComponentPanel?

2008-04-14 Thread Michael Mehrle
So, a form CAN contain a panel? Meaning, I am able to add a tabbedpanel to a form and it'll work? Michael -Original Message- From: Nick Heudecker [mailto:[EMAIL PROTECTED] Sent: Monday, April 14, 2008 10:29 AM To: users@wicket.apache.org Subject: Re: Good example for FormComponent

Re: Good example for FormComponentPanel?

2008-04-14 Thread Ryan Gravener
DateTimeField extends FormComponentPanel On Fri, Apr 11, 2008 at 7:37 PM, Michael Mehrle <[EMAIL PROTECTED]> wrote: > I need to build a TabbedPanel with three tabs which are part of one form > - the selected tab will contain form components which need to be > submitted by th

Re: Good example for FormComponentPanel?

2008-04-14 Thread Nick Heudecker
A FormComponentPanel is used to combine several individual form components into a single object, like if you had year/month/day DropDownChoices in a single component. AFAIK, forms can contain anything except pages. On Mon, Apr 14, 2008 at 12:26 PM, Michael Mehrle <[EMAIL PROTECTED]> wrote

RE: Good example for FormComponentPanel?

2008-04-14 Thread Michael Mehrle
I am pretty sure that a tabbed panel can't be part of one form. If it can, that would be lovely. But I was under the impression that you can't add panels to a form. Could someone clarify this for me? BTW, one of the things I tried was to make each panel into a FormComponentPanel an

Re: Good example for FormComponentPanel?

2008-04-11 Thread Vitaly Tsaplin
ign decision is out of my > hand. It's got to have tabs. Of course it is possible to do the tabbing by > CSS styling, but I wanted to see if FormComponentPanel is a way to go since > the complexity of managing the tabbed panel would then be shifted to the > CSS/JS side. >

RE: Good example for FormComponentPanel?

2008-04-11 Thread Michael Mehrle
Yes, I agree, Vitaly - but unfortunately the design decision is out of my hand. It's got to have tabs. Of course it is possible to do the tabbing by CSS styling, but I wanted to see if FormComponentPanel is a way to go since the complexity of managing the tabbed panel would then be shift

Re: Good example for FormComponentPanel?

2008-04-11 Thread Vitaly Tsaplin
; submitted by that one form. It seems FormComponentPanel is the way to > go: are there any good examples of this? > > > > Also, would this be the recommended approach? > > > > Thanks, > > > > Michael > >

Good example for FormComponentPanel?

2008-04-11 Thread Michael Mehrle
I need to build a TabbedPanel with three tabs which are part of one form - the selected tab will contain form components which need to be submitted by that one form. It seems FormComponentPanel is the way to go: are there any good examples of this? Also, would this be the recommended approach

RE: Problem with using RadioGorup and AjaxEventBehavior in a FormComponentPanel

2008-03-20 Thread Zhubin Salehi
: Problem with using RadioGorup and AjaxEventBehavior in a FormComponentPanel in onupdate you should be calling getmodelobject() -igor On Thu, Mar 20, 2008 at 10:55 AM, Zhubin Salehi <[EMAIL PROTECTED]> wrote: > OK, now I changed my code to this: > > add(nanp = new Ra

Re: Problem with using RadioGorup and AjaxEventBehavior in a FormComponentPanel

2008-03-20 Thread Igor Vaynberg
hen I click on a radio button and > > onUpdate() gets called, RadioChoice.convertedInput is null. > > > > > > -----Original Message- > > From: Zhubin Salehi [mailto:[EMAIL PROTECTED] > > > > Sent: Thursday, March 20, 2008 1:17 PM > > T

Re: Problem with using RadioGorup and AjaxEventBehavior in a FormComponentPanel

2008-03-20 Thread Igor Vaynberg
gets called, RadioChoice.convertedInput is null. > > > -Original Message- > From: Zhubin Salehi [mailto:[EMAIL PROTECTED] > > Sent: Thursday, March 20, 2008 1:17 PM > To: users@wicket.apache.org > > > Subject: RE: Problem with using RadioGorup and AjaxEventBeha

RE: Problem with using RadioGorup and AjaxEventBehavior in a FormComponentPanel

2008-03-20 Thread Zhubin Salehi
en I click on a radio button and onUpdate() gets called, RadioChoice.convertedInput is null. -Original Message- From: Zhubin Salehi [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2008 1:17 PM To: users@wicket.apache.org Subject: RE: Problem with using RadioGorup and

RE: Problem with using RadioGorup and AjaxEventBehavior in a FormComponentPanel

2008-03-20 Thread Zhubin Salehi
, March 20, 2008 1:07 PM To: users@wicket.apache.org Subject: Re: Problem with using RadioGorup and AjaxEventBehavior in a FormComponentPanel right. see AjaxFormChoiceComponentUpdatingBehavior -igor On Thu, Mar 20, 2008 at 10:02 AM, Zhubin Salehi <[EMAIL PROTECTED]> wrote: > I

Re: Problem with using RadioGorup and AjaxEventBehavior in a FormComponentPanel

2008-03-20 Thread Igor Vaynberg
ngBehavior > can only be added to a FormComponent. > > > -Original Message- > From: Igor Vaynberg [mailto:[EMAIL PROTECTED] > > > Sent: Thursday, March 20, 2008 12:59 PM > To: users@wicket.apache.org > Subject: Re: Problem with using RadioGorup and AjaxEv

RE: Problem with using RadioGorup and AjaxEventBehavior in a FormComponentPanel

2008-03-20 Thread Zhubin Salehi
08 12:59 PM To: users@wicket.apache.org Subject: Re: Problem with using RadioGorup and AjaxEventBehavior in a FormComponentPanel are you adding the bheavior to Radio or RadioGroup, it needs to go to Radio components -igor On Thu, Mar 20, 2008 at 6:21 AM, Zhubin Salehi <[EMAIL PROTECTED]> wro

Re: Problem with using RadioGorup and AjaxEventBehavior in a FormComponentPanel

2008-03-20 Thread Igor Vaynberg
; > -Original Message- > From: Zhubin Salehi [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 20, 2008 9:18 AM > To: users@wicket.apache.org > > > Subject: RE: Problem with using RadioGorup and AjaxEventBehavior in a > FormComponentPanel > > onclick

RE: Problem with using RadioGorup and AjaxEventBehavior in a FormComponentPanel

2008-03-20 Thread Zhubin Salehi
AjaxEventBehavior in a FormComponentPanel onclick doesn't work either. -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2008 1:56 AM To: users@wicket.apache.org Subject: Re: Problem with using RadioGorup and AjaxEventBehavior in a FormComponent

RE: Problem with using RadioGorup and AjaxEventBehavior in a FormComponentPanel

2008-03-20 Thread Zhubin Salehi
onclick doesn't work either. -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2008 1:56 AM To: users@wicket.apache.org Subject: Re: Problem with using RadioGorup and AjaxEventBehavior in a FormComponentPanel also, for what its worth, on

Re: Problem with using RadioGorup and AjaxEventBehavior in a FormComponentPanel

2008-03-19 Thread Igor Vaynberg
> I do? > > > > Thanks, > > Zhubin > > > > > > > > -Original Message- > > From: Igor Vaynberg [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, March 19, 2008 6:04 PM > > To: users@wicket.apache.org > > Subject: Re: Problem

Re: Problem with using RadioGorup and AjaxEventBehavior in a FormComponentPanel

2008-03-19 Thread Igor Vaynberg
> From: Igor Vaynberg [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 19, 2008 6:04 PM > To: users@wicket.apache.org > Subject: Re: Problem with using RadioGorup and AjaxEventBehavior in a > FormComponentPanel > > ajax event behavior does not send over input. try >

RE: Problem with using RadioGorup and AjaxEventBehavior in a FormComponentPanel

2008-03-19 Thread Zhubin Salehi
-- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2008 6:04 PM To: users@wicket.apache.org Subject: Re: Problem with using RadioGorup and AjaxEventBehavior in a FormComponentPanel ajax event behavior does not send over input. try ajaxformcomponentupdatingbehavior. -igor O

Re: Problem with using RadioGorup and AjaxEventBehavior in a FormComponentPanel

2008-03-19 Thread Igor Vaynberg
ajax event behavior does not send over input. try ajaxformcomponentupdatingbehavior. -igor On Wed, Mar 19, 2008 at 2:19 PM, Zhubin Salehi <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm trying to update some TextFields in a FormComponentPanel when the user > select

Problem with using RadioGorup and AjaxEventBehavior in a FormComponentPanel

2008-03-19 Thread Zhubin Salehi
Hi all, I'm trying to update some TextFields in a FormComponentPanel when the user selects a radio button from a RadioGroup. Here is a fragment of my code that created Radio and RadioGroup objects: add(nanp = new RadioGroup("nanp", new PropertyModel(this, &q

Re: FormComponentPanel and setConvertedInput()

2008-01-11 Thread Michael Sparer
gt; >> -igor >> > > Thank you. > But I still can add validators as following : > add(new TextField("year" , new PropertyModel(time , "year")).add( > NumberValidator.POSITIVE)); > > And it still works (including the validator)

Re: FormComponentPanel and setConvertedInput()

2008-01-11 Thread smallufo
2008/1/12, Igor Vaynberg <[EMAIL PROTECTED]>: > > first you should implement convertintput() not setconvertedinput(). > inside your impl of convertinput() you should call setconvertedinput() > with the right value. Sorry , it's my typo , I meant convertInput() as you mentioned. this is indeed im

Re: FormComponentPanel and setConvertedInput()

2008-01-11 Thread Igor Vaynberg
will need to implement the method. -igor On Jan 11, 2008 8:59 AM, smallufo <[EMAIL PROTECTED]> wrote: > Hi , I am evaluating FormComponentPanel . > I looked into the document , it seems setConvertedInput() is the proper way > . > I use another method , which skips the setConverte

FormComponentPanel and setConvertedInput()

2008-01-11 Thread smallufo
Hi , I am evaluating FormComponentPanel . I looked into the document , it seems setConvertedInput() is the proper way . I use another method , which skips the setConvertedInput() , I don't know if it is suggested : Here is the code : public class TimePanel extends FormComponentPanel { pr

Re: FormComponentPanel doesn't get the Model set on Page

2007-11-26 Thread Timo Rantalaiho
On Mon, 26 Nov 2007, Franklin Antony wrote: > I have a situation where in which I have a FormComponentPanel. This > FormComponentPanel is placed on Form and the Form in turn placed on a Page. > Now when I instantiate the page I set a model on the page using setModel(new > CompoundP

FormComponentPanel doesn't get the Model set on Page

2007-11-26 Thread Franklin Antony
Dear Friends, I have a situation where in which I have a FormComponentPanel. This FormComponentPanel is placed on Form and the Form in turn placed on a Page. Now when I instantiate the page I set a model on the page using setModel(new CompoundPropertyModel(myModel)). Further I DO NOT pass

Re: FormComponentPanel and Validators

2007-10-04 Thread Michael Laccetti
Yeah, trunk JavaDoc, 1.3b2 code. I'll seek to keep the two sync'd in future. Thx. Igor Vaynberg wrote: what javadoc are you looking at? The one online is based on trunk -igor - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: FormComponentPanel and Validators

2007-10-04 Thread Michael Laccetti
Okay, I cannot find it in the 1.3.0-beta2 source JAR from Maven. I'll query about the possibility of switching to b3 to fix this. Gwyn Evans wrote: Some form of issue - it's definitely in 1.3.0b3 (D:\Wicket\apache-wicket-1.3.0-beta3\src\jdk-1.4\wicket\src\main\java\org\apache\wicket\markup\ht

<    1   2   3   >