[forge-issues] [JBoss JIRA] Closed: (SEAMFORGE-275) Scaffolded entities are not editable on Internet Explorer 8

Lincoln Baxter III (JIRA) jira-events at lists.jboss.org
Fri Sep 9 18:25:26 EDT 2011


     [ https://issues.jboss.org/browse/SEAMFORGE-275?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lincoln Baxter III closed SEAMFORGE-275.
----------------------------------------

         Assignee: Lincoln Baxter III
    Fix Version/s: 1.0.0.Beta2
       Resolution: Done


Fixed.

> Scaffolded entities are not editable on Internet Explorer 8
> -----------------------------------------------------------
>
>                 Key: SEAMFORGE-275
>                 URL: https://issues.jboss.org/browse/SEAMFORGE-275
>             Project: Seam Forge
>          Issue Type: Bug
>            Reporter: Richard Kennard
>            Assignee: Lincoln Baxter III
>             Fix For: 1.0.0.Beta2
>
>
> The entity list produced by scaffold/.../list.xhtml is not editable on IE 8. Probably because the table tags produced by Metawidget are considered to be 'above' (in z-index) the anchor tag, and stop the anchor tag being clicked.
> A few possible workarounds:
> 1. Change the Metawidget tag to be...
> <m:metawidget value="#{entity}" readOnly="true" rendererType="simple"/>
> ...the 'simple' renderer will output spans, not table tags, and so the link is still clickable. You may want a little CSS to space the table tags apart.
> 2. Change the Metawidget tag to be...
> <m:metawidget value="#{customerBean.list}">
> 	<f:param name="dataTableRowAction" value="customerBean.load"/>
> </m:metawidget>
> Now Metawidget will render the collection as a DataTable, with a extra column for a 'load' action. It will need a little help to do this. Specifically: a) CustomerBean.getList will need to return a ListDataModel, so that CustomerBean.load can use .getRowData to determine which row was clicked. This is standard JSF behaviour. b) Customer will need either a decent .toString (for a single column table) or some required fields like @Column(nullable = false) getName() so that Metawidget can choose which fields are 'summary' fields for use in table columns
> 3. Add in a custom Metawidget WidgetBuilder to render the list just the way you want it
> 4. Tweak the z-index order in the CSS, although this may lead to further browser incompatibilities
> Probably 1) is easiest for now?

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the forge-issues mailing list