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?

Similar Messages

  • Accessing remote jcs/jcx controls from page flows

    Hi,
    Is there a standard way to access remote jcx/jcs controls from page flows ?
    If i am correct the call to the dispatcher bean is a remote call , so can we run jcx/jcs controls on a different machine from where jpfs are running.
    I am just trying to dig into workshop framework to understand this , any pointers would be of great help.
    Thanks
    Varun

    Thanks for the tip. Unfortunately, I've tried this and there was no change.
    Here's how I tried to implement it:
    1. Edited the HTTP Configuration page in the Web Service wizard. Added http://portletserver/portlets/portletfolder/portlet.aspx. I've looked at this a million times to make sure there aren't any typos.
    2. Beforehand, I added http://portletserver/portlets/portletfolder/. to the HTTP Configuration page. I thought that would gateway everything in the portlet folder... Is that an incorrect assumption?
    3. I also tried to modify the .aspx page by adding a pt:url transformer tag to the target attribute of the form. The portlet works but it is still prompting with the pop up.

  • Calling Service Control from Page Flow

    In Workshop for Weblogic Platform v10.0, we have a web service control in a page flow.
    Although the web service call succeeds (as evidenced by a TcpMon monitor), the control method always returns null.
    I'm guessing that although the call looks synchronous, it's actually behaving asynchronously - returning immediately with null.
    Is this perhaps related to the particulars of calling controls from a Page Flow environment? Is it a bug in v10 of Workshop (Eclipse-based?
    Thanks for any ideas!
    - Rob
    ps: Here's the control interface and using class:
    package controls;
    import com.bea.control.ServiceControl;
    import org.apache.beehive.controls.api.events.EventSet;
    import org.apache.beehive.controls.api.bean.ControlExtension;
    @ServiceControl.Location(urls = {"http://LECAP1.lan.us.ray.com:9905/xsltTransform_vs0"})
    @ServiceControl.HttpSoapProtocol
    @ServiceControl.SOAPBinding(style = ServiceControl.SOAPBinding.Style.DOCUMENT, use = ServiceControl.SOAPBinding.Use.LITERAL, parameterStyle = ServiceControl.SOAPBinding.ParameterStyle.BARE)
    @ServiceControl.WSDL(resourcePath = "controls/cesXsltTransform.wsdl", service = "xsltTransform_vs0")
    @ControlExtension
    public interface xsltTransform_vs0ServiceControl extends ServiceControl
    static final long serialVersionUID = 1L;
    public java.lang.String xmlTransform(com.raytheon.schemas.ces.transformationservices.xmlschema.schema.TransformInput transformInput_arg);
    /** This event set interface provides support for the onAsyncFailure event.
    @EventSet(unicast=true)
    public interface Callback extends ServiceControl.Callback {};
    @Control
    private xsltTransform_vs0ServiceControl xsltTransform_vs0ServiceControl1;
    com.raytheon.schemas.ces.transformationservices.xmlschema.schema.TransformInput transformInput_arg = form
                        .getTransformInput_arg();
    String xmlTransformResult = xsltTransform_vs0ServiceControl1
                        .xmlTransform(transformInput_arg);

    Strange -- the PageFlowJspFilter adds no-cache headers to the response, so
    if you're forwarding to a JSP from the action, then the browser shouldn't be
    caching the result. What's in the URL bar in the case where your request is
    getting cached?
    "Neeraj Harlalka" <[email protected]> wrote in message
    news:3ff993bd$[email protected]..
    >
    Richard -
    Ok. I dug deeper into the issue and now my problem is that although theaction
    is getting called correctly, it seems to execute from a cache. The actiondoes
    not get executed the second time.
    Any ideas?
    Neeraj
    "Richard Feit" <[email protected]> wrote:
    Hmm... I'm not sure why you'd get that. Can you post the relevant JSP
    code?
    Also, are you able to hit the other page flow directly from a browser?
    Rich
    "Neeraj Harlalka" <[email protected]> wrote in message
    news:[email protected]..
    Hi Richard -
    I get an error saying cannot find the begin.do action.
    Thanks
    Neeraj
    Richard Feit" <[email protected]> wrote:
    Hello Neeraj,
    This should work:
    <netui:anchor
    href="/someOtherFlow/SomeOtherFlowController.jpf">someOtherFlowController.
    j
    p
    f</netui:anchor>
    What happens when you do this?
    Rich
    "Neeraj Harlalka" <[email protected]> wrote in message
    news:3fda39df$[email protected]..
    I read the other posts on how to call one page flow from a jsp
    that
    belongs to
    another pageflow. However the last suggestion posted - use the netuianchor tag
    with href, also does not work.
    Any other solution?
    Thanks
    Neeraj

  • EmptyStackException when exit from nested page flow on SP2

    I have tried to call a nested page flow (TestNestedController.jpf) from page flow
    and using redirect="true". After exit from nested page flow, it supposes that
    return to the action testNestedDone() in page flow(TestPageController). It works
    on SP1, but it fails on SP2.
    Please suggest any solutions for this issues.
    public class TestPageController extends PageFlowController
    // Uncomment this declaration to access Global.app.
    // protected global.Global globalApp;
    // For an example of page flow exception handling see the example "catch"
    and "exception-handler"
    // annotations in {project}/WEB-INF/src/global/Global.app
    * This method represents the point of entry into the pageflow
    * @jpf:action
    * @jpf:forward name="success" path="page.jsp"
    protected Forward begin()
    return new Forward("success");
    * @jpf:action
    * @jpf:forward name="success" path="/test/testNested/TestNestedController.jpf"
    redirect="true"
    protected Forward goToNested()
    System.out.println("go to nested redirect = true");
    return new Forward("success");
    * @jpf:action
    * @jpf:forward name="success" path="index.jsp"
    protected Forward testNestedDone()
    return new Forward("success");

    The error message like this:
    Empty nesting stack for returned action BackToPrevious from Page Flow /xxxx/viewMemberController.jpf.
    com.bea.wlw.netui.pageflow.EmptyNestingStackException: Empty nesting stack for
    returned action BackToPrevious from page flow /xxxx/viewMember/viewMemberController.jpf.
    at com.bea.wlw.netui.pageflow.FlowController.forwardTo(FlowController.java:1103)
    "patrick" <[email protected]> wrote:
    >
    I have tried to call a nested page flow (TestNestedController.jpf) from
    page flow
    and using redirect="true". After exit from nested page flow, it supposes
    that
    return to the action testNestedDone() in page flow(TestPageController).
    It works
    on SP1, but it fails on SP2.
    Please suggest any solutions for this issues.
    public class TestPageController extends PageFlowController
    // Uncomment this declaration to access Global.app.
    // protected global.Global globalApp;
    // For an example of page flow exception handling see the example
    "catch"
    and "exception-handler"
    // annotations in {project}/WEB-INF/src/global/Global.app
    * This method represents the point of entry into the pageflow
    * @jpf:action
    * @jpf:forward name="success" path="page.jsp"
    protected Forward begin()
    return new Forward("success");
    * @jpf:action
    * @jpf:forward name="success" path="/test/testNested/TestNestedController.jpf"
    redirect="true"
    protected Forward goToNested()
    System.out.println("go to nested redirect = true");
    return new Forward("success");
    * @jpf:action
    * @jpf:forward name="success" path="index.jsp"
    protected Forward testNestedDone()
    return new Forward("success");

  • Can I reference page-flow bean from a bounded-task-flow page-fragment?

    I have a view activity implemented as page fragment in my bounded task flow.
    I declare a page-flow scope managed-bean in adfc-config.xml to do some initialization for the bounded-task-flow:
    <managed-bean id="__23">
    <managed-bean-name id="__22">TaskFlowBean</managed-bean-name>
    <managed-bean-class id="__21">view.backing.TaskFlowBackingBean</managed-bean-class>
    <managed-bean-scope id="__20">pageFlow</managed-bean-scope>
    </managed-bean>
    In my bounded task flow, the default activity is a method-call activity which call the page-flow bean method
    <method-call id="initFlow">
    <method>#{pageFlowScope.TaskFlowBean.initFlow}</method>
    <outcome id="__27">
    <fixed-outcome>showPanel</fixed-outcome>
    </outcome>
    </method-call>
    But JDeveloper (11.1.1.2) show a warning "Refereneed pageFlowScope not found" at the "Diagram" view of the flow definition.
    The fixed outcome of the default activity is to render a page-fragment which also reference the page-flow scope bean method getPanelTitle():
    <af:panelBox text="#{pageFlowScope.TaskFlowBean.panelTitle}" id="pb1">
    <f:facet name="toolbar"/>
    </af:panelBox>
    At runtime, the page fragment was rendered properly except the panel box title is missing. No other error is reported
    When I debugged the application, the bean methods initFlow() and getPanelTitle() didn't get call as the program didn't stop at the breakpoint set in the bean methods.
    The page fragment was rendered properly except the panel box title is missing.
    When I change the scope to backing bean, both initFlow() and getPanelTitle() get called but under a different backing bean.
    As the bean attributes set by initFlow() were not no longer set when getPanelTitle() was invoked even though the methods were invoked in the correct order.
    Why can't I use a page-flow scope bean within the bounded task flow?
    On further debugging, I noticed the bean was not created when it is set to be page-flow scope. I put a debug message in the constructor... never get called.
    When should a page-flow scope bean be created to be accessible on entry to a bounded task flow?
    Edited by: Pricilla on Apr 29, 2010 3:16 PM

    Please check the scope of the pageFlow from the manual.
    pageFlowScope is only available for the pages/views in that taskflow and not in the included taskflows.

  • Just installed os x maverick and updated my version of pages now when I try to open a document stored in pages format from old version get message "The Application "pages" can't be opened -1712  What is wrong?

    Just updated to new version of pages.  Now can not open stored documents created under al pages.  Get message "the application pages can' be opened -1712"  hat do I do?

    Apple released Pages 5.0 to run on Maverics only. They completely rewrote the program for Maverics and 64 bit compatibility. They failed to explain that this version is missing much of the previous version's capability and that it cannot read older Pages files. When they install it they leave the older Pages 4.3 in place because it is the only way to read the older Pages files and upgrade them to a level that can be read by Pages 5!
    If you still have Pages 4.3 on your computer it will tell you what to do. If you do not then go into your backups and retrieve it.
    Because of the deficiences of Pages 5 I have removed it from my Mac and gone back to working with Pages 4.3. I have also removed Pages 2 from my iPad and found Pages 1.7 in the Time Machinew backups and brought it forward and droped it onto the iTunes icon to restore it and then synced the iPad to get the Pages 1.7 running again - it is compatible with Pages 4.3 on the Mac so all is back to normal for me.
    Apple say that they will fix many of the deficiences in Pages 5 in the next six months. I suggest you wait until then and keep an eye on these communities beforte considering the "upgrade".
    Incedentaly Pages 5.0 writes files that cannot be read by anything else including Pages 4.3 - better hope no one sends you one! It does not save RTF either - what where they thinking!

  • Code to call another Page Flow URL from one page flow URL

    Can anyone send me the code to call another pageflow url from one page flow URL.

    thanks...
    In my appication there is no Form page. Only based on Canvas in that ,
    i implemented Text box, Text Field And Drop down list etc..by own coding without using any abstract methods.
    I did every thing with in single Midlet file.While developng goes on i got the problem ,
    Like "your application exceeds the memorylimit you cant
    use more than 32Kb of byte code in Canvas"...
    So the application is not opened.
    I tried to call the next file in same package to proceed, i got it. codition goes to next file, but its not return back to the Main(MIDlet) file, throws the excepton as "Security exception".
    How to solve this problem,is any other way? please...

  • Why can I not print from pages but can if I copy to text edit, I get "printer off line message " from pages ?

    Why can I not print from pages but can if I copy to text edit, I get "printer off line message " from pages ?  I use HP wireless printer .

    Are you sure you have the right printer?
    In UNIX/OSX printers are virtual links to devices and even with the same name can be trying to reach a printer via another network address, so it thinks it is another printer.
    Peter

  • Flow text in Word for Mac 2011 works from page 1 to page 2, but not from page 2 to page 1. Does anyone know a fix for this, please?

    Does anyone know how to get text to flow from page 2 to page 1 in Word for Mac 2011, please?
    To try it, create a fair size text box on page 2 and fill it right up with text.
    Next, reduce the text box size so that the text box is over-full.
    Then Flow this overflow into a new text box on page 1.
    What appears also disappears, especially if you try to print.
    Does anyone else have this problem?
    Does anyone else know a

    With some advice, I was able to solve my problem by opening Word and then Force Quit Word.  When I re-opened Word, it had returned to normal.
    Note: I had already tried the expedient of restarting my computer without solving my Word problem.  But Force Quit did the job.
    Acadieman

  • Calling a Page(flow logic ) from a controller

    Hi Guru's ,
        I have a senario in which I have a controller and also Page flow logic .. I want to call a page of type page flow logic from the controller ..
    I tried the below methods .. but it didnt work ..
    *navigation->goto_page('test.htm').
    DATA: r_view TYPE REF TO if_bsp_page.
    DISPATCH_INPUT( ).
    r_view = create_view( view_name = 'test.htm' ).
    call_view( r_view ).
    this works only if its is a view but not flow logic ..
    Please give ur suggesions ..
    Thanks
    Sivaraj

    hi sivaraj ,
    first refer whether u could call a page using pages with flow logic by the controller which is used in mvc design.
    may be u canot call it . u have to create a page using view according to mvc . try it once.

  • Workshop 8.1 - jsp:include an Page Flow action resource

    Hi everybody.
    Can i use jsp:include to "include" a page flow action ?
    I've tried it, but odd things are happening: The resource got included, but fragments of html source "around" it are been lost.
    Any ideas ?
    Thanks in advance.

    Hi everybody.
    Can i use jsp:include to "include" a page flow action ?
    I've tried it, but odd things are happening: The resource got included, but fragments of html source "around" it are been lost.
    Any ideas ?
    Thanks in advance.

  • Error message: (translated from Dutch) "Cannot find corresponding style page for media query"

    Error message: (translated from Dutch) "Cannot find corresponding style page for media query"(see image)
    I cannot find what is wrong with this page: steun sesem
    This message does not appear on the other pages of this site..
    What do I wrong??
    Thanks in advance!
    Martien

    There are two things that are probably causing this error.
    Line 22 in your HTML looks like this:
    </style><!--[if lt IE 9]>
    You need to remove the closing style tag:
    </style><!--[if lt IE 9]>
    Also in sesem.css, there's a missing closing brace on line 486:
    .footer {
      font-size: 1.1em;
      line-height: 1.4em;
      color: #878787;
      text-align: center;
    }  // <---- Missing closing brace
    /* Desktop Layout: 769px to a max of 1232px.  Inherits styles from: Mobile Layout and Tablet Layout. */
    There are other problems in your CSS, but fixing those two items should put you back on the right track.

  • Page flow actions are called twice from each UI's action=...

    Odd observation: my nothing fancy login / pw change / logged in / jsps and pageflow are having the actions in the .jpf called twice for each jsp form action=.
    What can cause this?
    For example: the login jsp form action=loginAction, the corresponding method in the .jpf is called twice when the user clicks the login button on the login UI. The same behavior is observed for all the other actions in this page flow too.
    This has been a real problem for the pw change UI. Until I figured this out, pw change always returned invalid pw due to the second call to the action. :))
    tnx curt

    I have narrowed it down even more. What is happening is that you select the first item in the list it throws a validation error. I found this by adding and inline message. The weird thing is that if you select any other item in the list but the first everything flows as normal.
    This is a list of dates bound to a date type column in a database.
    Any Idea's why selecting the first item in a list would throw the validation message?

  • HT4623 I just updated my iPad 3 but myI just updated my iPad 3 but myiPhone 5 keep giving me a error message.  I don't have permission to access the requested resource, from iPhone and via my Apple Mac??????

    I just updated my iPad 3 but myI just updated my iPad 3 but myiPhone 5 keep giving me a error message.  I don't have permission to access the requested resource, from iPhone and via my Apple Mac??????

    If you think this is a bug, you can report it here:
    Apple - Mac OS X - Feedback

  • Will Lightroom 5 flow text from page to page?

    A little + sign appears at the bottom right corner of a text cell when the text overflows. I find I cannot pick up the additional text by clicking the + sign to place it on the next text cell thus linking text from page to page. Am I missing something or is such a useful facility unavailable in Lightroom? If that's the case, is there a good reason for Lightroom not offering text linking between pages?

    No, it's not InDesign, though it's easy to understand why that + indicator may make you hope that kind of flow may work.

Maybe you are looking for