Updating tag attributes in design time

I have a design time renderer for my custom component... As the component renders itself in design time, I set some of the component properties from within the renderer... The property sheet correctly shows those values... However, the associated JSP tag in the source view does not show those attributes... The JSP tag attributes dictate the runtime behavior and since they are not set properly, my component misbehaves.
How do I make sure that the tag attributes sync up with the property sheet values?
Also, what is the motivation behind the property sheet displaying the component values and not the JSP tag values? Having it the way it is right now opens itself up to a bunch of out-of-sync problems like the one I encountered.
Thanks,
Keyur

Ok - here are a couple of scenarios:
1. I have a component, say chart component associated with a connection component like this:
<my:connection id="connection1" />
<my:chart connectionId="connection1" />The user first drags and drops the connection component. The ID connection1 is automatically associated to it. Next he drops the chart component. Now, I would like to automatically populate the connectionId attribute without the user having to type it in manually. I am able to do that (in design time) in the renderer of the chart component - I programmatically look for a connection component on the page and set the connectionId attribute of the control. And when I do that it correctly shows the connectionId attribute populated in the property sheet but the corresponding tag attribute is not.
Sure enough, at runtime, it is the tag attribute values that count and since those are not updated by the IDE, it does not work as expected.
2. Creator updates the style attribute when I move or resize the component. Now, I also have position attributes left and top defined on my component and I use these attributes at runtime to position my component. So, in design time I extract the left and top values from the style attribute and set them on the component. But again, the tag attributes are not populated and so the component is not positioned properly.
#1 is to convenience the user so that he doesn't have to manually enter values for attributes which can be automatically populated at design time.
In fact for #1, I would ideally like to show the user a drop down list of all the connections available to him in the property sheet and select the first one by default. Is this possible?
#2 is for backward compatibility reasons - We already have runtime renderers in place which use left and top attributes explicitly to render the components at runtime. And this is not restricted to left and top only but other client attributes as well - such as borders, backgrounds etc. which we expose as separate attributes.

Similar Messages

  • How to disable process design time attributes WS RM

    Hi,
      I recently configured a NW BPM test scenario which works as expected. When I tried to test/call BPM Process using SOAP UI/Webservice client I am unable to send a message to SAP BPM process due to WS RM & WS A are activated at design time. While developing scenario in NWDS how can I disable the properties WS-RM & WS A for start event trigger as this acts provider WSDL for Webservice client . Thank you in advance.
    Thank you,
    Mallik

    Hi Mailk,
    Any/every asynchronous web service developed in the ESR and then imported from ESR into NWDS will have properties added to the WSDL on import by the design time. The attributes are tagged as shown below.
    <ifw:properties xmlns:ifw="urn:com-sap:ifr:v2:wsdl">
    On deployment, these attributes trigger the SOA infrastructure to generate the service endpoint interface as WS-RM. These properties cannot be changed in the runtime SOA configuration as they are not editable. 
    If you want to develop the services in the ESR and then deploy them without WS-RM there are two options.
    a) copy-paste the wsdl out of the ESR perspective (the raw WSDL text) and create a local document with same name and then import the WSDL from the file system in NWDS
    b) import the WSDL from ESR and then manually remove all the <ifw: properties/attributes, then save the WSDL.
    My preference is to develop the service in the ESR (as all services should be) and then import and remove the tags. But the copy-paste and create a local WSDL is less error-prone. In any event you'll need to document the WSDL so that down the road anyone who might modify the service would know that it has been further adapted outside the standard tooling. The <ifw: attributes also control other runtime properties such as authentication, so please do some homework on services deployed with and without the tags so you can see for yourself and really understand the service endpoint generation.
    regards, Nick

  • OIM Design Console Internal error while updating task attributes

    Hi All,
    I have installed OIM9101 on jboss, the set up is running fine. I am in the process of integrating a OID connector following steps given OID connector guide. In design console(Administration-->Task Scheduler) while modifying "OID Group Lookup Reconciliation Task" attributes, attribute value is not getting saved. When i click on save option it shows a pop up windows saying "problem in updating task attributes. update failed."
    Any solution for this??.. Please help.
    Thanks in Advance.
    Edited by: VAYANAKA on Nov 26, 2010 10:48 PM

    Thank you for the reply..I have tried to create a new scheduled task. But while saving it again an Internal error pop up window comes saying " Description:Could not execute database read.The database encountered a problem with the specified SQL Query.Remedy: Check the database query.Contact your system administrator."..
    Is it any problem with my database.? I have checked database, its up and running??
    Thanks In advance.

  • Can I write Design-time for JSP custom tag(not JSF components)

    I have some old JSP custom tags(not JSF components), and I want to use them in the IDE through the toolbox.
    Now I have already written the BeanInfos for these tags, and they can be drag from the toolbox; but it will throw a Exception when render the tags, and the properties in the Property Editor are not which I describe in the BeanInfos.
    How can I write Design-time for these tags? or whether it is possible to write the Design-time for these tags?
    the Exception is shown as follow:
    java.lang.ClassCastException
         at com.sun.rave.insync.faces.FacesPageUnit.renderNode(FacesPageUnit.java:1347)
    [catch] at com.sun.rave.insync.faces.FacesPageUnit.renderBean(FacesPageUnit.java:1086)
         at com.sun.rave.insync.faces.FacesPageUnit.getFacesRenderTree(FacesPageUnit.java:993)
         at com.sun.rave.css2.FacesSupport.getFacesHtml(FacesSupport.java:152)
         at com.sun.rave.css2.CssContainerBox.addNode(CssContainerBox.java:373)
         at com.sun.rave.css2.CssContainerBox.createChildren(CssContainerBox.java:354)
         at com.sun.rave.css2.DocumentBox.createChildren(DocumentBox.java:90)
         at com.sun.rave.css2.DocumentBox.relayout(DocumentBox.java:160)
         at com.sun.rave.css2.PageBox.layout(PageBox.java:392)
         at com.sun.rave.css2.PageBox.relayout(PageBox.java:454)
         at com.sun.rave.css2.DocumentBox.redoLayout(DocumentBox.java:313)
         at com.sun.rave.css2.PageBox.redoLayout(PageBox.java:460)
         at com.sun.rave.css2.DocumentBox.changed(DocumentBox.java:634)
         at com.sun.rave.designer.DesignerPaneUI$UpdateHandler.changedUpdate(DesignerPaneUI.java:1012)
         at com.sun.rave.text.Document.fireChangedUpdate(Document.java:851)
         at com.sun.rave.text.Document$5.run(Document.java:631)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

    I have some old JSP custom tags(not JSF components), and I want to use them in the IDE through the toolbox.
    Now I have already written the BeanInfos for these tags, and they can be drag from the toolbox; but it will throw a Exception when render the tags, and the properties in the Property Editor are not which I describe in the BeanInfos.
    How can I write Design-time for these tags? or whether it is possible to write the Design-time for these tags?
    the Exception is shown as follow:
    java.lang.ClassCastException
         at com.sun.rave.insync.faces.FacesPageUnit.renderNode(FacesPageUnit.java:1347)
    [catch] at com.sun.rave.insync.faces.FacesPageUnit.renderBean(FacesPageUnit.java:1086)
         at com.sun.rave.insync.faces.FacesPageUnit.getFacesRenderTree(FacesPageUnit.java:993)
         at com.sun.rave.css2.FacesSupport.getFacesHtml(FacesSupport.java:152)
         at com.sun.rave.css2.CssContainerBox.addNode(CssContainerBox.java:373)
         at com.sun.rave.css2.CssContainerBox.createChildren(CssContainerBox.java:354)
         at com.sun.rave.css2.DocumentBox.createChildren(DocumentBox.java:90)
         at com.sun.rave.css2.DocumentBox.relayout(DocumentBox.java:160)
         at com.sun.rave.css2.PageBox.layout(PageBox.java:392)
         at com.sun.rave.css2.PageBox.relayout(PageBox.java:454)
         at com.sun.rave.css2.DocumentBox.redoLayout(DocumentBox.java:313)
         at com.sun.rave.css2.PageBox.redoLayout(PageBox.java:460)
         at com.sun.rave.css2.DocumentBox.changed(DocumentBox.java:634)
         at com.sun.rave.designer.DesignerPaneUI$UpdateHandler.changedUpdate(DesignerPaneUI.java:1012)
         at com.sun.rave.text.Document.fireChangedUpdate(Document.java:851)
         at com.sun.rave.text.Document$5.run(Document.java:631)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

  • FEATURE REQUEST: Design Time CSS

    NitroX really needs the ability to attach "Design Time" CSS to a JSP (ala DreamWeaver). If I'm editing a JSP, the only CSS Styles it suggests to me are the ones imported directly into the page. What about the style I define in my header.jsp? I need to ability to say, use this CSS while I'm coding, but don't import it, that will be done in a different file. If NitroX was smart enough to look at the tiles and JSPs that import the JSP that I'm working on and used their style sheets, all the better.

    NitroX can actually look at the tiles and JSPs that import the JSP that you are working on and automatically use the CSS styles (and tag libraries too) declared in them.
    To trigger this behaviour you should open the JSP page you want to edit from the including page by double clicking on the included page icon in the design editor, control-click in the source (the page attribute of the jsp:include tag for example, etc).
    M7 Support

  • OIM: Error while updating Task Attributes

    Hi All,
    I am trying to use PeopleSoft User Management using OIM connector.
    I am facing an error saying "problem in updating Task Attributes" while scheduling a task on OIM design Console. I am trying to update and save PSFT Base Non Trusted User Reconciliation. following is the log message displayed in server command prompt.
    ERROR,11 Apr 2008 05:02:53,287,[XELLERATE.SERVER],Class/Method: tcTSA/eventPostU
    pdate encounter some problems: problem in updating Task Attributes
    com.thortech.xl.scheduler.exception.SchedulerGenericException: problem in updati
    ng Task Attributes
    at com.thortech.xl.scheduler.core.quartz.QuartzSchedulerImpl.updateTaskA
    ttributes(Unknown Source)
    at com.thortech.xl.scheduler.ejb.SchedulerControllerBean.updateTaskAttri
    butes(Unknown Source)
    at com.thortech.xl.scheduler.beans.SchedulerControllerSession.updateTask
    Attributes(Unknown Source)
    at com.thortech.xl.scheduler.beans.SchedulerController_z4f4d2_EOImpl.upd
    ateTaskAttributes(SchedulerController_z4f4d2_EOImpl.java:478)
    at com.thortech.xl.scheduler.beans.SchedulerController_z4f4d2_EOImpl_CBV
    .updateTaskAttributes(Unknown Source)
    at com.thortech.xl.dataobj.tcTSA.eventPostUpdate(Unknown Source)
    at com.thortech.xl.dataobj.tcDataObj.update(Unknown Source)
    at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
    at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
    at com.thortech.xl.ejb.databeansimpl.tcDataObjectBase.save(Unknown Sourc
    e)
    at com.thortech.xl.ejb.beans.tcTSA_u3xmy2_EOImpl.save(tcTSA_u3xmy2_EOImp
    l.java:1437)
    at com.thortech.xl.ejb.beans.tcTSA_u3xmy2_EOImpl_WLSkel.invoke(Unknown S
    ource)
    at weblogic.rmi.internal.activation.ActivatableServerRef.invoke(Activata
    bleServerRef.java:90)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:434)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    147)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
    a:429)
    at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
    .java:35)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
    Caused by [Nested Exception]:
    java.lang.NullPointerException
    at com.thortech.xl.scheduler.core.quartz.QuartzSchedulerImpl.updateTaskA
    ttributes(Unknown Source)
    at com.thortech.xl.scheduler.ejb.SchedulerControllerBean.updateTaskAttri
    butes(Unknown Source)
    at com.thortech.xl.scheduler.beans.SchedulerControllerSession.updateTask
    Attributes(Unknown Source)
    at com.thortech.xl.scheduler.beans.SchedulerController_z4f4d2_EOImpl.upd
    ateTaskAttributes(SchedulerController_z4f4d2_EOImpl.java:478)
    at com.thortech.xl.scheduler.beans.SchedulerController_z4f4d2_EOImpl_CBV
    .updateTaskAttributes(Unknown Source)
    at com.thortech.xl.dataobj.tcTSA.eventPostUpdate(Unknown Source)
    at com.thortech.xl.dataobj.tcDataObj.update(Unknown Source)
    at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
    at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
    at com.thortech.xl.ejb.databeansimpl.tcDataObjectBase.save(Unknown Sourc
    e)
    at com.thortech.xl.ejb.beans.tcTSA_u3xmy2_EOImpl.save(tcTSA_u3xmy2_EOImp
    l.java:1437)
    at com.thortech.xl.ejb.beans.tcTSA_u3xmy2_EOImpl_WLSkel.invoke(Unknown S
    ource)
    at weblogic.rmi.internal.activation.ActivatableServerRef.invoke(Activata
    bleServerRef.java:90)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:434)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    147)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
    a:429)
    at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
    .java:35)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
    ERROR,11 Apr 2008 05:02:53,287,[XELLERATE.SERVER],Class/Method: tcDataObj/save E
    rror :Data Update Failed
    ERROR,11 Apr 2008 05:02:53,302,[XELLERATE.DATABASE],Class/Method: tcDataBase/rol
    lbackTransaction encounter some problems: Rollback Executed From
    java.lang.Exception: Rollback Executed From
    at com.thortech.xl.dataaccess.tcDataBase.rollbackTransaction(Unknown Sou
    rce)
    at com.thortech.xl.dataobj.tcDataObj.rollback(Unknown Source)
    at com.thortech.xl.dataobj.tcDataObj.doRollback(Unknown Source)
    at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
    at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
    at com.thortech.xl.ejb.databeansimpl.tcDataObjectBase.save(Unknown Sourc
    e)
    at com.thortech.xl.ejb.beans.tcTSA_u3xmy2_EOImpl.save(tcTSA_u3xmy2_EOImp
    l.java:1437)
    at com.thortech.xl.ejb.beans.tcTSA_u3xmy2_EOImpl_WLSkel.invoke(Unknown S
    ource)
    at weblogic.rmi.internal.activation.ActivatableServerRef.invoke(Activata
    bleServerRef.java:90)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:434)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    147)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
    a:429)
    at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
    .java:35)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
    I am facing above error when try to update any task in the task scheduler.
    Can anyone please suggest me where i am going wrong?
    Thanks,
    Uma.

    I would assume you are missing the jar file for your scheduled tasks. Try and create a new scheduled task with the same class name, if it won't let you save, this is your answer. You'll want to make sure you have the connector scheduled task file in the ScheduleTask folder in your OIM directory.
    -Kevin

  • Insufficient access error while updating AD attributes

    Please find the attachment, I have tried to update the lastLogon attribute to replicate in global catalog, then the error has occurred as follows. I have enterprise administrative power, then also not able to update the attribute, please help
    thanks in advance.

    I would agree with Martin. You simply need to be member of Schema Admins
    group. You can add that using dsa.msc.
    By the way, why are you trying to do that? Lastlogon attribute should not be replicated as it maintained locally on each DC. If you want to get the user exact last logon date and time then you can use my script here: https://gallery.technet.microsoft.com/scriptcenter/Get-Active-Directory-User-bbcdd771
    This posting is provided AS IS with no warranties or guarantees , and confers no rights.
    Ahmed MALEK
    My Website Link
    My Linkedin Profile
    My MVP Profile

  • Ver 4: Still no support for Includes or Design Time Stylesheets?

    Wow...well, without either of these I can't make use of this
    product. I guess I'm confused at what types of users this product
    may be marketed toward, although with the amount of focus put on
    Blogs and Blogging and lack of focus on requests already made in
    this forum for some time I'm getting a better idea. Hey, if they
    want to "dumb this down" and make it a price point product that
    purposely sits lower on the totem pole than Dreamweaver, then I
    think that ought to be made more clear in the marketing materials.
    I guess what's frustrating is that it's touted that it "uses the
    Dreamweaver HTML Engine" but can't implement a feature like Design
    Time Stylesheets? Would this put it too close to Dreamweaver in the
    product line? I certainly don't think so but if it did implement
    such a feature it would increase the demographic that could make
    use of such a great product as many users are not going to rewrite
    Includes OUT of their existing sites just to be able to use it.
    Most intermediate to advanced designers will almost always,
    and have been taught, to use includes to minimize page changes in
    multiple places...it's such a common thing to do. But unless an
    included page can be edited inline I have no way to turn my users
    loose with this app. It seems reasonable to implement Design Time
    Stylesheets like Dreamweaver does in which case, the users could
    edit the included page directly and at least see it like it should
    look with formatting which they can't do now because of the lack of
    an applied stylesheet when opening the include file directly.
    Do they expect that once we've written a site using includes
    we should have our content providers use Dreamweaver? I don't know
    about the rest of you but that's asking for a heck of a lot of
    trouble turning non-designer/developers loose with
    Dreamweaver...even using Templates.
    Sorry for the rant, I'm just a bit frustrated as I really
    need an app that can let me make use of "Content Providers" in our
    company. And don't get me wrong, I'm a long time Macromedia/Adobe
    supporter...just hoped something would happen with v4 that didn't
    and was pretty sure it would based on user input on this and other
    forums.
    If anyone has ideas on workarounds for this problem I'd love
    to hear!
    Thx,
    Mike

    Hi. I'm going to reopen this thread instead of starting a new
    one. Maybe someone here can help me figure out how Contribute can
    solve my client's editing woes.
    His site is built in ColdFusion, with template information
    that's stored in the database for each page. Currently this is what
    happens, simplified.
    1. User requests /foo.cfm
    2. Database looks up header, footer, and template to use for
    /foo.cfm, or the page can use "no template" in which case
    whatever's in the page gets put between the header and footer.
    3. The template or the page will contain one or more
    "editable regions", to use a Dreamweaver term. These blocks of HTML
    are pulled out of the database, and can currently be edited within
    the CMS by a browser-based WYSWYG editor.
    The problem is, the WYSIWYG editor in question isn't up to
    the task. Contribute seems to be, but I can't figure out how to fit
    it into a workflow compatible with this site!
    We don't use Dreamweaver and from what I've seen Dreamweaver
    templates aren't going to work in this application. It seems that
    if you make a change to the template, Dreamweaver has to go and
    update all 800 pages that use the template ... ??!? ... if so,
    lame.
    I don't mind pulling out all the HTML content snippets from
    the database and making a "database" on the filesystem of files
    that can be edited in Contribute. No problem. One of these snippets
    may be a "contact us" box or something that's used on 100 pages
    throughout the site, so I'm not going to put stuff like that
    separately on every page.
    If I do this, though, my snippets when I open them to edit
    them in Contribute are missing their CSS. This is because the CSS
    is set up in the header file, which is not included in the snippet
    HTML, obviously. The snippets also won't have the header and footer
    navigation and stuff, but I can live with that.
    How can I get the CSS to show up for my client when he edits
    the HTML snippets?
    The only solution I can think of is to put a stylesheet
    include into every snippet, and then pull that out with a regular
    expression from EVERY include at runtime whenever I display that
    HTML to the end user. Talk about a gross, ugly, non-extensible
    hack. Please tell me there's a better way...
    Thanks for reading,
    - Andrew.

  • JSF Design Time View Not working correctly for ADF/JSF components

    My project is not using any external tag libraries. It is based purely on ADF core/html and JSF core/html components. The design time view does not show the appropriate presentation, everything is shown as nexted frame containers (I suppose how you would show a component that does not have a visual representation).
    If I create a new project and copy my jsp (jsf) pages over they show perfectly. I did this activity and all was going well in the new project and then I lost the design time view again. I cannot tell you what I did to cause the issue, maybe it was a modification to the web.xml as has been suggested in some other threads. Can anyone tell me what I should be looking for that causes this problem, what corrective actions I might take to eliminate the issues

    Ok I have isolated this issue. In my phase listener I had this line of code:
    private static final Logger _logger =  Logger.getLogger(EigRequest.class.getPackage().getName());
    and I changed it to
    private static final Logger _logger =
    Logger.getLogger(EigRequest.class.getName());
    and design mode started to work. I guess either of the above works for me although I do not understand why the line works when you run the application but not in design mode.
    Moral to the story is if something fails in any one of these types of decorators you will drop into a raw view mode. The question I have is if errors are occuring how do I figure out where they may be. There is no indication that anything is wrong with the exception that you lose most of the design mode functionality.
    This was not a compile issue, this was not a runtime issue. It took me quite a few hours of writing a test program to validate that it was not just writing a phase-listener issue; then launching, editing, relaunching the application to find the problem. I will say that a good portion of the code came from a Eclipse project. If you add the offending lines of code while using JDeveloper you do not loose design mode immediately. You only see the problem the next time you start JDeveloper which complicates finding the problem.

  • JSP ${} expressions in JSF tag attributes

    Does anyone know why the expert group decided not to allow ${} style expressions within JSF tag attributes? I understand that a different syntax is needed to implement the 'late binding' #{} expressions used to link input controls to form beans, but not why the JSF tags actually prevent the use of immediately evaluated ${} expressions for accessing variables in the page scope in JSP 2.0.
    I know there has been a lot of discussion about this and other threads mention a security loophole that would be opened up by allowing expressions like #{blah.${someProperty}}, but I'm not sure why this sort of thing would cause a problem. Is there any way to enable this behaviour, such as editing the JSF tag library descriptors to allow runtime expressions (horrible though that sounds)? Or perhaps another JSF implementation that supports both immediately evaluated and late-binding expressions? It seems a rather unnecessary restriction that is going to cause much confusion and mistyping for all...
    Thanks in advance,
    Keith.

    Thanks Adam, I see the problem now. It's a fairly obscure loophole but serious nonetheless. Of course, this problem could also be avoided by not using request parameters within JSF tags as it doesn't affect the majority of legitimate uses for expressions.
    I have to disagree with you about mixing ${} and #{} expressions though. The majority of developers will be used to writing ${} expressions in JSTL and JSP text and so will expect them to do work the same in JSF tags. Judging by the number of posts in this forum about being unable to use page scope variables in JSF tags this issue is already confusing a lot of people.
    As a rule of thumb, "use ${} for expressions that are output to the page and #{} for binding controls to backing beans and invoking methods" (which perform clearly distinct functions) is a lot simpler and easier to learn IMHO than the current one, which is "use ${} for expressions that are output to the page except within a JSF tag, where you use #{} for the same thing and also to update form values and invoke action methods"! (OK, I'm exaggerating a little for effect, but you get the point... :-)
    I agree that mixing both types of expression in the same attribute might be a little confusing, but this is an unlikely edge case that should probably be prevented in value binding or action attributes anyway. It's more of an issue for label values where mistyping one for the other is already very common and, although not especially difficult to debug, is just another pitfall awaiting the unwary JSP developer. I'm not sure that JSP expressions would be much more difficult to debug anyway as the value and method bindings will simply not work, which is pretty obvious as soon as you try and test the thing.
    Is this something that the EG would be prepared to reconsider for the next release of JSF, or perhaps getting the security loophole addressed in the next JSP spec? In the meantime, is there any reason that developers shouldn't enable runtime expressions in the TLD file provided that they're willing to live with the consequences?
    (Sorry to harp on about it, but I've already had several complaints about this after recommending JavaServer Faces for a major development project at ingenta.com.)
    Many thanks,
    Keith.

  • Why can't I update Creative Suite 5 Design Premium

    I am running Windows XP Pro 32 bit with version 3 update.  When the latest CS5 Design Premium updates were released  the computer refused to update any program in the suite. On-screen advice was that another version of Updater was running.
    Contacted Adobe and was advised to uninstall all Adobe programs, then run CS5 Cleaner and re-install CS5.  This was done and while Acrobat 9 Pro updated all other CS5 suite programs baulked and displayed the same warning that another version of Updater was running. I then went through the computer and uninstalled every add-on that could be connected with Adobe.   I have unistalled CS5 5 , run CS5 Cleaner and re-installed CS5  three more times since, gradually reducing the number of suite programs.  I am now down to Acrobat 9 Pro, Photoshop and Illustrator.  Very frustrating.  Any assistance would be appreciated.

    Thank you for your reply.
    I got my Macbook replacement and installed a fresh copy again. No issues on installation. But I was not able to install update after installation. This time can only download and when it's about to install. It show some updates cannot be installed.

  • Does changing report connection at runtime require the same user/pwd used at design time?

    I've recently integrated Crystal 13 into a web service to provide HTML reports served up within our web application.  Sometimes reports would work and other times they would fail when attempting to connect to the database.  The ConnectionInfo associated with the tables referenced in the reports bore the account info used at design time (in the Crystal IDE), what ever connection was set as the Datasource Location, this would include the server name, database name, and other attributes of the connection.
    I found that any changes I make to table, sub-report connection info have no affect unless the UserID and Password match the UserID and Password saved with the report during design time.  While generally searching online, I came across several references to this being and issue or suggestion when database connection problems dynamically running reports.
    If this is by design?
    How would I support customers who want to use my reports, but also require that they manage the db access accounts?
    Thanks,
    Jeff

    Hi Brian, thanks for the response. 
    It does make sense that subreports would not necessarily be constrained to the same connection as the container report, and the designer would not persist a password for any stored connection.
    I'm on Windows 7 and up, Crystal 13 runtime, C# web service, sql 2008 r2 and up (native client).
    After loading the report source, I call ReportDocument.SetDatabaseLogon to set userId, password, serverName, and databaseName pulled from web.config.  I then pass the connection info and the ReportDocument to a recursive call that applies the connection info to each table in the report and each table in any subreport.
    Based on your description, it sounds like I may be missing, and require, the SetDatabaseLogon call on each subreport (ReportDocument).
    This seems to ring true and I think coincides with your description.  Would you agree?
    Thanks,
    Jeff

  • Custom tag attribute calculated by scriptlet expression

    Hi,
              If I set the rtexprvalue subelement of the attribute element in my tld to
              "true", should I be able to dynamically determine the value of my custom tag
              attribute using a scriptlet expression?
              When I include the custom tag reference:
              <prod:getCategory id="category"
              categoryID="<%=request.getParameter("catID")%>" scope="page"/>
              it actually gets written to the html as:
              <prod:getCategory id="category" categoryID="2133" scope="page"/>
              and is not recognized as a jsp tag.
              I am using weblogic 6.0 sp1.
              Thanks in advance!
              daniel
              

    I had the same problem in a design a couple of months ago and could not get around it so I switched the functionality into code and out of the tag lib.
    I take it you are trying to do something like this?
    <%
    String value="hiworld";
    %>
    <mytaglib:saysomething value="<%=value%>"/>

  • Custom tag attribute question

    How to assign value of expression or variable to custom tag attribute in jsp?

    I had the same problem in a design a couple of months ago and could not get around it so I switched the functionality into code and out of the tag lib.
    I take it you are trying to do something like this?
    <%
    String value="hiworld";
    %>
    <mytaglib:saysomething value="<%=value%>"/>

  • Adf components not seen at design time

    Hi All,
    At design time pages are displayed like:
    <>Root
    <>Output @page directive
    <>View
    <>Html,
    and so on, for any page in the application. In another application all the pages look fine (if I copy their contents). Tag libraries and libraries in project properties tab are the same as in normal projects. What settings should I check to be able to see all components in normal mode at design time? This is JDeveloper 10.1.3.2.0.
    Thanks
    SNikiforov

    http://blogs.oracle.com/Didier/2007/02/diagnosing_problems_with_the_v_1.html

Maybe you are looking for