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
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?
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 =
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,
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
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.
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
:
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
} 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
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
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,
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;
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
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
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
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
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
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
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
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
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
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
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
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]:
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.
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
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
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
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
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
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
31 matches
Mail list logo