struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rahul Akolkar <rahul.akol...@gmail.com>
Subject Re: [Shale] Changing String type to HtmlInputText in Backingbean gives No Propertyeditor error
Date Thu, 13 Oct 2005 23:40:06 GMT
On 10/13/05, Wendy Smoak <java@wendysmoak.com> wrote:
> From: <gramani@intellicare.com>
>
> > So my jsp has this:
> > <h:inputText id="userName" required="true"
> >                                value="#{registration.userName}" />
> > ..
> > <h:inputSecret id="password" required="true"
> >                                binding="#{registration.password}" />
> >
> > My backingbean RegistrationBean has the following:
> >
> > private HtmlInputText userName = null;
> > private HtmlInputSecret password = null;
> > with appropriate getters and setters.
>
> What happens if you use 'binding' instead of 'value' for the userName?
>
> <h:inputText id="userName" required="true"
>                               binding="#{registration.userName}" />
<snip/>

I was tempted to change the prefix to JSF, but didn't want to break
the email thread.

The above suggestion should do it. But I'd ask why you want to bind
component instances rather than values? If this is a "traditional"
login view, I'd think binding values should be sufficient?

-Rahul

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message