Netui errors

anyone know what causes this error -
2005-02-10 11:35:38,184 - Can not update the identifier "personGroup" on a null value object.
2005-02-10 11:35:38,189 - Exception when attempting to update the expression "{actionForm.personGroup}" with available binding contexts [actionForm, pageFlow, globalApp]. Root cause: com.bea.wlw.netui.script.xscript.IllegalContextStateException: The action form for the expression "actionForm" could not be found
Throwable: com.bea.wlw.netui.script.ExpressionUpdateException: Exception when attempting to update the expression '{actionForm.personGroup}' with a value of type '[Ljava.lang.String;' and with available contexts [session, request, response]. Root exception cause: The action form for the expression "actionForm" could not be found
Stack Trace:
com.bea.wlw.netui.script.ExpressionUpdateException: Exception when attempting to update the expression '{actionForm.personGroup}' with a value of type '[Ljava.lang.String;' and with available contexts [session, request, response]. Root exception cause: The action form for the expression "actionForm" could not be found
     at com.bea.wlw.netui.script.xscript.XScriptEvaluator.update(XScriptEvaluator.java:440)
     at com.bea.wlw.netui.script.el.ExpressionEvaluatorImpl.update(ExpressionEvaluatorImpl.java:149)
     at com.bea.wlw.netui.pageflow.ProcessPopulate.populate(ProcessPopulate.java:239)
     at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.processPopulate(PageFlowRequestProcessor.java:396)
     at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
     at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.process(PageFlowRequestProcessor.java:651)
     at com.bea.wlw.netui.pageflow.AutoRegisterActionServlet.process(AutoRegisterActionServlet.java:527)
     at com.bea.wlw.netui.pageflow.PageFlowActionServlet.process(PageFlowActionServlet.java:152)
     at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
     at com.bea.wlw.netui.pageflow.PageFlowUtils.strutsLookup(PageFlowUtils.java:1525)
     at com.bea.netuix.servlets.controls.content.PageflowContent.handlePostbackData(PageflowContent.java:206)
     at com.bea.netuix.nf.ControlLifecycle$2.visit(ControlLifecycle.java:216)
     at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:281)
     at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:290)
     at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:290)
     at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:290)
     at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:290)
     at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:290)
     at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:290)
     at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:290)
     at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:290)
     at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:290)
     at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:290)
     at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:290)
     at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:290)
     at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:290)
     at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:290)
     at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:290)
     at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:290)
     at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:290)
     at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:290)
     at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:117)
     at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:95)
     at com.bea.netuix.nf.Lifecycle.runInbound(Lifecycle.java:185)
     at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:149)
     at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:357)
     at com.bea.netuix.servlets.manager.UIServlet.processControlTree(UIServlet.java:226)
     at com.bea.netuix.servlets.manager.PortalServlet.service(PortalServlet.java:607)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
     at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
     at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
     at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:313)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6356)
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
     at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
     at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
     at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
     at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
Caused by: com.bea.wlw.netui.script.xscript.IllegalContextStateException: The action form for the expression "actionForm" could not be found
     at com.bea.wlw.netui.script.xscript.context.ActionFormContextResolver.resolve(ActionFormContextResolver.java:67)
     at com.bea.wlw.netui.script.xscript.XScriptEvaluator.execScript(XScriptEvaluator.java:564)
     at com.bea.wlw.netui.script.xscript.XScriptEvaluator.execUpdate(XScriptEvaluator.java:502)
     at com.bea.wlw.netui.script.xscript.XScriptEvaluator.update(XScriptEvaluator.java:394)
     ... 51 more

Hi,
I am also experiencing the similar problem. But this error is not permenant, it occurs once in a while. When I refresh the page or resubmit the form, it starts working. I dont know whats going wrong. Defly it is not the wrong data type for the form variables since it does work most of the time.
Is this some bug in Weblogic? We use weblogic 8.1
Please help me.
Following is the Controller.jpf
* @jpf:action
* @jpf:validation-error-forward path="flexibts_home.jsp" name="failure"
* @jpf:forward path="getFlexiBTSForm.do" name="flexiBTSInput"
protected Forward processFlexiBTSHome(FlexiBTSHomeForm homeForm)
return new Forward("flexiBTSInput");
* @jpf:action
* @jpf:forward path="flexibts_input.jsp" name="flexiBTSInput"
protected Forward getFlexiBTSForm(FlexiBTSForm form)
log.debug("Getting FlexiBtsForm...");
return new Forward("flexiBTSInput");
The following is the input Home.jsp which calls 'processFlexiBTSHome' when submit is clicked.
<netui:form action="getFlexiBTSHome" method="POST" scope="session" name="flexiBTSHomeForm" type="Controller$FlexiBTSHomeForm">
<netui:imageButton src="/nols/orderingsupport/resources/images/next.gif"
rolloverImage="/nols/orderingsupport/resources/images/next_roll.gif"
onClick="this.form.action='/nols/orderingsupport/processFlexiBTSHome.do';this.form.submit();" />
</netui:form>
Following is the error, that occurrs once in a while for almost all my form variables. Here is one such message:
Throwable: com.bea.wlw.netui.script.ExpressionUpdateException: Exception when attempting to update the expression '{actionForm.isEDGE}' with a value of type 'java.lang.String' and with available contexts [actionForm, session, request, response]. Root exception cause: Could not update expression "{actionForm.isEDGE}" with the value object of type "java.lang.String" because a public field named "isEDGE" or a setter for the property "isEDGE" could not be found.
Stack Trace:
com.bea.wlw.netui.script.ExpressionUpdateException: Exception when attempting to update the expression '{actionForm.isEDGE}' with a value of type 'java.lang.String' and with available contexts [actionForm, session, request, response]. Root exception cause: Could not update expression "{actionForm.isEDGE}" with the value object of type "java.lang.String" because a public field named "isEDGE" or a setter for the property "isEDGE" could not be found.
     at com.bea.wlw.netui.script.xscript.XScriptEvaluator.update(XScriptEvaluator.java:440)
     at com.bea.wlw.netui.script.el.ExpressionEvaluatorImpl.update(ExpressionEvaluatorImpl.java:149)
     at com.bea.wlw.netui.pageflow.ProcessPopulate.populate(ProcessPopulate.java:337)
     at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.processPopulate(PageFlowRequestProcessor.java:402)
     at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
     at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.process(PageFlowRequestProcessor.java:674)
     at com.bea.wlw.netui.pageflow.AutoRegisterActionServlet.process(AutoRegisterActionServlet.java:527)
     at com.bea.wlw.netui.pageflow.PageFlowActionServlet.process(PageFlowActionServlet.java:152)
     at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1077)
     at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465)
     at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
     at com.nokia.nols.orderingsupport.security.AccessControlFilter.doFilter(AccessControlFilter.java:55)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
     at com.nokia.nols.common.filter.NDAFilter.doFilter(NDAFilter.java:270)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
     at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:334)
     at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.superForward(PageFlowRequestProcessor.java:1450)
     at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor$DefaultHttpRedirector.forward(PageFlowRequestProcessor.java:1467)
     at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.doForward(PageFlowRequestProcessor.java:1336)
     at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.processForwardConfig(PageFlowRequestProcessor.java:1230)
     at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
     at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.process(PageFlowRequestProcessor.java:674)
     at com.bea.wlw.netui.pageflow.AutoRegisterActionServlet.process(AutoRegisterActionServlet.java:527)
     at com.bea.wlw.netui.pageflow.PageFlowActionServlet.process(PageFlowActionServlet.java:152)
     at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1077)
     at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465)
     at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
     at com.nokia.nols.orderingsupport.security.AccessControlFilter.doFilter(AccessControlFilter.java:55)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
     at com.nokia.nols.common.filter.NDAFilter.doFilter(NDAFilter.java:270)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:7053)
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
     at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3902)
     at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2773)
     at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
     at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
Caused by: com.bea.wlw.netui.script.ExpressionUpdateException: Could not update expression "{actionForm.isEDGE}" with the value object of type "java.lang.String" because a public field named "isEDGE" or a setter for the property "isEDGE" could not be found.
     at com.bea.wlw.netui.script.xscript.ExpressionUpdateHelper.setProperty(ExpressionUpdateHelper.java:389)
     at com.bea.wlw.netui.script.xscript.XScriptEvaluator.update(XScriptEvaluator.java:425)
THANKS in advace
Raghu

Similar Messages

  • netui:errors Tag issue

    hi
    i have the following code in one of my JSP
    <b><%
    String localeAttrName = I18NConstants.LOCALE;
    Locale locale = (Locale) session.getAttribute(localeAttrName);
    %></b>
    And i call below tag
    <b><netui:errors locale="<%=localeAttrName%>"/></b>
    When i compile i am getting error saying
    "This attribute does not support request time values"
    Any ideas ?
    Regards
    DP

    Sorry here is the correct format
    OracleJSP: oracle.jsp.parse.JspParseException: Line # 58, <ejb:getSysTypes searchCriteria="test" return = "ret" />
    Error: Attribute: _return is not a valid attribute name

  • Netui:error tag uses deprecated ActionError

    Can anyone tell me if there's a good reason why netui:error tag refers to the deprecated ActionError as opposed to ActionMessage?
    It means I cannot do this as I get a ClassCastException:
    <pre>
    public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
    ActionErrors errors = new ActionErrors();
    errors.add("test", new ActionMessage("someError"));
    return errors;
    </pre>
    Instead I am forced to use a deprecated class. As ActionError inherits from ActionMessage, I can't really see why it is referenced.
    Regards
    James

    I also encountered the same issue when I was working with this issue. I could not figure out how to do it so I came with a work around maybe this will help you.
    In my JSP I use the following code:
    <%
    // this part gets the i18n messages which netui:errors tags are not capable of
    ActionErrors actionerrors = (ActionErrors)request.getAttribute("org.apache.struts.action.ERROR");
    if(actionerrors != null)
    %>
    <i18n:getMessage messageName="errors.header" />
    <%
    Iterator it = actionerrors.get();
    while(it.hasNext())
    ActionError e = (ActionError) it.next();
    %>
    <i18n:getMessage messageName="errors.prefix" />
    <i18n:getMessage messageName="<%=e.getKey()%>" />
    <i18n:getMessage messageName="errors.suffix" />
    <%
    %>
    <i18n:getMessage messageName="errors.footer" />
    <%
    %>

  • NETUI ERROR: Unable to update expression

    Hi
    i get following error in the command prompt
    NETUI ERROR: Unable to update expression "{actionForm.userId}" with the value
    [a
    sd]. The typical cause is that the object represented by the expression is not
    available or is the wrong type for updating.
    What may be wrong
    Thanks in Advance
    M BHat

    thanks :)
    Thank you for any and all help,
    Geoffrey
    "M Bhat" <[email protected]> schreef in bericht
    news:3fc2d003$[email protected]..
    >
    Hi geof..
    It is fixed now. please look for the same in portal news grp. Thanks toBeko.
    >
    rgds
    MBhat
    "Geoffrey" <[email protected]> wrote:
    The action method's form doesn't have the property (attribute with
    get/setter).
    However, if you chain actions like I am trying, it could be that your
    first
    action processes the form, while the second doesn't use the form but
    still
    triggers the error.
    Take a look int the portal newgroup for my post.
    I don't know how to solve it yet.
    Thank you for any and all help,
    Geoffrey
    "M Bhat" <[email protected]> schreef in bericht
    news:3fc1e741$[email protected]..
    Hi
    i get following error in the command prompt
    NETUI ERROR: Unable to update expression "{actionForm.userId}" withthe
    value
    [a
    sd]. The typical cause is that the object represented by the
    expression
    is not
    available or is the wrong type for updating.
    What may be wrong
    Thanks in Advance
    M BHat

  • NetUI Error Message

    I get the following message for every field (with a netui tag) on my form. Although
    the operation succeeds and the information is saved in the formbean, I still get
    this message every time. Does anyone know what it means?
    NETUI ERROR: Unable to update expression "{pageFlow.employmentInfo[0].otherEmployer[0].status}"
    with the value [].
    The typical cause is that the object represented by the expression is not available
    or is the wrong type for updating.
    INFO - NETUI ERROR: Unable to update expression "{pageFlow.employmentInfo[0].otherEmployer[0].status}"
    with the value [].
    The typical cause is that the object represented by the expression is not available
    or is the wrong type for updating.
    INFO - Exception evaluating expression "pageFlow["employmentInfo"][0]["currentEmployer"]"
    with contexts: [actionForm, session, request, response]
    Throwable: knex.scripting.javascript.EvaluatorException: The undefined value has
    no properties.
    Stack Trace:
    knex.scripting.javascript.EvaluatorException: The undefined value has no properties.
    at knex.scripting.javascript.DefaultErrorReporter.runtimeError(D efaultErrorReporter.java:61)
    at knex.scripting.javascript.Context.reportRuntimeError(Context.j ava:699)
    at knex.scripting.javascript.Context.reportRuntimeError(Context.j ava:738)
    at knex.scripting.javascript.Context.reportRuntimeError0(Context .java:708)
    at knex.scripting.javascript.Undefined.reportError(Undefined.jav a:149)
    at knex.scripting.javascript.Undefined.get(Undefined.java:78)
    at knex.scripting.javascript.ScriptRuntime.getElem(ScriptRuntim e.java:1128)
    at knex.scripting.javascript.Interpreter.interpret(Interpreter.java:1 907)
    at knex.scripting.javascript.InterpretedScript.call(InterpretedScri pt.java:72)
    at knex.scripting.javascript.InterpretedScript.exec(InterpretedScr ipt.java:63)
    at knex.scripting.javascript.Context.evaluateReader(Context.java :991)
    at knex.scripting.javascript.Context.evaluateString(Context.java: 930)
    at com.bea.wlw.netui.script.xscript.XScriptEvaluator.execScript( XScriptEvaluator.java:547)
    Thanks!

    You can find the reason for this error in the "Re: NETUI Error" message
    posted at 8/18/2003.
    To get rid off this error message, simply set the "redirect = true" for that
    forward action.
    Bob
    "Ed Barberis" <[email protected]> wrote in message
    news:[email protected]...
    >
    I get the following message for every field (with a netui tag) on my form.Although
    the operation succeeds and the information is saved in the formbean, Istill get
    this message every time. Does anyone know what it means?
    NETUI ERROR: Unable to update expression"{pageFlow.employmentInfo[0].otherEmployer[0].status}"
    with the value [].
    The typical cause is that the object represented by the expression is notavailable
    or is the wrong type for updating.
    INFO - NETUI ERROR: Unable to update expression"{pageFlow.employmentInfo[0].otherEmployer[0].status}"
    with the value [].
    The typical cause is that the object represented by the expression is notavailable
    or is the wrong type for updating.
    INFO - Exception evaluating expression"pageFlow["employmentInfo"][0]["currentEmployer"]"
    with contexts: [actionForm, session, request, response]
    Throwable: knex.scripting.javascript.EvaluatorException: The undefinedvalue has
    no properties.
    Stack Trace:
    knex.scripting.javascript.EvaluatorException: The undefined value has noproperties.
    >
    at knex.scripting.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:61)
    >
    at knex.scripting.javascript.Context.reportRuntimeError(Context.j ava:699)
    at knex.scripting.javascript.Context.reportRuntimeError(Context.j ava:738)
    at knex.scripting.javascript.Context.reportRuntimeError0(Context.java:708)
    at knex.scripting.javascript.Undefined.reportError(Undefined.jav a:149)
    at knex.scripting.javascript.Undefined.get(Undefined.java:78)
    at knex.scripting.javascript.ScriptRuntime.getElem(ScriptRuntime.java:1128)
    at knex.scripting.javascript.Interpreter.interpret(Interpreter.java:1 907)
    at knex.scripting.javascript.InterpretedScript.call(InterpretedScript.java:72)
    >
    at knex.scripting.javascript.InterpretedScript.exec(InterpretedScript.java:63)
    >
    at knex.scripting.javascript.Context.evaluateReader(Context.java :991)
    at knex.scripting.javascript.Context.evaluateString(Context.java: 930)
    at com.bea.wlw.netui.script.xscript.XScriptEvaluator.execScript(XScriptEvaluator.java:547)
    >
    Thanks!

  • Netui Error while displaying XMLbeans Data

    Hi All,
    I am getting the following error when i try to render the data on the JSP using
    NetUI tags.
    My data is in XMLBeans inside JPF.
    I am getting following on the page.............
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    Caused by
    java.lang.OutOfMemoryError
    in the weoportal.log i am getting following error
    <Error> <netuix> <WW-EMMAD510> <weoportal> <ExecuteThread: '11' for queue: 'weblogic.kernel.Default'>
    <<anonymous>> <> <BEA-420037> <There was an error loading the requested URI
    Also attached the doc which contains the trace.......i got on page.
    Any help on this.............
    Thx
    Hitesh,
    [LangOutOfMemory.doc]

    All objects are active and checked.
    In my testing I have noticed it is not accepting InfoCube  . Any one know why its happening? What's  wrong with the cubes in this InfoSoft?
    Thanks.
    Chenna
    Edited by: CHENNA S on Jan 6, 2009 3:17 PM

  • Catch NetUI Error

    Hi There,
    There's been previous posts about the NetUI Warning/Error 'unable to update expression....'
    but is there a way you can catch this error and deal with it?
    Example, the form expects an int, the user enters a string. This produces the
    error above but you can't check for it in the validation in the form bean because
    it has already reverted to 0.
    Can you trap this error in the validation?
    Thanks in Advance,
    Alex.

    Thanks for your help John.
    John Rohrlich <[email protected]> wrote:
    I should have said "if the input can not be converted to an int" as all
    input from the jsp form will be strings when passed to the server.
    Here are some references on validation
    http://dev2dev.bea.com/codelibrary/code/pf_formvalid.jsp
    http://edocs.bea.com/workshop/docs81/doc/en/workshop/guide/netui/guide/conValidatingUserInput.html
    John Rohrlich wrote:
    Alex,
    A good approach here is to add validation to your form class and addan
    ActionError if the input is not an int. You won't get the error andyou
    can display a message to the user.
    john
    Alex Cave wrote:
    Hi There,
    There's been previous posts about the NetUI Warning/Error 'unable
    to
    update expression....'
    but is there a way you can catch this error and deal with it?
    Example, the form expects an int, the user enters a string. This
    produces the
    error above but you can't check for it in the validation in the form
    bean because
    it has already reverted to 0.
    Can you trap this error in the validation?
    Thanks in Advance,
    Alex.

  • NETUI Error in JSP

    I am getting the following error message in my jsp file for some of my elements, not all.
    Customer Info: Name: First: Tag Error
    Tag TextBox Errors 1
    Expression Error Attribute dataSource Expression {actionForm._CustomerInfo.Name.FirstName}
    Message Caught exception when evaluating expression "{actionForm._CustomerInfo.Name.FirstName}" with available binding contexts [actionForm, pageFlow, globalApp, request, session, appication, pageContext, bundle, container, url, pageInput]. Root cause: knex.scripting.javascript.EvaluatorException: The undefined value has no properties.
    I have a complexType called CustomerInfo that has several elements.  The elements that are on the first level, CustomerInfo.SSN for example are displaying without this error. But I am getting the above error for every element that is nested. CustomerIfo.Name.FirstName for example. Does anyone have any ideas regarding how to fix this?

    Hi Thornton,
    In case you did not figure this out yet:
    I guess _CustomerInfo.Name is null and hence the error. I don't think it has to do with levels of nesting.
    Hope this helps.

  • Netui:fileUpload tag ???

    Does anyone know how to use the netui:fileUpload tag. When I try to use it I get
    the error:
    NETUI ERROR: Unable to update expression "{actionForm.theFile}" with the value
    [CHANGES.txt]. The typical cause is that the object represented by the expression
    is not available or is the wrong type for updating.
    I set the "accept" attribute in the netui tag field, which I think is a very bad
    idea since I want to upload any type of file. I don't want to specifiy a mime
    type. So I tried a specific one then the octet-stream one. The JSP page when
    displayed doesn't even change when you set the "accepts" attribute.
    I had this working in 8.1 beta going around the form posting and using the O'Reilly
    classes but 8.1 GA blows up now. So I am trying to use the netui tags but I get
    the error above.
    Any help??
    Thanks.

    Raj,
    Thanks for the files but they don't have anything in them refering to the file
    upload. They don't have any custom code at all. I think you sent the wrong files.
    Mark
    "Raj Alagumalai" <[email protected]> wrote:
    Mark,
    Attached are sample jsp and jpf files which use the NetUI upload tag.
    Hope this helps.
    Thanks
    Raj Alagumalai
    WebLogic Workshop Support
    "Mark" <[email protected]> wrote in message
    news:[email protected]...
    Does anyone know how to use the netui:fileUpload tag. When I try touse
    it I get
    the error:
    NETUI ERROR: Unable to update expression "{actionForm.theFile}" withthe
    value
    [CHANGES.txt]. The typical cause is that the object represented bythe
    expression
    is not available or is the wrong type for updating.
    I set the "accept" attribute in the netui tag field, which I thinkis a
    very bad
    idea since I want to upload any type of file. I don't want to specifiya
    mime
    type. So I tried a specific one then the octet-stream one. The JSPpage
    when
    displayed doesn't even change when you set the "accepts" attribute.
    I had this working in 8.1 beta going around the form posting and usingthe
    O'Reilly
    classes but 8.1 GA blows up now. So I am trying to use the netui tagsbut
    I get
    the error above.
    Any help??
    Thanks.begin 666 netuiupload.zip
    M4$L#!!0````(`(YJ^2YX/E_V] $```(&```.````0V]N=')O;&QE<BYJ<&:]
    M5%UKVS 4?0_X/]PY+VVHY2:4K'/3$1@K>^S#8-O3D*/K1)DL&5FN4\;^^R3+
    M'\2#N5 V81OY^IRK<^6KP_-":0,[E9,4*:E%322:BI."[C$3JB:/=O)@)Q^4
    M-%H)@?HNF/%)VH/2-=7,8H-9O%@$,UC YP,OP5[F@, PHY5P*;JTD"D-%%)!
    MY0^H,05:%(+OJ.%*$L=O<FR/198,I"'VQ+&."JT*U(9C":/W)&F@FS=1Y'4P
    M:J@30RNCHCU*U-0@(_")2A8AXX;+O55J$27NG 8'ELJ 1EMVCI(Y=!2]]WE'
    MR_FH&YMN2R*5'FTFX.P^I$W&),4]EX2I<(![BL_S#)+F>!^>0GBBHK*S]748
    M_QW[W&-OS[";>*1C0J&+)=P6>2+'LGBQP-7J_RI$K97^=PJ7ZU=)S/PA2 IJ
    M#O-F,^?]ELZWHR;83I2 (E5U^:W7]G9UU5U3!7GJUY[Z;GVUO+GV]^W-%-NH
    M1WO8>_(7+,WWY10ITRH_HWVD+Z$)FJ+H.<UFO;9'7"R)!_LBUBVZG)MX?&Z]
    M3\3!K*A2ZSZP$[0L86 #GHP]^R7\Z8O![*?EVN']SHW6F_R?/H^UO='6[2L%
    MURCM2]/4'27V$ZO3V-*006NOT#3/Q:7_W"[OAK9NK"5(K#OH1;O&Y9U'_7+.
    M;!^_`5!+`P04````" ".:ODN#^7C>H$!``#P`@``"0```&5R<F]R+FIS<(52
    MRT[$, R\(_$/IA(2'-JN."&VNX(#< $)B<>>D\;;!K))29Q]"/'ON*]%("1N
    MCCTS=NPICM+T%BUZ0:A [F"!\LY5NH2%\V^A=DV:S@\/BN-+:$2%8(2M(@>S
    MY%6L10*ELX26GG8-IPBWE->T,M.R%CX@S9Z?;M+S!'2X]M[YAXY(/F)R/(B2
    MJ(R6$+V>)18IZI0S(56"A-16:5ME9%0"C<>EWHZ8MOR?1#O'']S_:(2KQO R
    M_FH[UGJ-+G?1MN$70%&C4%W$,6DR..\^7>3]H\/D>U AG=J-\&8(`*XL8,N"
    M6@1P91F]1W4QP/(15TCCRK?WZ CWS&$>(R0:6 L3>=4?'M\C!LHZS7L,@2_P
    MF8#"I8B&7GI4`OFWBO3Y;TG<EMB0=C8`&V(SR R'W'.+-=0G.B6.0_5L4)
    M-AT\NA6"]&X3T ?8:&/ .@*E`^]X!U3KT%LN6L,=.8'@,30\!D(@03&P^Q2R
    MN>!L,LE@,.H>E+$!'SO<"==/I]!>[0M02P,$% ````@`CFKY+K&O$4#E````
    MR@$```D```!I;F1E>"YJ<W"%4$%.PS 0O"/QA\52C\97!$Y5+G!!B$-1S^MX
    M20RN;24;:'Z/DSI(2)%Z&\_LS*Q7WTCY3($Z9+)@1CB0>8F-J^$0NZ^^C4G*
    M[?65WNP@84/@,31#!I7XQ&\44,? %'@_IDPQG5BU?/0/=8M=3UR][Y_DG=B4
    M!,;&.P-#YRH1B <G,]-+BXS&!>M"<\O>"D@=?;C3,C/)ER*FTA7O)1O3,?G\
    M\[7:13MGS-S]5)-?`+HEM#/*F!U[VN;#P6-*WM7(+@9XRU?2ZJS-%O7GT2;:
    M<7&G`@!>Z0?64LJ@2B6GN+7ZM]0O4$L!`A0`% ````@`CFKY+G@^7_;T`0``
    M`@8```X``````````0`@`+:!`````$-O;G1R;VQL97(N:G!F4$L!`A0`% ``
    M``@`CFKY+@_EXWJ!`0``\ (```D``````````0`@`+:!( (``&5R<F]R+FIS
    M<%!+`0(4`!0````(`(YJ^2ZQKQ% Y0```,H!```)``````````$`( "V@<@#
    A``!I;F1E>"YJ<W!02P4&``````,``P"J````U 0`````
    `
    end

  • Netui:form and netui:hidden/textbox/... required datasource

    Hi all,
    1) Question
    Can I set the value of the netui:hidden tag different from the field to
    which it will post it's content?
    because datasource both defines the data to get and set to, which makes
    dynamicaly generating a form in a loop seem impossible.
    2) Problem illustration
    In a jsp of a pageflow in Portal 8.1 I am iterating through an n-size list.
    How do I dynamically generate a form for each item in the list?
    How does the datasource attribute actually works?
    <%
    List bookList = (List) session.getAttribute("bookList");
    <table>
    <%
    Iterator it = bookList.iterator();
    while (it.hasNext()) {
    BookTO book = (BookTO) it.next();
    pageContext.setAttribute("book", book);
    %>
    <tr>
    <td>
    <netui:label value="<%=book.getName()%>"/>
    </td>
    <netui:form action="viewBook">
    <netui:hidden dataSource="{book.isbnPK}"/>
    <%-- Generates a NETUI ERROR when
    clicking on the button (not before) --%>
    <td>
    <netui:button value="View"/>
    </td>
    </netui:form>
    </tr>
    <%
    %>
    </table>
    It places the isbnPK in the form without any problems,
    but when submitting the form it generates this error:
    NETUI ERROR: Unable to update expression "{book.isbnPK}" with the
    value [1-56592-403-7]. The typical cause is that the object represented by
    the
    expression is not available or is the wrong type for updating.
    The BookForm and the BookTO have these methods though:
    public String getIsbnPK() {
    return isbnPK;
    public void setIsbnPK(String isbnPK) {
    this.isbnPK = isbnPK;
    And in the pageflow:
    protected Forward viewBook(BookForm form) {
    Thank you for any and all help,
    Geoffrey

    Figured it out.
    One of the other portlets on the page had a refreshAction property set to call the begin() method for that portlets controller when the page is refreshed. It was trying to accept the multipart form data sent from the other portlet and obviously wasn't set to accept multipart data. Removing the refreshAction property fixed the problem.

  • Can a netui:template include another template?

    I have a case where I want to have 2 different templates (myTemplate.jsp and myTemplate2.jsp). Both use almost all of the exact same code, with a minor exception. I didn't want to have to just copy one and modify the one section that is different, b/c if I have to update the common code in the template, then I will have to do it in both places.
              Basically, my JSPs will reference the template named "myTemplate" or "myTemplate2", and each of these references the template named "baseTemplate". Can this be done?
              I have tried, but I get an error saying "No Sections defined, 'xxx' not included in template.", but I have no idea why this is happening, because I thought I was defining a section.
              This is the code I have:
              baseTemplate.jsp
              <pre>
              <netui-template:includeSection name="baseBodySection" />
              </pre>
              myTemplate.jsp
              <pre>
              <netui-template:template templatePage="baseTemplate.jsp">
              <netui-template:section name="baseBodySection">
              <netui-template:includeSection name="bodySection" />
              <%-- template specific code --%>
              </netui-template:section>
              </netui-template:template>
              </pre>
              myTemplate2.jsp
              <pre>
              <netui-template:template templatePage="baseTemplate.jsp">
              <netui-template:section name="baseBodySection">
              <netui-template:includeSection name="bodySection" />
              <%-- template specific code --%>
              </netui-template:section>
              </netui-template:template>
              </pre>
              myPage.jsp
              <pre>
              <netui-template:template templatePage="myTemplate.jsp">
              <netui-template:section name="bodySection">
              <%-- page specific code --%>
              </netui-template:section>
              </netui-template:template>
              </pre>
              myPage2.jsp
              <pre>
              <netui-template:template templatePage="myTemplate2.jsp">
              <netui-template:section name="bodySection">
              <%-- page specific code --%>
              </netui-template:section>
              </netui-template:template>
              </pre>
              When I either myPage.jsp or myPage2.jsp is rendered, I don't see any of the content from myPage.jsp or myPage2.jsp. In its place I see the error in the netui error table with the following message: "No Sections defined, 'bodySection' not included in template", and below it I see the template specific code I added in myTemplate or myTemplate2 rendered without errors.
              Is there something else I have to do in baseTemplate to tell it that the baseBodySection will have template code in it?
              Any help on this issue will be greatly appreciated.

    I can sympathize with you as far as the readability goes.
    I know that Tomcat 4 provides a GUI that's intended to make editing server and container level XML files a lot easier, but I'm not certain if it handles application level XMLs too. I think it's safe to say that version 5 will probably either support modifying web.xml files through the GUI or someone will make that feature available through an add-on module.
    In the meantime, the length of the XML doesn't affect Tomcat. I would just put up with it until the tool comes along.

  • [[ Page Flow Error - Action Not Found ]] - urgent help needed!

    Hi all,
    My portal application runs on Weblogic 8.1 and I am encountering a vague error which does not point back to any of the application-based files. The error message, as stated in the subject, is
    "Page Flow Error - Action Not Found"
    I did modify the url-template-config.xml under groWeb/WEB_INF to add a new template to enforce secure access to application resources. Could this have caused the above error?
    Any feedback would be greatly appreciated!!
    Thanks.

    Here is just a portion of Page Controller class
    package com.amd.portal.presentation.GeneralRegistration
    public class GeneralRegistrationController extends PageFlowController
    * @jpf:action
    * @jpf:forward name="success" path="RegistrationConfirmation.jsp"
    * @jpf:validation-error-forward name="failure" path="index.jsp"
    public Forward registerUser(RegisterUserForm register_form)
              usermanager_ctrl.registerUser(register_form, this.getRequest());
              return new Forward( "success", register_form);
    Here is a portion of the code from the JSP that uses this controller
    <netui:form action="registerUser">
    <tr valign="top">
    <td><font color="red"> * </font> User Name:</td>
    <td>
    <netui:textBox dataSource="{actionForm.userName}"/>
       
    <netui:error value="userName"/>
    </td>
    </tr>
    <tr valign="top">
    <td><font color="red"> * </font> Password:</td>
    <td>
    <netui:textBox dataSource="{actionForm.password}" password="true" />
       
    <netui:error value="password"/>
    </td>
    </tr>
    <netui:button value="Submit" type="submit"/>
    </netui:form>
    This apparently doesn't display well when posted but I can email to you if you provide me with your email address. Thanks.
    - CW
    Message was edited by:
    lcwalters

  • Socket excpetion

    Hi Folks,
    I am getting this exception repeatedly in the logs. I have no idea why it is happening. Can any one help me out of this please?
    Input/output error: java.net.SocketException: Broken pipe
    javax.servlet.jsp.JspException: Input/output error: java.net.SocketException: Broken pipe
    at org.apache.struts.util.ResponseUtils.write(ResponseUtils.java:160)
    at com.bea.wlw.netui.tags.html.Html.doEndTag(Html.java:277)

    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@ page import="com.bc.util.BcUtil"%>
    <%@ page import="com.bea.netuix.servlets.controls.portlet.PortletPresentationContext"%>
    <%@ page import="com.bea.portlet.prefs.PortletPreferences"%>
    <%@ page import="portlets.bookmarks.BookmarkBean"%>
    <%@ page import="portlets.bookmarks.BookmarksController"%>
    <%@ taglib uri="netui-tags-databinding.tld" prefix="netui-data"%>
    <%@ taglib uri="netui-tags-html.tld" prefix="netui"%>
    <%@ taglib uri="netui-tags-template.tld" prefix="netui-template"%>
    <%@ taglib uri="netui" prefix="netui0"%>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
    <%@ include file="/jsp/util/imagePathInclude.jspf"%>
    <netui-data:getData resultId="currentMode" value="{pageFlow.currentMode}"/>
    <netui:html>
    <table cellpadding="1" cellspacing="0" width="100%">
    <%
    String definitionLabel = PortletPresentationContext.getPortletPresentationContext(request).getDefinitionLabel();
    PortletPresentationContext portletCtx = PortletPresentationContext.getPortletPresentationContext( request );
    PortletPreferences portletPrefs = portletCtx.getPreferences( request );
    String prefUrl = portletPrefs.getValue( "url", "" );
    String prefName = portletPrefs.getValue( "name", "" );
    String prefDisplayDefault = portletPrefs.getValue( "displayDefault", "" );
    int numBookmarks = 0;
    pageContext.setAttribute("numBookmarks", new Integer(numBookmarks));
    Vector bookmarks = (Vector)request.getAttribute(BookmarksController.BOOKMARKS);
    if ( bookmarks == null || bookmarks.isEmpty()) {
    if (prefDisplayDefault.equalsIgnoreCase("yes")) {
    %>
    <tr>
    <td>
    <netui:anchor href="<%=prefUrl%>" target="_new">
    <netui:label value="<%=prefName%>"/>
    </netui:anchor>
    </td>
    </tr>
    <%
    } else {
    %>
    <tr><td>There are no bookmarks to display.</td></tr>
    <%
    } else {
    numBookmarks = bookmarks.size();
    pageContext.setAttribute("numBookmarks", new Integer(numBookmarks));
    Iterator iter = bookmarks.iterator();
    while (iter.hasNext()) {
    BookmarkBean bookmark = (BookmarkBean)iter.next();
    int id = bookmark.getID();
    String name = bookmark.getValue1();
    String url = bookmark.getValue2();
    int seq = bookmark.getSortOrder();
    pageContext.setAttribute("id", new Integer(id));
    pageContext.setAttribute("name", name);
    pageContext.setAttribute("url", url);
    pageContext.setAttribute("seq", new Integer(seq));
    %>
    <tr>
    <td>
    <%
    if (url.startsWith("http://thetrain")) {
    %>
    <netui:anchor href="<%=url%>">
    <netui:label value="<%=name%>"/>
    </netui:anchor>
    <%
    } else {
    %>
    <netui:anchor href="<%=url%>" target="_new">
    <netui:label value="<%=name%>"/>
    </netui:anchor>
    <%
    %>
    </td>
    <td width="1%">
    <%
    if (seq > 1) {
    %>
    <netui:imageAnchor action="moveUpBookmark" src="{pageContext.trainImagePath}arrow_up.gif" border="0" alt="Move up '{pageContext.name}'">
    <netui:parameter name="id" value="<%=String.valueOf(id)%>"/>
    <netui:parameter name="seq" value="<%=String.valueOf(seq)%>"/>
    </netui:imageAnchor>
    <%
    if (seq < numBookmarks) {
    %>
    <netui:imageAnchor action="moveDownBookmark" src="{pageContext.trainImagePath}arrow_down.gif" border="0" alt="Move down '{pageContext.name}'">
    <netui:parameter name="id" value="<%=String.valueOf(id)%>"/>
    <netui:parameter name="seq" value="<%=String.valueOf(seq)%>"/>
    </netui:imageAnchor>
    <%
    %>
    </td>
    <td width="1">
    <netui:form action="editBookmark">
    <netui:hidden dataSource="{actionForm.id}" dataInput="{pageContext.id}"/>
    <netui:hidden dataSource="{actionForm.name}" dataInput="{pageContext.name}"/>
    <netui:hidden dataSource="{actionForm.url}" dataInput="{pageContext.url}"/>
    <netui:imageButton src="{pageContext.trainImagePath}edit.gif" alt="Edit '{pageContext.name}'"/>
    </netui:form>
    </td>
    <td width="1">
    <netui:form action="deleteBookmark">
    <netui:hidden dataSource="{actionForm.id}" dataInput="{pageContext.id}"/>
    <netui:hidden dataSource="{actionForm.seq}" dataInput="{pageContext.seq}"/>
    <netui:hidden dataSource="{actionForm.numBookmarks}" dataInput="{pageContext.numBookmarks}"/>
    <netui:imageButton src="{pageContext.trainImagePath}delete.gif" alt="Delete '{pageContext.name}'"/>
    </netui:form>
    </td>
    </tr>
    <%
    %>
    </table>
    <%
    String prefMaxBookmarks = portletPrefs.getValue( "maxBookmarks", "" );
    int maxBookmarks = -1;
    try {
    maxBookmarks = new Integer(prefMaxBookmarks).intValue();
    } catch(NumberFormatException nfe) {
    // nfe.printStackTrace();
    String prefHelpText = portletPrefs.getValue( "helpText", "" );
    String mode = (String)pageContext.getAttribute("currentMode");
    if (mode.equals("add")) {
    if (maxBookmarks == -1 || numBookmarks < maxBookmarks) {
    pageContext.setAttribute("newSeq", new Integer(numBookmarks+1));
    %>
    <hr size="1"/>
    <netui:form action="insertBookmark">
    <netui:hidden dataSource="{actionForm.seq}" dataInput="{pageContext.newSeq}"/>
    <table>
    <tr>
    <td valign="top">Name:</td>
    <td valign="top">
    <netui:textBox dataSource="{actionForm.name}" maxlength="80"/>
    <netui:error value="name"/>
    </td>
    </tr>
    <tr>
    <td valign="top">URL:</td>
    <td valign="top">
    <netui:textBox dataSource="{actionForm.url}" maxlength="500"/>
    <netui:error value="url"/>
    </td>
    </tr>
    <tr>
    <td colspan="2"><%=prefHelpText%></td>
    </tr>
    </table>
    <netui:button value="Add" type="submit"/>
    </netui:form>
    <%
    } else if (mode.equals("edit")) {
    %>
    <hr size="1"/>
    <netui:form action="updateBookmark">
    <netui:hidden dataSource="{actionForm.id}"/>
    <table>
    <tr>
    <td>Name:</td>
    <td>
    <netui:textBox dataSource="{actionForm.name}" maxlength="80"/>
    <netui:error value="name"/>
    </td>
    </tr>
    <tr>
    <td>URL:</td>
    <td>
    <netui:textBox dataSource="{actionForm.url}" maxlength="500"/>
    <netui:error value="url"/>
    </td>
    </tr>
    <tr>
    <td colspan="2">Include 'http://' in your URL</td>
    </tr>
    </table>
    <netui:button type="submit" value="Update"/>
    <netui:button type="submit" value="Cancel" action="cancelEdit"/>
    </netui:form>
    <%
    if (request.getAttribute("msg") != null) {
    %>
    <hr size="1"/>
    <%=request.getAttribute("msg")%>
    <%
    %>
    </netui:html>

  • Is chaining pageflow actions allowed?

    Hi,
    I have 2 different actions which chain to a third action (which seperates
    the common logic):
    @jpf:forward name="success" path="showBookList.do"
    addBookToList(BookDetailsForm form) {
    // add a book
    return new Forward("success");
    @jpf:forward name="success" path="showBookList.do"
    removeBookFromList(BookIDForm form) {
    //remove a book
    return new Forward("success");
    @jpf:forward name="success" path="bookList.jsp"
    showBookList() {
    //fetch book list
    return new Forward("success");
    This actually works fine, but I am getting netui errors which clutter my
    log:
    NETUI ERROR: Unable to update expression "{actionForm.isbnPK}" with the
    value [0
    -13-100287-2]. The typical cause is that the object represented by the
    expressi
    on is not available or is the wrong type for updating.
    This is apperently because for the showBookList action it tries to set the
    form parameters.
    return new Forward("success", null); doesnt help
    Is there a way to make this false netui error dissappear?
    I 've read that struts allows action chaining, so why not pageflows?
    Thank you for any and all help,
    Geoffrey

    Hi kevin,
    I am not clear with your reqirment. But if you just want to call an action in page flow A from another page flow B, then you can forward to the required action as shown below.
    public class A extends PageFlowController{
    * @jpf:action
    * @jpf:forward name="success" path="/folder/actionB.do"
    protected Forward begin()
    //logic here
    With Regards,
    :-) prasad

  • Message resources from page flow

    How can I access the ResourceBoundle declared at the top of the page flow, from
    the page flow?

    I have a question that goes along with this...
    Can you add formatting with any of these different bundle options? Since
    8.1 SP2 now has the attribute "accessKey" on buttons, we'd like to be able
    to underline the letter we are using for the accessKey. Our attempt at
    using the message bundle just puts the formatting inside the button value.
    When the jsp displayed this was the value shown for the button text: <u> S
    </u>ubmit
    Is this possible to do without using javascript? One of our team members
    found a script that adds the underline, but there is alot of code to
    underline one letter.
    Ideas?
    Thank you!
    Wendy
    "John Rohrlich" <[email protected]> wrote in message
    news:[email protected]...
    Gus,
    Your welcome.
    You don't need to get the bundle and pass it. You can access it directly
    from the JSP. If these are validation error messages you can use the
    <netui:error> tag. If the string you want to access is not for displaying
    validation errors you'll want to access the strings in another manner. The
    documentation in
    http://edocs.bea.com/workshop/docs81/doc/en/workshop/guide/netui/guide/conDatabindingXScript.html
    shows at least 3 approaches. Here is the relevant section from that
    document.
    bundle
    The bundle data binding context references properties that you define in a
    message resources file, which allows you to implement internationalizedweb
    applications by not hard-coding text labels in your JSP pages.
    For example, in your page flow controller class, you can add an annotation
    such as the following:
    * @jpf:controller
    * @jpf:message-resources resources="labels.Messages"
    public class Controller extends PageFlowController
    { ...In this example, the naming convention is that the message resources
    file must be located in the project's /WEB-INF/classes/labels directory,and
    the file must be named Messages.properties.
    In the Messages.properties file, you might have a property such as:
    nameLabel=Name Then in your JSP page, you can use a data bindingexpression
    such as the following:
    <netui:label value="{bundle.default.nameLabel}"/> Alternately, you can use
    the key attribute on the @jpf:message-resources annotation:
    In your page flow controller class annotation:
    * @jpf:controller
    * @jpf:message-resources key="foo" resources="labels.Messages"
    public class Controller extends PageFlowController
    { ...Assume that the Messages.properties file in the
    /WEB-INF/classes/labels directory is the same as shown in the previous
    example. In the JSP page, you could use a tag such as the following:
    <netui:label value="{bundle['foo/jpfDirectory'].nameLabel}"/> In this
    case, your page flow controller class file is/jpfDirectory/Controller.jpf.
    >
    Another option is to use the <netui-data:declareBundle> tag. For example,in
    your JSP page:
    <netui-data:declareBundle name="someMessages"
    bundlePath="com/foobar/resources/WebAppMessages"/>This tag declares abundle
    that can be referenced in a data binding expression, such as in the
    following example:
    <netui:label value="{bundle.someMessages}"/> For more information, see the
    topics about the @jpf:message-resources Annotation and the
    <netui-data:declareBundle> Tag.
    "Gus" <[email protected]> wrote in message
    news:[email protected]...
    First of all, thanks!
    I want to get a string from the bundle and pass it to a JSP in therequest.
    I have defined the resources at the top of the JPF, as specified in thehelp:
    @jpf:message-resources resources="mensajes"
    The question is how can I get a string from the mensajes.properties
    file.
    >>
    Gus
    I would be better able to answer your question if I knew what you
    wanted
    to
    do. Are you trying to display the strings from the bundle?
    john
    "Gus" <[email protected]> wrote in message
    news:[email protected]...
    How can I access the ResourceBoundle declared at the top of the pageflow,
    from
    the page flow?

Maybe you are looking for

  • Browse Data & Parameter flds no longer fully populated after upgd  SQL 2005

    I upgrade our SQL 2000 Server last weekend to SQL 2005 (sp2). Now our Crystal reports that access SQL data are not working correctly. Parameter Fields are showing little to no data, where before the upgrade we were seeing many more rows in the list.

  • Secunia PSI Error Points To Photoshop CC 2014 Folder

    Secuna PSI is giving me an error pointing to a program called "node.js", which appears to have been installed in my Adobe Photoshop CC 2014 folder and out-of-date.  Does anyone know anything about this program and, if so,  why it is causing a Secunia

  • The error is " The Mapping to Node has not been completed

    Hi All, I am getting a strange type of error and need help immediately. The error is " The Mapping to Node COMPONENTCONTROLLER.1.PLANNING_ENTITY Has Not Been Completed" for the node that exists in the Parent component and is being used in all the chi

  • LIV posting with budget exceeding due to exchange rates

    Hi, I have a budget created with $X in singapore dollars. Then i have a PO created in USD which is tied to this budget created. At the time of PO creation, the exchange rate is say, 1.4, and the "fixed exchange rate" option is not selected at PO Head

  • Oracle9i-Lite

    HI.. To use Oracle-9i Lite: Do I need to install Oracle-9i Personal as well? I want to be able to run an application on a WIN32 Laptop, whilst it is off-line (Not Connected to the main Oracle Server). Can I connect to Oracle-9i Lite database via a tn