<tr:inputText readOnly="true" contentStyle="..." does not render the style
attribute
-------------------------------------------------------------------------------------
Key: ADFFACES-356
URL: https://issues.apache.org/jira/browse/ADFFACES-356
Project: MyFaces ADF-Faces
Issue Type: Bug
Components: Build
Environment: Jan12 Trinidad build, Java5, Tomcat
Reporter: Mark Dopheide
<tr:inputText does not render the expected HTML. When readOnly evaluates to
"true" the contentStyle is not included in the page markup as outlined below:
<tr:inputText id="regCode"
label="#{text['registration.candidateId']}"
value="#{userForm.registration.candidateId}"
readOnly="#{userForm.registration.activated}"
contentStyle="margin: 1em 0 0 0;color: blue"/>
It seems to produce unexpected results whether using or NOT using a
panelFormLayout.
Correct: Rendering with <tr:inputText readOnly="false" contentStyle="..."
(using of a panelFormLayout) . . . :
---------------
<div class="af_panelFormLayout">
<table cellspacing="0" cellpadding="0" border="0" style="width: auto;"
summary="">
<tbody>
<tr>
<td class="af_panelFormLayout_column" colspan="1">
<table width="100%" cellspacing="0" cellpadding="0" border="0" summary="">
<tbody>
<tr>
</tr>
<tr class="af_inputText">
<td class="af_inputText_label af_panelFormLayout_label-cell" nowrap="">
<label for="regCode">Candidate ID</label>
</td>
<td class="af_panelFormLayout_content-cell" valign="top" nowrap="">
<input id="regCode" class="af_inputText_content" type="text" value="222"
size="30" style="margin: 1em 0pt 0pt; color: blue;" name="regCode"/>
</td>
</tr>
Erroneous: Rendering with <tr:inputText readOnly="true" contentStyle="..." (NOT
using a panelFormLayout). . .
---------------
<table id="junk__xc_" class="af_inputText p_AFReadOnly" cellspacing="0"
cellpadding="0" border="0" summary="">
<tbody>
<tr>
<td class="af_inputText_label" nowrap="">Candidate ID</td>
<td class="AFContentCell" valign="top" nowrap="">
<div id="regCode" class="af_inputText_content">111</div>
</td>
</tr>
</tbody>
</table>
Erroneous: Rendering <tr:inputText readOnly="true" contentStyle="..." (using of
a panelFormLayout) . . . :
--------------
<div class="af_panelFormLayout">
<table cellspacing="0" cellpadding="0" border="0" style="width: auto;"
summary="">
<tbody>
<tr>
<td class="af_panelFormLayout_column" colspan="1">
<table width="100%" cellspacing="0" cellpadding="0" border="0" summary="">
<tbody>
<tr>
</tr>
<tr class="af_inputText p_AFReadOnly">
<td class="af_inputText_label af_panelFormLayout_label-cell"
nowrap="">Candidate ID</td>
<td class="af_panelFormLayout_content-cell" valign="top" nowrap="">
<div id="regCode" class="af_inputText_content">111</div>
</td>
</tr> . . .
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira