Specifically, you'll probably want to bind to a UIComponent variable.

                            binding="#{page.locationComponent}"

    private transient UIComponent locationComponent;
    public UIComponent getLocationComponent()
    {
        return this.locationComponent;
    }
    public void setLocationComponent(UIComponent locationComponent)
    {
        this.locationComponent = locationComponent;
    }

I do this all the time to associate FacesMessages to a specific component.
            facesContext.addMessage(locationComponent.getClientId(facesContext),
                    new FacesMessage(FacesMessage.SEVERITY_ERROR,
                        "message summary", "message detail")
                );

-Mike

On 8/9/05, Sean Schofield <[EMAIL PROTECTED]> wrote:
> You have to bind to a method.  You can do something like :
> 
> <h:inputText value="#{fooBean.someMethod} 
> binding="#{barBean.someOtherMethod}"/>
> 
> or use the same bean for both the binding and value attributes like:
> 
> <h:inputText value="#{fooBean.someMethod} binding="#{fooBean.setTextComp}"/>
> 
> HTH,
> 
> sean
> 
> On 8/9/05, hicham abassi <[EMAIL PROTECTED]> wrote:
> > I want to fix my request by :
> > jsf development without jsp :
> > * feedbacks
> > * adv/draw
> > the myfaces' way to do it
> >
> > Thanks
> >
> > 2005/8/9, hicham abassi <[EMAIL PROTECTED]>:
> > > Hello,
> > >
> > > Is it possible to bind any jsf component to a generic jsf tag.
> > >
> > > <h:baseJSFTag binding="#{managedBean.anyJsfComponent}"/>
> > >
> > > I want to know if we can generate dynamically bind all jsf components
> > > on a jsp page without specifiing the jsf tag type.
> > >
> > > Thanks
> > >
> >
> >
> > --
> >
> > hicham ABASSI
> > [EMAIL PROTECTED]
> >
>

Reply via email to