You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by ankit mahajan <a....@gmail.com> on 2008/08/27 07:38:07 UTC

[TRINIDAD]

sir,
i  have a parent panelformlayout inside this i have a panelgrouplayout and i
want to transfer properties of panelformlayout  to panelgrouplayout, is it
possible?
moreover i want rowspan and colspan type of things in panelformlayout. how
can i to that..

eg-
i hv a parent panelformlayout inside this
1st row has a big textbox
2nd row contains two small txtboxes
and both rows are properly aligned.
how to do that.

Re: [TRINIDAD]

Posted by Leonardo Uribe <lu...@gmail.com>.
On Thu, Sep 4, 2008 at 1:47 PM, Leonardo Uribe <lu...@gmail.com> wrote:

>
>
> On Thu, Sep 4, 2008 at 11:14 AM, Matt Cooper <ma...@gmail.com> wrote:
>
>> There is no single component today that can provide this kind of layout.
>>
>> However, I believe that you can achieve this with 2 consecutive
>> panelFormLayout components, e.g. something like this:
>>
>> <tr:panelFormLayout labelWidth="100">
>>  <tr:inputText .../>
>> </tr:panelFormLayout>
>> <tr:panelFormLayout labelWidth="100" rows="1">
>>  <tr:inputText .../>
>>  <tr:inputText .../>
>> </tr:panelFormLayout>
>>
>
> There exists a trinidad sandbox component called trs:tableFormLayout. Maybe
> it could help.
>
>

With trs:tableFormLayout you can do this:

          <trs:tableFormLayout  width="200" columns="1*;2*;1*;2*"
vspace="5">
            <tr:inputText  ...>
                            <f:attribute name="spanXItem" value="3" />
            </tr:inputText>
            <tr:inputText label="First Name"  />
            <tr:inputText label="Last Name"  />
          </trs:tableFormLayout>

Instead to use two panelFormLayout with fixed width.


>> Regards,
>> Matt
>>
>> On Tue, Aug 26, 2008 at 11:38 PM, ankit mahajan
>> <a....@gmail.com> wrote:
>> > sir,
>> > i  have a parent panelformlayout inside this i have a panelgrouplayout
>> and i
>> > want to transfer properties of panelformlayout  to panelgrouplayout, is
>> it
>> > possible?
>> > moreover i want rowspan and colspan type of things in panelformlayout.
>> how
>> > can i to that..
>> >
>> > eg-
>> > i hv a parent panelformlayout inside this
>> > 1st row has a big textbox
>> > 2nd row contains two small txtboxes
>> > and both rows are properly aligned.
>> > how to do that.
>> >
>>
>
>

Re: [TRINIDAD]

Posted by Leonardo Uribe <lu...@gmail.com>.
On Thu, Sep 4, 2008 at 11:14 AM, Matt Cooper <ma...@gmail.com> wrote:

> There is no single component today that can provide this kind of layout.
>
> However, I believe that you can achieve this with 2 consecutive
> panelFormLayout components, e.g. something like this:
>
> <tr:panelFormLayout labelWidth="100">
>  <tr:inputText .../>
> </tr:panelFormLayout>
> <tr:panelFormLayout labelWidth="100" rows="1">
>  <tr:inputText .../>
>  <tr:inputText .../>
> </tr:panelFormLayout>
>

There exists a trinidad sandbox component called trs:tableFormLayout. Maybe
it could help.


>
> Regards,
> Matt
>
> On Tue, Aug 26, 2008 at 11:38 PM, ankit mahajan
> <a....@gmail.com> wrote:
> > sir,
> > i  have a parent panelformlayout inside this i have a panelgrouplayout
> and i
> > want to transfer properties of panelformlayout  to panelgrouplayout, is
> it
> > possible?
> > moreover i want rowspan and colspan type of things in panelformlayout.
> how
> > can i to that..
> >
> > eg-
> > i hv a parent panelformlayout inside this
> > 1st row has a big textbox
> > 2nd row contains two small txtboxes
> > and both rows are properly aligned.
> > how to do that.
> >
>

Re: [TRINIDAD]

Posted by Matt Cooper <ma...@gmail.com>.
There is no single component today that can provide this kind of layout.

However, I believe that you can achieve this with 2 consecutive
panelFormLayout components, e.g. something like this:

<tr:panelFormLayout labelWidth="100">
  <tr:inputText .../>
</tr:panelFormLayout>
<tr:panelFormLayout labelWidth="100" rows="1">
  <tr:inputText .../>
  <tr:inputText .../>
</tr:panelFormLayout>

Regards,
Matt

On Tue, Aug 26, 2008 at 11:38 PM, ankit mahajan
<a....@gmail.com> wrote:
> sir,
> i  have a parent panelformlayout inside this i have a panelgrouplayout and i
> want to transfer properties of panelformlayout  to panelgrouplayout, is it
> possible?
> moreover i want rowspan and colspan type of things in panelformlayout. how
> can i to that..
>
> eg-
> i hv a parent panelformlayout inside this
> 1st row has a big textbox
> 2nd row contains two small txtboxes
> and both rows are properly aligned.
> how to do that.
>