myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Kienenberger" <mkien...@gmail.com>
Subject Re: HtmlRendererUtils: There should always be a submitted value for an input if it is rendered
Date Tue, 12 Sep 2006 21:42:37 GMT
Gerald,

panelGroup won't render a span unless you set an id, style, or some
other html-generating attribute.

On 9/12/06, Gerald Müllan <bierbrauen@gmail.com> wrote:
> Hi,
>
> does it work as you expected?
>
> Don`t know if it is the problem, but the panelGroup component which
> renders a span between the <tr/> <tr> declarations doesn`t make
> generated html well formed.
>
> You should achieve this rendered scenario another way.
>
> regards,
>
> Gerald
>
> On 9/12/06, Adrian Mitev <amittev@gmail.com> wrote:
> > No, i don't have! Here is the code:
> >
> > <table border="0" cellspacing="5">
> >                                 <tr>
> >                                         <td align="right"><h:outputLabel
value="Потребителско име: "
> >                                                 for="userName2" /></td>
> >                                         <td><t:inputText id="userName2"
value="#{user.userName}"
> >                                                 required="true" displayValueOnly="#{registration.inPreview}">
> >                                                 <ac:validateRegEx expression="\w{1,16}"
> >                                                         message="Позволени
са до 16 букви/цифри" />
> >                                         </t:inputText></td>
> >                                         <td><h:message errorClass="errorMessage"
for="userName2" /></td>
> >                                 </tr>
> >                                 <h:panelGroup rendered="#{!registration.inPreview}">
> >                                         <tr>
> >                                                 <td align="right"><h:outputLabel
value="Парола: " for="pass" /></td>
> >                                                 <td><h:inputSecret redisplay="true"
id="pass"
> >                                                         value="#{user.password}"
required="true">
> >                                                         <ac:validateRegEx expression="\w{1,16}"
> >                                                                 message="Позволени
са до 16 букви/цифри" />
> >                                                 </h:inputSecret></td>
> >                                                 <td><h:message errorClass="errorMessage"
for="pass" /></td>
> >                                         </tr>
> >                                         <tr>
> >                                                 <td align="right"><h:outputLabel
value="Повтори парола: "
> >                                                         for="passwordRepeat" /></td>
> >                                                 <td><h:inputSecret redisplay="true"
id="passwordRepeat"
> >                                                         value="#{requestScope.passRepeat}"
required="true" /></td>
> >                                                 <td><h:message errorClass="errorMessage"
for="passwordRepeat" /></td>
> >                                         </tr>
> >                                 </h:panelGroup>
> > <tr>
> >                                         <td align="right"><h:outputLabel
value="Име: " for="firstName" /></td>
> >                                         <td><t:inputText id="firstName"
value="#{user.firstName}"
> >                                                 displayValueOnly="#{registration.inPreview}"
required="true">
> >                                                 <ac:validateRegEx type="textFieldCyrilic"
/>
> >                                         </t:inputText></td>
> >                                         <td><h:message errorClass="errorMessage"
for="firstName" /></td>
> >                                 </tr>
> > </table>
> >
> > It give this warn for userName and password
> >
> > On 9/12/06, Andrew Robinson <andrew.rw.robinson@gmail.com> wrote:
> > > Do you have JavaScript that altered the HTML control?
> > >
> > > On 9/12/06, Adrian Mitev <amittev@gmail.com> wrote:
> > > > Hi all! I have form with several input fields. When i submit the form
> > > > i get this message for the first two input components:
> > > >
> > > > WARN  [HtmlRendererUtils]:86 - There should always be a submitted
> > > > value for an input if it is rendered, its form is submitted, and it is
> > > > not disabled or read-only.
> > > >
> > > > What is the problem here?
> > > > --
> > > > Seeing is believing
> > > >
> > >
> >
> >
> > --
> > Seeing is believing
> >
>
>
> --
> http://www.irian.at
>
> Your JSF powerhouse -
> JSF Consulting, Development and
> Courses in English and German
>
> Professional Support for Apache MyFaces
>
Mime
View raw message