Resource Re-location in JSF 2.0 is evil?

I've been researching the new features in JSF 2.0 and came across this thing called "resource re-location". In a nutshell this allows a page designer or a component developer to specify in which part of the rendered HTML document something should appear. E.g.
<h:outputScript name="simple.js" target="head"/>
To me this seemed like a very useful feature. As a page designer you don't always control the head section of your document and more often than not the head is generic, while a script is specific for a page. Likewise, as a component developer you want your component to be as self contained as possible without having to instruct your users to install anything in the head of their documents.
When I continued my research I stumbled upon a couple of postings and reviews where people highly protest against this feature. I've read wording ranging from "evil" and "destructive" to "completely undesirable". Especially a guy called Jasper Floor seems to be very opposed to this:
+"A component, possibly called by other components, could decide it wanted to change the head of a document. *This is completely undesirable behavior.* If the component is generic it should never bother with anything outside its scope."+
See: [http://jdevelopment.nl/java/jsf-20-a-glance/]
I wonder what the general opinions on resource re-location are over here.

I don't see why a script in the head is more evil than a script in the body. It is only more clean. It doesn't change anything in the head, it just adds something to the head. I find his response exaggerated.

Similar Messages

  • BINDING.JCA-12510 JCA Resource Adapter location error in SOA 11g Suite

    Hi,
    I am just testing one simple SOA Application in SOA 11g Suite. Created a SOA Composite Application with one DB Adapter at designtime all worked fine with DB Adapter. But when I deploy the Application on the server I get the following error:
    The JCA Binding Component was unable to establish an outbound JCA CCI connection due to the following issue: BINDING.JCA-12510 JCA Resource Adapter location error. Unable to locate the JCA Resource Adapter via .jca binding file element <connection-factory/> The JCA Binding Component is unable to startup the Resource Adapter specified in the <connection-factory/> element: location='eis/DB/soademoDatabase'. The reason for this is most likely that either 1) the Resource Adapters RAR file has not been deployed successfully to the WebLogic Application server or 2) the '<jndi-name>' element in weblogic-ra.xml has not been set to eis/DB/soademoDatabase. In the last case you will have to add a new WebLogic JCA connection factory (deploy a RAR). Please correct this and then restart the Application Server ".Do I need to jndi-name in weblogic-ra.xml if so what is the exact location. Any help is appreciated.
    Thanks

    I did but still not able to connect now getting the following error. I went to the Weblogic Console, clicked on deployments, selected DBAdapter, clicked on configuration ,
    and then I don't see outbound configurations instead it shows Outbound Connection Pools, Under Outbound Connection Pools tab I clicked on New and it asked to select Outbound Connection Group I selected the one that was already there (with JNDI eis/DB/SOADemo) and then created my JNDI which was added to the default Outbound Connection Group and in the end it asked to save the Plan.xml which I saved it under a new directory created under soa directory. But still am not able to connect.
    How do I create my own Connection Group as don't want to use the defualt one out there.
    After creating the JNDI Name it asks for saving the Plan.xml file. Where exactly we save this file. Are there any standards.
    Why can't I update any properties when I click on the new JNDI name it takes to Settings for javax.resource.cci.ConnectionFactory --> Outbound Connection Properties but there I see a save buttn but I can't make any changes.
    BINDING.JCA-12563 Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'getCreditValidationSelect' failed due to: Could not create/access the TopLink Session. This session is used to connect to the datastore. Caused by javax.resource.spi.InvalidPropertyException: Missing Property Exception. Missing Property: [DBManagedConnectionFactory.userName]. You may have set a property (in _db.jca) which requires another property to be set also. Make sure the property is set in the interaction (activation) spec by editing its definition in _db.jca. . ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. Is there any documentation that lists all these steps as I couldn't find it anywhere. The guide only talks abou DBAdapter but how to configure etc can't find any info. Any help is appreciated.
    Thanks.

  • Overlapping events for resources and locations

    Has anyone been able to configure iCal Server's Resources and Locations to NOT accept invitations if the resource or location is busy?
    I am hoping the resource or location is intelligent enough to decline an invitation if it is already busy.
    Any help would be appreciated.
    Thank you,
    Ray

    I've run into this problem as well. I can't believe that there's no solution to this. It seems to me to be a pretty obvious need for any scheduling software.
    Why even have a location and resource database, if users can make any event appointment for that location or resource regardless if it's available or not?

  • Description Resource Path Location Type .... Warning Msg ....

    Hi there,
    I'm using some code from way back and I'm trying to use it within a newer project.
    The original code is as follows:
         import mx.styles.CSSStyleDeclaration;
         import mx.styles.StyleManager;
    protected static function classConstruct ():Boolean {
        if (!StyleManager.getStyleDeclaration("Page")){
            var defaultStyles:CSSStyleDeclaration = new CSSStyleDeclaration();
            for (var i:String in DEFAULT_STYLES){
         defaultStyles.setStyle(i, DEFAULT_STYLES[i]);
         StyleManager.setStyleDeclaration("Page", defaultStyles, true);
         return true;
    This gives me a couple of Warning !
    Description Resource Path Location Type
    3608: 'getStyleDeclaration' has been deprecated since 4.0.
    Please use 'IStyleManager2.getStyleDeclaration on a style manager instance'.
    Page.as line 146 Flex Problem
    I have been trying to change it, but I get Error Msg's now !
         import mx.styles.CSSStyleDeclaration;
         import mx.styles.IStyleManager2;
    protected static function classConstruct ():Boolean {
        if (!IStyleManager2.getStyleDeclaration("Page")){
            var defaultStyles:CSSStyleDeclaration = new CSSStyleDeclaration();
            for (var i:String in DEFAULT_STYLES){
         defaultStyles.setStyle(i, DEFAULT_STYLES[i]);
         IStyleManager2.setStyleDeclaration("Page", defaultStyles, true);
         return true;
    Any help would be very much appriciated. regards aktell2007

    Get a style manager instance by calling styleManager on a UIComponent or calling StyleManager.
    getStyleManager(moduleFactory);
    Each Application/Module has a style manager so using the top-level application will only work correctly if you do not use modules or sub-applications. Otherwise if a module calls code and sets a style into the top-level style manager, the module will be pinned in memory by that reference.
    As Alex said, put a defaults.css in your library.swc to set default styles. Look at how it is done in framework.swc and spark.swc.
    -Darrell

  • Assign loading / handling resource to location through ABAP program

    Hello Experts,
    I have a requirement where by I have to assign loading / unloading resource to a location through ABAP program. Need to assign the resource in Resources Tab in TP/VS section. Is there any function module or any method available to this?
    Responses highly appreciated. Thanks in advance
    Regards
    Sandeep Patil

    Hi all
       I have the same requirement for the end user.
      Is it a good idea update active Table of ODS behind an ABAP Program Z?, I understood that you can't have log history... and you can't delete request.. because you will not generate this..
      We actually have one ODS that contain invoices... all the fields that contain the invoice..like material, vendor, etc.. was updated according to ABAp programa that we specify on start routine, each time that we need to update these fields we need to unload fros ODS to PSA and load again with dtp...
      Let me copy more details:
    Actually, we have an DSO that is updated each week, we load the information into different PSA, all of this PSA pass to ODS for one info source and transformation rule, in this transformation rule we have an ABAP rotine that have some validation and assign some values for different fields.
    In this procees everthing look fine, actually If we need to update this information from DSO (that was loaded and the user need to update some fields) we need to download information from DSO to PSA and load again with DTP process, this was fine.
    Actually the user want that this kind of changes will be apply on line, this mean that for example all the invoices that I have actually loaded into DSO need to be analyzed and update according new parameters that they specify in other tables.
    The DSO is standard, and contain three basis tables, active, delta, modified.
    My question is: Is it possible update directly table of active records of DSO with one Z program?? is it a good idea?, We want to discard the option of unload and load information each time that they need to update certain field that are calculated or updated whit the transformation rule or load.
    Than you for your help.

  • Resource Bundle location

    Hi,
    I have recreated several resource bundle properties files for different locales. The structure of my files are as follows:
    All my jsp files are in a folder called i18n which is located in the ROOT folder of Tomcat 5.5.7. Within the i18n folder a WEB-INF folder is located
    All my properties files are in a folder called classes within the WEB-INF.
    When I run my jsp page allowing the user to choose a locale, the following error appears:
    org.apache.jasper.JasperException: Can't find bundle for base name Message, locale en_US
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    java.util.MissingResourceException: Can't find bundle for base name Message, locale en_US
         java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:837)
         java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:727)
         java.util.ResourceBundle.getBundle(ResourceBundle.java:577)
         org.apache.jsp.i18n.i18nDemo_jsp._jspService(org.apache.jsp.i18n.i18nDemo_jsp:88)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    Did I place the properties files in the wrong folder?? Please help. Thanks

    I'm assuming you're talking about Struts.
    Make sure your files are named correctly for the different locales. For example, the default, english and french versions would be:
    WEB-INF/classes/ApplicationResources.properties
    WEB-INF/classes/ApplicationResources_en.properties
    WEB-INF/classes/ApplicationResources_fr.properties
    and so forth..

  • JMS resource not located when starting Weblogic 8.1 as windows service

    I have a Weblogic 8.1 cluster which I am trying to configure as a Windows service.
              The managed servers startup up without errors when started from the command line, but when I start it up as a service they do not seem to find the JMSConnectionFactory that has been configured.
              Any ideas on what I am missing ?
              Malini

    Can you post the error message? Are your custom connection factories targeted to the cluster?

  • Viewing location and resource details in iCal

    Hi,
    I'm trying to better understand the use of the ICal Server Utlity for creating shared resources and locations. I'm still a SLS Server user (no plan to migration to Lion server soon), and all my users are using Lion.
    Simply put, I have rooms I'd like my users to reserve. I've created them in iCal Server Utility and I can see and reserve them in iCal, so that's fine.
    However, the locations (and resources for that matter) have extra "metadata" such as address, map, location, capacity and even a picture. But I've seen no way to let my users visualize this information. Browsing the directory through Address book does not return any of my resources so all this metadata seems lost.
    Is there a way to let my users access this info? For example, I'd expect my users to right-click the conference room in iCal and view the resources' details, but this clearly doesn't work... :-(
    Have any of you resolved this? Is an extra application required for this, e.g. browse the metadata of Open Directory locations and resources?
    Thanks.

    Hello
    If you are creating the orders using MRP, you should make sure that the field MRP is set to 1 on the source list. The field 'fixed vendor' is not relevant to MRP. When the vendor is selected from the source list, the purchasing organization should be also copied to the purchase requisition.
    The storage location will be copied from the respective field on the material master tab MRP2.
    Also take a look on the following document:
    MRP: Vendor is not selected and general problems on source determination
    BR
    Caetano

  • Resources / locations

    anyone an idea hot to access resources and locations
    so we could see and overview?
    the only thing i found is a sqlite file..
    sayonara
    zeke

    well, with the ical server utility you cant really view anything, you can see what is there and you can add.
    no i mean like a normal calender view were i can see when my meeting room is used and when not. i know i can do that with check avaibility but sometimes it's just nice to see an overview. so i can see who is useing my meeting room when.
    thx

  • Creating Resource Group based On Location

    Hi,
    Can we create Resource group location wise in PWA or Professional.
    Thanks,
    Prashant

    What about creating a lookup table with the location and a resource enterprise custom fields? Then for each resource you can pickup a location. You could even then open all the resources in MS Project Pro and bulk update the location.
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • Resource/Locations in web calendar

    Hi,
    I have a problem with my resources/locations not showing up in the web calendars. I've managed to add them in Directory utility and delegated them to my group, but nothing is showing up in the web calendar and when I check the iCal properties in server admin there are no resources or locations listed, although the users and groups are.
    Is there something obvious I'm doing wrong? It should be possible to schedule resources & locations through the web calendar, right?
    Cheers,
    Erik

    That depends on the server that you are using. For example in tomcat you would establish the datasource connection parameters in the context xml file for the web app.
    http://tomcat.apache.org/tomcat-5.0-doc/jndi-datasource-examples-howto.html
    You'll need to consult the documentation for your server.

  • Migrat  jsf to myfaces

    HI,
    good evening everybody.Iam facing this prblem since morning but iam unable to solve this.My problemis that iam migrating my application from jsf to myfaces
    i replaced jsf-api and jsf-impl jars to myfaces-api and myfaces-impl jars
    and i deleted application from tomcat work folder and also i deleted all tlds to releted to jsf from WEB-INF.And also re-install the tomcat servver.
    My tomact version is 5.0 and myfaces version is 1.1.3 and also iam using tomahawk whose version is 1.1.6 and iam added startupcontextlistener in web.xml
    iam getting the following problem.from tomcat log file i seen this exception i.e
    java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener
    my web.xml is
    i did not find ConfigureListener in myfaces-impl .I seen this class located in jsf-impl .So what should i do,i done all things ..but iam getting error is there alternate for this..
    plz help i stucked since morning...
    thanks in advance
    venkat

    I'm not saying that this is the solution you should go for right now, but I don't have any direct solution to offer.
    You could try creating your own selectOnRadio component with the added styling functionality. Do a google search for "jsf 1.2 custom component" and see if this idea appeals to you. I did and turned up this, perhaps it is enough for you:
    [http://technology.amis.nl/blog/6047/creating-a-custom-jsf-12-component-with-facets-resource-handling-events-and-listeners-valueexpression-and-methodexpression-attributes|http://technology.amis.nl/blog/6047/creating-a-custom-jsf-12-component-with-facets-resource-handling-events-and-listeners-valueexpression-and-methodexpression-attributes]

  • Subscribing to a Resource in iCal

    I have been trying to figure out how to subscribe to the resources I have created on my OS-X server.
    According to the documentation, this should be possible.
    "A read-only delegate is another user who can see your calendar items, including free-busy times, but not change them. Sometimes this is called a “proxy user.”
    This setting is useful for locations and resources. If you make a user or group a read- only delegate for the resource, the delegate can see the details of the resource’s use, rather than just whether the resource is busy."
    You are supposed to be able to do this in iCal Server Utility, but I can't see anywhere to assign delegates.
    Any help would be greatly appreciated.
    tnx

    according to Apple documents:
    http://support.apple.com/kb/HT3897
    To delegate read and write access of a resource to a group use the following command, where groupname is the name of the group and resourcename is the name of the resource:
    sudo calendarservermanageprincipals --add-write-proxy groups:groupname resources:resourcename
    To delegate read access of a resource to a group use the following command, where groupname is the name of the group and resourcename is the name of the resource:
    sudo calendarservermanageprincipals --add-read-proxy groups:groupname resources:resourcename
    To delegate read and write access of a resource to a group use the following command, where groupname is the name of the group and locationname is the name of the location:
    sudo calendarservermanageprincipals --add-write-proxy groups:groupname locations:locationname
    To delegate read access of a location to a group use the following command, where groupname is the name of the group and locationname is the name of the location:
    sudo calendarservermanageprincipals --add-read-proxy groups:groupname locations:locationname
    Once you have delegated access to resource or location, a client can view it in iCal via iCal > Preferences > Accounts > Delegation and selecting "Show" beside each resource and location.

  • Viewing calendar of a resource in iCal (connected to an iCal Server)

    Let's say I've got a bunch of video cameras or rooms that I want to view the availability of in iCal. Is there any way to do this without making a new event, inviting the resources, and then checking the availability in the window?

    according to Apple documents:
    http://support.apple.com/kb/HT3897
    To delegate read and write access of a resource to a group use the following command, where groupname is the name of the group and resourcename is the name of the resource:
    sudo calendarservermanageprincipals --add-write-proxy groups:groupname resources:resourcename
    To delegate read access of a resource to a group use the following command, where groupname is the name of the group and resourcename is the name of the resource:
    sudo calendarservermanageprincipals --add-read-proxy groups:groupname resources:resourcename
    To delegate read and write access of a resource to a group use the following command, where groupname is the name of the group and locationname is the name of the location:
    sudo calendarservermanageprincipals --add-write-proxy groups:groupname locations:locationname
    To delegate read access of a location to a group use the following command, where groupname is the name of the group and locationname is the name of the location:
    sudo calendarservermanageprincipals --add-read-proxy groups:groupname locations:locationname
    Once you have delegated access to resource or location, a client can view it in iCal via iCal > Preferences > Accounts > Delegation and selecting "Show" beside each resource and location.

  • Apple dealer locator in Asia?

    This isn't the best place to post this, but I don't see any better options; I want to buy an iMac in Vietnam; I understand there's a certified dealer in Ho Chi Minh City; I'm looking for one in Hanoi. Is there a web resource for locating a legitimate Apple retailers overseas?

    The only online page I can think of is:
    http://www.apple.com/retail/
    This lists the various dealers they have in Japan, U.K., and the U.S.A.
    You can also take a look at the various links on the page at:
    http://www.apple.com/buy/
    You might find something of use there. I'm sorry I couldn't find anything more helpful.
    If you cannot find anything of help on those pages, I would just call Apple and get a referral from them. They should be able to help you find the closest dealer to your area.
    Hope this helps.

Maybe you are looking for