Jsf Listenersand richface Listeners

I am using richFaces and jsf for my front end screen's
I have two fields:
1.startdate
2.enddate
I want to validate
startdate always has to be less than enddate.
How to use the listener in richfaces (or) jsf for validate and
throw error message.
Please help me..
shashi..
Mycode
<rich:calendar id="start" required="true" requiredMessage="start date is required"
value="#{employee.instance.startdate}"
datePattern="MM/dd/yyyy" />
<rich:calendar id="endDate" required="true" requiredMessage="end date is required"
value="#{employee.instance.endDate}"
datePattern="MM/dd/yyyy" />

You may find this article useful: [http://balusc.blogspot.com/2007/12/validator-for-multiple-fields.html].

Similar Messages

  • Make a generic menu with JSf  or richfaces

    hi
    I Would like to make a generic panelmenu with jsf or richfaces (I use facelets and Seam). I'd like that the menu change its data following the authenticated user.
    Could any one help or have a good references.
    thanks
    regards

    Hi bibou
    Looking at http://livedemo.exadel.com/richfaces-demo/richfaces/panelMenu.jsf;jsessionid=96C860A9563AEE4C418EFDB66EF6AD5C?c=panelMenu,
    Could you not just render each panel menu item depending on a backing bean condition?
    E.g.
    <rich:panelMenuItem action="#{Navigation.testing}" id="Home" label="#{msg.label_home}" rendered="#{Navigation.renderHomeMenu}>
    </rich:panelMenuItem>
    {code}
    That way, depending on who is logged in and where they currently are within the site, etc, you can render different menuItems
    Regards,
    Victoria                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Jsf and richfaces version compatibility issue

    Hi,
    I am using JRE 1.5 , jsf 1.2 , richfaces 3.3.3 and deployed in Tomcat 6.0.18. I am getting following error.
    javax.servlet.ServletException: /allocator.xhtml @30,163 <rich:tree> Tag Library supports namespace: http://richfaces.org/rich, but no tag was defined for name: tree
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:321)
    root cause
    javax.faces.view.facelets.TagException: /allocator.xhtml @30,163 <rich:tree> Tag Library supports namespace: http://richfaces.org/rich, but no tag was defined for name: tree
         com.sun.faces.facelets.compiler.CompilationManager.pushTag(CompilationManager.java:289)
         com.sun.faces.facelets.compiler.SAXCompiler$CompilationHandler.startElement(SAXCompiler.java:228)
         com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
         com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
         com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
         com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
         com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
         com.sun.org.apache.xerces.internal.parsers.XML11Configuration
    Thanks,
    BPradhan

    In my development box , I can use any version of jre, tomcat.
    But, we have our department dev and prod server configured with jre 1.5 and tomcat 6.0.18
    Some other applications are running in those environment with jre 1.5 and tomcat 6.0.18. I cannot upgrade just for new application.
    when tomcat6 was downloaded in our department dev and prod server , they are installed with jre5. Subsequently servers are upgraded with jre6 but it seems like tomcat recognises jre5 not jre6. Let me know if i am wrong about jre version tomcat is trying to use.
    Also, can you help me with the environment I have and problems i am encountering with jsf and richfaces.
    Thanks,
    BPradhan
    Edited by: user618018 on Feb 1, 2013 5:03 PM

  • JSF with RichFaces application on SAP CE 7.1

    Hi
    We are trying to run our jsf application on SAP server. But sap is throwing the error:
    "Application error occurred during the request procession."
    Error occured in invoking event "contextInitialized()" on listener class com.sun.faces.config.ConfigureListener.
    Details: "The WebApplicationException log ID is [7E39AC51FF0B001B000003AC000D30641A8D49BEAD282A6D]."
    We are using the jars (richfaces-api-3.3.3..Final.jar, richfaces-impl-3.3.3.Final.jar, richfaces-ui.3.3.3.Final.jar) attached. Please let us know if we need to use some other configuration for SAP server. This is working fine on Jboss without any issues.
    Regards
    Abu Bakar

    I'm getting the same error and the freestyle.jsp does not help either.
    By the way, the error posted above is related to the SLD, which is not installed with CE 7.1. I don't think that has anything to do with VC... Please correct me if I'm wrong.
    Message was edited by:
            Pascal Willemsen

  • A problem with JSF + Richfaces

    I'm developing a web application using Appfuse 1.9.4 (use JSF) and Richfaces 3.2.1 GA, my web run correctly while i set
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>*{color:#ff0000}client{color}*</param-value>
    </context-param>
    but it's too low. So, i set STATE_SAVING_METHOD to {color:#ff0000}*server*{color}
    Unfortunately, my web is broken and throws ViewExpiredException ?
    Anyone helps me, please ?
    Best regards.

    Have you set the partialtriggers-attribute on the form? You can find an example in the SRDemo, in the page SREdit.

  • Deployment of JSF Libraries to /WEB-INF/lib

    Good day.
    In our new web application we use three different JSF taglibs (richfaces, trinidad, tomahawk). All of them are managed as "JSF Libraries" (created in eclipse options->web->"JavaServer Faces Tools"->Libraries). To include jars from these libraries in webapp I've checked respective entries in project's options->"Java EE Module Dependencies"->"Web Libraries". However webapp doesn't contain jars from these libs at runtime even if webapp is served from separate folder within weblogic server's directory structure (don't remember how this option is called at server configuration page). Is it some kind of a bug or this feature is just not supported (tradeoff for being able to serve modules directly from the workspace)? I read throught OEPE help contents, but haven't found definite answer there.
    Env: Eclipse 3.4.1, WTP 3.0.3, OEPE 1.0, JVM Sun 1.6.0_11, Win32 XP SP2, WLS 10.3
    Thank you very much!

    Sorry, forgot to mention that web application is a part of ear archive. Don't know if "Stand-alone Web Application Deployment Mode" will have any signification effect in this case.
    However, here are contents of .beabuild file from ear and contents of temporary directory from wls with webapp contents if it will be of any importance.
    ru.bpc.sv.web is ear archive and ru.bpc.sv.web.iu is included webapp.
    .beabuild:
    C\:/workspaces/web2008/ru.bpc.sv.web/EarContent/APP-INF/classes = APP-INF/classes
    C\:/workspaces/web2008/ru.bpc.sv.web.ui/WebContent = ru.bpc.sv.web.ui.war
    C\:/workspaces/web2008/ru.bpc.sv.web.ui/build/weboutput = ru.bpc.sv.web.ui.war
    C\:/workspaces/web2008/ru.bpc.sv.web.ui/build/classes = ru.bpc.sv.web.ui.war/WEB-INF/classes
    C\:/projects/java/libs/org/jboss/richfaces/3.1.5_1.4/richfaces-api-3.1.5.GA.jar = ru.bpc.sv.web.ui.war/WEB-INF/lib/richfaces-api-3.1.5.GA.jar
    C\:/projects/java/libs/org/jboss/richfaces/3.1.5_1.4/richfaces-impl-3.1.5.GA.jar = ru.bpc.sv.web.ui.war/WEB-INF/lib/richfaces-impl-3.1.5.GA.jar
    C\:/projects/java/libs/org/jboss/richfaces/3.1.5_1.4/richfaces-ui-3.1.5.GA.jar = ru.bpc.sv.web.ui.war/WEB-INF/lib/richfaces-ui-3.1.5.GA.jar
    C\:/projects/java/libs/org/apache/myfaces/tomahawk/1.1.6/tomahawk-1.1.6.jar = ru.bpc.sv.web.ui.war/WEB-INF/lib/tomahawk-1.1.6.jar
    C\:/projects/java/libs/org/apache/myfaces/trinidad/1.0.9_1.4/trinidad-api-1.0.9-jdk14.jar = ru.bpc.sv.web.ui.war/WEB-INF/lib/trinidad-api-1.0.9-jdk14.jar
    C\:/projects/java/libs/org/apache/myfaces/trinidad/1.0.9_1.4/trinidad-impl-1.0.9-jdk14.jar = ru.bpc.sv.web.ui.war/WEB-INF/lib/trinidad-impl-1.0.9-jdk14.jar
    C\:/projects/java/libs/org/apache/myfaces/trinidad/1.2.8/backport-util-concurrent-3.1.jar = ru.bpc.sv.web.ui.war/WEB-INF/lib/backport-util-concurrent-3.1.jar
    C\:/projects/java/libs/org/apache/myfaces/trinidad/1.2.8/retrotranslator-runtime-1.2.6.jar = ru.bpc.sv.web.ui.war/WEB-INF/lib/retrotranslator-runtime-1.2.6.jar
    C\:/workspaces/web2008/ru.bpc.sv.ejb.authClient/build/classes = APP-INF/lib/ru.bpc.sv.ejb.authClient.jar
    C\:/workspaces/web2008/ru.bpc.sv.ejb.svboClient/build/classes = APP-INF/lib/ru.bpc.sv.ejb.svboClient.jar
    C\:/workspaces/web2008/ru.bpc.sv.ejb.svfeClient/build/classes = APP-INF/lib/ru.bpc.sv.ejb.svfeClient.jar
    C\:/workspaces/web2008/ru.bpc.sv.commonitems/bin = APP-INF/lib/ru.bpc.sv.commonitems.jar
    C\:/workspaces/web2008/ru.bpc.sv.commonEjbUtils/bin = APP-INF/lib/ru.bpc.sv.commonEjbUtils.jar
    C\:/workspaces/web2008/ru.bpc.sv.web/EarContent/APP-INF/lib/commons-logging-1.1.jar = APP-INF/lib/commons-logging-1.1.jar
    C\:/workspaces/web2008/ru.bpc.sv.web/EarContent/APP-INF/lib/log4j-1.2.14.jar = APP-INF/lib/log4j-1.2.14.jar
    C\:/workspaces/web2008/ru.bpc.sv.web/EarContent/APP-INF/lib/poi-3.0.1-FINAL-20070705.jar = APP-INF/lib/poi-3.0.1-FINAL-20070705.jar
    C\:/workspaces/web2008/ru.bpc.sv.web/EarContent/APP-INF/lib/quartz-all-1.6.1-RC3.jar = APP-INF/lib/quartz-all-1.6.1-RC3.jar
    dir:
    C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\1
    C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws
    C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\.tld_cache
    C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\libs
    C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\public
    C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\war
    C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\.tld_cache\tomahawk-sandbox-1.1.7-SNAPSHOT.jar
    C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\.tld_cache\tomahawk-sandbox-1.1.7-SNAPSHOT.jar\META-INF
    C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\.tld_cache\tomahawk-sandbox-1.1.7-SNAPSHOT.jar\META-INF\myfaces_sandbox.tld
    C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\.tld_cache\tomahawk-sandbox-1.1.7-SNAPSHOT.jar\META-INF\myfaces_sandbox.tld\crc.ser
    C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\.tld_cache\tomahawk-sandbox-1.1.7-SNAPSHOT.jar\META-INF\myfaces_sandbox.tld\des.ser
    C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\libs\jsf-ri
    C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\libs\jsf-ri\moygs
    C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\libs\jsf-ri\moygs\war
    C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\war\WEB-INF
    C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\war\WEB-INF\lib
    C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\war\WEB-INF\lib\commons-collections-3.1.jar
    C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\war\WEB-INF\lib\commons-el-1.0.jar
    C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\war\WEB-INF\lib\commons-fileupload-1.2.jar
    C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\war\WEB-INF\lib\itext-2.0.6.jar
    C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\war\WEB-INF\lib\iText-2.1.2u.jar
    C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\war\WEB-INF\lib\iText-rtf-2.1.2u.jar
    C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\war\WEB-INF\lib\tomahawk-sandbox-1.1.7-SNAPSHOT.jar

  • JSF 2 performance ?

    Can JSF 2 / Facelets used in high volume sites because of it's high resource (memory) consuption ?
    Or is the problem with third party libs ( RichFaces, ICEFaces, ...) ?
    What are the best practices to avoid resource consumption ?
    The seems to be various results about this matter for ex the following gives quite good resulsts to JSF Sun RI:
    http://developers.sun.com/learning/javaoneonline/2008/pdf/TS-6517.pdf

    This document describes performance tuning techniques using JSF and JBoss Seam - the information within however can be quite an eye opener even if you do not use JBoss Seam.
    [http://www.jsfcentral.com/articles/speed_up_your_jsf_app_1.html|http://www.jsfcentral.com/articles/speed_up_your_jsf_app_1.html]
    Part 2 focusses mostly on JSF and Richfaces.
    [http://www.jsfcentral.com/articles/speed_up_your_jsf_app_2.html|http://www.jsfcentral.com/articles/speed_up_your_jsf_app_2.html]
    Can JSF 2 / Facelets used in high volume sites because of it's high resource (memory) consuption ?I've never noticed high memory consumption in JSF really. In any case with high volume sites the resources become quite academic - you don't have enough? Put more in the server. Not physically possible to do that? Then it is time to load balance across multiple hosts.
    The solution is not in the technology used because the differences there will not win you the war, it is completely in the hardware you run the technology on (and some optimization where needed).

  • Java.lang.NoClassDefFoundError: javax/el/CompositeELResolver error

    Hi to everyone.
    i'm searching for help.
    I'm working with a web project under WebShere and for working and compatibility reason I have to migrate from version 7.0 of WAS to older 6.1 version.
    My project under version 7 run perfectly but now I not even can start correctly the WAS.
    I receive the error about topic title: java.lang.NoClassDefFoundError: javax/el/CompositeELResolver error
    The project was born to work with JSF 1.2 and RichFaces 3.3.2 but I know they are not supported under WAS 6.1 and so I've:
    - first tried to imported in project older version of jsf and richfaces (jsf 1.1.02, rich 3.1.6);
    - then tried to installed them as shared libraries;
    suddenly i've tried to reinstall entire WAS... same result.
    can someone help me?
    PS: the content of console after start attempt is:
    java.lang.NoClassDefFoundError: javax.el.CompositeELResolver
         at java.lang.J9VMInternals.verifyImpl(Native Method)
         at java.lang.J9VMInternals.verify(J9VMInternals.java:68)
         at java.lang.J9VMInternals.initialize(J9VMInternals.java:129)
         at java.lang.Class.forNameImpl(Native Method)
         at java.lang.Class.forName(Class.java:163)
         at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionProcessor.<init>(AbstractJSPExtensionProcessor.java:183)
         at com.ibm.ws.jsp.webcontainerext.ws.WASJSPExtensionProcessor.<init>(WASJSPExtensionProcessor.java:65)
         at com.ibm.ws.jsp.webcontainerext.ws.WASJSPExtensionFactory.createProcessor(WASJSPExtensionFactory.java:188)
         at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionFactory.createExtensionProcessor(AbstractJSPExtensionFactory.java:75)
         at com.ibm.ws.webcontainer.webapp.WebApp.initializeExtensionProcessors(WebApp.java:1186)
         at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:340)
         at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:337)
         at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:92)
         at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:157)
         at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:666)
         at com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:619)
         at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:395)
         at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:611)
         at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1304)
         at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1165)
         at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:587)
         at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:832)
         at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:950)
         at com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.java:2131)
         at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:342)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
    Caused by: java.lang.ClassNotFoundException: javax.el.CompositeELResolver
         at java.net.URLClassLoader.findClass(URLClassLoader.java:496)
         at com.ibm.ws.bootstrap.ExtClassLoader.findClass(ExtClassLoader.java:150)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:631)
         at com.ibm.ws.bootstrap.ExtClassLoader.loadClass(ExtClassLoader.java:90)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:597)
         at com.ibm.ws.classloader.ProtectionClassLoader.loadClass(ProtectionClassLoader.java:58)
         at com.ibm.ws.classloader.ProtectionClassLoader.loadClass(ProtectionClassLoader.java:54)
         at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:429)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:597)
         ... 26 more

    Looks like you need an implementation of the EL language.

  • File Open Dialog Box  on Button Click

    Hi
    I am devloping some webpages using JSF and RichFaces..
    I would like to appear File open Dialog box to choose single file and multiple files and another Folder chooser dialog box to choose the folder content..
    Both the operation should be performed while choosing the Button Choose File and Choose Folder...
    I have already tried Input type = file and aphace tomohawk..
    But i all the components are coming with text box and browse button..
    I dont need that. I need to open the dialog box once i clilck my choose file r folder button and it should work browser indepent.....

    HTML doesn't provide you the possibility to select multiple files or select folders at a single browse. Thus JSF can't do any much for you. Best what you can do is to write a signed applet or web start application which does the task. The Mojarra Scales component library has a ready-to-use component which embeds an applet which does that task. Check [https://scales.dev.java.net/multiFileUpload.html].

  • How can i get rich faces library in netbeans

    Hi  ,
       when i make new web applications in Netbeans 7.4 and choose Jsf Frame workd ( jsf 2.2 )
       and when i choose the RichFaces components it give me the message
      ( JSF Library RichFaces not setup properly . see list of mandatory jars )
    i made download for the following jars
      richfaces-components-api-4.1.0.Final.jar
    richfaces-components-ui-4.0.0.Final.jar
    richfaces-core-api-4.2.2.Final.jar
    richfaces-core-impl-4.0.0.Final.jar
    sac-1.3-src.jar
    guava-15.0.jar
    cssparser-0.9.4.jar
    and include the previous jars to the application but still
    give me the message ( No Complete RichFaces Library Found ....)
         how can i get the missing library of rich faces ?

    Hi
    what do you mean by saying "happy faces"? Do you mean smileys like :-) ?
    regards
    Marcel

  • Problem integrating BI analysis in web portal using HtmlViewServiceSoap

    GOAL:
    We have a web portal that is built using JSF and RichFaces and we want to integrate BI analysis using Oracle BI EE web services.
    We use Oracle BI EE 11g and tested with both 11.1.1.5 and 11.1.1.6).
    SOLUTION:
    Because Oracle BI server will not be accessible outside for the end web user we need to implement a proxy servlet acting as a bridge.
    Oracle BI web services provides a nice way of doing this: setBridge method in HtmlViewServiceSoap interface.
    In order to achieve our goal we use the HTML produced from oracle BI web service directly into a new created jsp page.
    This whole jsp page content is:
    <%
    String biReport = (String)request.getAttribute("biReport");
    MyServiceUtils.writeBiContent(request, out, biReport);
    %>
    writeBIContent method is listed here: http://pastebin.com/ndVt3HBu
    Our proxy/bridge servlet code is listed here: http://pastebin.com/NibVnBLb
    THE FIRST PART WORKS:
    The first HTML content retrieved from web service looks OK: all js and css files are prefixed with our bridge url.
    Example:
    <script type="text/javascript" src="/AbsWeb/bridgeservlet?RedirectURL=http%3a%2f%2f127.0.0.1%3a9704%2fanalytics%2fres%2fb_mozilla%2fcommon%2fobips.JavaScriptExtensions.js"></script>
    Complete html code generated can be viewed at: http://pastebin.com/DGRwTjaz
    Therefore our bridge servlet is used to retrieve resources like:
    http://localhost:8282/AbsWeb/bridgeservlet?RedirectURL=http%3a%2f%2f127.0.0.1%3a9704%2fanalytics%2fsaw.dll%3fajaxGo
    http://localhost:8282/AbsWeb/bridgeservlet?RedirectURL=http%3a%2f%2f127.0.0.1%3a9704%2fanalytics%2fsaw.dll%2fpages/common/ajaxloggedin.html
    These are translated by our servlet into:
    http://127.0.0.1:9704/analytics/saw.dll?ajaxGo&NoCookie=1&SearchID=jloq2nea8i290a6c9knifttj86&urlGenerator=qualified&_scid=XjlySz0yuAMz1rjOZZ4Y&ContainerId=m%3Aportlet%7Er%3ATestrevenuebydistrict&NQID=s0vbq5q6u2ijee3s9arnmmbsgtldhghfdlq6lc2&icharset=utf-8
    http://127.0.0.1:9704/analytics/saw.dll/pages/common/ajaxloggedin.html
    FINALLY OUR PROBLEM:
    The html code retrieved with ajaxloggedin.html does not use our bridge servlet for all js and css files...
    we expect this:
    example: <link rel="Stylesheet" href="/AbsWeb/bridgeservlet?RedirectURL=http%3a%2f%2f127.0.0.1%3a9704%2f/analytics/res/s_blafp/uicomponents/blafplus.css" type="text/css">
    but we get this:
    example: <link rel="Stylesheet" href="/analytics/res/s_blafp/uicomponents/blafplus.css" type="text/css">
    The first part is missing.
    Complete html code of ajaxloggedin.html can be viewed at: http://pastebin.com/gKTMfPSR
    We end up with a rotating clock displaying in our web page...
    Does anybody see what we are doing wrong, or has anybody had the same problem and a solution or work around?
    Thanks,
    Hans

    Hi,
    Can you go to RSA1 and check in BI Content - Bex Web Template - Select Objects and Transfer Selection - and see if the 0Analysis_Pattern is active or not and is transported to QA.
    And the second thing is to check the SPRO Config for the Template which is maintained:
    To Do this navigate in BW System:
    SPRO -  SAP NetWeaver - Business Intelligence - Settings for Reporting and Analysis - BEx Web - Set Standard Web Template - and see if Web Template is maintained as it is in Dev.....
    Since when you run the Query from Query Designer it will check in SPRO for this setting and show the report with that template.
    Hope this helps.
    Cheers-
    Pramod

  • Making a component to view my Own Map !!

    Dear all,
    I am developing a website with jsf and richfaces, but now, I'm in a state that I need to show a detailed map of my city to the user. I looked around to find a component that make it work, but I couldn't find one!
    Is there anyway to show my own detailed map (except google map) in a jsf component and what is it?!?
    or, if there is not one, how can I make a component that gives an image as input map, and makes available zooming in and out on the map, and selecting a point.
    my second question is, how can I visualize addressing??! I mean that, how can I let user to make an area selection on the map and I write the address with the user's selection ?
    please help me! a component for viewing my own map that is an image ?!?!

    Such a JSF component doesn't exist yet. Look at the Google map API and integrate it. Basically JSF components does nothing much else than taking some variables and outputting some plain vanilla HTML, so it shouldn't be that hard to put all the HTML/JS of the Google API together in a JSF component.

  • Help resolve an argument over ui/logic divide.

    Where is the dividing line between ui and logic? For example where to put word completion code; should h:input be extended and the word completion code be put into the renderkit or something? how would it update?
    Note: I have my own opinion but need input from others since I've been told I'm 'weak' on jsf architecture and usage. I personally would just use the h:input and a jsf combobox and ajax to get the effect with the word completion code in backing bean and handle the submit stage where "Use Semantic Language Tools to Better Understand User Intentions"[search web] is also done server side only in backing beans. I would only extend jsf[or richfaces] in cases I need a new thin client component and likely to use it repeatedly.

    Where is the dividing line between ui and logic? For example where to put word completion code; should h:input be extended and the word completion code be put into the renderkit or something? how would it update?
    Note: I have my own opinion but need input from others since I've been told I'm 'weak' on jsf architecture and usage. I personally would just use the h:input and a jsf combobox and ajax to get the effect with the word completion code in backing bean and handle the submit stage where "Use Semantic Language Tools to Better Understand User Intentions"[search web] is also done server side only in backing beans. I would only extend jsf[or richfaces] in cases I need a new thin client component and likely to use it repeatedly.

  • Strange bug with the java.io.File class

    Hi everibody!
    I'm writting a system to upload images with JSF and RichFaces. But when i try to delete the images files sometimes hapen some strange bug.
    first i'll post my method code here:
    public void deleteUploadedFile(ActionEvent event) throws Throwable {
            UIComponent link = event.getComponent();
            UIParameter param = (UIParameter) link.findComponent("fileId");
            TheFile file = this.uploadedFiles.get((Integer) param.getValue());
            try {
                File f = new File(file.getPath(), file.getName());
                if ((f.exists()) && (f.canRead()) && (f.canWrite())) {
                    if(f.delete()){
                        for(int i=0; i<file.getThumbs().size(); i++){
                            File t1 = new File(file.getPath(), file.getThumbs().get(i).getThumbName());
                            t1.delete();
                        setDeleted(true);
                    else{
                        setDeleteLog("Arquivo não pode ser excluido");
                        setDeleted(false);
                } else {
                    setDeleteLog("Erro ao tentar excluir o arquivo");
                    setDeleted(false);
                this.finalize();
            } catch (Exception ex) {
                setDeleteLog("Deu erro: " + ex);
            } finally {
                if (this.deleted) {
                    if (this.uploadedFiles.remove(file)) {
                        setDeleteLog("Conseguiu remover");
                    } else {
                        setDeleteLog("Deu erro");
        }Well, when the method run the f.delete() line, sometimes, something strange hapen. With is, the file data is deleted as expected, but the file it self is not deleted. And even when i run the line this.finalize the JVM still using the file, with don't allows me to try to delete it untill my tomcat stop (with kill the application that was using the file). And this don't hapen every time that i try to delete one file.
    And worse, once it hapen every next time that i try to delete one file hapen the same bug.
    My question is...what could it be, and what can i do to solve this?!

    About this is not a possible cause. Because before i upload a file I verify if the file already exists and even after i change the file name:
    //this method change the file name and eliminate all the special characters, and also attach the current day of month,
    //month, year, minute and second to the file name
    public String generateFileName(String fileName){
            Locale l = new Locale("pt","BR");
            Calendar cal = Calendar.getInstance(TimeZone.getTimeZone(TimeZone.getTimeZone("GMT-3").getID()), l);
            int ext = fileName.lastIndexOf('.');
            String name = fileName.replace(fileName.substring(ext), "");
            String newName = RemoverAcentos.remover(name).toLowerCase()+cal.get(cal.DAY_OF_MONTH)+cal.get(cal.MONTH)
                    +cal.get(cal.YEAR)+cal.get(cal.MINUTE)+cal.get(cal.SECOND)+fileName.substring(ext);
            return newName;
        }the upload method
    String fileName = generateFileName(item.getFileName());
            try {
                File uploadFile = new File(filepath, fileName);
                if (!uploadFile.exists()) {

  • Configuring MyFaces in JBoss4.2.1

    Hello All,
    I'm pretty newbie to JSF and i'm trying to use the tomahawk's tree2 structure. But when i start my Jboss with the tomahawk-1.1.3.jar along with myfaces-api-1.1.5.jar and myfaces-impl-1.1.5.jar, it is giving me the following error.
    15:27:30,187 WARN [JBossJSFConfigureListener] MyFaces JSF implementation found! This version of JBoss AS ships with the java.net implementation of JSF. There are known issues when mixing JSF implementations. This warning does not apply to MyFaces component libraries such as Tomahawk. However, myfaces-impl.jar and myfaces-api.jar should not be used without disabling the built-in JSF implementation. See the JBoss wiki for more details.
    15:27:30,796 FATAL [config] null MessageFactory
    15:27:30,796 ERROR [STDERR] java.lang.ClassCastException: org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener
    Can any one tell me how to configure the myfaces in Jboss?
    My xml follows..
    web.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.5"
    xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
    http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
    </context-param>
    <context-param>
    <param-name>org.apache.myfaces.ADD_RESOURCE_CLASS</param-name>
    <param-value>org.apache.myfaces.renderkit.html.util.DefaultAddResource</param-value>
    </context-param>
    <filter>
    <filter-name>MyFacesExtensionsFilter</filter-name>
    <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
    <init-param>
    <param-name>maxFileSize</param-name>
    <param-value>100m</param-value>
    </init-param>
    </filter>
    <filter-mapping>
    <filter-name>MyFacesExtensionsFilter</filter-name>
    <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>MyFacesExtensionsFilter</filter-name>
    <url-pattern>/faces/*</url-pattern>
    </filter-mapping>
    <listener>
    <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
    </listener>
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <welcome-file-list>
    <welcome-file>faces/index.jsp</welcome-file>
    </welcome-file-list>
    </web-app>

    I could see richfaces-3.0.1 in my classpath. I think
    this throws the error message.
    As of now, I would like to use Tomahawk tree2
    structure instead of richfaces tree. If i need to
    invoke the tags starting with <t:>, i need to define
    the extension filter. For this we need the myfaces
    jars right?No, you do not need the MyFaces jars for the Tomahawk extension filter. The Tomahawk jar contains all the code from the MyFaces project that Tomahawk requires. It is fully compatible with the Sun RI of JSF.
    >
    I noticed the tree structure in richfaces packet.
    Here i don't need the folder icon in each node of the
    tree. I wanted only the iconExpanded or collaped
    image and couldn't find a way to avoid showing the
    folder image there. Also i want to use the simple
    toggle panel and some ajax functionalities of the
    richfaces.
    Can i use both myfaces and richfaces together?
    I read these are two different implementations for
    JSF. If i can't use these two together, then which
    one is more robust and flexible?You are somewhat confused here. MyFaces is an implementation of JSF. RichFaces is a component library for JSF, not an implementation of JSF. Tomahawk is a component library for JSF provided by MyFaces but may be used independent of MyFaces. In theory Tomahawk and RichFaces and any other JSF component libraries may be used together (I haven't actually tried these two together, thus the "in theory" qualification).
    So, to summarize, there are JSF implementations and JSF component libraries. The two most popular JSF implementations are the Sun RI and MyFaces. Unless you have a compelling reason for switching, stick with the implementation provided by your application server.

Maybe you are looking for