You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Chris Chiappone <ch...@gmail.com> on 2006/01/18 15:26:52 UTC
Form Focus
I am using tap 4 and have noticed that the first field in a form
always seems to have the focus. What is the best way to not give a
field focus until the user clicks in that field?
Thanks,
--
~chris
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: dynamic allocation of components?
Posted by Jesse Kuhnert <jk...@gmail.com>.
I don't think JPanel is going to be a fair comparison for layout logic.
Are you saying that you want to dynamically render a block of UI depending
on certain conditions? If that is the case then I would use Block and
RenderBlock components (check documentation) to do it. I use them myself
with no problems. (For instance, providing a specific form input for a list
of N objects of different types.)
If it's anything other than dynamically choosing a component/container to
display I would have to ask why/what you are trying to do exactly that html
doesn't already handle?
On 1/18/06, John Coleman <jo...@ntlworld.com> wrote:
>
> but what I am looking for is a sort of component that is a flexible
> container for other components that I allocate dynamically, just like in
> Swing you have a JPanel that you can add components to
>
> Is there a way to do JPanel in Tapestry?
>
> John
>
> ----- Original Message -----
> From: "Raul Raja Martinez" <do...@estudiowebs.com>
> To: <ta...@jakarta.apache.org>
> Sent: Wednesday, January 18, 2006 4:15 PM
> Subject: Re: dynamic allocation of components?
>
>
> > You don't have to declare components in a config file (.page or .jwc) if
> > you don't want to.
> > Tapestry supports implicit components that can be declared directly in
> > the html template.
> > For example:
> >
> > <span jwcid="@Insert" value="ognl:new java.util.Date()">June 26
> 2005</span>
> >
> > You can now use any html editor and move around the span tag as it was
> > an standalone component.
> >
> > best regards.
> >
> > Raul.
> >
> >
> > John Coleman wrote:
> > > I've been playing with mamboserver, and like how you allocate modules
> to
> a
> > > slot on the template.
> > >
> > > Anyone know how this can be achieved in Tapestry?
> > >
> > > I might want to have a sort of parent component called "bannercell",
> and
> > > then identify some components to stick into bannercell, maybe a search
> > > component and a login form component for example. Ideally, as per
> mambo
> I
> > > need to have a UI to move the components around, rather than have them
> coded
> > > into a config file.
> > >
> > > TIA
> > > John
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
Re: dynamic allocation of components?
Posted by John Coleman <jo...@ntlworld.com>.
but what I am looking for is a sort of component that is a flexible
container for other components that I allocate dynamically, just like in
Swing you have a JPanel that you can add components to
Is there a way to do JPanel in Tapestry?
John
----- Original Message -----
From: "Raul Raja Martinez" <do...@estudiowebs.com>
To: <ta...@jakarta.apache.org>
Sent: Wednesday, January 18, 2006 4:15 PM
Subject: Re: dynamic allocation of components?
> You don't have to declare components in a config file (.page or .jwc) if
> you don't want to.
> Tapestry supports implicit components that can be declared directly in
> the html template.
> For example:
>
> <span jwcid="@Insert" value="ognl:new java.util.Date()">June 26
2005</span>
>
> You can now use any html editor and move around the span tag as it was
> an standalone component.
>
> best regards.
>
> Raul.
>
>
> John Coleman wrote:
> > I've been playing with mamboserver, and like how you allocate modules to
a
> > slot on the template.
> >
> > Anyone know how this can be achieved in Tapestry?
> >
> > I might want to have a sort of parent component called "bannercell", and
> > then identify some components to stick into bannercell, maybe a search
> > component and a login form component for example. Ideally, as per mambo
I
> > need to have a UI to move the components around, rather than have them
coded
> > into a config file.
> >
> > TIA
> > John
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: dynamic allocation of components?
Posted by Raul Raja Martinez <do...@estudiowebs.com>.
You don't have to declare components in a config file (.page or .jwc) if
you don't want to.
Tapestry supports implicit components that can be declared directly in
the html template.
For example:
<span jwcid="@Insert" value="ognl:new java.util.Date()">June 26 2005</span>
You can now use any html editor and move around the span tag as it was
an standalone component.
best regards.
Raul.
John Coleman wrote:
> I've been playing with mamboserver, and like how you allocate modules to a
> slot on the template.
>
> Anyone know how this can be achieved in Tapestry?
>
> I might want to have a sort of parent component called "bannercell", and
> then identify some components to stick into bannercell, maybe a search
> component and a login form component for example. Ideally, as per mambo I
> need to have a UI to move the components around, rather than have them coded
> into a config file.
>
> TIA
> John
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
dynamic allocation of components?
Posted by John Coleman <jo...@ntlworld.com>.
I've been playing with mamboserver, and like how you allocate modules to a
slot on the template.
Anyone know how this can be achieved in Tapestry?
I might want to have a sort of parent component called "bannercell", and
then identify some components to stick into bannercell, maybe a search
component and a login form component for example. Ideally, as per mambo I
need to have a UI to move the components around, rather than have them coded
into a config file.
TIA
John
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Form Focus
Posted by Chris Chiappone <ch...@gmail.com>.
thanks.
On 1/18/06, Norbert Sándor <de...@erinors.com> wrote:
> Check out the "focus" parameter of Form
> (http://jakarta.apache.org/tapestry/tapestry/ComponentReference/Form.html).
>
> BR,
> Norbi
>
> ----- Original Message -----
> From: "Chris Chiappone" <ch...@gmail.com>
> To: "Tapestry List" <ta...@jakarta.apache.org>
> Sent: Wednesday, January 18, 2006 3:26 PM
> Subject: Form Focus
>
>
> I am using tap 4 and have noticed that the first field in a form
> always seems to have the focus. What is the best way to not give a
> field focus until the user clicks in that field?
>
> Thanks,
>
> --
> ~chris
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
>
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.375 / Virus Database: 267.14.20/233 - Release Date: 2006. 01.
> 18.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
--
~chris
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Form Focus
Posted by Norbert Sándor <de...@erinors.com>.
Check out the "focus" parameter of Form
(http://jakarta.apache.org/tapestry/tapestry/ComponentReference/Form.html).
BR,
Norbi
----- Original Message -----
From: "Chris Chiappone" <ch...@gmail.com>
To: "Tapestry List" <ta...@jakarta.apache.org>
Sent: Wednesday, January 18, 2006 3:26 PM
Subject: Form Focus
I am using tap 4 and have noticed that the first field in a form
always seems to have the focus. What is the best way to not give a
field focus until the user clicks in that field?
Thanks,
--
~chris
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.14.20/233 - Release Date: 2006. 01.
18.
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org