Can you file a JIRA issue with this?

Tim Dysinger wrote:

What needs more elaborate explanation, IMO, is rendering collections as
widgets [not tables]. See my post a few moments ago on the select
widget. I can't find anywhere in the bpm4struts docs where it gives
details on how to render these and use them for input.


I am confused as to where to specify the select widget's collection and
key/value properties.  I don't get it.

From
http://team.andromda.org/docs/andromda-bpm4struts-cartridge/howto8.html :

The 'edition', 'available' and 'buy' widgets
All these elements make up a specific event, which has been modeled like
this:


* model an event going out of the page, call it buy * for each field model a parameter, specify the appropriate widget
for each of these parameters (go here if you don't remember how
to do that), in this example edition is a 'select' and
available is a 'multibox' * add the @andromda.struts.action.tablelink tag to the event,
the value should be the name of the table


If you wish to include the title parameter but you don't want to have
it rendered as an input field, then simply use the
@andromda.struts.view.field.type=plaintext tagged value on that
parameter.


From
http://www.andromda.org/andromda-bpm4struts-cartridge/howto8.html :

Widgets
Not only hyperlinks can be rendered into a table, basically any kind of
widget is allowed, just change the @andromda.struts.view.field.type
tag to any of the known values. The author column (which is controlled
by the test event parameter) has these tagged values specified:


@andromda.struts.view.field.tablelink=itemList.author
@andromda.struts.view.field.type=select
Notice how the cartridge generated dummy data to populate the list. That
way it's easy to give your application a test-run before doing any
manual coding.



On Wed, 2005-04-13 at 17:08 -0600, Chad Brandon wrote:


The how-to I would say is pretty good, if you see places where it can be improved, why don't you file an issue in JIRA and I'm sure Wouter will fix the places where you think its unclear.

Tim Dysinger wrote:



I'm too new at this to say concisely.  We really need to work on a
thorough intro and faq for bpm4struts...

On Wed, 2005-04-13 at 23:50 +0100, Martin West wrote:




and the solution was ?

On Wed, 2005-04-13 at 14:31 -0700, Tim Dysinger wrote:




Never mind.  I figured it out through trial and error.

On Wed, 2005-04-13 at 12:44 -0700, Tim Dysinger wrote:




How do I even set up a form for updating an object?

If I model an event with event parameters going into a FrontEndView, it
displays the data [read-only] at the top of the page.

If I model an event with event parameters going from the FrontEndView to
a system state, it displays _another_ _empty_ form with exactly the same
parameters.  [I don't want to re-type _all_ the attributes for an object
if I am just changing one attribute.]

The problem is that I can't see how to populate the update form with the
values from the object _before_ the page is displayed.  The delegated
controller method only gives me access to one form.

-Tim

On Wed, 2005-04-13 at 18:55 +0200, Wouter Zoons wrote:




hello Tim,

Tim Dysinger wrote:




I remodeling my pages a bit since the tablelink change [in cvs branch
HEAD], I have been reviewing my activity diagrams.  The "table"
functionality of bpm4struts is working and I can show a collection of
objects in a table on a page with no problems.  I can have one link on
each row to skip off to the object create/read/update/delete page.  That
works great.

Is there an easy way to map an object to/from a form for my CRUD page?
I currently have to define the event parameters going into the
FrontEndView state that mirror[duplicate] the session object's
attributes and then map them to/from a session object manually.  If I
just give the session object as event parameters to the FrontEndView,
bpm4struts displays the toString() on the resulting page [which isn't
helpful to me.]





currently, no .. this is still under development, I hope to have it available as an experimental feature in the RC-2 release, right before going final

for now you will explicitly need to model everything






What I'm looking for is some sort of tag where I can hint to the bean
properties I want to have on the form that directly map to an event
parameter object's properties.  [Sort of like I can hint with
@andromda.struts.view.table.columns tag for a collection in a table.]





you will be able to tag an <<Entity>> using the <<Manageable>> stereotype, this will make the Hibernate, Spring and Bpm4struts cartridge generate all CRUD operations for you, web pages and everything, 100% generated

(I'm even including support for criteria searches and the pageable lists returned by such a search will be using the 'paging' functionality of the underlying DB, not like the common displaytag implementation is handling it (which does not scale too well)

-- Wouter




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Andromda-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-user




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Andromda-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-user




--
regards Martin West
http://thecla.homeftp.net
aim:amartinwest
msn:[EMAIL PROTECTED]





-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Andromda-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-user







-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Andromda-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-user






------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Andromda-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to