You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Rogerio Pereira <ro...@gmail.com> on 2005/11/24 17:30:15 UTC
focus component
Hi guys!
I wrote a simple component that can set the focus in any form control
across multiple submissions, this is useful to control form
navigation.
How to use:
In jsp (before close h:form):
<s:focus id="focus" component="txtId" />
in managed bean:
private HtmlFocus focus;
focus = (HtmlFocus)form.findComponent("focus");
focus.setComponent("txtNome");
--
Yours truly (Atenciosamente),
Rogério
Re: focus component
Posted by Rogerio Pereira <ro...@gmail.com>.
Yeah Martin, i opened a jira for this component.
2005/11/25, Martin Marinschek <ma...@gmail.com>:
> looks good.
>
> I think you did already open a jira on this, right? If not, please do
> it right now.
>
> I'll review this some time during next week, when I will hopefully get
> my open bugs closed as well ;)
>
> regards,
>
> Martin
>
> On 11/24/05, Rogerio Pereira <ro...@gmail.com> wrote:
> > Hi guys!
> >
> > I wrote a simple component that can set the focus in any form control
> > across multiple submissions, this is useful to control form
> > navigation.
> >
> > How to use:
> >
> > In jsp (before close h:form):
> >
> > <s:focus id="focus" component="txtId" />
> >
> > in managed bean:
> >
> > private HtmlFocus focus;
> > focus = (HtmlFocus)form.findComponent("focus");
> > focus.setComponent("txtNome");
> >
> >
> > --
> > Yours truly (Atenciosamente),
> >
> > Rogério
> >
> >
> >
>
>
> --
>
> http://www.irian.at
>
> Your JSF powerhouse -
> JSF Consulting, Development and
> Courses in English and German
>
> Professional Support for Apache MyFaces
>
--
Yours truly (Atenciosamente),
Rogério
Re: focus component
Posted by Martin Marinschek <ma...@gmail.com>.
looks good.
I think you did already open a jira on this, right? If not, please do
it right now.
I'll review this some time during next week, when I will hopefully get
my open bugs closed as well ;)
regards,
Martin
On 11/24/05, Rogerio Pereira <ro...@gmail.com> wrote:
> Hi guys!
>
> I wrote a simple component that can set the focus in any form control
> across multiple submissions, this is useful to control form
> navigation.
>
> How to use:
>
> In jsp (before close h:form):
>
> <s:focus id="focus" component="txtId" />
>
> in managed bean:
>
> private HtmlFocus focus;
> focus = (HtmlFocus)form.findComponent("focus");
> focus.setComponent("txtNome");
>
>
> --
> Yours truly (Atenciosamente),
>
> Rogério
>
>
>
--
http://www.irian.at
Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German
Professional Support for Apache MyFaces