[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-4220) <s:formattedText> + <rich:editor useSeamText=true> exception with use of <object ... > :flash video displaying
by bb bb (JIRA)
<s:formattedText> + <rich:editor useSeamText=true> exception with use of <object ... > :flash video displaying
--------------------------------------------------------------------------------------------------------------
Key: JBSEAM-4220
URL: https://jira.jboss.org/jira/browse/JBSEAM-4220
Project: Seam
Issue Type: Bug
Affects Versions: 2.1.2.CR2
Environment: Seam 2.1.2CR2, RichFaces 3.3.1,Eclipse 3.3,JBoss 4.22,WinXp
Reporter: bb bb
I would like to display a flash video with rich:editor the use of useSeamText=true parameter
with <s:formattedText> displaying tags. But it doesn't work.
1.
If i use useSeamText=false I get the following error when I would like to display the value of the editor.
a.
If I remove the escape="false" parameter the <object...> is escaped, so the video is not appeared.
<h:outputText value="#{editortext}" escape="false"/> <br/> <--working version,but i get exception
b.
With the use of <s:formattedText value="#{editortext}"/> the video is not appear, because not escape parameter.
and I get the same exception.
2:57:35,609 INFO [STDOUT] invalid element 'object'
12:57:35,609 ERROR [STDERR] invalid element 'object'
12:57:35,609 ERROR [STDERR] at org.jboss.seam.text.SeamTextParser.openTag(SeamTextParser.java:2268)
12:57:35,609 ERROR [STDERR] at org.jboss.seam.text.SeamTextParser.html(SeamTextParser.java:946)
12:57:35,609 ERROR [STDERR] at org.jboss.seam.text.SeamTextParser.body(SeamTextParser.java:2414)
12:57:35,609 ERROR [STDERR] at org.jboss.seam.text.SeamTextParser.html(SeamTextParser.java:969)
12:57:35,609 ERROR [STDERR] at org.jboss.seam.text.SeamTextParser.text(SeamTextParser.java:732)
12:57:35,609 ERROR [STDERR] at org.jboss.seam.text.SeamTextParser.startRule(SeamTextParser.java:614)
12:57:35,609 ERROR [STDERR] at com.backbone.dvc.util.TextUtil.getFormattedContent(TextUtil.java:26)
12:57:35,609 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
12:57:35,609 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
12:57:35,609 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
12:57:35,609 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
12:57:35,609 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
12:57:35,609 ERROR [STDERR] at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32)
12:57:35,609 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
12:57:35,609 ERROR [STDERR] at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
12:57:35,609 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
12:57:35,609 ERROR [STDERR] at org.jboss.seam.bpm.BusinessProcessInterceptor.aroundInvoke(BusinessProcessInterceptor.java:51)
12:57:35,609 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
12:57:35,609 ERROR [STDERR] at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
12:57:35,609 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
12:57:35,609 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
12:57:35,609 ERROR [STDERR] at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)
12:57:35,609 ERROR [STDERR] at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)
12:57:35,609 ERROR [STDERR] at com.backbone.dvc.util.TextUtil_$$_javassist_seam_14.getFormattedContent(TextUtil_$$_javassist_seam_14.java)
12:57:35,609 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
12:57:35,609 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
12:57:35,609 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
12:57:35,609 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
12:57:35,609 ERROR [STDERR] at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:335)
12:57:35,609 ERROR [STDERR] at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:280)
12:57:35,609 ERROR [STDERR] at org.jboss.el.parser.AstMethodSuffix.getValue(AstMethodSuffix.java:59)
12:57:35,609 ERROR [STDERR] at org.jboss.el.parser.AstValue.getValue(AstValue.java:67)
12:57:35,609 ERROR [STDERR] at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
12:57:35,609 ERROR [STDERR] at com.sun.facelets.el.ELText$ELTextVariable.toString(ELText.java:174)
12:57:35,609 ERROR [STDERR] at com.sun.facelets.el.ELText$ELTextComposite.toString(ELText.java:115)
12:57:35,609 ERROR [STDERR] at com.sun.facelets.compiler.CommentInstruction.write(CommentInstruction.java:38)
12:57:35,609 ERROR [STDERR] at com.sun.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:39)
12:57:35,609 ERROR [STDERR] at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:269)
12:57:35,609 ERROR [STDERR] at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:242)
12:57:35,609 ERROR [STDERR] at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
12:57:35,609 ERROR [STDERR] at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:277)
12:57:35,609 ERROR [STDERR] at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:258)
12:57:35,609 ERROR [STDERR] at org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:220)
12:57:35,609 ERROR [STDERR] at org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:215)
12:57:35,609 ERROR [STDERR] at org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:120)
12:57:35,609 ERROR [STDERR] at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
12:57:35,609 ERROR [STDERR] at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:277)
12:57:35,609 ERROR [STDERR] at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:258)
12:57:35,609 ERROR [STDERR] at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:279)
12:57:35,609 ERROR [STDERR] at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:258)
12:57:35,609 ERROR [STDERR] at org.ajax4jsf.renderkit.html.AjaxOutputPanelRenderer.encodeChildren(AjaxOutputPanelRenderer.java:78)
12:57:35,609 ERROR [STDERR] at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
12:57:35,609 ERROR [STDERR] at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
12:57:35,609 ERROR [STDERR] at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
12:57:35,609 ERROR [STDERR] at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
12:57:35,609 ERROR [STDERR] at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
12:57:35,609 ERROR [STDERR] at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
12:57:35,609 ERROR [STDERR] at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
12:57:35,609 ERROR [STDERR] at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
12:57:35,609 ERROR [STDERR] at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
12:57:35,609 ERROR [STDERR] at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
12:57:35,609 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
12:57:35,609 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
12:57:35,609 ERROR [STDERR] at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:510)
12:57:35,609 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
12:57:35,609 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
12:57:35,609 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654)
12:57:35,609 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:445)
12:57:35,609 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
12:57:35,609 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:292)
12:57:35,609 ERROR [STDERR] at org.jboss.seam.web.RewriteFilter.process(RewriteFilter.java:98)
12:57:35,609 ERROR [STDERR] at org.jboss.seam.web.RewriteFilter.doFilter(RewriteFilter.java:57)
12:57:35,609 ERROR [STDERR] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
12:57:35,609 ERROR [STDERR] at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
12:57:35,609 ERROR [STDERR] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
12:57:35,656 ERROR [STDERR] at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
12:57:35,656 ERROR [STDERR] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
12:57:35,656 ERROR [STDERR] at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
12:57:35,656 ERROR [STDERR] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
12:57:35,656 ERROR [STDERR] at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
12:57:35,656 ERROR [STDERR] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
12:57:35,656 ERROR [STDERR] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)
12:57:35,656 ERROR [STDERR] at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
12:57:35,656 ERROR [STDERR] at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
12:57:35,656 ERROR [STDERR] at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)
12:57:35,656 ERROR [STDERR] at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)
12:57:35,656 ERROR [STDERR] at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
12:57:35,656 ERROR [STDERR] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
12:57:35,656 ERROR [STDERR] at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
12:57:35,656 ERROR [STDERR] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
12:57:35,656 ERROR [STDERR] at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53)
12:57:35,656 ERROR [STDERR] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
12:57:35,656 ERROR [STDERR] at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
12:57:35,656 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
12:57:35,656 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
12:57:35,656 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
12:57:35,656 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
12:57:35,656 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
12:57:35,656 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
12:57:35,656 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
12:57:35,656 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
12:57:35,656 ERROR [STDERR] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
12:57:35,656 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
12:57:35,656 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
12:57:35,656 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
12:57:35,656 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
12:57:35,656 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
12:57:35,656 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
12:57:35,656 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
12:57:35,656 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
12:57:35,656 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
12:57:35,656 ERROR [STDERR] at java.lang.Thread.run(Unknown Source)
12:57:35,656 ERROR [STDERR] Caused by: line 1:15: invalid element 'object'
12:57:35,656 ERROR [STDERR] at org.jboss.seam.text.SeamTextParser$DefaultSanitizer.createSemanticException(SeamTextParser.java:403)
12:57:35,656 ERROR [STDERR] at org.jboss.seam.text.SeamTextParser$DefaultSanitizer.validateHtmlElement(SeamTextParser.java:281)
12:57:35,656 ERROR [STDERR] at org.jboss.seam.text.SeamTextParser.openTag(SeamTextParser.java:2256)
12:57:35,656 ERROR [STDERR] ... 111 more
The value of the editor in the database:
<object width="100" height="100" data="http://www.youtube.com/v/F4fPv450OYM" type="application/x-shockwave-flash">
<param name="quality" value="-- Not set --" />
<param name="scale" value="-- Not set --" />
<param name="salign" value="-- Not set --" />
<param name="wmode" value="-- Not set --" />
<param name="src" value="http://www.youtube.com/v/F4fPv450OYM" />
<param name="align" value="-- Not set --" />
</object>
2.
If i use useSeamText=true I don't get an error, and the video is not displayed.
the <object ...> is not saved to the database(editor value)
--
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
15 years, 7 months
[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-4218) Accompaying CD or website (with sample DB and examples) for Dan Allens' SEAM IN ACTION book
by Martin Gainty (JIRA)
Accompaying CD or website (with sample DB and examples) for Dan Allens' SEAM IN ACTION book
-------------------------------------------------------------------------------------------
Key: JBSEAM-4218
URL: https://jira.jboss.org/jira/browse/JBSEAM-4218
Project: Seam
Issue Type: Feature Request
Affects Versions: 2.1.2.CR2
Environment: Note to Dan Allen
Can you post all of the code samples and DB create table and insert statements so folks like me can follow along?
Currently as i read your book all of the DB statements (CREATE TABLE, INSERT TABLE) statements are missing
Reporter: Martin Gainty
Fix For: 2.2.0.CR1
Following up on your promise to post DB tables and examples for SEAM IN ACTION to author Dan Allen
Can you post all of the code samples and DB create table and insert statements so folks like me can follow along?
Currently as i read your book all of the DB statements (CREATE TABLE, INSERT TABLE) statements are missing
and there are no examples available
Thanks,
Martin Gainty
ISBN 1933988401
--
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
15 years, 7 months
[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-3056) JPDL navigation and seam
by Florian Keusch (JIRA)
JPDL navigation and seam
------------------------
Key: JBSEAM-3056
URL: http://jira.jboss.com/jira/browse/JBSEAM-3056
Project: Seam
Issue Type: Task
Components: BPM
Reporter: Florian Keusch
hi
In our applications we have a navigation menu. When we use seam and some jpdl pageflows we have the following problem:
if we leave the pageflow with a <s:link propagation="end"> (e.g. clicking on the menu), then the pageflow conversation is ended but also an illegal navigation exception is thrown.
This issue was described on the seam framework: http://www.seamframework.org/Community/ProblemWithJPDLIllegalNavigation but I could not find it in this Jira.
It's not solved. In the code (PageFlow.java) there's a TODO where the illegal navigation ecxeption is thrown:
//now check that the restored view id matches what we expect
//from the pageflow node
//TODO: we need some way to disable this check, since users
// might want some adhoc nav in and out of a pageflow?
String viewId = Pages.getViewId(facesContext);
if ( !viewId.equals( getPage().getViewId() ) )
{
illegalNavigationError();
}
If we use <s:link propagation="none"> in our menu navigation then this will not cause a illegal navigation exception, but in the background the conversations are still there not ended.
fke
--
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
15 years, 7 months
[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-4213) Seam-Gen error when creating Seam-Gen Entities from database
by nmatrix nmatrix (JIRA)
Seam-Gen error when creating Seam-Gen Entities from database
------------------------------------------------------------
Key: JBSEAM-4213
URL: https://jira.jboss.org/jira/browse/JBSEAM-4213
Project: Seam
Issue Type: Bug
Components: Framework
Environment: Centos 5.2 x86_64 GNU/Linux
java version "1.6.0_11"
Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
JBoss Developer Studio
Version: 2.0.0.CR2
Build id: R200901291303
Build date: 01/29/2009 13:22
Java HotSpot(TM) 64-Bit Server VM (build 11.0-b16, mixed mode)
Reporter: nmatrix nmatrix
When trying to generate seam entities from database I encounter this error:
2009-05-31 14:55:18,384 ERROR main freemarker.runtime -
Error executing macro: outputValue
required parameter: property is not specified.
The problematic instruction:
----------
==> macro outputValue [on line 38, column 1 in util/TypeInfo.ftl]
in user-directive outputValue [on line 129, column 25 in view/edit.xhtml.ftl]
----------
Java backtrace for programmers:
----------
freemarker.template.TemplateException: Error executing macro: outputValue
required parameter: property is not specified.
at freemarker.core.Macro$Context.sanityCheck(Macro.java:181) ...
The error seems to occur consistently with table relations from a table that has a many to one relation to a parent table and a one to many on it's dependent table (where it's primary key is a foreign key) non-identifying relationship
--
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
15 years, 7 months