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

Dmytro Lisnichenko reopened RF-2173:
------------------------------------



> suggestionbox generates class attribute 2 times on return of results
> --------------------------------------------------------------------
>
>                 Key: RF-2173
>                 URL: https://jira.jboss.org/jira/browse/RF-2173
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 3.1.0, 3.2.0
>         Environment: any
>            Reporter: Jonathan Richard
>            Assignee: Tsikhon Kuprevich
>            Priority: Critical
>             Fix For: 3.1.5, 3.2.0
>
>
> The suggestion box generates 2 class="" attributes on the <table> tag it 
> returns. 
> The table.jspx template file uses the following code to generate it's default 
> CSS classe and styleClass attribute:
> <table border="0" cellpadding="0" cellspacing="0" 
> class="dr-sb-int-decor-table rich-sb-int-decor-table" width="100%" >
>    ...
>    <f:attribute name="class" property="styleClass"/>
>    ...
> </table>
> the result of this will be:
> <table border="0" cellpadding="0" cellspacing="0" 
> class="dr-sb-int-decor-table rich-sb-int-decor-table" width="100%" class="">
> but it should be using the same technique as all other rich faces tags to 
> avoid this:
>  <table border="0" cellpadding="0" cellspacing="0" 
> class="dr-sb-int-decor-table rich-sb-int-decor-table 
> #{component.attributes['styleClass']}" width="100%">
> and add the property definition in the suggestionbox.xml config file:
> <property>
>   <name>styleClass</name>
>   <classname>java.lang.String</classname>
>   <description>Corresponds to the HTML class attribute</description>
> </property>
> ---
> This does not cause any problems since the second generated class attribute 
> is detected by the tidy parser and the latter merge the both class tag 
> content. If you disable the FastHtmlParser, a4j won't render the 
> suggestionbox returned content since it is not well formed html....

-- 
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