incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Cooper" <matt.fa...@gmail.com>
Subject Re: Is it possible to group panelForm components in 1 cell?
Date Wed, 04 Apr 2007 20:48:28 GMT
Hi Chris,

Yes, I believe you can using tr:panelLabelAndMessage and simple="true" like
this:

<tr:panelFormLayout>
  <tr:inputText label="Status" value="#{bo.status}" id="status"/>
  <tr:panelLabelAndMessage label="List">
    <tr:panelGroupLayout layout="horizontal">
      <tr:inputText label="List" value="#{bo.list.name}" id="listName"
simple="true"/>
      <h:outputLink onclick="openPopup('maint/lookup.jsf'); return false;">
        <IMG alt='Lookup' src="gen/img/lookup.gif" border='0'/>
      </h:outputLink>
    </tr:panelGroupLayout>
  </tr:panelLabelAndMessage>
</tr:panelFormLayout>

Regards,
Matt

On 4/4/07, Chris Hane <chrishane@gmail.com> wrote:
>
>
> Is it possible to group an <tr:inputTex/> control and an image link
> together in a <tr:panelFormLayout/>?
>
> I want the following code to generate something like:
>
> Status        input_box
> List          input_box  output_link
>
>
> <tr:panelFormLayout>
>    <tr:inputText value="#{bo.id}" id="id" label="#"/>
>    <tr:inputText label="Status" value="#{bo.status}" id="status"/>
>    <tr:inputText label="List" value="#{bo.list.name}" id="listName"/>
>    <h:outputLink onclick="openPopup('maint/lookup.jsf'); return false;">
>      <IMG alt='Lookup' src="gen/img/lookup.gif" border='0'/>
>    </h:outputLink>
> </tr:panelFormLayout>
>
> The code as written above will display the <h:outputLink/> on a seperate
> row.  I can't figure out which tags to use to group the <tr:inputText/>
> and the <h:outputLink/>.
>
> Thanks,
> Chris....
>
>
>
>
>
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message