Binding issue

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Binding issue

eminence
I am very new in Stripes.I am not able to bind textbox with actionbean
attributes.

 Enter Name: <s:text name="userName"
value="${actionBean.userName}">name</s:text>


Value doesn't seems to bind with updated vaue of userName.


Thanks
eminene






------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Stripes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/stripes-users
Reply | Threaded
Open this post in threaded view
|

Re: Binding issue

Freddy D.
Hi eminene,

> I am very new in Stripes.I am not able to bind textbox with actionbean
> attributes.
>
>  Enter Name: <s:text name="userName"
> value="${actionBean.userName}">name</s:text>
>
>
> Value doesn't seems to bind with updated vaue of userName.
>

You do not need the value= attribute. Try:

Enter Name: <s:text name="userName"/>

Also, make sure to have this in your action bean:

private String userName;

public String getUserName() {
  return userName;
}

public void setUserName(String userName) {
  this.userName = userName;
}

Hope that helps.

Cheers,
Freddy
http://pragprog.com/titles/fdstr

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Stripes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/stripes-users