You are viewing a plain text version of this content. The canonical link for it is here.
Posted to adffaces-user@incubator.apache.org by Adam Winer <aw...@gmail.com> on 2006/11/08 16:56:40 UTC
Re: Trinidad: Add command links with image to a table column without wrapping the line
Wrap those two commandLinks in a tr:panelGroupLayout. The table
automatically makes a vertical stack of all of its direct children.
-- Adam
On 11/8/06, Böhringer Jochen <Jo...@tcc-products.de> wrote:
> 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
>
>
>
Re: AW: Trinidad: Add command links with image to a table column without wrapping the line
Posted by Adam Winer <aw...@gmail.com>.
Not at all a dumb question - I wonder if the table actually documents
this behavior. If it doesn't, it should!
-- Adam
On 11/8/06, Böhringer Jochen <Jo...@tcc-products.de> wrote:
> This worked :-) I am completely new to Trinidad so sorry for all my dumb questions and many thanks for your help!
>
>
> -----Ursprüngliche Nachricht-----
> Von: Adam Winer [mailto:awiner@gmail.com]
> Gesendet: Mittwoch, 8. November 2006 17:57
> An: adffaces-user@incubator.apache.org
> Betreff: Re: Trinidad: Add command links with image to a table column without wrapping the line
>
> Wrap those two commandLinks in a tr:panelGroupLayout. The table
> automatically makes a vertical stack of all of its direct children.
>
> -- Adam
>
>
>
AW: Trinidad: Add command links with image to a table column
without wrapping the line
Posted by Böhringer Jochen <Jo...@tcc-products.de>.
This worked :-) I am completely new to Trinidad so sorry for all my dumb questions and many thanks for your help!
-----Ursprüngliche Nachricht-----
Von: Adam Winer [mailto:awiner@gmail.com]
Gesendet: Mittwoch, 8. November 2006 17:57
An: adffaces-user@incubator.apache.org
Betreff: Re: Trinidad: Add command links with image to a table column without wrapping the line
Wrap those two commandLinks in a tr:panelGroupLayout. The table
automatically makes a vertical stack of all of its direct children.
-- Adam