You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Gregg Bolinger <gd...@gmail.com> on 2006/06/19 16:41:57 UTC

dataList displaying horizontal

I created a dataList

<t:dataList var="category" value="#{CategoryAdminBean.categories}"
layout="simple">
   <t:commandLink action="" >
      <t:outputText value="#{category.categoryName}"/>
   </t:commandLink>
</t:dataList>

I thought the "simple" layout was supposed to be

Cat1
Cat2
Cat3
...

But it is appearing as:

Cat1 Cat2 Cat3

Should this be happening?

Thanks.

Re: dataList displaying horizontal

Posted by Gregg Bolinger <gd...@gmail.com>.
Well, for whateve reason, that made each item in my list rendered twice, and
still horizontally,.

cat1cat1 cat2cat2 cat3cat3

<t:dataList var="category" value="#{CategoryAdminBean.categories}">
                    <t:column>
                        <t:commandLink action="">
                            <t:outputText value="#{category.categoryName}"/>
                        </t:commandLink>
                    </t:column>
                </t:dataList>

On 6/19/06, Julian Ray <ju...@yahoo.com> wrote:
>
>  try adding <h:column> around the commandLink tag.
>
>  ------------------------------
> *From:* Gregg Bolinger [mailto:gdboling.myfaces@gmail.com]
> *Sent:* Monday, June 19, 2006 10:42 AM
> *To:* MyFaces Discussion
> *Subject:* dataList displaying horizontal
>
> I created a dataList
>
> <t:dataList var="category" value="#{CategoryAdminBean.categories}"
> layout="simple">
>    <t:commandLink action="" >
>       <t:outputText value="#{ category.categoryName}"/>
>    </t:commandLink>
> </t:dataList>
>
> I thought the "simple" layout was supposed to be
>
> Cat1
> Cat2
> Cat3
> ...
>
> But it is appearing as:
>
> Cat1 Cat2 Cat3
>
> Should this be happening?
>
> Thanks.
>

RE: dataList displaying horizontal

Posted by Julian Ray <ju...@yahoo.com>.
try adding <h:column> around the commandLink tag.

  _____  

From: Gregg Bolinger [mailto:gdboling.myfaces@gmail.com] 
Sent: Monday, June 19, 2006 10:42 AM
To: MyFaces Discussion
Subject: dataList displaying horizontal


I created a dataList

<t:dataList var="category" value="#{CategoryAdminBean.categories}"
layout="simple">
   <t:commandLink action="" >
      <t:outputText value="#{ category.categoryName}"/>
   </t:commandLink>
</t:dataList>

I thought the "simple" layout was supposed to be

Cat1
Cat2
Cat3
...

But it is appearing as:

Cat1 Cat2 Cat3

Should this be happening?

Thanks.