<tr:inputText forces valign="top" for content cell
--------------------------------------------------
Key: ADFFACES-357
URL: https://issues.apache.org/jira/browse/ADFFACES-357
Project: MyFaces ADF-Faces
Issue Type: Bug
Environment: Jan12 Trinidad build, Java5, tomcat
Reporter: Mark Dopheide
When using <tr:inputText the content cell gets rendered with valign="top" but the label cell has no similar position attribute. This unnecessarily complicates the layout chore when using readOnly="true". For example in the case where a label font is: font="bold 1.0/2.0 arial" then the label cell is misaligned with (i.e. positioned below) the content cell because the content has valign="top" and the label doesn't.
If possible, perhaps just remove the valign from the content and let the styles control the position.
when putting this in a panelFormLayout
<tr:inputText id="regCode"
label="#{text['registration.candidateId']}"
value="#{userForm.registration.candidateId}"
readOnly="#{userForm.registration.activated}"
contentStyle="margin: 1em 0 0 0;color: blue"/>
renders:
<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>
--
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
[jira] Updated: (ADFFACES-357)
Posted by "Matthias Weßendorf (JIRA)" <ad...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/ADFFACES-357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matthias Weßendorf updated ADFFACES-357:
----------------------------------------
Affects Version/s: 1.0.1-incubating-core-SNAPSHOT
> <tr:inputText forces valign="top" for content cell
> --------------------------------------------------
>
> Key: ADFFACES-357
> URL: https://issues.apache.org/jira/browse/ADFFACES-357
> Project: MyFaces ADF-Faces
> Issue Type: Bug
> Affects Versions: 1.0.1-incubating-core-SNAPSHOT
> Environment: Jan12 Trinidad build, Java5, tomcat
> Reporter: Mark Dopheide
>
> When using <tr:inputText the content cell gets rendered with valign="top" but the label cell has no similar position attribute. This unnecessarily complicates the layout chore when using readOnly="true". For example in the case where a label font is: font="bold 1.0/2.0 arial" then the label cell is misaligned with (i.e. positioned below) the content cell because the content has valign="top" and the label doesn't.
> If possible, perhaps just remove the valign from the content and let the styles control the position.
> when putting this in a panelFormLayout
> <tr:inputText id="regCode"
> label="#{text['registration.candidateId']}"
> value="#{userForm.registration.candidateId}"
> readOnly="#{userForm.registration.activated}"
> contentStyle="margin: 1em 0 0 0;color: blue"/>
>
> renders:
> <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>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.