You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by andrea pantaleoni <an...@fao.org> on 2007/08/23 15:05:32 UTC

Layout Panel

Hi, 
I have a little problem with Panel
In a table I added a Panel 
Now in this Panel I want to add two different components, let's say, a
dropdownchoice up and a textfield down.
If I remember well, in swing it could be possible to add a layout to a panel
and then for example add a component in north or in the south.
Is there in wicket something similar?
If I want to add the dropdownchoice component in the north of the panel and
the textfield in the south is that possible
Thanks for any help
Andrea  
-- 
View this message in context: http://www.nabble.com/Layout-Panel-tf4317423.html#a12293248
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Layout Panel

Posted by Igor Vaynberg <ig...@gmail.com>.
only pages/panels/borders have associated markup files by default.

-igor


On 8/23/07, andrea pantaleoni <an...@fao.org> wrote:
>
>
> the reason is that I need to consider the panel as a single component
> which
> is used inside a listview
> Anyway you could be right I saw that in wicket you can create a html
> markup
> for each single component naming the file in this way:
> pagename$componentname.html
>
> So maybe I can add the  drodownchoice and textfield to the panel component
> and fix the layout in the  html file pagename$panelname.html
>
> <table>
> <tr>
> <td>wicketcomponentup
> <td>
> <td>wicketcomponentdown
> <td>
> </tr>
> </table>
> What do you think about? could that work?
>
> Thanks Paolo
>
>
>
>
> paolo di tommaso wrote:
> >
> > Umh .. I think the best things are simple ..
> >
> > Why don't just handle the components position using html or css in your
> > panel?
> >
> >
> > Bye, Paolo
> >
> >
> >
> > On 8/23/07, andrea pantaleoni <an...@fao.org> wrote:
> >>
> >>
> >> Hi,
> >> I have a little problem with Panel
> >> In a table I added a Panel
> >> Now in this Panel I want to add two different components, let's say, a
> >> dropdownchoice up and a textfield down.
> >> If I remember well, in swing it could be possible to add a layout to a
> >> panel
> >> and then for example add a component in north or in the south.
> >> Is there in wicket something similar?
> >> If I want to add the dropdownchoice component in the north of the panel
> >> and
> >> the textfield in the south is that possible
> >> Thanks for any help
> >> Andrea
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Layout-Panel-tf4317423.html#a12293248
> >> Sent from the Wicket - User mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >> For additional commands, e-mail: users-help@wicket.apache.org
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Layout-Panel-tf4317423.html#a12293520
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Layout Panel

Posted by Sam Hough <sa...@redspr.com>.
Should really use DIVs else the HTML coders will go on and on about Java
geeks using tables for layout ;)


-- 
View this message in context: http://www.nabble.com/Layout-Panel-tf4317423.html#a12294891
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Layout Panel

Posted by Paolo Di Tommaso <pa...@gmail.com>.
I'm still thinking that's a pure html problem, Try with a table like this:

<table height="100%">
<tr>
<td valign="top" >wicketcomponentup </td>
<td valign="bottom" >wicketcomponentdown </td>
</tr>
</table>

Paolo



On 8/23/07, andrea pantaleoni <an...@fao.org> wrote:
>
>
> the reason is that I need to consider the panel as a single component
> which
> is used inside a listview
> Anyway you could be right I saw that in wicket you can create a html
> markup
> for each single component naming the file in this way:
> pagename$componentname.html
>
> So maybe I can add the  drodownchoice and textfield to the panel component
> and fix the layout in the  html file pagename$panelname.html
>
> <table>
> <tr>
> <td>wicketcomponentup
> <td>
> <td>wicketcomponentdown
> <td>
> </tr>
> </table>
> What do you think about? could that work?
>
> Thanks Paolo
>
>
>
>
> paolo di tommaso wrote:
> >
> > Umh .. I think the best things are simple ..
> >
> > Why don't just handle the components position using html or css in your
> > panel?
> >
> >
> > Bye, Paolo
> >
> >
> >
> > On 8/23/07, andrea pantaleoni <an...@fao.org> wrote:
> >>
> >>
> >> Hi,
> >> I have a little problem with Panel
> >> In a table I added a Panel
> >> Now in this Panel I want to add two different components, let's say, a
> >> dropdownchoice up and a textfield down.
> >> If I remember well, in swing it could be possible to add a layout to a
> >> panel
> >> and then for example add a component in north or in the south.
> >> Is there in wicket something similar?
> >> If I want to add the dropdownchoice component in the north of the panel
> >> and
> >> the textfield in the south is that possible
> >> Thanks for any help
> >> Andrea
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Layout-Panel-tf4317423.html#a12293248
> >> Sent from the Wicket - User mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >> For additional commands, e-mail: users-help@wicket.apache.org
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Layout-Panel-tf4317423.html#a12293520
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Layout Panel

Posted by andrea pantaleoni <an...@fao.org>.
the reason is that I need to consider the panel as a single component which
is used inside a listview 
Anyway you could be right I saw that in wicket you can create a html markup
for each single component naming the file in this way:
pagename$componentname.html

So maybe I can add the  drodownchoice and textfield to the panel component 
and fix the layout in the  html file pagename$panelname.html

<table>
<tr>
<td>wicketcomponentup
<td>
<td>wicketcomponentdown
<td>
</tr>
</table>
What do you think about? could that work?

Thanks Paolo




paolo di tommaso wrote:
> 
> Umh .. I think the best things are simple ..
> 
> Why don't just handle the components position using html or css in your
> panel?
> 
> 
> Bye, Paolo
> 
> 
> 
> On 8/23/07, andrea pantaleoni <an...@fao.org> wrote:
>>
>>
>> Hi,
>> I have a little problem with Panel
>> In a table I added a Panel
>> Now in this Panel I want to add two different components, let's say, a
>> dropdownchoice up and a textfield down.
>> If I remember well, in swing it could be possible to add a layout to a
>> panel
>> and then for example add a component in north or in the south.
>> Is there in wicket something similar?
>> If I want to add the dropdownchoice component in the north of the panel
>> and
>> the textfield in the south is that possible
>> Thanks for any help
>> Andrea
>> --
>> View this message in context:
>> http://www.nabble.com/Layout-Panel-tf4317423.html#a12293248
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Layout-Panel-tf4317423.html#a12293520
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Layout Panel

Posted by Paolo Di Tommaso <pa...@gmail.com>.
Umh .. I think the best things are simple ..

Why don't just handle the components position using html or css in your
panel?


Bye, Paolo



On 8/23/07, andrea pantaleoni <an...@fao.org> wrote:
>
>
> Hi,
> I have a little problem with Panel
> In a table I added a Panel
> Now in this Panel I want to add two different components, let's say, a
> dropdownchoice up and a textfield down.
> If I remember well, in swing it could be possible to add a layout to a
> panel
> and then for example add a component in north or in the south.
> Is there in wicket something similar?
> If I want to add the dropdownchoice component in the north of the panel
> and
> the textfield in the south is that possible
> Thanks for any help
> Andrea
> --
> View this message in context:
> http://www.nabble.com/Layout-Panel-tf4317423.html#a12293248
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Layout Panel

Posted by Ernesto Reinaldo Barreiro <re...@isencia.com>.
What about

<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:wicket="http://wicket.sourceforge.net/">
<wicket:panel>
<table cellpadding="2" cellspacing="2">
    <tr>
        <td>
            <b>MyDropDown:</b>
        </td>
        <td>
            <select wicket:id="MyDropDown"></select>
        </td>
    </tr>
    <tr>
        <td>
            <b>MyTextField:</b>
        </td>
        <td>
            <input wicket:id="MyTextField"/>
        </td>
    </tr>       
</table>
</wicket:panel>
</html>

On wicket you have the flexibility to design yourself the markup (as in 
plain old HTML...)

Ernesto

andrea pantaleoni wrote:
> Hi, 
> I have a little problem with Panel
> In a table I added a Panel 
> Now in this Panel I want to add two different components, let's say, a
> dropdownchoice up and a textfield down.
> If I remember well, in swing it could be possible to add a layout to a panel
> and then for example add a component in north or in the south.
> Is there in wicket something similar?
> If I want to add the dropdownchoice component in the north of the panel and
> the textfield in the south is that possible
> Thanks for any help
> Andrea  
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org