Re: pretty strange behavior with TextArea containing remaining output html code inside

2011-09-29 Thread manuelbarzi
tested on wicket 1.5.0 and paradoxically a single-closed textarea tag does validate as legal too, like in wicket 1.4.17/18, and renders correctly, contrary to wicket 1.4.17/18. issue https://issues.apache.org/jira/browse/WICKET-4094 On Wed, Sep 28, 2011 at 7:30 PM, Igor Vaynberg

Re: pretty strange behavior with TextArea containing remaining output html code inside

2011-09-29 Thread Martin Grigorov
This is improved in 1.5.0. We expand some HTML elements from name/ to name/name You are recommended to upgrade. On Thu, Sep 29, 2011 at 9:44 AM, manuelbarzi manuelba...@gmail.com wrote: tested on wicket 1.5.0 and paradoxically a single-closed textarea tag does validate as legal too, like in

Re: pretty strange behavior with TextArea containing remaining output html code inside

2011-09-29 Thread manuelbarzi
sure, as you may have read, i already tested on wicket 1.5.0 and renders ok. but from the point of view of validation, a textarea cannot be a single-closed tag, is an illegal code, as it goes against the spec (igor). On Thu, Sep 29, 2011 at 9:49 AM, Martin Grigorov mgrigo...@apache.org wrote:

Re: pretty strange behavior with TextArea containing remaining output html code inside

2011-09-29 Thread Martin Grigorov
Wicket doesn't act as (X)HTML validator. It never did. You may use https://github.com/dashorst/wicket-stuff-markup-validator for that On Thu, Sep 29, 2011 at 9:53 AM, manuelbarzi manuelba...@gmail.com wrote: sure, as you may have read, i already tested on wicket 1.5.0 and renders ok. but from

Re: pretty strange behavior with TextArea containing remaining output html code inside

2011-09-29 Thread manuelbarzi
Wicket doesn't act as (X)HTML validator. It never did. but if you forget some closing tag, /tr for instance, you might be sure it will complain... then why not validating other tags too, and fully validate (x)html. On Thu, Sep 29, 2011 at 9:56 AM, Martin Grigorov mgrigo...@apache.org wrote:

Re: pretty strange behavior with TextArea containing remaining output html code inside

2011-09-29 Thread Martin Grigorov
Wicket uses (custom) XML parser when loading the HTML. textarea/ is a valid xml and thus it doesn't fail. HTML validator is a dirty job because different browsers implement the specs differently ... :-/ On Thu, Sep 29, 2011 at 10:02 AM, manuelbarzi manuelba...@gmail.com wrote: Wicket doesn't

Re: pretty strange behavior with TextArea containing remaining output html code inside

2011-09-29 Thread Igor Vaynberg
wicket can be used for any xml-based markup, not just html... -igor On Thu, Sep 29, 2011 at 1:16 AM, Martin Grigorov mgrigo...@apache.org wrote: Wicket uses (custom) XML parser when loading the HTML. textarea/ is a valid xml and thus it doesn't fail. HTML validator is a dirty job because

pretty strange behavior with TextArea containing remaining output html code inside

2011-09-28 Thread manuelbarzi
this error happens on this simple composite (wicket 1.4.17): Page |-Panel |-Form |-TextField |-TextField |-TextArea |-TextField |-TextField |-Button |-Button when just rendering this simple page (no logic implemented yet),

Re: pretty strange behavior with TextArea containing remaining output html code inside

2011-09-28 Thread Igor Vaynberg
sounds like a problem with your html... -igor On Wed, Sep 28, 2011 at 9:18 AM, manuelbarzi manuelba...@gmail.com wrote: this error happens on this simple composite (wicket 1.4.17): Page   |-Panel      |-Form         |-TextField         |-TextField         |-TextArea         |-TextField

Re: pretty strange behavior with TextArea containing remaining output html code inside

2011-09-28 Thread manuelbarzi
TextArea is one-self-closed tag .../. should TextArea two-opening-closing tags ../... work fine. On Wed, Sep 28, 2011 at 6:18 PM, manuelbarzi manuelba...@gmail.com wrote: this error happens on this simple composite (wicket 1.4.17): Page   |-Panel      |-Form         |-TextField    

Re: pretty strange behavior with TextArea containing remaining output html code inside

2011-09-28 Thread manuelbarzi
should a single closed textarea tag be a problem? neither html editor nor wicket markup validation complains about it. . On Wed, Sep 28, 2011 at 6:26 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: sounds like a problem with your html... -igor On Wed, Sep 28, 2011 at 9:18 AM, manuelbarzi

Re: pretty strange behavior with TextArea containing remaining output html code inside

2011-09-28 Thread Igor Vaynberg
per html spec textarea must have a closing tag... -igor On Wed, Sep 28, 2011 at 9:25 AM, manuelbarzi manuelba...@gmail.com wrote: TextArea is one-self-closed tag .../. should TextArea  two-opening-closing tags ../... work fine. On Wed, Sep 28, 2011 at 6:18 PM, manuelbarzi

Re: pretty strange behavior with TextArea containing remaining output html code inside

2011-09-28 Thread manuelbarzi
confirmed: a single self-closed textarea tag (textarea... /) makes rendering fail in this wicket version. it does not complain about textarea markup (neither html editor), but renders it containing the remaining html escaped inside, and setting a closing textarea tag at the end. only double

Re: pretty strange behavior with TextArea containing remaining output html code inside

2011-09-28 Thread manuelbarzi
right. may wicket html validation complain in future version for this particular case. low priority issue... . On Wed, Sep 28, 2011 at 6:42 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: per html spec textarea must have a closing tag... -igor On Wed, Sep 28, 2011 at 9:25 AM, manuelbarzi

Re: pretty strange behavior with TextArea containing remaining output html code inside

2011-09-28 Thread Igor Vaynberg
file a jira issue -igor On Wed, Sep 28, 2011 at 9:52 AM, manuelbarzi manuelba...@gmail.com wrote: right. may wicket html validation complain in future version for this particular case. low priority issue... . On Wed, Sep 28, 2011 at 6:42 PM, Igor Vaynberg igor.vaynb...@gmail.com