[JBoss JIRA] Updated: (RF-572) ClassCastException when trying to access a JSF Portlet using RichFaces
by Nick Belaevski (JIRA)
[ http://jira.jboss.com/jira/browse/RF-572?page=all ]
Nick Belaevski updated RF-572:
------------------------------
Fix Version/s: 3.1.4
(was: 3.1.3)
> ClassCastException when trying to access a JSF Portlet using RichFaces
> ----------------------------------------------------------------------
>
> Key: RF-572
> URL: http://jira.jboss.com/jira/browse/RF-572
> Project: RichFaces
> Issue Type: Bug
> Affects Versions: 3.1.0
> Environment: RealFaces 3.1.0.SNAPSHOT (sourcecode retrieved and built manually from svn 08.08.2007 )
> JSF Portlet Bridge 1.2.1 from Sun
> JBoss Portal 2.6.1.GA
> JBoss AS 4.2.1.GA
> JDK 1.5.0_08
> Postgresql 8.x database
> Linux Kubuntu 6.10
> Reporter: Viggo Navarsete
> Assigned To: Alexander Smirnov
> Fix For: 3.2.0, 3.1.4
>
> Attachments: AbstractExternalContext.java, ContextAttributesMap.java, ContextMap.java, EnumerationIterator.java, FacesContextImpl.java, portlet-jsfrichfacesdemo-session.war, portlet-jsfrichfacesdemo.war, portlet-jsfrichfacesdemo.war, PortletContextImpl.java, ServletContextImpl.java, SessionAttributesNames.java, suggestionBoxDemo-Portal2.6.2.zip
>
>
> I have created a JSF portlet using the latest RichFaces source code from svn. I have added a <rich:panel> to my jsp page, deployed it to my jboss portal, created a portlet instance and added it to a page. When trying to access the page I get the following stacktrace:
> 08:37:37,523 WARN [SkinFactoryImpl] Init parameter for a skin name changed to org.richfaces.SKIN
> 08:37:39,853 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
> java.lang.ClassCastException: org.apache.catalina.core.ApplicationContextFacade
> at com.sun.faces.portlet.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:64)
> at org.ajax4jsf.resource.InternetResourceService.getFacesContext(InternetResourceService.java:317)
> at org.ajax4jsf.resource.InternetResourceService.getResourceContext(InternetResourceService.java:251)
> at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:162)
> at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:144)
> at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:259)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
> at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
> at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> at java.lang.Thread.run(Thread.java:595)
> Please read the JBoss Forum reference for more information about configuration of my web.xml, portlet.xml and other "war-file-specific-things".
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years
[JBoss JIRA] Created: (RF-1372) Add checkbox tree example
by nayan j (JIRA)
Add checkbox tree example
--------------------------
Key: RF-1372
URL: http://jira.jboss.com/jira/browse/RF-1372
Project: RichFaces
Issue Type: Task
Reporter: nayan j
Fix For: Future Versions
Creating a rich:tree with checkbox at each node is bit difference from creating a regular tree and poses new challenges. I request you to add an example for it.
Here is a list of challenges that make this use-case different:
1. Requirements to use a:support inside treeNode to handle click events (e.g. selecting nodes in subtree of selected checkbox or unselecting parents of a node when checkbox is unchecked).
2. Alignment issues that originate from usage of checkbox and text in different font-sizes when used together in treeNode.
3. Default mouse-over effects of rich:tree components makes the tree look ugly as treeNode now comprises of two parts. It is not clear which css style needs to be overridden to change these effects.
4. It is not clear when events get fired due to clicks at different locations in the tree. It will be nice if the example could show how to turn off these events if desired by the developer.
There are several posts in richfaces forum discussing issues with using checkbox tree.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years
[JBoss JIRA] Updated: (RF-1713) RichFaces 'double implementation' MethodNotFoundException bug
by Nick Belaevski (JIRA)
[ http://jira.jboss.com/jira/browse/RF-1713?page=all ]
Nick Belaevski updated RF-1713:
-------------------------------
Fix Version/s: 3.2.0
Affects Version/s: 3.2.0
Assignee: Nick Belaevski
> RichFaces 'double implementation' MethodNotFoundException bug
> -------------------------------------------------------------
>
> Key: RF-1713
> URL: http://jira.jboss.com/jira/browse/RF-1713
> Project: RichFaces
> Issue Type: Bug
> Affects Versions: 3.2.0
> Environment: Linux, Jboss AS 4.2.2, Seam 2.0.0 GA
> Reporter: Bram Biesbrouck
> Assigned To: Nick Belaevski
> Fix For: 3.2.0
>
>
> When I use "adviseNodeOpened" in a rich:tree component, I end up with a javax.faces.el.MethodNotFoundException:
> adviseNodeOpened="#{fileSystemManager.adviseFileSystemTreeNodeOpened}": Method not found: FileSystemManagerImpl:3j011-9i11xv-faathdgv-1-faauxftc-h.adviseFileSystemTreeNodeOpened(org.richfaces.component.UITree)
> The former solution was to set UseJBossWebLoader to true, but this breaks the Seam Mail functionality.
> The new solution came when RichFaces impl and api were splitted, but nothing changed with "adviseNodeOpened"
> In the Wiki-example build.xml, I'm seeing this comment:
> <!-- Still need the * on richfaces due to bug in version mapper -->
> Could this be the reason (the fact that we can't split out the api in the war file just yet) for this exception to be thrown?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years
[JBoss JIRA] Created: (RF-1488) a4j:support onsubmit with return confirm('question') not working
by Tomislav Jakopec (JIRA)
a4j:support onsubmit with return confirm('question') not working
----------------------------------------------------------------
Key: RF-1488
URL: http://jira.jboss.com/jira/browse/RF-1488
Project: RichFaces
Issue Type: Bug
Environment: Jboss 4.2.2, RF 3.1.3 snapshot
Reporter: Tomislav Jakopec
working example, but when I click cancel it also does ajax request.
<t:outputText styleClass="velikaSlova" id="strucnaSprema"
value="#{radnoMjesto.strucnaSprema.naziv.naziv}">
<a:support event="onclick"
action="#{radnoMjesto.setStrucnaSprema(null)}"
onsubmit="confirm('#{messages['zajednicke.ponistiVrijednost']}');"
reRender="strucnaSprema" />
</t:outputText>
not working example
<t:outputText styleClass="velikaSlova" id="strucnaSprema"
value="#{radnoMjesto.strucnaSprema.naziv.naziv}">
<a:support event="onclick"
action="#{radnoMjesto.setStrucnaSprema(null)}"
onsubmit="return confirm('#{messages['zajednicke.ponistiVrijednost']}');"
reRender="strucnaSprema" />
</t:outputText>
when I click OK it doesn't do ajax request
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years
[JBoss JIRA] Created: (RF-1015) Togglecontrol component doesn't rendered
by Ilya Shaikovsky (JIRA)
Togglecontrol component doesn't rendered
----------------------------------------
Key: RF-1015
URL: http://jira.jboss.com/jira/browse/RF-1015
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.1
Reporter: Ilya Shaikovsky
Assigned To: Maksim Kaszynski
Fix For: 3.1.1, 3.2.0
<rich:togglePanel id="panel" initialState="empty"
switchType="client">
<f:facet name="first">
<h:panelGroup>
<rich:toggleControl for="helloForm:panel" value="Empty "
switchToState="empty"/>
<rich:toggleControl for="helloForm:panel" value=" Second"
switchToState="second"/>
</h:panelGroup>
</f:facet>
<f:facet name="second">
<h:panelGroup>
<rich:toggleControl for="helloForm:panel" value="Empty "
switchToState="empty"/>
<rich:toggleControl for="helloForm:panel" value=" first"
switchToState="first"/>
</h:panelGroup>
</f:facet>
<f:facet name="empty">
<h:panelGroup>
<rich:toggleControl for="helloForm:panel" value="first "
switchToState="first"/>
<rich:toggleControl for="helloForm:panel" value=" second"
switchToState="second"/>
</h:panelGroup>
</f:facet>
</rich:togglePanel>
Nothing rendered on the page. If I change switchType to ajax for example - links are appear.
User that reproted this doesn't use faselets and under JSP he has:
Stack Trace?
java.lang.IllegalArgumentException: Component j_id_jsp_407121277_4 attribute switchToState must be a
value reference, was empty
at org.ajax4jsf.webapp.taglib.UIComponentTagBase.setValueBinding(UIComponentTagBase.java:375)
at org.richfaces.taglib.ToggleControlTag.setProperties(ToggleControlTag.java:977)
at javax.faces.webapp.UIComponentTag.createComponent(UIComponentTag.java:209)
at javax.faces.webapp.UIComponentClassicTagBase.createChild(UIComponentClassicTagBase.java:476)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years