You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Hugo Palma <hu...@gmail.com> on 2007/10/08 20:21:30 UTC
[T5] Every form element renders with the field error marker
I must be doing something really dumb because i'm getting displayed next
to every single form element(even the submit button) the field error
marker. This happens as soon as i render the page, so i haven't even
submitted the form yet. Also, the form validations seem to be running
before i submit the form as i get "You must provide a value for.." as
soon as i render the page, even if the form field aren't required.
Any ideas ?
Re: [T5] Every form element renders with the field error marker
Posted by Hugo Palma <hu...@gmail.com>.
Your comment led me to the answer.
I have a custom Shell component where i define the html and head elements.
In my page i again have the html element declared because i need to
declare the tapestry namespace, but problem is that the html gets
rendered twice, so my resulting html is:
<html>
<html>
<head>
</head>
....
</html>
</html>
and it's this that's causing the problem.
Still, i can't figure out how to solve this. There's no $content$ in T5
so how i tell Tapestry to not render the html tag from the page and only
the one from the component ?
Josh Canfield wrote:
> Hmm... can you give us a little code that reproduces the problem? I've seen
> this when I don't have my layout included properly. I believe that your
> rendered page isn't getting the default css/js included from tapestry. Could
> it be that you don't have a <head> or <body> element defined? I can't
> compile anything right now or I'd be able to check it out myself...
>
> Josh
>
>
> On 10/8/07, Hugo Palma <hu...@gmail.com> wrote:
>
>> I have the namespace defined.....
>>
>> Josh Canfield wrote:
>>
>>> I think this happens when you don't have the tapestry xmlns defined:
>>>
>>> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
>>>
>>> Josh
>>>
>>> On 10/8/07, Hugo Palma <hu...@gmail.com> wrote:
>>>
>>>
>>>> I must be doing something really dumb because i'm getting displayed
>>>>
>> next
>>
>>>> to every single form element(even the submit button) the field error
>>>> marker. This happens as soon as i render the page, so i haven't even
>>>> submitted the form yet. Also, the form validations seem to be running
>>>> before i submit the form as i get "You must provide a value for.." as
>>>> soon as i render the page, even if the form field aren't required.
>>>>
>>>> Any ideas ?
>>>>
>>>>
>>>>
>>>
>>>
>>>
>
>
>
>
Re: [T5] Every form element renders with the field error marker
Posted by Josh Canfield <jo...@thedailytube.com>.
Hmm... can you give us a little code that reproduces the problem? I've seen
this when I don't have my layout included properly. I believe that your
rendered page isn't getting the default css/js included from tapestry. Could
it be that you don't have a <head> or <body> element defined? I can't
compile anything right now or I'd be able to check it out myself...
Josh
On 10/8/07, Hugo Palma <hu...@gmail.com> wrote:
>
> I have the namespace defined.....
>
> Josh Canfield wrote:
> > I think this happens when you don't have the tapestry xmlns defined:
> >
> > <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
> >
> > Josh
> >
> > On 10/8/07, Hugo Palma <hu...@gmail.com> wrote:
> >
> >> I must be doing something really dumb because i'm getting displayed
> next
> >> to every single form element(even the submit button) the field error
> >> marker. This happens as soon as i render the page, so i haven't even
> >> submitted the form yet. Also, the form validations seem to be running
> >> before i submit the form as i get "You must provide a value for.." as
> >> soon as i render the page, even if the form field aren't required.
> >>
> >> Any ideas ?
> >>
> >>
> >
> >
> >
> >
>
--
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.
Re: [T5] Every form element renders with the field error marker
Posted by Hugo Palma <hu...@gmail.com>.
I have the namespace defined.....
Josh Canfield wrote:
> I think this happens when you don't have the tapestry xmlns defined:
>
> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
>
> Josh
>
> On 10/8/07, Hugo Palma <hu...@gmail.com> wrote:
>
>> I must be doing something really dumb because i'm getting displayed next
>> to every single form element(even the submit button) the field error
>> marker. This happens as soon as i render the page, so i haven't even
>> submitted the form yet. Also, the form validations seem to be running
>> before i submit the form as i get "You must provide a value for.." as
>> soon as i render the page, even if the form field aren't required.
>>
>> Any ideas ?
>>
>>
>
>
>
>
Re: [T5] Every form element renders with the field error marker
Posted by Josh Canfield <jo...@thedailytube.com>.
I think this happens when you don't have the tapestry xmlns defined:
<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
Josh
On 10/8/07, Hugo Palma <hu...@gmail.com> wrote:
>
> I must be doing something really dumb because i'm getting displayed next
> to every single form element(even the submit button) the field error
> marker. This happens as soon as i render the page, so i haven't even
> submitted the form yet. Also, the form validations seem to be running
> before i submit the form as i get "You must provide a value for.." as
> soon as i render the page, even if the form field aren't required.
>
> Any ideas ?
>
--
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.