Hello all,
I am trying to create a table where Its columns will be generated
dynamically. I coded something like this which works quite fine,
logic:iterate id=UserAdmin name=UserAdminFormBean
property=listrowcontent indexId=index offset=0
TR
TDSome other UserAdmin class properties.../TD
logic:iterate id=Roll name=UserAdmin
property=listrolecontent indexId=inner
TDINPUT type='checkbox'
logic:equal name=Roll property=name
value=true
checked
/logic:equal
/
/TD
/logic:iterate
/TR
/logic:iterate
UserAdminFormBean: A formbean
listrowcontent: A vector, presumably made up of UserAdmin instances.
UserAdmin: A helper class
listrolecontent: A vector property in UserAdmin helper class. Which is
currently made up of Roll classes
Roll: A helper class which only holds one String property
name: A String property in the Roll table.
My problem is. I don't want to use Roll class, since it only contains a
string. I have just created this Roll class, since I couln't find any way to
make it run with struts. What do you think? is there any other way to do
same thing?
By the way, strangely it works with this code.
form:select name='AuditActionFormBean'
property=selectedstatus onchange='form.submit()'
form:options name=AuditActionFormBean
property=listauditstatus/
/form:select
where AuditActionFormBean is bean and listauditstatus is a vector populated
with Strings.
Thanks a lot,
Fehmi.
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]