Dave Newton :
--- On Mon, 8/11/08, Haulyn R. Jason <[EMAIL PROTECTED]> wrote:
I implement ModelDriven interface, but I have a list in my
model. It
looks like:
public class Role(){
private String id;
private String name ;
private List<Privilege> privilegeList;
}
In my action, I have a set/get method for Role Object, but
what about the list?
You don't need a separate method for the list; if you're using ModelDriven
you'd get it, for example, by using:
<s:iterator value="privilegeList">
...
The model (when not null) is pushed onto the top of the stack. If you weren't
using ModelDriven and had a getter for role:
<s:iterator value="role.privilegeList">
...
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Thanks Dave, but
It's a form, I want to use <select multiple="true" > or the similar ui
tags for modifying it. So how can I retrieve data from form?
--
Thanks!
Mobile: +086-15864011231
EMail>alk:[EMAIL PROTECTED]
EMail&yahoo:[EMAIL PROTECTED]
Skype:saharabear
贾昊林(Haulyn Runner Jason)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]