Thanks, I will use panelGrid!!
Tirsdag 06 december 2005 10:14 skrev Martin Marinschek: > That's not so easy if you want to still use HTML Layouting for > enclosing your components. > > The problem is a know problem in the interaction of JSF and HTML/JSP. > It will be fixed in JSF 1.2, right now all you can do is enclose your > inputText's and outputLabels in a component like panelGrid. > > The problem is that JSP build's up the component tree one by one, and > at the time of the rendering of the label, the inputText hasn't been > built so far. > > Another option: just ignore the warning respectively set the log-level > to a higher level for the HTMLLabelRenderer. You can safely ignore it, > the label component will do its best to render correctly even without > finding the inputText component. > > regards, > > Martin > > On 12/6/05, Kasper Hansen <[EMAIL PROTECTED]> wrote: > > That did help, thanks! But how do I get the label to be at the left side > > of the input component? > > > > Tirsdag 06 december 2005 08:50 skrev Dennis Byrne: > > > Kasper, > > > > > > try placing the element <h:outputLabel for="documentTitle"> > > > after the element w/ @id=documentTitle . > > > > > > ---- Original message ---- > > > > > > >Date: Tue, 6 Dec 2005 08:42:19 +0100 > > > >From: Kasper Hansen <[EMAIL PROTECTED]> > > > >Subject: WARN [HtmlLabelRenderer] > > > >To: users@myfaces.apache.org > > > > > > > >Hi, > > > >I get this warning: > > > >08:28:10,484 WARN [HtmlLabelRenderer] Unable to find > > > > > > component > > > > > > >'documentTitle' (calling findComponent on > > > > > > component 'form1:_id21') > > > > > > >In fact I get it on all my labels! But I do not understand > > > > > > what the error > > > > > > >means, since there is a component with id documentTitle. I'm > > > > > > I reading the > > > > > > >error msg. wrong? Please can anyone help me.. > > > > > > > >Best regards, Kasper > > > > > > > >this is my jsf code (I know the td isn't good coding..): > > > > > > > > <td > > > > > > class="formCell"> > > > > > > <h:outputLabel for="documentTitle"> > > > > > > <h:outputText id="documentTitleLabel" value="# > > > {msg.docTitleLabel}" /> > > > > > > <h:outputText id="documentTitleLabelFreeText" > > > > > > >value="#{msg.freeText}" /> > > > > > > </h:outputLabel> > > > > > > > </td> > > > > <td> > > > > > > <h:inputText id="documentTitle" tabindex="8" > > > styleClass="textField" > > > > > > >value="#{searchPage.documentTitle}" required="false"> > > > > > > <f:validateLength minimum="0" maximum="50"/> > > > > > > </h:inputText><br /> > > > > > > > <span > > > > > > class="elementError"><h:message for="documentTitle" /></span> > > > > > > > </td> > > > > > > Dennis Byrne > > -- > > http://www.irian.at > > Your JSF powerhouse - > JSF Consulting, Development and > Courses in English and German > > Professional Support for Apache MyFaces