Example of using frames in JSF
I am considering using frames in my JSF/JSP page but am having trouble getting started. I'd like to display my page as
Frame 2 | Frame1
Frame 3 |
I started using iFrames in my JSP page but because I needed Frame1 to be resizable, I dropped iFrames and started using Frames.
I wrote my JSP page to contain these frames. My JSF project compiles successfully but at runtime, my page appears blank in the browser window.
Can someone give me an example of using frames in a JSF/JSP page or point out the error in my JSP.
My page looks like:
<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
<jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
<f:view>
<ui:page binding="#{Page1.page1}" id="page1">
<ui:html binding="#{Page1.html1}" id="html1">
<ui:head binding="#{Page1.head1}" id="head1">
<ui:link binding="#{Page1.link1}" id="link1" url="/resources/stylesheet.css"/>
</ui:head>
<ui:body binding="#{Page1.body1}" id="body1">
<frameset rows="16%,84%">
<frame name="top" src="faces/overview/overview.html"/>
<frameset cols="30%,70%">
<frame name="left" src="faces/overview/leftPage.jsp"/>
<frameset rows="20%,80%">
<frame name="right" src="faces/overview/rightPage.jsp"/>
<frame name="right2" src="faces/overview/rightPage.jsp"/>
</frameset>
</frameset>
</frameset>
</ui:body>
</ui:html>
</ui:page>
</f:view>
</jsp:root>
thanks,
tsc
<frameset> should not be the child of the <body> element. It should be the child of <html> element.
This works:
<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
<jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
<f:view>
<ui:page id="page1">
<ui:html id="html1">
<ui:head id="head1">
<ui:link id="link1" url="/resources/stylesheet.css"/>
</ui:head>
<frameset cols="30%,70%">
<frame name="left" src="faces/Page1.jsp"/>
<frameset rows="80%,20%">
<frame name="top" src="faces/rightPage.jsp"/>
<frame name="bottom" src="faces/bottomPage.jsp"/>
</frameset>
</frameset>
</ui:html>
</ui:page>
</f:view>
<ui:form binding="#{bean.form1}" id="form1"/>
</jsp:root>
thanks,
tsc
Similar Messages
-
Can anyone provide an example on how to use frames inside JSF? I don't know how to define the framesets inside the jsf file. A simple example will go a long way. Thanks.
Nope, I'm not big on samples, especially of code I've never tried to write. Give it a try, if you have a problem post your code and we'll take a look.
-
Is it possible to partially export a video using frame blending?
For example, I have a video intro that, after being uploaded and processed on YouTube, looks very choppy. However, if I export it using frame blending, it looks perfectly fine. The down side is that the rest of the video looks somewhat more blurry, as frame blending tends to do. I like how fluid the intro is when frame blended, but I perfer the rest of the video when it's just exported normally. I found an option called frame blend under the clip's video options, making me think that I could fix my problem, but it didn't seem like it did anything at all when I exported it. Is what I'm trying to achieve actually possible, or will I just have to deal with it, one way or the other?
1. I export in H.264 with the preset HDTV 720p 29.97 fps High Quality. I would use the YouTube preset, but it compresses the audio to a point where it sounds terrible. I'm sure there's a way to fix this, but I don't know enough about it to do so myself.
2. My sequence also runs at 29.97 fps.
3. The intro consists of several game capture clips all .avi at what I think is 29 fps. Many of the clips are sped up to at least 200%. -
Navigation problem when using tiles with JSF
Hi all,
I m using tiles with JSF. i have included all the libraries and jsp page is rendered properly. but when i use <h:commandLink> in the body part of the JSP , i cannot go to the specified link. when we use tiles, what changes need to be done in faces-config file?? i mean what navigation rule we need to specify ??Hello, I have the same problem; JSF+Tiles = No navigation.
One basic question is should I reference the parent jsp or the included body jsp in the faces-config.xml file.
For example: The login.jsp is a main tiles page that includes a menu.jsp, header.jsp & a loginBody.jsp.
Hence the faces-config could have this rule;
<navigation-rule>
<from-view-id>/login.jsp</from-view-id>
<navigation-case>
<to-view-id>/catalog.jsp</to-view-id>
</navigation-case>
</navigation-rule>
(I've left the outcome tag out to simplify this post)
Or, I could refer loginBody.jsp in the navigation rule;
<navigation-rule>
<from-view-id>/loginBody.jsp</from-view-id>
<navigation-case>
<to-view-id>/catalog.jsp</to-view-id>
</navigation-case>
</navigation-rule>
The loginBody.jsp has a commandbutton which a user clicks which starts the navigation.
Neither seems to work unfortunately & I'm a stuck.
Thanks -
Hi guys
I am trying to connect Pojos with jsf. I 've found that the problem is in the ejbs.
I am using eclipse 3.1.1, jboss-4.0.4RC1 and myfaces.
I think the application doesn't inicialize the context. Because all class work with servlet. I already have tested it.
The error shows me
0:20:29,981 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
javax.faces.el.EvaluationException: Cannot get value for expression '#{PropiedadesBean.allProperties}'
at org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:397)
at javax.faces.component.UIData.getValue(UIData.java:779)
at javax.faces.component.UIData.createDataModel(UIData.java:545)
at javax.faces.component.UIData.getDataModel(UIData.java:534)
at javax.faces.component.UIData.getRowCount(UIData.java:103)
at org.apache.myfaces.renderkit.html.HtmlTableRendererBase.encodeInnerHtml(HtmlTableRendererBase.java:124)
at org.apache.myfaces.renderkit.html.HtmlTableRendererBase.encodeChildren(HtmlTableRendererBase.java:94)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:319)
at javax.faces.webapp.UIComponentTag.encodeChildren(UIComponentTag.java:343)
at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:251)
at org.apache.myfaces.taglib.UIComponentBodyTagBase.doEndTag(UIComponentBodyTagBase.java:55)
at org.apache.jsp.paginas.propiedades_jsp._jspx_meth_h_dataTable_0(org.apache.jsp.paginas.propiedades_jsp:196)
at org.apache.jsp.paginas.propiedades_jsp._jspx_meth_h_form_0(org.apache.jsp.paginas.propiedades_jsp:145)
at org.apache.jsp.paginas.propiedades_jsp._jspx_meth_f_view_0(org.apache.jsp.paginas.propiedades_jsp:113)
at org.apache.jsp.paginas.propiedades_jsp._jspService(org.apache.jsp.paginas.propiedades_jsp:78)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:415)
at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:693)
at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:660)
at org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:49)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:415)
at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:54)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:174)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.faces.el.EvaluationException: org.jboss.jose.db.PropiedadesBean
at org.apache.myfaces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:78)
at org.apache.myfaces.el.ELParserHelper$MyPropertySuffix.evaluate(ELParserHelper.java:532)
at org.apache.commons.el.ComplexValue.evaluate(ComplexValue.java:145)
at org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:378)
... 77 more
Caused by: javax.faces.el.EvaluationException: Bean: org.jboss.jose.db.PropiedadesBean, property: allProperties
at org.apache.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolverImpl.java:404)
at org.apache.myfaces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:71)
... 80 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolverImpl.java:400)
... 81 more
Caused by: java.lang.NullPointerException
at org.jboss.jose.db.PropiedadesBean.getAllProperties(PropiedadesBean.java:71)
... 86 more
10:20:30,001 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
javax.faces.FacesException: Cannot get value for expression '#{PropiedadesBean.allProperties}'
at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:421)
at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:693)
at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:660)
at org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:49)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:415)
at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:54)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:174)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.jasper.JasperException: Cannot get value for expression '#{PropiedadesBean.allProperties}'
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:370)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:415)
... 50 more
10:20:30,022 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
javax.faces.FacesException: Cannot get value for expression '#{PropiedadesBean.allProperties}'
at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:421)
at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:693)
at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:660)
at org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:49)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:415)
at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:54)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:174)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.jasper.JasperException: Cannot get value for expression '#{PropiedadesBean.allProperties}'
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:370)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:415)
... 50 more
10:20:30,032 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
javax.faces.FacesException: Cannot get value for expression '#{PropiedadesBean.allProperties}'
at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:421)
at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:54)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:174)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.servlet.ServletException: Cannot get value for expression '#{PropiedadesBean.allProperties}'
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:121)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:693)
at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:660)
at org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:49)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:415)
... 25 moreMy jsf is that
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>propiedad</title>
</head>
<body>
<f:view>
<h:form id ="Properties">
<h:dataTable id ="Propiedades" value="#{PropiedadesBean.allProperties}" var="prop" border="1">
<h:column>
<f:facet name="header">
<h:outputText value="Referencia"></h:outputText>
</f:facet>
<h:outputText value="#{prop.referencia}"></h:outputText>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Habitaciones"></h:outputText>
</f:facet>
<h:outputText value="#{prop.nHabitaciones}"></h:outputText>
</h:column>
</h:dataTable>
</h:form>
</f:view>
</body>
</html>My bean is that
import java.io.Serializable;
import java.util.List;
import java.util.ArrayList;
import javax.ejb.Local;
import javax.ejb.Remote;
import javax.ejb.Stateless;
import javax.faces.context.FacesContext;
import javax.faces.el.ValueBinding;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;
@Stateless (name="propiedadesLocal")
public class PropiedadesBean implements LocalPropiedades, Serializable {
@PersistenceContext (unitName="test")
private EntityManager em;
public List <Propiedad> getAllProperties() {
ArrayList<Propiedad> propiedades = new ArrayList<Propiedad>();
ValueBinding beanValueBinding = facesContext.getApplication().createValueBinding("#{propiedadesBean.allProperties}");*/
Query q = em.createQuery("From propiedades");
for (Object o: q.getResultList()) {
propiedades.add((Propiedad) o);
return propiedades;
}this statement doesn't work
Query q = em.createQuery("From propiedades");
When I put a checkpoint. I see the em variable is null.
Here I've got only a function returns a ArrayList. This class implements the business logic.
My another class implements the pesistence is that.
package org.jboss.jose.db;
import javax.persistence.*;
import java.util.*;
import java.io.Serializable;
import javax.persistence.*;
import javax.persistence.Id;
@Entity
@Table(name="propiedades")
public class Propiedad implements Serializable{
private int referencia;
private double precio1;
private String referenciaCliente;
private int nHabitaciones;
private int cuartosDeBa�o;
private Empleado empleado;
//static final long serialVersionUID = 1L;;
public Propiedad(){};
public int getCuartosDeBa�o() {
return cuartosDeBa�o;
public void setCuartosDeBa�o(int cuartosDeBa�o) {
this.cuartosDeBa�o = cuartosDeBa�o;
public int getNHabitaciones() {
return nHabitaciones;
public void setNHabitaciones(int habitaciones) {
nHabitaciones = habitaciones;
public double getPrecio1() {
return precio1;
public void setPrecio1(double precio1) {
this.precio1 = precio1;
@Id //(generate = GeneratorType.AUTO)
@GeneratedValue
@Column (name = "Referencia")
public int getReferencia() {
return referencia;
public void setReferencia(int referencia) {
this.referencia = referencia;
public String getReferenciaCliente() {
return referenciaCliente;
public void setReferenciaCliente(String referenciaCliente) {
this.referenciaCliente = referenciaCliente;
//@JoinColumn (name = "idEmpleado")
@ManyToOne
public Empleado getEmpleado() {
return empleado;
public void setEmpleado(Empleado empleado) {
this.empleado = empleado;
The servlet that works
package org.jboss.jose.web;
import javax.servlet.http.HttpServlet;
import java.io.IOException;
import java.io.PrintWriter;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
//import java.io.IOException;
import org.jboss.jose.db.*;
//import org.jboss.ejb.PropiedadesBean;
public class PropiedadServlet extends HttpServlet {
private LocalPropiedades propiedadesBean;
private EmpleadosBean empleadosBean;
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
this.mostrarPropiedades(req, resp);
public void init() throws ServletException {
try {
Context context = new InitialContext();
this.propiedadesBean = (LocalPropiedades) context.lookup("inmovil/propiedadesLocal/local");
this.propiedadesBean.addEmpleadoPropiedad("jose",1,"1",1000.00,"1000",1,1);
} catch (NamingException e) {
// TODO Auto-generated catch block
System.out.println(e.getMessage());
// e.printStackTrace();
private void mostrarPropiedades(HttpServletRequest req, HttpServletResponse resp) throws ServletException ,IOException {
PrintWriter out = resp.getWriter();
for (Propiedad prop: this.propiedadesBean.getAllProperties()) {
out.pI think that I don't load. But I don't know where I write the below line.Than it's clear that you'll get a NullPointerException.
But I don't know where I write the below line.
Context context = new InitialContext();
this.propiedadesBean = (LocalPropiedades)
context.lookup("inmovil/propiedadesLocal/local");Whenever you need it. For example within an ActionHandler which loads the bean
and makes a DTO Object (Bean used by the JSF Page) available for the JSF Page.
But where you actually have to load the Bean depends on your design.
andi -
Dear All
I want to add If condition in JSF page .
How can I use EL at JSF page
I want ot Add If condition .
With Thanks and Regards
Gunjan BohraActually By Problem Is Regarding DataTable Binding Method
<f:subview id="vesselist" rendered="#{vesselBaseVO.dfsVO.dfsData.dfsResultBeanListSize>0}" >
<t:dataTable value="#{vesselBaseVO.dfsVO.dfsData.dfsResultBeanList}"
sortable="false"
var="result"
id="dfsTable"
forceId="true"
rowClasses="AlternateRow1, AlternateRow2"
columnClasses="TableColumnText, TableColumnText, TableColumnText, TableColumnText, TableColumnText, TableColumnText, TableColumnText, TableColumnNumber, TableColumnNumber, TableColumnText"
headerClass="TableHeader"
frame="box"
width="100%"
preserveDataModel="false"
rows="10" binding="#{vesselBackingBean.searchResultDataTable}" rendered="true">
</t:dataTable>
</f:subview>Although I had block it with renderer attribute ,
DataTable would not show if resultList size is 0 but
DATA Table binding method is still called even dataTable is not rendered on page I want to block that binding method calling ...
How can I do that !!!! -
CAN periodic transmit message with different modes using Frame API's
I want to transmit a CAN message periodically using Frame API's. I am able to send messages which dont have modes inside the message. For some messages having multiplexer in ".ncd " files and inside that multiplexer having different modes. Now in order to send all the modes of that message periodically by configuring them once by using Frame API's i did not find a way. I am able to send messages but the last updated mode is only sent periodically. Is there any way that CAN message having different modes can be sent periodically, updating all modes periodically automatically using Frame API's.
Hello Kpraveen,
You could set the period for N*Period, N being the number of modes. You just need to make sure your application changes the modes fast enough to update each periodic frame.
For example, say you have 2 modes and the frame's period should be 10ms. That means that you would like that frame to go out twice every 10ms, updating mode 1 and then mode 2. So, that means that the frames period can be 5ms.
1. It will start by updating mode1
2. 5ms later, it will update mode2
3. 5ms later it will update mode1 again
mode 1 really has a period of 10ms...
You just have to make sure that you can update the frame fast enough, or switch between modes fast enough, or you will send the same mode twice.
Let me know if this helps, or if I an not understanding this properly. Have a great day.
O. Proulx
National Instruments
www.ni.com/support -
Can we have an example of using update, insert, and delete stored procedure
I would like to see an example of using retrieve (return resultset), update, insert, and delete stored procedures in JSF. I need to see syntax how JSF can call those stored procedures. This option is absolutely important when building web-application. Currently, I haven't found resource to do for this purpose yet. The database can be any such Oracle, DB2, pointbase, etc that support stored procedures.
Anyone knows?
Thanks,
Tue VuHi ttv,
I asked around a bit and here's some more info:
To bind a ResultSet to a read only Data Table component just set the "value" property of the Data Table component to point at it, and JSF will synthesize a DataModel around it.
* Note that because we can't call the stored procedure at design time, Creator can't do the fancy table layout stuff it does for rowsets. You'll need to hand craft the columns just like the Google Client example.
* As I mentioned previously, you will have to manually code the stored procedure access in your java code - see the code clip I mentioned in previous reply (and if this is via a stored procedure, then any textbook about JDBC will undoubtedly have examples). Simplest way might be a getter method on the page bean that contains the call to the stored procedure and returns the resulting ResultSet object.
* Don't forget to close the result set - we typically do this at the end of the request (i.e. add a close in the afterRenderResponse() method.
* Don't throw exceptions - or if you have to, make sure you close the result set in a finally clause (thrown exceptions bypass the afterRenderResponse method in the lifecycle).
* You give up on the caching provided by our RowSetDataModel (which can't be connected to a ResultSet even manually), so I would recommend that you only use datatables to display the data and then go to a single row page to do edits/deletes (similar to the TwoPage example in AppModel and the Update, Insert Delete tutorial).
And yes please do submit an example - we will gladly post it!!! :) The best way to submit this kind of thing would be through:
http://developers.sun.com/prodtech/javatools/jscreator/reference/codesamples/sampleapps.html
on the right side, Related Links, under Creator Heros, click Submit Content and there you can send it in!
Hope this helps!
Val -
Must I use frames for this?
I have some external links that I'd like to keep within a
site versus opening a new browser window (for branding purposes).
Do I need to set up a page with frames to essentially bring those
sites into my main content area?
Thanks!
EricThis is a multi-part message in MIME format.
--------------050207030400080007010702
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
sorry, i left this part out of my last message, and just
wanted to
mention that i'm aware of the page history button next to the
back
button that allows you to choose which page to go back to,
and use it
often. but many people do not know about that handy option,
and would
instead just keep clicking the button until they get back to
where they
want to be.
that's all!
courtney (n h c) wrote:
> sorry, but i disagree. what if the visitor is taken to
the other site
> and starts clicking around in that site? then they have
to click the
> back button who knows how many times to get back to the
page they were
> on to begin with. i, personally, would much rather just
have to click
> the close button once on the new tab or window, than
click "back"
> however many times it takes me to back to the original
page.
> obviously, everyone has their own preferences, but i'm
gonna have to
> go with one click over several on this one. not to
mention, what if
> the new site has some kind of form on it that they fill
out? i doubt i
> have to tell you what happens with a lot of forms when
you try to
> click back to where you were before the form.
>
> also, what if the visitor gets caught up in the new
website and
> forgets where they started in the first place? the back
button won't
> help then. they're just gone. and my company has lost a
potential
> customer. but if the new site is in a different tab or
window, when
> they close it they'll see my site again, and be all
like, "oh yeah! i
> was looking at this site before. guess i'll look at it
some more."
>
> i guess i'm not so worried about people who don't notice
when a new
> window or tab is opening. it's fairly obvious when that
happens. and
> if it's that much of a concern, you can add an alert
pop-up that lets
> them know the link is opening a new window. i have a
link on one of
> the websites i work on that has an alert that says
something like
> "this link is opening a different website in a new
window. close that
> window to return to this site." i did this because
having it open in
> the same window was confusing people. they thought the
new site was
> part of ours.
>
> i'd be interested in other people's thoughts on this.
>
> Michael Fesser wrote:
>> .oO(courtney (n h c))
>>
>>
>>> yeah, that would probably be the only way to do
it. but i'd recommend
>>> just opening them in a new window. i've done it
with frames before, and
>>> it just doesn't work well. you're basically
trying to fit one website
>>> into another, and it generally looks horrible
(not to mention the
>>> various drawbacks involved in using frames in
general). i understand the
>>> desire to keep people on your site, but you can
achieve that by having
>>> the links open in a new window/tab, because your
site will still be
>>> there when the visitor closes the new
window/tab.
>>>
>>
>> It's an illusion that you can keep visitors on your
own site if you open
>> external links in a new window. People know how to
use a "back" button -
>> it's the second-most used function in a browser. New
windows/tabs might
>> even be confusing, because they break(!) this
important function.
>>
>> Frames and the 'target' attribute are not allowed in
all strict (X)HTML
>> standards for good reasons. It's best to simply link
to the other site,
>> without trying to mess with how or where the browser
will display it.
>> Let the browser and the user decide such things.
>>
>> <a href="
http://example.com">another
site</a>
>>
>> That's it. Can't get easier.
>>
>> Micha
>>
--------------050207030400080007010702
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
sorry, i left this part out of my last message, and just
wanted to
mention that i'm aware of the page history button next to the
back
button that allows you to choose which page to go back to,
and use it
often. but many people do not know about that handy option,
and would
instead just keep clicking the button until they get back to
where they
want to be.<br>
<br>
that's all!<br>
<br>
courtney (n h c) wrote:
<blockquote cite="mid:[email protected]"
type="cite">
<meta content="text/html;charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
sorry, but i disagree. what if the visitor is taken to the
other site
and starts clicking around in that site? then they have to
click the
back button who knows how many times to get back to the page
they were
on to begin with. i, personally, would much rather just have
to click
the close button once on the new tab or window, than click
"back"
however many times it takes me to back to the original page.
obviously,
everyone has their own preferences, but i'm gonna have to go
with one
click over several on this one. not to mention, what if the
new site
has some kind of form on it that they fill out? i doubt i
have to tell
you what happens with a lot of forms when you try to click
back to
where you were before the form.<br>
<br>
also, what if the visitor gets caught up in the new website
and forgets
where they started in the first place? the back button won't
help then.
they're just gone. and my company has lost a potential
customer. but if
the new site is in a different tab or window, when they close
it
they'll see my site again, and be all like, "oh yeah! i was
looking at
this site before. guess i'll look at it some more."<br>
<br>
i guess i'm not so worried about people who don't notice when
a new
window or tab is opening. it's fairly obvious when that
happens. and if
it's that much of a concern, you can add an alert pop-up that
lets them
know the link is opening a new window. i have a link on one
of the
websites i work on that has an alert that says something like
"this
link is opening a different website in a new window. close
that window
to return to this site." i did this because having it open in
the same
window was confusing people. they thought the new site was
part of
ours. <br>
<br>
i'd be interested in other people's thoughts on
this.<br>
<br>
Michael Fesser wrote:
<blockquote
cite="mid:[email protected]"
type="cite">
<pre wrap="">.oO(courtney (n h c))
</pre>
<blockquote type="cite">
<pre wrap="">yeah, that would probably be the only way
to do it. but i'd recommend
just opening them in a new window. i've done it with frames
before, and
it just doesn't work well. you're basically trying to fit one
website
into another, and it generally looks horrible (not to mention
the
various drawbacks involved in using frames in general). i
understand the
desire to keep people on your site, but you can achieve that
by having
the links open in a new window/tab, because your site will
still be
there when the visitor closes the new window/tab.
</pre>
</blockquote>
<pre wrap=""><!---->
It's an illusion that you can keep visitors on your own site
if you open
external links in a new window. People know how to use a
"back" button -
it's the second-most used function in a browser. New
windows/tabs might
even be confusing, because they break(!) this important
function.
Frames and the 'target' attribute are not allowed in all
strict (X)HTML
standards for good reasons. It's best to simply link to the
other site,
without trying to mess with how or where the browser will
display it.
Let the browser and the user decide such things.
<a href=<a moz-do-not-send="true"
class="moz-txt-link-rfc2396E"
href="
http://example.com">"http://example.com"</a>>another
site</a>
That's it. Can't get easier.
Micha
</pre>
</blockquote>
</blockquote>
</body>
</html>
--------------050207030400080007010702-- -
I have made an index.htm that contains two frames (top and main).
Did set the top with no scroll and main on default. The problem now is that if the page in main is too long (needs scrolling), the entire page is moving some millimeters to the left. Can you tell me what setting I should activate in order to prevent this minor page shift? See attachement for example.
Thanks for sharing!Any particular reason you are using frames?
Read these articles and see if they change your mind about the use of them :-)
http://apptools.com/rants/framesevil.php
http://www.html-faq.com/htmlframes/?framesareevil
Nadia
Adobe® Community Expert : Dreamweaver
Unique CSS Templates |Tutorials |SEO Articles
http://www.DreamweaverResources.com
Book: Ultimate CSS Reference
http://www.sitepoint.com/launch/005dfd4/3/133
http://twitter.com/nadiap -
Is there an example to use interface to replace if then else pattern in F#
is there an example to use interface to replace if then else pattern in F#
i want to make match pattern with only one rule to represent dynamic number of rules which is use
let rec fun1 m number fun2param =
match m with
| fun2param(a,b,number) -> ****rewrite terms ****
let fun2param number =
if number = 1 then
function.....
elif number = 2 then
function ....
computing nightmareIn general, you use a match
let fun2param number =
match number with
| 1 -> function.....
| 2 -> function ....
in the same way as you would use a `switch` construct in 'C' in place of a repeated if/elif...elif/else
Your request is somewhat vague, so I'm not sure whether you would benefit from wrapping that behind an active pattern. -
Example for Using WDR_SELECT_OPTIONS and SALV_WD_TABLE in one View
Hello,
I need an Example for Using the WD-Components WDR_SELECT_OPTIONS and SALV_WD_TABLE
in one view. Can anybody help me?
Thanks
TotoHello,
Please see these:
[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3439404a-0801-0010-dda5-8c14514d690d]
[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/21706b4b-0901-0010-7d93-c93b6394bc1d]
[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/39c54fe7-0b01-0010-0eb6-d63ac2bdd637]
[/people/rich.heilman2/blog/2005/12/20/using-select-options-in-a-web-dynproabap-application]
[/people/thomas.jung3/blog/2005/12/21/webdynpro-abap-alv]
[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3133474a-0801-0010-d692-81827814a5a1]
[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/bd28494a-0801-0010-45a3-fc359d82d3e8]
Regards. -
How to create a dynamic mapping of columnar at the Runtime using ADF or JSF
How to create a dynamic GUI at the Runtime using ADF or JSF in JDeveloper 11g.
What I am trying to build is to allow the user to map one column to another at the run time.
Say the column A has rows 1 to 10, and column B has rows 1 to 15.
1. Allow the user to map rows of the two tables
2. An dhte rows of the two columns are dynamically generated at the run time.
Any help wil be appreciated.....
ThnaksOracle supports feedback form metalink was; "What you exactly want to approach is not possible in Htmldb"
I can guess that it is not
exactly possible since I looked at the forums and documantation etc. but
couldnt find anything similar than this link; "http://www.oracle.com/technology/products/database/htmldb/howtos/tabular_form.h
t". But this is a very common need and I thought that there must be at least a workaround?
How can I talk or write to Html Db development team about this since any ideas, this is very important item in a critial project?
I will be able to satisfy the need in a functional way if I could make the
select lists in the tabular form dynamic with the noz_id;
SELECT vozellik "Ãzellik",
htmldb_item.select_list_from_query(2, t2.nozellik_deger, 'select vdeger
a,vdeger b from tozellik_deger where noz_id = 10') "Select List",
htmldb_item.text(3, NULL, t2.vcihaz_oz_deger) "Free Text"
FROM vcihaz_grup_ozellik t1, tcihaz_oz t2
WHERE t1.noz_id = t2.noz_id
AND t2.ncihaz_id = 191
AND t1.ngrup_id = 5
But what I exactly need i something like this dynamic query;
SELECT
vozellik "Ãzellik",
CASE
WHEN (t2.nozellik_deger IS NULL AND t2.vcihaz_oz_deger IS NOT NULL) THEN
'HTMLDB_ITEM.freetext(' || rownum || ', NULL) ' || vozellik
WHEN (t2.nozellik_deger IS NOT NULL AND t2.vcihaz_oz_deger IS NULL) THEN
'HTMLDB_ITEM.select_list_from_query(' || rownum ||
', NULL, ''select vdeger a,vdeger b from tozellik_deger where noz_id = ' ||
t1.noz_id || ''' ) ' || vozellik
END AS "DeÄer"
FROM vcihaz_grup_ozellik t1, tcihaz_oz t2
WHERE t1.noz_id = t2.noz_id
AND t2.ncihaz_id = 191
AND t1.ngrup_id = 5
Thank you very much,
Best regards.
H.Tonguc -
how come when i make a web site and i test it in my local server it works fine when i tranfer to server certain things do not work example i used javascript to put in a prompt bar for a newsletter page at the server it did not work but at local it did also it works at MOZZILLA but not internet explorer i also have cs4 was wondering if there is a way to test a page in dreamweaver and then transfer THANK YOU X-FACTOR-MEDIA
In future, please try to make the subject line of your posts shorter. In this case the following would have been sufficient: "JavaScript works locally, but not on remote server".
Short, but meaningful subject lines make it easier for others to identify what your question is about, and often bring faster help. -
How can I download itunes when I get the following errors ..ituneshelper did not install correctly error 7..I .have installed and uninstalled a dozen times with various fixes...b noir for example and used Revo to clean up.
This has been a problem for 6 weeks now, I retry when I have time and patience and use my other laptop which is also Windows 7 and runs with no problem.
Every attempt fails when all seems fine on the desktop and I try to log on to Itunes I get the errors.
Any help greatly appreciated.
billymacGo to Control Panel > Add or Remove Programs (Win XP) or Programs and Features(Later)
Remove all of these items in the following order:
iTunes
Apple Software Update
Apple Mobile Device Support (If this won't uninstall press on)
Bonjour
Apple Application Support
Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
See also HT1925: Removing and Reinstalling iTunes for Windows XP or HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
Should you get the error iTunes.exe - Entry Point Not Found after the above reinstall then copy QTMovieWin.dll from:
C:\Program Files (x86)\Common Files\Apple\Apple Application Support
and paste into:
C:\Program Files (x86)\iTunes
The above paths would be for a 64-bit machine. Hopefully the same fix with the " (x86)" omitted would work on 32-bit systems with the same error.
tt2
Maybe you are looking for
-
I am unable to update new software that was pushed for my iPhone 4 S I have downloaded I tunes my phone is conected to my computer what are the next steps to complete software update that I was not aware of and my phone does not connect to the inte
-
How to load data in a particular order ?
Hi I am trying to load data from an oracle view to a oracle table. Its working fine. However the problem is, the load is not in a particular order. I mean the order in which the data is loaded in target table is not fixed. It means sometimes a partic
-
Hallo, to the following pgm I had question: static void printPrimes (int max) (= wavy bracket; boolean(should be angular brackets) sieve = new booolean (angular br max+1 angular br) int i,j; for (i=2; i = max;i++)sieve(angluarbr i angular br)= true i
-
Does setQueryTimeout work or not?
We're using oracle 8i on windows nt with the classes111.zip jdbc library. If I lock a table and then my code tries to update it, my query hangs even though I've set the query timeout to 5 seconds. I've read in several discussion groups that there is
-
Hello Experts, I want to upgrade my oracle version 10.2.0.1.0 to 10.2.0.5.0. My Machine is 64bit and OS is Red Hat Enterprise Linux 5 Linux 64bit. Which patch i have install? Thanks, Oracle DBA P