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 Chris Hane <ch...@gmail.com> on 2007/04/04 20:25:08 UTC

Is it possible to group panelForm components in 1 cell?

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....








Re: Is it possible to group panelForm components in 1 cell?

Posted by Gareth Paglinawan <ga...@gmail.com>.
hi,

Do you have any getting start guide in using Trinidad in eclipse and tomcat.
I have a problem that when I start the application, it says the resource is
not available. HTTP404. Please send me the complete step how to develop one
page. I already developed using JDeveloper but I want to use eclipse and
Tomcat. I followed the steps in apache doc but I am not successful.

On 4/4/07, Chris Hane <ch...@gmail.com> wrote:
>
> Thanks!
>
> That did the trick.
>
> Chris....
>
> Matt Cooper wrote:
> > 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 <ch...@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....
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >
>

Re: Is it possible to group panelForm components in 1 cell?

Posted by Chris Hane <ch...@gmail.com>.
Thanks!

That did the trick.

Chris....

Matt Cooper wrote:
> 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 <ch...@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....
>>
>>
>>
>>
>>
>>
>>
>>
> 

Re: Is it possible to group panelForm components in 1 cell?

Posted by Matt Cooper <ma...@gmail.com>.
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 <ch...@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....
>
>
>
>
>
>
>
>