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

Jonas Buechel updated RF-4430:
------------------------------

    Description: 
The following code works correctly in FF3 and chrome but not in IE7. A 
javascript error occurs on row click.
In order to fix this in my opinion it would make sense to implement the 
possibility to reRender rich:columnGroup as well (not only rich:column).
(another forum discussion: 
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=141675)

<a4j:form>
        
        <rich:dataTable id="tableId" value="#{dataModel}" var="rowObject"
                ajaxKeys="#{dataModelManager.ajaxKeys}" rows="#{rowsDisplayed}" 
width="100%" cellpadding="0"
                cellspacing="0">

                        <!-- Only columns with the given ids are beeing 
rerendered. -->
                        <a4j:support event="onRowClick" 
action="#{dataModelManager.select}"
                                reRender="nameId" />

                <f:facet name="header">
                        <rich:columnGroup>
                                <rich:column>
                                        <h:outputText 
value="#{messages.label_name}" />
                                </rich:column>
                        </rich:columnGroup>
                </f:facet>

                        <rich:columnGroup>
                                <rich:column id="nameId" 
styleClass="fwc-selectedrow-#{rowObject eq dataModelSelection}">
                                                        <h:outputText 
value="#{rowObject.name}" />
                                </rich:column>
                        </rich:columnGroup>

        </rich:dataTable>

</a4j:form>


  was:
The following code works correctly in FF3 and chrome but not in IE7. A 
javascript error occurs on row click.
In order to fix this in my opinion it would make sense to implement the 
possibility to reRender rich:columnGroup as well (not only rich:column).
(another forum discussion: 
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=141675)

<a4j:form>
        
        <rich:dataTable id="tableId" value="#{dataModel}" var="rowObject"
                ajaxKeys="#{dataModelManager.ajaxKeys}" rows="#{rowsDisplayed}" 
width="100%" cellpadding="0"
                cellspacing="0">

                        <!-- Only columns with the given ids are beeing 
rerendered. -->
                        <a4j:support event="onRowClick" 
action="#{dataModelManager.select}"
                                reRender="nameId" />

                <f:facet name="header">
                        <rich:columnGroup>
                                <rich:column>
                                        <h:outputText 
value="#{messages.militaryRole_label_name}" />
                                </rich:column>
                        </rich:columnGroup>
                </f:facet>

                        <rich:columnGroup>
                                <rich:column id="nameId" 
styleClass="fwc-selectedrow-#{rowObject eq dataModelSelection}">
                                                        <h:outputText 
value="#{rowObject.name}" />
                                </rich:column>
                        </rich:columnGroup>

        </rich:dataTable>

</a4j:form>




> Content of dataTable cells disapears after reRendering rich:column
> ------------------------------------------------------------------
>
>                 Key: RF-4430
>                 URL: https://jira.jboss.org/jira/browse/RF-4430
>             Project: RichFaces
>          Issue Type: Feature Request
>    Affects Versions: 3.2.1
>         Environment: IE7
>            Reporter: Jonas Buechel
>
> The following code works correctly in FF3 and chrome but not in IE7. A 
> javascript error occurs on row click.
> In order to fix this in my opinion it would make sense to implement the 
> possibility to reRender rich:columnGroup as well (not only rich:column).
> (another forum discussion: 
> http://www.jboss.com/index.html?module=bb&op=viewtopic&t=141675)
> <a4j:form>
>       
>       <rich:dataTable id="tableId" value="#{dataModel}" var="rowObject"
>               ajaxKeys="#{dataModelManager.ajaxKeys}" rows="#{rowsDisplayed}" 
> width="100%" cellpadding="0"
>               cellspacing="0">
>                       <!-- Only columns with the given ids are beeing 
> rerendered. -->
>                       <a4j:support event="onRowClick" 
> action="#{dataModelManager.select}"
>                               reRender="nameId" />
>               <f:facet name="header">
>                       <rich:columnGroup>
>                               <rich:column>
>                                       <h:outputText 
> value="#{messages.label_name}" />
>                               </rich:column>
>                       </rich:columnGroup>
>               </f:facet>
>                       <rich:columnGroup>
>                               <rich:column id="nameId" 
> styleClass="fwc-selectedrow-#{rowObject eq dataModelSelection}">
>                                                       <h:outputText 
> value="#{rowObject.name}" />
>                               </rich:column>
>                       </rich:columnGroup>
>       </rich:dataTable>
> </a4j:form>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to