Updating a component outside the context of the f:ajax element

Is there a way to make the following code work, apart from placing the "out" component inside the h:form element?
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
     xmlns:h="http://java.sun.com/jsf/html"
     xmlns:f="http://java.sun.com/jsf/core">
<h:head>
     <title>Welcome</title>
</h:head>
<h:body>
     <h:form id="form1">
          <p><h:outputText id="out" value="#{user.greeting}" /></p>
          <h:inputText value="#{user.name}" id="user-name" />
          <p><h:inputSecret value="#{user.password}" id="password" /></p>
          <p>
          <h:commandButton value="Login" id="login-button">
               <f:ajax execute="user-name password" render="out" />
          </h:commandButton>
          </p>
     </h:form>
</h:body>
</html>
{code}
At the moment the following exception is thrown by JSF when rendering the page:
{code}
<f:ajax> contains an unknown id 'out' - cannot locate it in the context of the component login-button
{code}
Edited by: BytecodeNinja on Jun 24, 2010 6:20 PM
Edited by: BytecodeNinja on Jun 24, 2010 6:22 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Hi Terence,
Looks like a slight problem with where the slashes etc are.
The following will work - note the slash after OA_MEDIA as a seperate field in the concat.
url:{concat('${OA_MEDIA}','/',/HBOSRA0830/LIST_G_C_PAYGROUP/G_C_PAYGROUP/C_PAYGROUP,'.jpg')}
Robert

Similar Messages

  • ColdFusion 11: cfclient in the context of the CFML language, not the tooling

    G'day:
    I am reposting this from my blog ("ColdFusion 11: <cfclient> in the context of the CFML language, not the tooling") at the suggestion of Adobe support:
    @dacCfml @ColdFusion Can you post your queries at http://t.co/8UF4uCajTC for all cfclient and mobile queries.— Anit Kumar Panda (@anitkumar85) April 29, 2014
    I have edited this in places to remove language that will be deemed inappropriate by the censors here. Changes I have made are in [square brackets]. The forums software here has broken some of the styling, but so be it. There is worthwhile discussion in the comments of the article on my blog: perhaps go have a read.
    G'day:
    This article could end up being a complete waste of space, as I am operating under more real-world re-interpretation of the raison d'être of <cfclient>, as described by Ram:
    ColdFusion [11] has added support for client side CFML (<cfclient>) and this code is translated to JavaScript
    Mike Henke has pointed out that the first part of this "CF11 has added support for client-side CFML" is actually ******** (my wording, not his):
    "ColdFusion Splendor has added support for client side CFML" is probably phrased wrong and gave me flash backs to VBScript or CFML running in the client browser.
    Maybe this is better verbiage. "ColdFusion Splendor has added support for CFML to generate JS".
    Because... there's not such thing as "client-side CFML". That would imply CFML actually running on the client (ie: the browser, or the mobile device, as is the target of <cfclient> as a concept). This is absolutely not true. I know Ram went on to qualify what he meant there, but the messaging from Adobe on <cfclient> has been inaccurate. Possibly I think to the point of actual misrepresentation (in the legal sense, I mean).
    What <cfclient> does is... convert CFML code to JavaScript. So let's look at that idea.
    Why I say this article could be a complete waste of space is that I dunno if this is the intent of <cfclient>; because, really, the messaging from Adobe as to what <cfclient> is for is very muddied. In general the narrative about it is bundled-in with various features of ColdFusion Builder 3.0, in regards to mobile application creation and packaging (and debugging, and all sort of stuff that sounds quite nice but I don't care about as I don't use CFB).
    However <cfclient> has to stand on its own merit in the CFML language, completely decoupled from CFB features. And as far as I can tell, Mike is right: as far as CFML goes, <cfclient> is a tag which tells ColdFusion to - instead of compiling to byte code - compiles the enclosed CFML code to JavaScript instead.
    This of course just sets my alarm klaxons going.  Because Adobe are (I choose my words carefully) [not very good] at converting CFML to client-side code. This has been borne out by <cfform>, <cflayout>, <cfpod> etc. Back in the days of CFMX7 the "CFML-to-client-side" wizards had some merit, because the client-side arena was still immature, and the team at Macromedia actually had some exposure to the idea of "website development", so they knew where the pain points were that they could possible ameliorate. Times have changed, and the client-side of things is probably now more mature an environment than CFML is - Javascript is probably are more coherent language than CFML is, now - and it is very very very clear that the current Adobe ColdFusion Team don't know the first thing about web development (they can't even write decent CFML for their own documentation, before we get onto how they'd be doing web work!), so they are completely out of their depth when it comes to addressing pain points that web devs might have these days. Not only have they not walked a mile in a web dev's shoes, they don't even - as far as I can tell - know what shoes are, or why someone would be wearing them.
    And <cfclient> is a far more "meta" solution than <cfform> or <cfpod> were... at least the CFML-to-client-side solution there had a tangible target in mind. <cfclient> has removed the targets, and is just a tag designed for converting general CFML to general JS. Yikes.
    600-odd words in, here's some code. This is the first-ever code I have written using <cfclient>:
    <cfclient> <cfset msg = "G'day World"> <cfoutput>#message#</cfoutput> </cfclient>
    So I'm off to a false start: I admit I'm sitting in the pub and I've had a few pints (probably four, I guess; this is "having some drinks before deciding to actually drink this evening" sort of level for me), and I inadvertently [messed-up] my variable names here. And this did not yield a compile error. The error just fell through to JS, where it did error
    Uncaught ReferenceError: message is not defined gdayWorld.cfm:4
    If, in contrast, I tried this in CoffeeScript, I'd get this:
    coffee> msg = "G'day world"
    'G\'day world'
    coffee> alert msg
    undefined
    coffee>
    alert message
    ReferenceError: message is not defined
        at eval (eval at  (http://larryng.github.io/coffeescript-repl/js/main.js:96:26), :1:9)
    Important note: I know nothing about CoffeeScript - it seems like a solution to a non-existent problem to me - so I just googled "hello world coffeescript" and REPLed the code on http://larryng.github.io/coffeescript-repl/.
    The point is here is that ColdFusion, during the "compile" process should actually notice I am referencing a variable that doesn't exist. I'm OK with this being a runtime error in the normal CFML-compile process, because there could be many moving parts (and other files) involved in the runtime environment, but I don't think this is a valid notion with <cfclient>? Or maybe it is?
    Update:As Ray points out and Aaron agrees with below: I was being unduly harsh here... it's entirely reasonable for variables to be declared in other JS code elsewhere in the response.
    Anyway, once I actually write my code properly, I get this:
    G'day World
    On the screen. What CF actually sends back in the response is this:
    <script type="text/javascript" src="/CFIDE/cfclient/cfclient_main.js"></script> <script type="text/javascript" src="/CFIDE/cfclient/cffunctions.js"></script> <meta name="viewport" content="width=device-width"> <script type='text/javascript'>globalDivStruct=null;var _$gdayWorld_func=function(){var self=this;var variables={};self.__init=function(){var localdivstruct=globalDivStruct;var __output_var="";var tmpVarArray={};message="G'day World";localdivstruct.outputvar+=message;return""}}; function __startPage__$gdayWorld(){document.write("\x3cdiv id\x3d'__cfclient_0'\x3e\x3c/div\x3e");window.ispgbuild=false;var clientDivStruct={divId:"__cfclient_0",outputvar:""};globalDivStruct=clientDivStruct;try{_$gdayWorld=new _$gdayWorld_func;_$gdayWorld.__init()}catch(__eArg){if(__eArg!=="$$$cfclient_abort$$$")throw __eArg;}__$cf.__flush(clientDivStruct)}__startPage__$gdayWorld(); </script>
    [Blimey]. To output a string variable? Really? That's what you compile my CFML down to?
    Gobsmacked.
    And [forget] emotive things like "gobsmacked"... if one looks at the size of the response, it's 128kB to represent "G'day World" on the screen. 128kB might not be a great deal these days when it comes to a web page, but when it comes to rendering "G'day world", it's lunacy. And on a mobile phone - which intrinsically might be in an area in which one is paying a premium for data - it's just irresponsible. This is before we get to the point that it seriously should not take 128kB of data to render 11 bytes.
    Blimey. To be honest I was gonna try some more tricky CFML and see how it compiled, but I've run out of will to live (and I have to concede the beer is getting the better of me, and my laptop battery is almost dead). I'll continue this, but I will let this article stand or fall on its own merit; something <cfclient> certainly seems to be unable to do, thusfar.
    I'll be back on the case with this tomorrow.
    Adam

    The functions defined in the cffunctions.js are not namespaced. If it is namespaced, you would have to add the namespace while using a function inside cfclient.
    These functions are not namespaced, so that you can use the same syntax for using a function inside and outside the cfclient block.
    This is indicative of everyone's concern that you guys would just implement / encourage poor practice in your <cfclient> implementation.
    How is it - given you're "compiling" the CFML anyway - you cannot translate source code that says "listlen()" into "compiled" JS that is CF.listLen() or something? Thus good CFML can be translated into good JS.
    You seem to think that there's a one-to-one mapping between what the CFML says and what the resultant JS needs to be.
    You've basically written a mechanism for a CFML developer to write bad JavaScript.
    Well done.
    Adam

  • The value in flexfield context reference web bean does not match with the value in the context of the Descriptive flexfield web bean BranchDescFlex. If this in not intended, please go back to correct the data or contact your Systems Administrator for assi

    Hi ,
    We have enabled context sensitive DFF in Bank Branch Page for HZ_PARTIES DFF , We have created Flex Map so that only bank branch context fields are only displayed in the bank branch page and  as we know party information DFF is shared by supplier and Customer Page so we dint want to see any Bank Branch fields or context information in those pages.
    We have achieved the requirement but when open existing branches bank branch update is throwing below error message :
    "The value in flexfield context reference web bean does not match with the value in the context of the Descriptive flexfield web bean BranchDescFlex. If this in not intended, please go back to correct the data or contact your Systems Administrator for assistance."
    this error is thrown only when we open existing branches, if we save existing branch and open then it is not throwing any error message.
    Please let us know reason behind this error message.
    Thanks,
    Mruduala

    You are kidding?  It took me about 3 minutes to scroll down on my tab to get to the triplex button!
    Habe you read the error message? 
    Quote:
    java.sql.SQLSyntaxErrorException: ORA-04098: trigger 'PMS.PROJECT_SEQ' is invalid and failed re-validation
    Check the trigger and it should work again.
    Timo

  • [JCoAPI] The context with the session id scope type [null] is currently used in thread HTTP Worker

    Hello to all SAP-experts.
    I have an error in SAP CE, and i can see in troubleshooting following information:
    [JCoAPI] The context with the session id [JCo_mMnig6B1YRWfNCWhW0pY0CgFOhzFTAHqyFEA_SAP:P3fshVcB4PLh3CzLBVbpf5lVRxzFTAHqyFEA_SAPyxuggqvaUEsNVbxNQybjvxH0] scope type [null] is currently used in thread HTTP Worker [@1902361406] [0x91].Current thread is HTTP Worker [@1590998042] [0x97].
    invoked at com.sap.conn.jco.rt.Context.checkBusy(Context.java:633)
    invoked at com.sap.conn.jco.rt.Context.getConnection(Context.java:153)
    invoked at com.sap.conn.jco.rt.RfcDestination.execute(RfcDestination.java:1466)
    invoked at com.sap.conn.jco.rt.RfcDestination.execute(RfcDestination.java:1437)
    invoked at com.sap.conn.jco.rt.AbapFunction.execute(AbapFunction.java:300)
    invoked at com.sap.conn.jco.rt.DefaultRequest.execute(DefaultRequest.java:68)
    invoked at com.sap.tc.cm.arfc2.model.ARFC2GenericModelClassExecutable.executeInternal(ARFC2GenericModelClassExecutable.java:107)
    invoked at com.sap.tc.cm.arfc2.model.ARFC2GenericModelClassExecutable.execute(ARFC2GenericModelClassExecutable.java:68)
    invoked at com.sap.tc.cm.arfc2.gci.ARFC2TypedModelClassExecutable.execute(ARFC2TypedModelClassExecutable.java:54)
    invoked at ru.sng.terminal.utt.terminals.wd.comp.utt_term.Utt_term.loadReasonsToStop(Utt_term.java:1542)
    invoked at ru.sng.terminal.utt.terminals.wd.comp.utt_term.Utt_term.wdDoInit(Utt_term.java:186)
    invoked at ru.sng.terminal.utt.terminals.wd.comp.utt_term.wdp.InternalUtt_term.wdDoInit(InternalUtt_term.java:1054)
    invoked at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:161)
    invoked at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:227)
    invoked at com.sap.tc.webdynpro.progmodel.components.Component.initController(Component.java:258)
    invoked at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:206)
    invoked at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:590)
    invoked at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.doPreprocessing(ClientApplication.java:1457)
    invoked at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doPreprocessing(ApplicationSession.java:660)
    invoked at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:349)
    invoked at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:326)
    invoked at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doContent(AbstractDispatcherServlet.java:87)
    invoked at com.sap.tc.webdynpro.serverimpl.wdc.DispatcherServlet.doContent(DispatcherServlet.java:89)
    invoked at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doGet(AbstractDispatcherServlet.java:55)
    invoked at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
    invoked at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
    invoked at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:152)
    invoked at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:38)
    invoked at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:457)
    invoked at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:210)
    invoked at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:441)
    invoked at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:430)
    invoked at com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:38)
    invoked at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    invoked at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:81)
    invoked at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    invoked at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:278)
    invoked at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    invoked at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:81)
    invoked at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
    invoked at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    invoked at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
    invoked at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
    invoked at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    invoked at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
    invoked at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    invoked at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    invoked at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
    invoked at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    invoked at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    invoked at com.sap.engine.services.httpserver.filters.SessionSizeFilter.process(SessionSizeFilter.java:26)
    invoked at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    invoked at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    invoked at com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:57)
    invoked at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    invoked at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    invoked at com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:43)
    invoked at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    invoked at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    invoked at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:475)
    invoked at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:269)
    invoked at com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:56)
    invoked at com.sap.engine.core.thread.execution.Executable.run(Executable.java:122)
    invoked at com.sap.engine.core.thread.execution.Executable.run(Executable.java:101)
    invoked at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328)
    Please, tell how can i solve this problem ?

    Hi Konstantin,
    it has nothing to do with the number of system threads. You are obviously executing several function modules statefully in multiple threads within the same session context. Stateful requests can only be executed in an ordered manner in case they should belong together. You are using ARFC2, which is part of the WebDynpro runtime. In case you are sure that the calls are independent from each other, it might be a good idea to adjust the scope type of some of your bindings. Then the requests will be executed with different scopes depending on your configuration and you can execute them concurrently
    Best regards,
    Markus

  • How do I use the context of the column as part of my calculated measure/column?

    Hello,
    I've struggled with this for a week now.
    I need my calculation to take the context of the column that it's in and use that value as part of a lookup/filter with which to do an operation.
    I basically want to add up the "Value" of all the "ORUs" associated to a Manager(MGR).  But since the ORU's are spread across many managers, I need to calculate the Value
    for an "ORU" and multiply by the "Percent" ( of people that who belong to that ORU for that MGR).   The difficulty is that the MGR(and associated Percent) is one table which is connected via the ORU.  There's no way connection
    to the MGR except by the Column Context.  So, how do I get to it for the calculation? 
    I'd like: CALCULATE(SUM(ORUBUMGR[Percent], FILTER (ORUBUMGR, ORUBUMR[MGR]={This column's header value!})
    pseudo-code would be:
    For each cell in the Pivot table
        SUM
           For each ORU
                  Percent= Look up the multiplier for that ORU associated with the Column
                  SUMofValue = Add all of the Values associated with that Column/Row combination
                  Multiply Percent * SUMofValue
    What won't work is:  CALCULATE(SUM(ORUBUMGR[Percent]), ORUMAP)*CALCULATE(SUM(Charges[Value]), ORUMAP)
    because you're doing a sum of all the Percentages instead of the sum of the Percentages which are only associated with MGR (i.e., the column context)
    The alternatives I can think of is doing a cross join between the tables so you end up with a copy of "Charges" for every row in ORUBUMGR...but while that would work for the example, it
    won't scale as my actual Charge table is quite large.  It'll also end up being quite complicated.  Or, having a column for each MGR where the lookup to the Percent is hardcoded into the calculation...but that also seems complicated and won't scale
    when I want to do future changes. 
    I'd appreciate any assistance...even a "that's impossible".
    Kind Regards,
    Alex
    Link to the XLS on onedrive
    _https://onedrive.live.com/redir?resid=67E698690736D027!3358&authkey=!ADU5F41Sg08Ygm0&ithint=file%2cxlsx
    Link to image showing data and what the pivot answer should look like _http://i.imgur.com/2HC7Lk7.png
    Link to image showing the data model  _http://i.imgur.com/KK3b61v.png
    (I'm waiting to be verified..)

    Yes, you're right, my calculation first attempt only works if the ORU and MGR are on the rows. :(
    I came up with a 2 step calc which is similar to the final calc posted by ImkeF although maybe a little cleaner. It uses a many to many pattern to calculate the ChargeAmt and then a SUMX to iterate over the ORUBUMGR table and apply the percentages.
    ChargeAmt:=CALCULATE(SUM(Charges[Value]),ORUMAP)
    Amt2:=SUMX(ORUBUMGR, ORUBUMGR[Percent] * [ChargeAmt])
    You can roll these into a single measure, you just have to wrap the expression from [ChargeAmt] in another calculate so that it does both the many to many calc and the transition from filter context to row context
    Amt3:=SUMX(ORUBUMGR, ORUBUMGR[Percent] *CALCULATE(CALCULATE(SUM(Charges[Value]),ORUMAP)))
    Personally I think I'd go with the two measure approach (even if you end up hiding [ChargeAmt]) as I think it's easier to read and will be easier to maintain.
    http://darren.gosbell.com - please mark correct answers

  • How to bind the attribute in the context to a dynamic created element?

    Hi, experts,
    There are some attributes in the node context(ee_node) that contained the attribute named "ANSSA" in the view(test_view) in the WDA for abap. In the method modifyview of the view(there is a transfered parameter that represent the name of "ANSSA")
    I want to create a dynamic element(inputfield) in the test_view. The element need bind the context attribute (ANSSA).Through the transfered parameter(para), I only know the name of the attribute binded. 
    How can I bind the attribute of the context in the following code?
    METHOD modifyview .
    *importing para type string.
    *importing m_view type ref to  if_wd_view.
    data wd_inputfield type ref to cl_wd_input_field.
    create one element automatically in the view.
      wd_inputfield = CL_WD_INPUT_FIELD=>NEW_INPUT_FIELD(
                                        view = m_view
                                        id = para
                                        BIND_VALUE = ???
    ENDMETHOD.
    I don't know how to replace the "???" in the method modifyview? Do you give me some hint for it?
    You can reply back to me via e-mail if you think we should discuss this internally at [email protected] or [email protected]
    Thanks.
    Best regards,
    tao

    Hi, Suresh,
    Thanks a lot for your help.
    The last mail have some errors. Now, I modify my code error. The following is my new code in the wddomodifyview method in the ADDR_AUTO_DISP_VIEW view.
    Now, I modify my code. The following is my new code in the wddomodifyview method in the ADDR_AUTO_DISP_VIEW view.
    METHOD wddomodifyview .
    importing view   type ref to if_wd_view.
      DATA      transparent_container           TYPE REF TO cl_wd_transparent_container.
      DATA      inputfield                      type ref to cl_wd_input_field.
      transparent_container ?= view->get_element( `TRANSPARENT_CONTAINER` ).
      transparent_container->set_visible(
        EXPORTING
          value = if_wdl_core=>visibility_visible ).
    wd_this->SET_DYNAMIC_INPUT(
       EXPORTING
         inputfield_ID =  'ANSSA'
       IMPORTING
         INPUTFIELD    =  inputfield
    **************The web page will occur error when running the WDA as soon as I write the code.***********
      transparent_container->add_child( THE_CHILD = inputfield ).
    ENDMETHOD.
    The following is the code of the SET_DYNAMIC_INPUT method.
    method SET_DYNAMIC_INPUT .
    *importing
    *INPUTFIELD_ID    type STRING
    *exporting
    *INPUTFIELD    type ref to CL_WD_INPUT_FIELD
    Data binded_context       type string.
    concatenate 'ADDR_AUTO_DISP_VIEW.EE_ADDRESS.' INPUTFIELD_ID into binded_context .
    inputfield = CL_WD_INPUT_FIELD=>NEW_INPUT_FIELD(
    id = inputfield_id
    read_only = abap_true
    BIND_VALUE = binded_context
    endmethod.
    When I run the WDA, The web page occuring the error information:
    Note
    The following error text was processed in the system DEV : Access via 'NULL' object reference not possible.
    The error occurred on the application server devserver_DEV_00 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L7STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L7STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L7STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L7STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
    But when I delete the code of the wddomodifyview, and create a inputfield in the layout of the view, and bind the "ANSSA" to the "value" property in the layout, the WDA is running correctly.
    Do you give me some hints?
    Thanks a million.
    Best regards,
    tao

  • CONTAINER:atg.service.pipeline.RunProcessException: An exception was thrown from the context of the link named [loadCommerceItemObjects].; SOURCE:java.lang.RuntimeException:

    Can Any one help me in finding the cause of following error
    16:18:27,565 INFO  [PipelineManager] DEBUG Cancel Link Transaction
    16:18:27,565 INFO  [PipelineManager] DEBUG Transaction is TX_MANDATORY
    16:18:27,565 INFO  [PipelineManager] DEBUG Setting transaction to rollback
    16:18:27,565 INFO  [PipelineManager] DEBUG Cancel Chain Transaction
    16:18:27,565 INFO  [PipelineManager] DEBUG Transaction is TX_REQUIRED
    16:18:27,565 INFO  [PipelineManager] DEBUG Setting transaction to rollback
    16:18:27,565 ERROR [OrderManager]
    CAUGHT AT:
    CONTAINER:atg.service.pipeline.RunProcessException: An exception was thrown from the context of the link named [loadCommerceItemObjects].; SOURCE:java.lang.RuntimeException: CONTAINER:atg.repository.RepositoryException; SOURCE:org.jboss.util.NestedSQLException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -53eaeff2:f142:52c29876:2a4f status: ActionStatus.ABORT_ONLY >; - nested throwable: (ja
            at atg.service.pipeline.PipelineChain.runProcess(PipelineChain.java:393)
            at atg.service.pipeline.PipelineChainContext.runProcess(PipelineChainContext.java:207)
            at atg.service.pipeline.PipelineManager.runProcess(PipelineManager.java:475)
            at atg.commerce.pipeline.CommercePipelineManager.runProcess(CommercePipelineManager.java:123)
            at atg.commerce.order.OrderImpl.ensureContainers(OrderImpl.java:1745)
            at atg.commerce.order.OrderImpl.getShippingGroups(OrderImpl.java:1084)
            at com.mk.integration.epicor.salesAudit.datamanager.EpicorSalesAuditDataManager.processShippingGroups(EpicorSalesAuditDataManager.java:477)
            at com.mk.integration.epicor.salesAudit.datamanager.EpicorSalesAuditDataManager.constructSalesAuditFeed(EpicorSalesAuditDataManager.java:431)
            at com.mk.integration.epicor.salesAudit.datamanager.EpicorSalesAuditDataManager.exportFullfilledOrder(EpicorSalesAuditDataManager.java:213)
            at com.mk.integration.epicor.salesAudit.processor.EpicorSalesAuditProcessor.exportFullfilledOrder(EpicorSalesAuditProcessor.java:42)
            at com.mk.integration.epicor.salesAudit.scheduler.EpicorSalesAuditScheduler.startSalesAuditExport(EpicorSalesAuditScheduler.java:65)
            at com.mk.integration.epicor.salesAudit.scheduler.EpicorSalesAuditScheduler.doScheduledTask(EpicorSalesAuditScheduler.java:49)
            at atg.service.scheduler.SingletonSchedulableService.performScheduledTask(SingletonSchedulableService.java:253)
            at atg.service.scheduler.ScheduledJob.runJobs(ScheduledJob.java:466)
            at atg.service.scheduler.Scheduler$2handler.run(Scheduler.java:782)
    Caused by: java.lang.RuntimeException: CONTAINER:atg.repository.RepositoryException; SOURCE:org.jboss.util.NestedSQLException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -53eaeff2:f142:52c29876:2a4f status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -53eaeff2:f142:52c29876:2a4f status:
            at atg.adapter.gsa.GSAItemDescriptor.loadProperty(GSAItemDescriptor.java:5994)
            at atg.adapter.gsa.GSAItem.getPersistentPropertyValue(GSAItem.java:1315)
            at atg.adapter.gsa.GSAItem.getPropertyValue(GSAItem.java:1208)
            at atg.adapter.gsa.GSAItem.getPropertyValue(GSAItem.java:1405)
            at atg.repository.RepositoryItemImpl.getPropertyValue(RepositoryItemImpl.java:151)

    Hi,
    I seems like you don't have any active transaction. Try start or get transaction before execute your required operations.
    After it, commit (or rollback, if something wrong happens) the transaction.
    Hope it helps.

  • What is the JAXRPCSERVLET in the context of the portal

    In the context of Portal 7, what is the JAXRPCSERVLET, what does it do, and can it be disabled without impact to core portal functionality.

    are you satisified with disabling WSRP from portal's console? if so, access the portal console from /psconsole, select "portals", then select your portal ID. select the "WSRP" tab. select "producers" tab. click on the name of the producer. now select the radio button to disable the producer.
    this doesn't disable the servlet, it disables WSRP functionality at some higher level. note that the default WSRP producer instance is disabled by default.

  • Doubt abt the context that is defined

    hi,
    we do have an option of declaring the nodes in the context of the particular view and also we can define the same in the component controller. my doubt is if we call a node with the meta data usage then we get a declaration like
    DATA lo_nd_aenr TYPE REF TO if_wd_context_node.
      DATA lo_el_aenr TYPE REF TO if_wd_context_element.
    to which context it is pertaining to whether to the context node of the view or to the component controller.
    and please say me wht is the advantage of declaring the nodes in the component controller and then dragging them in to the particular view where it is necessary.
    and if possible say me the differences between declaring the nodes in the component controller and the view.
    thanks and regards
    ibrahim.md

    Hi Ibrahim,
    The attribute wd_context, refers to the current context. If you are using it in the component controller, it means the component controller's context. In the view, it means that particular view's context.
    Declaring context nodes in the comp controller is used when you want to share your data across views. Say you have a use case where you enter some search query in one view, and on clicking search, the results are displayed in a subsequent view. Then the second view will not have your search parameters by default. They have to be made attributes in the comp controller, and mapped in both views. So the data can be shared.
    Otherwise there is no big difference. A comp controller node when mapped to your view just becomes another node in the view context. It will be read as any other node in the view only.
    Hope this helps.
    Regards
    Nithya

  • How to check the file size before loading it to the context

    Hello,
    I have an application to upload a file and write it to the server using the FileUpload UI and IWDResource Interface.
    I would like to limit the size of the file the user is uploading to, say, 2MB.
    The problem is that the current API doesn't allow me to check the file size before I store it in IWDResource. The API available for IWDResource:
    IWDResource resource = ...
    InputStream stream = resource.read(false);
    size = stream.available();
    Is working on the file only AFTER storing it in the context and the server's memory. This way, if a user decides to upload 1GB file for example, he can easily crash the server.
    I am already familiar with <a href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a4d71">this</a> arcticle but it doesn't answer this question as well, all it does is calculating the file size only after storing it in the context.
    Any ideas...?
    Roy

    Hi Ram,
    Have you activated your Objects ?
    You need to activate your objects in order to see them in RWB.
    Thanks & Regards,
    Varun Joshi

  • Adobe forms:Data view palette not showing any fields present in the context

    Hi Experts,
    I am trying to create a static adobe form by following a step-by-step tutorial.The steps I have followed are:
    1. Created an Interface with just one field in the Import parameters (apart from the default one).
    2. Created a form by using that interface and included that field in the context .
    3. Activated the form and wennt to the layout of the form.
    4. I should be seeing that field added and activated in the context in the form but its not there.
    What could possibly be the reason for it.Please guide me.
    Thanks and Regards
    Abhishek

    Hi,
    I am working on Adobe Form when I open it in change mode I am unable to see the below options in it.
    Always I could see only the preview of pdf output. I tried for the option in Palette by right click on the pdf form->Right Click->Palette but it has options Border,Accessibility etc but no option is related to DataView or Hierarchy palettes.
    I am looking for Dataview and Hierarchy Palettes to be displayed on the left side of the form.
    Please share if any ideas.
    Regards,
    Rafi

  • How to display the context of a Jbutton to a JTextField

    Hi,
    There is a key pad (1-9) on a GUI where each key is represented by a JButton. There is also a data entry filed, implemented using JTextField.
    However, when the user enters the ID using the key pad buttons each number should be displayed in the data entry field correspondingly (similar to calculator). I have already written the handlers for each button just don't know how to display the contexts in the text field, e.g. if the button 1 is pressed the 1 should be appeared in the text filed immediately. Anyone can help me to get this done?
    Thanks in advance,
    RMP

    Reza_mp wrote:
    .. Anyone can help me to get this done?In the actioPerformed method, call textField.setText( textField.getText() + "new data" )

  • How to pass the context from Portal to Database for fine grain access?

    Hi,
    I am developing an omniportlet and I need to pass on the context of the logged in user to the database so that when the user tries to access data in the omniportlet, he can see data relevant to him only. Does anyone know how to do that?
    I have set up a light weight user scott and also has a schema in the database by the same name (scott)..
    what I am trying is when the user logs in as scott in the portal site and runs an omniportlet, he should be dynamically be logged in to scott the schema so that the data visible to him can be restricted. Same should happen for other users as well.
    Does anyone know in which table in the PORTAL schema is this connection information stored, so that I can override it using some API..?
    Thanks,
    Abhi

    I had tried sending the user_name in the sql and that works fine. but my requirement is that the user should login to his schema and only his schema directly and automatically.. such that even if an omniportlet is created using some default schema, when user logs in he can access only the schema meant for him..
    e.g. While running the omniportlet when logged-in as user scott, he should be logged-in to scott schema in the database, so that the fine grain access can be enabled ..
    Edited by: user6386347 on Mar 12, 2009 12:15 PM

  • Get the current context of the site where web-part is added in the same site collection

    Hi,
    I'm creating a visual web-part in SharePoint 2013 using server object model (can't user COM as the code will run on the same server) to get all the members of "Members" group of the site/web wherever this web-part
    will be added (in the same site-collection), so it will take the context of the site wherever it is added.
    For Eg: I have a site collection "http://<Server_name>/sites/Finance" OR "http://<Server_name>/sites/Finance/Microsoft" OR some other subsite. I have used SPContext.Current property to get the current context
    , but no success :( . 
    I tried in SPSite: SPContext.Current.Site ; new SPSite(SPContext.Current.Web.URL) and many other combinations with SPSite.
    in SPWeb : site.openweb()
    But I'm always getting the URL as "http://<Server_name>/" and not the context where the web-part is added in the same site collection.
    Vipul Jain

    Hi Bjoern,
    Thanks for the reply. I'm able to get the access of members group through API's. Just wanted to know about the context in SPSite & SPWeb. As you suggested , is there no need to use SPSite ?
    using (SPWeb web = SPContext.Current.Web)
                            SPGroup membersGroup = web.Groups[web.Name + " Members"];                     
                            SPUserCollection lstMembers = web.Groups[web.Name + " Members"].Users;
                            foreach (SPUser member in lstMembers)
                                // add all the group users to the list                            
                                users.Add(member.Name);
    It's not working 
    Vipul Jain

  • How to save uploaded file in the context

    Hi,
    I am trying to save an uploaded file in a folder in reference to the
    context. I can not get the path to the destination folder with reference to
    the context.
    The file gets uploaded fine as I can pull the info about the file, however,
    I am not able to save it in a folder under context. Any ideas?
    the code is pasted below;
    thanks
    Rauf
    public class MyBean {
        private UploadedFile uploadedFile;
        int BUFFER_SIZE = 20000;
        protected final Log logger = LogFactory.getLog(getClass());
        public UploadedFile getUploadedFile() {
            return uploadedFile;
        public void setUploadedFile(UploadedFile uf) {
            this.uploadedFile = uf;
        public String processMyFile() {
             String uploadedFileName = getUploadedFile().getName();
             logger.debug("The uploaded file name is: " + uploadedFileName);
            int index = uploadedFileName.lastIndexOf('/');
            String justFileName;
            if ( index >= 0) {
                justFileName = uploadedFileName.substring( index + 1 );
            } else {
                // Try backslash
                index = uploadedFileName.lastIndexOf('\\');
                if (index >= 0) {
                    justFileName = uploadedFileName.substring( index + 1 );
                } else {
                    // No forward or back slashes
                    justFileName = uploadedFileName;
            logger.debug("just file name: " + justFileName);
           String uploadedFileType = uploadedFile.getContentType();
           FacesContext facesContext = FacesContext.getCurrentInstance();
                try {
                     logger.debug("In the first try loop");
                    // get the path to the /img directory from the servlet context
                    ServletContext servletContext = (ServletContext)facesContext.getExternalContext();
                    String realPath = servletContext.getRealPath("/img");
                    logger.debug("The real path: " + realPath);
                    logger.debug("saved file name: " + realPath + justFileName);
                      InputStream in = new BufferedInputStream(getUploadedFile().getInputStream());
                    BufferedOutputStream outputStream = new BufferedOutputStream(new FileOutputStream(realPath + justFileName));
                         try {
                                byte[] data = new byte[BUFFER_SIZE];
                           int readSize;
                           while ((readSize = in.read(data, 0, BUFFER_SIZE)) != -1)
                                logger.debug("writing buffer: " );
                                outputStream.write(data, 0, readSize);
                           in.close();
                           outputStream.close();
                         catch (FileNotFoundException e) {
                              e.printStackTrace();
                       catch (IOException e) {
                            e.printStackTrace();
                       logger.debug("return OK");
                       return "OK";
                catch(Exception e){
                     e.printStackTrace();
                     return "Not OK";
    }

    What I am struggling with is how to get the path relative to the context. The file upload works fine, however, the code fails at the fillowing line:
    ServletContext servletContext = (ServletContext)facesContext.getExternalContext();producing the following error:
    The uploaded file name is: c:\myjava\downloads\b2b-project-0.1-07282004.zip
    2006-08-22 00:16:34,344 DEBUG [com.hunza.kcw.jsfupload.MyBean] - just file name: b2b-project-0.1-07282004.zip
    2006-08-22 00:16:34,344 DEBUG [com.hunza.kcw.jsfupload.MyBean] - In the first try loop
    2006-08-22 00:16:34,344 DEBUG [com.sun.faces.lifecycle.InvokeApplicationPhase] - Exiting InvokeApplicationsPhase
    If I specify the absolute path like c:\temp, the file save is successfull. I am looking for a way to save the file in a folder in the context, without having to specify the full path of the folder.
    Rauf

Maybe you are looking for

  • G5 locked up after 10.5.8 update attempt

    Ran the update on my MacBook. No problems. Figured it was safe to do the same on the Dual G5. Computer was working beautifully on 10.5.7 with no problems, so it should be fine with the updates. It is a Mac after all. Not so. Here's the scenario: Ran

  • How to recover photos that were deleted while restoring back up on my IPhone

    Well, today I decider to see if I could recover stuff from my old iPhone 4, so I connected my phone to iTunes and clicked "Restore Backup". Little did I know that it would delete all my photos, which I didn't know it was going to do that:( So, i lost

  • Alt+Right Click Panel not working - gnome

    Hi, I'm using the lastest gnome with gnome-extra (3.2.1-1) and stock wm, no fallback mode or anything. Alt+RightClick on the top panel doesn't produce a context menu. However, clicking my user name in the top right and then pressing Alt changes "Susp

  • Streaming video into HTML5 content

    Hi I just wanted to check that it is possible to stream (rather than progressively download) video into captivate HTML5 output. I know this can be done when outputting to to SWF but my client wants to go HTML5 only and the video content has to hosted

  • Interactive Report - Chart axis value wrong data

    Hi, we created an interactive report based on demo_orders table. The interactive chart is displaying wrong data on the value axis (4,00000 instead of 4,000.00)! Values in the table are ok, even the value displayed when user clicks on specific data po