[RomaFramework-dev] [ romaframework-Feature Requests-1486691 ] Default rendering modes should be co
Brought to you by:
lvca
|
From: SourceForge.net <no...@so...> - 2007-05-24 11:13:00
|
Feature Requests item #1486691, was opened at 2006-05-11 18:51 Message generated for change (Comment added) made by lvca You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=824593&aid=1486691&group_id=162641 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Echo2-ViewAspect Group: None >Status: Closed Priority: 5 Private: No Submitted By: Luca Garulli (lvca) Assigned to: Luca Garulli (lvca) Summary: Default rendering modes should be configurable Initial Comment: Now, if not explicited, Roma uses the DefaultRenderingMode for components. For example, to render an action by default it uses the "button". If I want to render every actions of my application as "link", I had to set the view's feature render="link" to every actions!!! My original idea was to set by Spring the rendering mode foreach type. But now my thought is to follow inheritance as for other things (I18N, Styles, etc). So...If I can define that only for my Blog class I use always "links" to render actions and every Date field should not watch the calendar but the date in a text field, I should define something like this: Blog.field.date = text Blog.action = link If I create my SuperBlog that extends Blog, then Roma should: - search for SuperBlog class - if not found search for Blog class - if not found use default (configurable too) ---------------------------------------------------------------------- >Comment By: Luca Garulli (lvca) Date: 2007-05-24 13:12 Message: Logged In: YES user_id=75115 Originator: YES Resolved by RenderingResolver component. Create in Spring something like this: <bean id="RenderingResolver" singleton="true" class="org.romaframework.aspect.view.echo2.component.resolver.ConfigurableRenderingResolver"> <property name="configuration"> <map> <entry key="action" value="button" /> <entry key="java.lang.String" value="text" /> <entry key="java.lang.Integer" value="text" /> <entry key="java.lang.Float" value="text" /> <entry key="java.lang.Double" value="text" /> <entry key="java.lang.Boolean" value="check" /> <entry key="java.util.Date" value="date" /> <entry key="java.util.Collection" value="list" /> <entry key="java.util.Set" value="list" /> </map> </property> </bean> ---------------------------------------------------------------------- Comment By: Luca Garulli (lvca) Date: 2007-05-24 13:12 Message: Logged In: YES user_id=75115 Originator: YES Resolved. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=824593&aid=1486691&group_id=162641 |