Re: TextArea and Collection as Model

2014-05-28 Thread Oliver B. Fischer
I solved now this problem by subclassing TextArea and over-writing convertInput(). But now Wicket complains if I reference this field as textarea ... in my HTML template. I must declare it as input... but I need a textarea/ Does someone know how to achive this? Bye, Oliver Am 28.05.14

Re: TextArea and Collection as Model

2014-05-28 Thread Sven Meier
Hi, Wicket calls validators after conversion, thus if you have TextAreaCollectionString, your validator has to be IValidatorCollectionString. Let your CripBlockConverter do the format checking, I don't see the need for your converter. But now Wicket complains 'Complains' means what?

Re: TextArea and Collection as Model

2014-05-28 Thread Oliver B. Fischer
Ok, I thought the validation happens before the conversion. So the converter must also validate the raw input. Feels a little bit strange but is ok. Complains meens that I get the following exception message: Component [cripsFld] (path =

Re: TextArea and Collection as Model

2014-05-28 Thread Sven Meier
cripsFld is a TextArea? TextArea#onComponentTag(): public void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag) { checkComponentTag(openTag, textarea); The exception indicated you have some other component here. Sven On 05/28/2014 03:47 PM,

Re: TextArea and Collection as Model

2014-05-28 Thread Oliver B. Fischer
You are right. I used a TextField. Thx! Am 28.05.14 15:49, schrieb Sven Meier: cripsFld is a TextArea? TextArea#onComponentTag(): public void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag) { checkComponentTag(openTag, textarea); The

Re: textarea

2011-03-30 Thread Martin Grigorov
no, it doesn't cache it seems the textarea is not involved at all in the ajax request processing and its model is not needed On Wed, Mar 30, 2011 at 10:52 AM, Thierry Peng p...@glue.ch wrote: Quick question about textareas I have on a panel two component, a textarea with a xml and a label.

Re: textarea

2011-03-30 Thread Thierry Peng
On 03/30/2011 11:19 AM, Martin Grigorov wrote: no, it doesn't cache it seems the textarea is not involved at all in the ajax request processing and its model is not needed On Wed, Mar 30, 2011 at 10:52 AM, Thierry Pengp...@glue.ch wrote: Quick question about textareas I have on a panel two

Re: TextArea StringValidator and DateValidator

2010-07-22 Thread vov
: http://apache-wicket.1842946.n4.nabble.com/Re-TextArea-StringValidator-and-DateValidator-tp2298113p2298722.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr

Re: TextArea StringValidator and DateValidator

2010-07-22 Thread Nivedan Nadaraj
} characters long/entry instead studyDescriptionTxtArea must be wicket:id of your TextField -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Re-TextArea-StringValidator-and-DateValidator-tp2298113p2298722.html Sent from the Wicket - User mailing list archive

Re: TextArea StringValidator and DateValidator

2010-07-21 Thread Nivedan Nadaraj
Hi All This is related to validating two types of Form components with Wicket 1.4.9 1.Validating a TextArea using the StringValidator to check for a min and max length. studyDescriptionTxtArea.add(StringValidator.lengthBetween(1, 255)); When I tested with a text content that triggers this

Re: TextArea in repeater doesn't update it's model

2010-02-12 Thread Rubén khanser
It still doesn't work. Do I need a form inside my repeater? protected void populateItem(Item arg0) { Label pagina; final Label codi; final TextArea valor; SubmitLink link; final AccTextosWrapper tWrapper = (AccTextosWrapper)arg0.getModelObject(); pagina = new Label(pagina,

Re: TextArea in repeater doesn't update it's model

2010-02-12 Thread Rubén khanser
Ok i got it solved using a Form in each row that contains the textarea and the submitlink. Thanks El 12 de febrero de 2010 09:53, Rubén khanser khan...@gmail.com escribió: It still doesn't work. Do I need a form inside my repeater? protected void populateItem(Item arg0) { Label pagina;

Re: TextArea in repeater doesn't update it's model

2010-02-12 Thread Igor Vaynberg
No point using a submit link if you are going to override onclick with a non form related Ajax behavior. -igor On Friday, February 12, 2010, Rubén khanser khan...@gmail.com wrote: It still doesn't work. Do I need a form inside my repeater? protected void populateItem(Item arg0) { Label

Re: TextArea in repeater doesn't update it's model

2010-02-11 Thread Igor Vaynberg
you need to use a submit link if you want the values to be submitted back to the server -igor 2010/2/11 Rubén khanser khan...@gmail.com: I have an AjaxFallBackLink that executes an update in a service, but i need the textArea of the same row to be updated. I have wasted all morning but i

Re: TextArea in repeater doesn't update it's model

2010-02-11 Thread Rubén khanser
Then should I use nestedforms better than this? 2010/2/11 Igor Vaynberg igor.vaynb...@gmail.com you need to use a submit link if you want the values to be submitted back to the server -igor 2010/2/11 Rubén khanser khan...@gmail.com: I have an AjaxFallBackLink that executes an update in a

Re: TextArea in repeater doesn't update it's model

2010-02-11 Thread Igor Vaynberg
it has nothing to do with nested forms. regular links do not submit forms, that is how html works. you can either use a button or a submitlink. -igor 2010/2/11 Rubén khanser khan...@gmail.com: Then should I use nestedforms better than this? 2010/2/11 Igor Vaynberg igor.vaynb...@gmail.com

Re: TextArea with list of strings.

2009-12-04 Thread Igor Vaynberg
you should do convertToObject() call in a try block, catch any exception and throw a conversionexception -igor On Fri, Dec 4, 2009 at 11:32 AM, Sam Barrow s...@sambarrow.com wrote: I am trying to make a TextArea that allows you to input a list of strings (separated by a newline) and turns

Re: TextArea with list of strings.

2009-12-04 Thread Igor Vaynberg
so walk the code and see where your ConversionException is being wrapped by a RuntimeException -igor On Fri, Dec 4, 2009 at 1:08 PM, Sam Barrow s...@sambarrow.com wrote: That's what I'm doing, but i still get the conversion exception public final class EmailAddressConverter implements

Re: TextArea with list of strings.

2009-12-04 Thread Sam Barrow
No I'm getting a ConversionException, I must have made a typo. But for the single text field I get a message in the feedback panel. On Fri, 2009-12-04 at 13:25 -0800, Igor Vaynberg wrote: so walk the code and see where your ConversionException is being wrapped by a RuntimeException -igor

Re: TextArea with list of strings.

2009-12-04 Thread Igor Vaynberg
ok, override convertValue() instead of convertInput() and then the exception will be handled for you -igor On Fri, Dec 4, 2009 at 1:39 PM, Sam Barrow s...@sambarrow.com wrote: No I'm getting a ConversionException, I must have made a typo. But for the single text field I get a message in the

Re: TextArea with list of strings.

2009-12-04 Thread Sam Barrow
I'll try that. What about the problem with the square brackets? I can't find a function to override that allows me to format the text inside the textarea On Fri, 2009-12-04 at 14:01 -0800, Igor Vaynberg wrote: ok, override convertValue() instead of convertInput() and then the exception will be

Re: TextArea with list of strings.

2009-12-04 Thread Igor Vaynberg
overrwrite getmodelvalue() and convert it to string there -igor On Fri, Dec 4, 2009 at 2:10 PM, Sam Barrow s...@sambarrow.com wrote: I'll try that. What about the problem with the square brackets? I can't find a function to override that allows me to format the text inside the textarea On

Re: Textarea autosize/auto resize height

2008-03-25 Thread James Carman
It looks like you've got what you need. Maybe this could be a behavior that you add to the regular TextArea component? On Tue, Mar 25, 2008 at 6:36 AM, Martin Makundi [EMAIL PROTECTED] wrote: Hi! Here is a javascript snipplet that can be used to automatically resize a textarea's height to

Re: Textarea autosize/auto resize height

2008-03-25 Thread Nino Saturnino Martinez Vazquez Wael
He means that you create a behavior yourself to integrate the desired functionality. Much like wicket-contrib-input-events etc... regards Nino Martin Makundi wrote: Do you have an example (e.g., link) of what kind of jsBehavior you mean? ** Martin 2008/3/25, James Carman [EMAIL PROTECTED]:

Re: Textarea autosize/auto resize height

2008-03-25 Thread Martin Makundi
I understood to do it myself, but what link can you think of that has a good example dealing with somewhat similar js issue? Tnx. ** Martin 2008/3/25, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED]: He means that you create a behavior yourself to integrate the desired functionality.

Re: Textarea autosize/auto resize height

2008-03-25 Thread Nino Saturnino Martinez Vazquez Wael
As I wrote: http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-stuff-contrib-input-events However this is probably more complex than what you need. But It will work, please ask if you have questions. regards Nino Martin Makundi wrote: I understood to do it myself, but what link can

Re: TextArea problems

2008-03-02 Thread Jay Hogan
Hi Jörgen, The textarea tag requires a close tag, rather than an open-close tag. Like this: form wicket:id=testTextAreaForm method=post textarea wicket:id=testTextArea rows=10 cols=30Content to be replaced by wicket/textarea /form Cheers, Jay On Sun, Mar 2, 2008 at 6:01 AM, [EMAIL

Re: TextArea problems

2008-03-02 Thread [EMAIL PROTECTED]
Thank Jay. It's always so simple :) /Jörgen Jay Hogan skrev: Hi Jörgen, The textarea tag requires a close tag, rather than an open-close tag. Like this: form wicket:id=testTextAreaForm method=post textarea wicket:id=testTextArea rows=10 cols=30Content to be replaced by

Re: textarea problem

2008-02-21 Thread Thomas Gier
okrohne schrieb: Hi, if I use a textarea like this: textarea name=test id=test_textarea rows=8 cols=30 class=input_text title=test / all subsequent html markup is shown in the textarea. If I use the textarea in this way everything is okay. textarea name=test id=test_textarea rows=8 cols=30

Re: textarea problem

2008-02-21 Thread okrohne
ups, sorry... never had a problem using textarea without closing tag Thomas Gier-2 wrote: okrohne schrieb: Hi, if I use a textarea like this: textarea name=test id=test_textarea rows=8 cols=30 class=input_text title=test / all subsequent html markup is shown in the textarea. If I

Re: TextArea/TinyMceBehavior/quotes and sql...oh my

2008-01-01 Thread Martijn Dashorst
This is an issue with not properly creating your insert sql I guess. Don't *ever* create your sql statements without using bind parameters: it will open your application for SQL injection attacks, also known as exploits of a mom [1]. If you use bind parameters there will not be an issue with