@andromda.presentation.view.table.pageable does not work in JSF2 cartridge
--------------------------------------------------------------------------
Key: JSF-40
URL: http://jira.andromda.org/browse/JSF-40
Project: JSF cartridge
Type: Bug
Environment: Ubuntu hardy, java 1.6.0_06, Maven 2.0.9
Reporter: Gabriele Contini
Assigned to: Chad Brandon
The tagged value @andromda.presentation.view.table.pageable doesn't work in
JSF2 cartridge.
The desired behaviour is described here:
http://team.andromda.org/docs/andromda-cartridges/andromda-jsf-cartridge/[EMAIL
PROTECTED]
Adding the tagged value doesn't modify the generated code.
Seem the problem is in Form.java.vsl at row 17:
#if ($field.pageableTable)
doesn't correctly invoke the boolean getter ("isPageableTable") in the velocity
context. Changing the line in
#if ($field.isPageableTable())
Makes the existing code work.
This new behavior triggers a little issue on Controller.java.vsl: the
FormPopulationOperationRequired is not set correctly. With the actual code it
becomes "false", while some method needs the form population methods. I
modified the template accordingly.
I attach the small patch with the modifications i described above. I tested it
on a large project, and it's working fine.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.andromda.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php