Bpm4Struts Cartridge

Support of arrays as page variables

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 3.1M1
  • Fix Version/s: 3.1-RC1
  • Component/s: None
  • Description:
    Hide
    It would be nice to pass arrays (in addition to collections) as page variables, for example, "items : Item[]" instead of "items : Collection".

    In this case the cartridge could also use class information and add formatting of table fields (e.g., Dates) while generating JSP (there would be no need to make runtime class checks in JSP).
    Show
    It would be nice to pass arrays (in addition to collections) as page variables, for example, "items : Item[]" instead of "items : Collection". In this case the cartridge could also use class information and add formatting of table fields (e.g., Dates) while generating JSP (there would be no need to make runtime class checks in JSP).

Activity

Hide
Wouter Zoons added a comment - 10/Aug/05 6:12 PM
I'm figuring out the best way to implement this feature to improve maintainability of the cartridge codebase, I'm definitely taking care of this issue in the near future
Show
Wouter Zoons added a comment - 10/Aug/05 6:12 PM I'm figuring out the best way to implement this feature to improve maintainability of the cartridge codebase, I'm definitely taking care of this issue in the near future
Hide
Wouter Zoons added a comment - 11/Aug/05 5:16 PM
what I will do is this:

Collection:
 all columns are treated as of type Object


Array:
 each element is of a certain user type, each attribute is a column
 attributes can be 'hidden'
 the cartridge will be able to check tablelink column names (the event parameter must match one of the attributes)
Show
Wouter Zoons added a comment - 11/Aug/05 5:16 PM what I will do is this: Collection:  all columns are treated as of type Object Array:  each element is of a certain user type, each attribute is a column  attributes can be 'hidden'  the cartridge will be able to check tablelink column names (the event parameter must match one of the attributes)
Hide
Wouter Zoons added a comment - 15/Aug/05 8:38 PM
1) create a class with attributes,
2) create a class with the same name + the array suffix (MyClass[]) no attributes needed on this one
3) use this array type instead of the collection data type
4) date types can be configured using the existing @andromda..format tagged value on the corresponding date type attributes
Show
Wouter Zoons added a comment - 15/Aug/05 8:38 PM 1) create a class with attributes, 2) create a class with the same name + the array suffix (MyClass[]) no attributes needed on this one 3) use this array type instead of the collection data type 4) date types can be configured using the existing @andromda..format tagged value on the corresponding date type attributes

People

Dates

  • Created:
    09/Aug/05 1:47 PM
    Updated:
    15/Aug/05 8:38 PM
    Resolved:
    15/Aug/05 8:38 PM