Hi Martin, readOnly="true" results in this HTML:
<td><!--Start: org.apache.myfaces.trinidad.Input["_id28"]--><table id="_id28__xc_" class="af_inputText p_AFReadOnly" cellpadding="0" cellspacing="0" border="0" summary=""><tr> <td class="af_inputText_label" nowrap>My short inputText</td> <td valign="top" nowrap class="AFContentCell"><!--Start: org.apache.myfaces.trinidad.Input["_id28"]--><div id="_id28" class="af_inputText_content" style="width: 50px;">Hello inputText</div></td> </tr><!--Start: org.apache.myfaces.trinidad.Input["_id28"]--><tr> <td></td> <td class="AFComponentMessageCell"><!--Start: org.apache.myfaces.trinidad.Input["_id28"]--></td> </tr></table></td> and readOnly="false" in this: <td><!--Start: org.apache.myfaces.trinidad.Input["_id28"]--><table id="_id28__xc_" class="af_inputText" cellpadding="0" cellspacing="0" border="0" summary=""><tr> <td class="af_inputText_label" nowrap> X <label for="_id28">My short inputText</label></td> <td valign="top" nowrap class="AFContentCell"><!--Start: org.apache.myfaces.trinidad.Input["_id28"]--><input id="_id28" name="_id28" class="af_inputText_content" style="width: 50px;" size="30" type="text" value="Hello inputText"></td> </tr><!--Start: org.apache.myfaces.trinidad.Input["_id28"]--><tr> <td></td> <td class="AFComponentMessageCell"><!--Start: org.apache.myfaces.trinidad.Input["_id28"]--></td> </tr></table></td> Thanks, Carsten Martin Marinschek wrote: > > Hi Carsten, > > what is the rendered HTML-output of both cases for this field? > > regards, > > Martin > > On 8/8/07, Carsten Pieper <[EMAIL PROTECTED]> wrote: >> >> Hello everyone, >> >> is this a bug or am I missing something? The situation is as follows: >> >> <tr:inputText label="My short inputText" value="Hello inputText" >> contentStyle="width: 50px;" readOnly="true"> >> </tr:inputText> >> >> The text then exceeds the actual text area as shown in the screenshot >> (note >> that >> the read-only text area background is slightly darker than the rest...). >> >> http://www.nabble.com/file/p12049157/inputTextReadOnly.jpg >> >> If readOnly isn't set (or false), then everything is as expected as again >> shown in the screenshot (only 50 px of text are shown, but you can access >> the rest via mouse/keyboard): >> >> http://www.nabble.com/file/p12049157/inputText.jpg >> >> Any ideas? >> >> Thanks in advance, >> Carsten >> >> >> -- >> View this message in context: >> http://www.nabble.com/-Trinidad--inputText-with-readOnly%3D%22true%22-and-limited-width-shows-strange-behaviour-tf4234891.html#a12049157 >> Sent from the MyFaces - Users mailing list archive at Nabble.com. >> >> > > > -- > > http://www.irian.at > > Your JSF powerhouse - > JSF Consulting, Development and > Courses in English and German > > Professional Support for Apache MyFaces > > -- View this message in context: http://www.nabble.com/-Trinidad--inputText-with-readOnly%3D%22true%22-and-limited-width-shows-strange-behaviour-tf4234891.html#a12050583 Sent from the MyFaces - Users mailing list archive at Nabble.com.