Re: Custom Component Converter not called

2013-09-08 Thread Malte Neumann
Am 07.09.2013 22:19, schrieb Sven Meier: if you don't specify the type, a TextField will try to resolve the type from its model, see AbstractTextComponent#resolveType() and IObjectClassAwareModel. Thanks for this hint. During further tests after my mail, I found a situtation where the

Custom Component Converter not called

2013-09-07 Thread Malte Neumann
Hello! I've got a problem with a TextField and the depending CustomConverter. The converter of the component is not been called. So the default converter takes the task and fails. In my case this problem occurs when my IModel.getObject returns null. The problem arises in the

Re: Custom Component Converter not called

2013-09-07 Thread Sven Meier
Hi, if you don't specify the type, a TextField will try to resolve the type from its model, see AbstractTextComponent#resolveType() and IObjectClassAwareModel. Shouldn't there be a pre-examination wheter a component converter is available? Without type there can't be a converter. Sven

Nested external components in custom component

2012-07-18 Thread ddawg
Hi, i'm trying to nest a formcomponent into a custom component of my own: What I want is to have additional markup around my various form components. Thus I created a ControlGroup panel as in the following: *ControlGroup.java public class ControlGroup extends Panel { public

Re: Nested external components in custom component

2012-07-18 Thread Andrea Del Bene
Hi, check class org.apache.wicket.markup.html.border.Border. It should be more appropriate than a simple panel for what you are trying to do. Hi, i'm trying to nest a formcomponent into a custom component of my own: What I want is to have additional markup around my various form components

Custom Component

2010-12-16 Thread Dieter Bogdoll
is started it should load some data via an input stream and display this data. My idea was that the user has to overwrite a method in my custom component which delivers this stream. But how can I access now this stream from the applet, e.g. how can I create an URL which points to my component so

Re: Custom Component

2010-12-16 Thread Ernesto Reinaldo Barreiro
of that fact. This component should display some data using JFreeChart. After the applet is started it should load some data via an input stream and display this data. My idea was that the user has to overwrite a method in my custom component which delivers this stream. But how can I access now

Re: Custom Component

2010-12-16 Thread Benedikt Schlegel
Hi Dieter, i think you might want to have a look at the following: https://cwiki.apache.org/WICKET/jfreechart-and-wicket-example.html So long, Benedikt - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For

Re: Help with custom component that implements IOnChangeListener

2010-10-13 Thread Rut Bastoni
PM To: users@wicket.apache.org Subject: Help with custom component that implements IOnChangeListener Hi everyone, i'm trying to implement a custom TextField that fires onchange event without using Ajax (it is a requirement of my project - i have good reasons not to use Ajax). Looking

Re: Help with custom component that implements IOnChangeListener

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

Help with custom component that implements IOnChangeListener

2010-10-07 Thread Rut Bastoni
Hi everyone, i'm trying to implement a custom TextField that fires onchange event without using Ajax (it is a requirement of my project - i have good reasons not to use Ajax). Looking at the source files of DropDownChoice, CheckBox etc. (they all implement the

Problem in creating a Custom Component with a Panel and a Form

2009-04-18 Thread Giampiero Granatella
Hi, I'm new to wicket and i'm trying to create a custom component with a panel and inside the panel a form. I've a problem in rendering it. The framework tells me the following RuntimeException. ...WicketMessage: The component(s) below failed to render. A common problem is that you have added

Re: Problem in creating a Custom Component with a Panel and a Form

2009-04-18 Thread Khlystov Alexandr
:). Gabriel Bucher пишет: write wicket with a 't' instead of a 'd' in the markup. for example: input type=text wicket:id=db/input br/ ^ cheers gab Giampiero Granatella wrote: Hi, I'm new to wicket and i'm trying to create a custom component with a panel and inside the panel a form

Re: Problem in creating a Custom Component with a Panel and a Form

2009-04-18 Thread Khlystov Alexandr
Maybe hierarchy doesn't match? Means you added the panel to to other panel at java, but at html panel is added to the page directly. If not please provide more data - your java code. Giampiero Granatella пишет: Hi, I'm new to wicket and i'm trying to create a custom component with a panel

Re: Problem in creating a Custom Component with a Panel and a Form

2009-04-18 Thread Gabriel Bucher
write wicket with a 't' instead of a 'd' in the markup. for example: input type=text wicket:id=db/input br/ ^ cheers gab Giampiero Granatella wrote: Hi, I'm new to wicket and i'm trying to create a custom component with a panel and inside the panel a form. I've

Re: Problem in creating a Custom Component with a Panel and a Form

2009-04-18 Thread Giampiero Granatella
/ ^ cheers gab Giampiero Granatella wrote: Hi, I'm new to wicket and i'm trying to create a custom component with a panel and inside the panel a form. I've a problem in rendering it. The framework tells me the following RuntimeException. ...WicketMessage: The component(s) below failed

need some help with why a setResponsePage renders twice in a custom component

2009-02-26 Thread Brill Pappin
I've got a custom component based on the TabPanel where instead of updating the panel content it actually calls a setResponsePage(Page). However after setting the first tab, a click on any other tab renders the new page just fine except that the page for tab 0 is also rendered, and I mean

Re: need some help with why a setResponsePage renders twice in a custom component

2009-02-26 Thread Brill Pappin
Of course, no sooner do I post this, i find the problem. Since I dumped code on you folks, here is the working replacement in case anyone has a need for this. - Brill On 26-Feb-09, at 11:38 AM, Brill Pappin wrote: I've got a custom component based on the TabPanel where instead

Validation From A Custom Component

2009-02-17 Thread walnutmon
://www.nabble.com/Validation-From-A-Custom-Component-tp22060300p22060300.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h

Re: Validation From A Custom Component

2009-02-17 Thread Jeremy Thomerson
, or something similar? Or do I need to extend IValidator, and pass it the component's domain object in order to do the check and use wicket's validation form processing procedure. Thanks! Justin -- View this message in context: http://www.nabble.com/Validation-From-A-Custom-Component

Re: Validation From A Custom Component

2009-02-17 Thread walnutmon
://www.nabble.com/Validation-From-A-Custom-Component-tp22060300p22060300.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e

Re: Validation From A Custom Component

2009-02-17 Thread Eduardo Nunes
need to extend IValidator, and pass it the component's domain object in order to do the check and use wicket's validation form processing procedure. Thanks! Justin -- View this message in context: http://www.nabble.com/Validation-From-A-Custom-Component-tp22060300p22060300.html Sent from

Re: Validation From A Custom Component

2009-02-17 Thread Jeremy Thomerson
to extend IValidator, and pass it the component's domain object in order to do the check and use wicket's validation form processing procedure. Thanks! Justin -- View this message in context: http://www.nabble.com/Validation-From-A-Custom-Component-tp22060300p22060300.html Sent from

Re: Validation From A Custom Component

2009-02-17 Thread Nino Martinez
Jeremy Thomerson wrote: I, too, agree that this may not be the best way of doing things. But, anyway, there is a solution that will work: Use ValidationError rather than just a string public void updateModel() { try { super.updateModel();

Re: Validation From A Custom Component

2009-02-17 Thread Jeremy Thomerson
Because there's a compile error if you don't The method error(IValidationError) is ambiguous for the type new TextFieldString(){}. I thought the same, and didn't care to look further since this was just a quick example. Take a look for yourself: new TextFieldString(, new ModelString())

Re: Validation From A Custom Component

2009-02-17 Thread walnutmon
with the UI is still a very interesting, and potentially useful example... All of the logic in reporting an error is done within the custom component. public class DomainTextField extends TextField { public DomainTextField(String id) { super(id); add(new AbstractValidator

Re: Validation From A Custom Component

2009-02-17 Thread nino martinez wael
Hehe, I knew there were some reason.. Just looked a bit odd. 2009/2/17 Jeremy Thomerson jer...@wickettraining.com Because there's a compile error if you don't The method error(IValidationError) is ambiguous for the type new TextFieldString(){}. I thought the same, and didn't care to look

Combine custom component with Button

2008-06-20 Thread burnt99
Hi, I am still a newbie in Wicket. After having read a lot of examples and blogs, I still did not achieve to create a custom component. I want to create a wrapper for the GoogleVisualization API. The diagrams shall be redrawn when someone clicks on a button. I wrote a class, that creates

Re: Combine custom component with Button

2008-06-20 Thread Igor Vaynberg
did not achieve to create a custom component. I want to create a wrapper for the GoogleVisualization API. The diagrams shall be redrawn when someone clicks on a button. I wrote a class, that creates the JavaScript for the Google Visualization Diagram by a header contribution. After that I

Is there any consistent way to create a custom component which acts as a normal form component with validation capabilities.

2008-02-26 Thread Vitaly Tsaplin
Hi everyone! I am trying to create a custom component which should be a composite consisting of 3 text fields. It will be basically a date picker with day, month and year fields. I have created a panel and dropped instances of the DropDownChoice class on it. I have also created a subclass

Re: Is there any consistent way to create a custom component which acts as a normal form component with validation capabilities.

2008-02-26 Thread Gerolf Seitz
self-explanatory Maurice On Tue, Feb 26, 2008 at 9:43 AM, Vitaly Tsaplin [EMAIL PROTECTED] wrote: Hi everyone! I am trying to create a custom component which should be a composite consisting of 3 text fields. It will be basically a date picker with day, month and year fields

Re: Is there any consistent way to create a custom component which acts as a normal form component with validation capabilities.

2008-02-26 Thread Maurice Marrink
a custom component which should be a composite consisting of 3 text fields. It will be basically a date picker with day, month and year fields. I have created a panel and dropped instances of the DropDownChoice class on it. I have also created a subclass of the Model with a listener

Create custom component

2007-11-21 Thread Joshua Jackson
Dear all, Is there any tutorial on creating custom component in Wicket? The ones I found only shows creating custom component by extending from the existing component but not creating from scratch. If anyone has created those tutorial, can anyone here please point me to there. Thanks in advance

Re: Create custom component

2007-11-21 Thread Eelco Hillenius
On Nov 21, 2007 7:50 PM, Joshua Jackson [EMAIL PROTECTED] wrote: Yes that's what I mean, I couldn't find document on creating custom component that extend from Component. It doesn't make sense to have such a tutorial. You need to decide what you'll be building and what base class comes closest