Hi Shawn,
No, there's no way to do that and keep all functionalities. The table is
there mainly to align the message with the field, while keeping the field
aligned with the label. The output also had to be compatible with the
panelFormLayout. That being said, if it was to be redesigned from scratch
today, it would likely have been different, maybe something along the lines
of
<div style="display: inline">
<label for="field">Label</label>
<div style="display: inline-block;">
<input id="field" type="text"/>
<span class="af_message">Message</span>
</div>
</div>
Where the various styles would have been styleClass in the skin. Anyway, the
easiest way for you to work around that would be to use the simple
attribute, but you'll then have to specifying the label as a separate
component. Another option is a composite component using Facelets that would
combine an outputLabel, an inputText and an af:message with simple="true".
Even so, you'll have an extra span that won't exactly fit the HTML standard.
Regards,
~ Simon
On Wed, Jun 16, 2010 at 11:46 AM, Belton Shawn (NHS National Services
Scotland) <[email protected]> wrote:
> Hi,
>
> I am currently a developer working on implementing a web application using
> Trinidad.
>
> Is there anyway to stop the tr:inputText generating the extra html that is
> not in keeping with web standards.
> It seems as though it is generating the label and input text field within a
> table. Which makes obviously no sense as a label and input text field is
> clearly not a table of data.
>
> The output should be <label for="inputfield">Label</label><input
> type="text" id="inputfield" value="textfieldvalue">
>
> Thanks
>
> Shawn Belton
>
>
> ********************************************************************************************************************
>
> This message may contain confidential information. If you are not the
> intended recipient please inform the
> sender that you have received the message in error before deleting it.
> Please do not disclose, copy or distribute information in this e-mail or
> take any action in reliance on its contents:
> to do so is strictly prohibited and may be unlawful.
>
> Thank you for your co-operation.
>
> NHSmail is the secure email and directory service available for all NHS
> staff in England and Scotland
> NHSmail is approved for exchanging patient data and other sensitive
> information with NHSmail and GSI recipients
> NHSmail provides an email address for your career in the NHS and can be
> accessed anywhere
> For more information and to find out how you can switch, visit
> www.connectingforhealth.nhs.uk/nhsmail
>
>
> ********************************************************************************************************************
>