-
1. Re: DropdownMenu error
oichris Jan 13, 2009 9:51 PM (in response to oichris)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 :
< h:form>
< rich:toolBar>
< rich:dropDownMenu>
< f:facet name="label">
< h:panelGroup>
< h:graphicImage value="/common/images/icons/copy.gif" styleClass="pic" />
< h:outputText value="File" />
< /h:panelGroup>
< /f:facet>
< /rich:dropDownMenu>
< /rich:toolBar>
< /h:form>
but if I add a simple menuItem inside the dropDownMenu :
< rich:menuItem value="New"/>
it generates weird character. -
2. Re: DropdownMenu error
sergeysmirnov Jan 13, 2009 10:00 PM (in response to oichris)Look like a famous problem of JSF RI 1.2_08.
What the JSF implementation version you use? -
3. Re: DropdownMenu error
oichris Jan 13, 2009 10:11 PM (in response to oichris)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 -
4. Re: DropdownMenu error
oichris Jan 13, 2009 10:31 PM (in response to oichris)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 ? -
5. Re: DropdownMenu error
oichris Jan 14, 2009 1:35 AM (in response to oichris)Further test shows that only Firefox3 successfully display the dropdownMenu. Firefox2 fails.
Is it a known bug? Any workaround?
Thanks a lot. -
6. Re: DropdownMenu error
antoine_h Jan 14, 2009 3:56 AM (in response to oichris)Hello,
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 ?).
Thanks, -
7. Re: DropdownMenu error
oichris Jan 14, 2009 4:26 AM (in response to oichris)Yea ~~
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. -
8. Re: DropdownMenu error
ilya_shaikovsky Jan 14, 2009 4:26 AM (in response to oichris)I've just opened live richfaces-demo and the menu works fine in FF2 :/
-
9. Re: DropdownMenu error
oichris Jan 14, 2009 4:38 AM (in response to oichris)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.
BODY!!!BODY!!!!BODY!!!!! -
10. Re: DropdownMenu error
ilya_shaikovsky Jan 14, 2009 4:47 AM (in response to oichris)sorry :) I've open the page to answer before you made a post but posted after you already done with the answer ;)
-
11. Re: DropdownMenu error
oichris Jan 14, 2009 4:51 AM (in response to oichris)No problem~!
Thanks for your attention indeed.