Hello,
I have the following fragment in my Trinidad based project using facelets:
<tr:column noWrap="true" >
<tr:commandLink
action="#{keyAccountProfileEditorController.showEditKeyAccount}"
shortDesc="Edit Key Account Profile">
<tr:image source="../images/knwebstd/edit16.gif"
inlineStyle="border:0px;" />
</tr:commandLink>
<tr:commandLink
action="#{keyAccountProfileEditorController.deleteKeyAccount}"
shortDesc="Delete Key Account Profile">
<tr:image source="../images/knwebstd/delete16.gif"
inlineStyle="border:0px;" />
</tr:commandLink>
</tr:column>
What I want to get is a column in a Trinidad table showing action icons in a
line (delete, edit, ...).
But with the code above Trinidad renders this html fragment:
<td class="x6m xag" nowrap><!-- Start:
org.apache.myfaces.trinidad.Command["_id29"] --><a title="Edit Key Account
Profile" onclick="submitForm('_id23',1,{source:'_id27:0:_id29'});return false;"
class="xi" href="#"><!-- Start: org.apache.myfaces.trinidad.Object["_id30"]
--><img style="border:0px;"
src="../images/knwebstd/edit16.gif"></a><div></div><!-- Start:
org.apache.myfaces.trinidad.Command["_id31"] --><a title="Delete Key Account
Profile" onclick="submitForm('_id23',1,{source:'_id27:0:_id31'});return false;"
class="xi" href="#"><!-- Start: org.apache.myfaces.trinidad.Object["_id32"]
--><img style="border:0px;" src="../images/knwebstd/delete16.gif"></a></td>
The relevant part is between the two links. Trinidad adds a <div></div> which
leads to a line wrap between my two images. Is this the right way to include
actions in a table, using a combination of commandLink and image tags? And is
there a possibility to prevent the line from being wrapped?
My environment: Trinidad built from head last night, Myfaces 1.1.5 nightly,
Tomahawk 1.1.5 nightly, facelets 1.1.11
Regards
Jochen