After some more testings,
I found the problem is most probably lie in the generation of < rich:menuItem>. As I tried to create the 'simplest' one without any item, it finally success to display in Firefox :
< f:facet name="label">
< h:graphicImage value="/common/images/icons/copy.gif" styleClass="pic" />
< h:outputText value="File" />
but if I add a simple menuItem inside the dropDownMenu :
< rich:menuItem value="New"/>
it generates weird character.
Look like a famous problem of JSF RI 1.2_08.
What the JSF implementation version you use?
Thanks for your reply.
I have no idea about the famous problem, could you please kindly provide some sort of link for me to reference? Thanks a lot.
My JSF version is : 1.2_08-b06-FCS
I got the solution on web. Thanks.
Upgrading to 1.2_09 solves the weird character problem. But still, in firefox the dropdownmenu does not work~ the dropdown menu does not appear, but fine in IE. Any idea ?
Further test shows that only Firefox3 successfully display the dropdownMenu. Firefox2 fails.
Is it a known bug? Any workaround?
Thanks a lot.
I wish also the DropDownMenu works on Firefox 2.
nice specification and tracking of the bug : may be open a JIRA ?
(If not yet in it : did you looked at the jira ?).
I have finally figured that out ~~~
It teaches me a good habit to stick STRICTLY to the HTML standard ~~~
You MUST have a "< body>" tag wrapped as the parent of DropdownMenu to make it work under Firefox2.
I've just opened live richfaces-demo and the menu works fine in FF2 :/
I know the live demo works fine in FF2~~
As I mentioned in my previous post ~
it doesn't specify that we must have a < body> tag to make it work ~~ (because the live demo already contained it~!)
And normally I expect it to work correctly if I simply copy and paste the provided source into my page~~ but it is not the case.
sorry :) I've open the page to answer before you made a post but posted after you already done with the answer ;)
Thanks for your attention indeed.