I18N and netui-template:setAttribute ..

Hi,
In my jsp I am using setAttribute tag as follows
<b><netui-template:setAttribute name="title" value="My Page title"></netui-template:setAttribute>
</b>
I want to read the "value" attribute from a Application Resource.
So I did the following:
<i> <netui-template:setAttribute name="title" value="<bean:message key="my.value.title"/>"></netui-template:setAttribute></i>
But it does not compile, wondering if you can help.
Thanks in advance
Jaan

You can also decalre the bundle in your JSP, when you don't use a pageflow:
JSP:
<netui-data:declareBundle name="labels" bundlePath="bundle.test" />
Submit Button:     <netui:button value="{bundle.labels.submit}"/>
Cancel Button:     <netui:button value="{bundle.labels.cancel}"/>
Bundle file:
submit=Submit
cancel=Reset
Thomas Cook wrote:
If you're using page flows you can do the following...
In your page flow in the class comment:
@jpf:message-resources resources="messages"
In your JSP:
<netui:label value="{bundle.default.nameLabel}"/>
In your /WEB-INF/classes/messages.properties file:
nameLabel=Name
Alternately, if you're using the "key" attribute on your
message-resources annotation you'd do the following...
In your page flow in the class comment:
@jpf:message-resources key="foo" resources="messages"
In your JSP:
<netui:label value="{bundle['foo/jpfDirectory'].nameLabel}"/>
In your /WEB-INF/classes/messages.properties file:
nameLabel=Name:
Where your .jpf file is /jpfDirectory/Controller.jpf.
I hope this helps.
Thomas
Claus Ljunggren wrote:
Hi,
I want to i18n my netui:button. Does it have to be this uggly?
<i18n:getMessage messageName="labelCreateContact"
id="createContact"/>
<netui:button type="submit" value="<%=createContact%>"/>
btw, workshop claims that it doesn't know the createContact inside <%=%>,
but it works when run.
TIA,
Claus Ljunggren

Similar Messages

  • netui-template integration with frames

    Greetings,
    Is there any integration between <netui-template and HTML frames ? For example, I need to define several frames in all the JSPs of a webapp. I'm using a template which declares something like:
    <framest colums="25%,75%>
    <frame src="leftTemplate.jsp" name="left"/>
    <frame src="rightTemplate.jsp" name="right"/>
    </frameset>
    where leftTemplate.jsp and rightTemplate.jsp are templates. This raises an exception saying that there is no template context due to the fact that templates are used directly, which is right.
    I tried to use <netui-template:section instead of frames but the target option of <netui-html don't seem to be integrated with sections. For example, I need to click an anchor in a section and produce a visual feed-back in another one. If I use the target option of the <netui:anchor to specify the second section name, it doesn't work. If the name specified by the target option of the <netui:anchor is a frame name, then it works. So I need either to be able to use templates in conjunction with frames or to have target-aware sections.
    Any suggestion would be higly apreciated.
    Many thanks in advance.
    Nicolas

    Hello
    Which URL are you using in your Communication Channels? Make sure you use the appropriate URL as listed in note 1953125.
    Also, make sure proper credentials are stored in the IMG.
    Hope this helps.
    Sridhar

  • 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.

  • Query designer report and Web Templates

    Dear All,
    I have a very basic/stup doubt.
    Are reports made through Bex Query Designer and Web Templates the same?
    Actually there is a following requirement:-
    "Navigate from a BW Web template to a PCUI application". I have a document related to it but it gives me step on how can i modify my web templates to achieve this functionality. But all my reports are made through query designer and it available to user through Web Dynpro portal.
    So i just wanted to know is Web Template and Reports made through query designer the same? So that i can implement the changes in my report.
    Thanks.

    Hi Anup,
    by using web templates we can use N number of data providers (Queries) for a single analysis view with various available options. - N number of Queries can be assigned to Web template to create a web report
    but by using the Query designer ,you can create a single report which may not provide sufficient information to the client and the number of features are less compared to web template.
    as you mentioned that you are using the web dynpro.
    i think the web dynpro requires the web reports as an iview and ths iview can be created by using the Query designer and or web app designer.
    so the most clear view can be given to client using the WAD reports

  • How to make the lines of the table and the template same

    Hello Abapers,
                        I have a requirement, I have made a table in which i have displayed all the values in it, and under that i have taken a template and diplayed the total of it but the lines drawn to the table and the template is different, the table line is dark and the line of the template is lite, how can i make the line of the template dark, i mean the same as the table line. i hope u understand my problem.can u  please help me in solving my problem as the requirement is very urgent.
    HOPE U UNDERSTAND MY PROBLEM
    Thank u in advance  .

    HI,
    Adjust the line width option for template and table,its there under pattern.

  • Downloading and Installing Templates

    Aloha folks,
    I have a (hopefully) simple set of questions for the community here.
    How would I install templates for...
    Pages?
    Keynote?
    Numbers?
    I am looking up and downloading templates from this site: iworkcommunity.com
    The numbers templates are the biggest pain there. The folder in the zip file contains jpg's, Tiff's, previews, and txt files.
    To see what I mean, go to the site. On the home page, click "Pay Analysis. Analyze various aspects of renumeration" to download the file.
    I ask at the site itself, but I decided to post here because of a faster response time.
    Any ideas for this?

    Here I get the same behavior without Stuffit installed.
    Just rename the folder from
    Software Comparison  to
    Software Comparison.nmbtemplate
    Yvan KOENIG (VALLAURIS, France) 6 mai 2011 16:45:16

  • Dw, css, and a template, what is the best way to create a 20 page website with a different header in each page?

    dw, css, and a template, what is the best way to create a 20
    page website with different header content on each page? i am
    trying to insert a specific image and background color for each
    header on every page. what is the easiest or best way to do this?
    thanks, bryan

    "mediastream13" <[email protected]> wrote in
    message
    news:f47bes$9om$[email protected]..
    > ok, murray, here is the site.
    http://www.helphotline.org
    > in I.E. 6 i can't see the background color behind the
    header images,
    I'm seeing a hot pink background (which is my browser default
    - so that I do
    remember to declare a background color). You need to add:
    body { background-color: white;} to your stylesheet, or into
    the imbedded
    styles on your page.
    In Firefox, the very top black section, #headertop is hidden
    behind the
    header image.
    > background of the date/time isn't stretching the full
    length of the
    > screen, and
    > the margins aren't working in the main content area. how
    can i put a
    > background
    > color behind the header images?
    I can see the header image stretching right across the page..
    so not sure
    what color is missing there.
    > is there anyway to download i.e. six on my computer if i
    already have
    > i.e.7? i
    > just want to be able to preview the site before i upload
    the changes. it
    > seems
    > everything works in i.e. 7.
    Yes, I used this and it works really well.
    http://tredosoft.com/Multiple_IE
    Nadia
    Adobe® Community Expert : Dreamweaver
    CSS Templates |Tutorials |SEO Articles
    http://www.DreamweaverResources.com
    ~ Customisation Service Available ~
    http://www.csstemplates.com.au

  • Transport Category and Appraisal Template

    I am trying to transport category and Appraisal Template Transport:
    1) Right clicked on Category, select transport and clicked enter, it gave me the following error:
    Object "R3TR" "TABL" "T77HAP_C_OTHER" is an automatically generated object and cannot be transported. All tables beginning with "M_" belong to matchcodes and can only be accessed with these
    After this I need to transport Appraisal Template, Please Help

    Hi,
    I cannot place the error message, but...
    go to transaction "oohap_category" and  select the category you want to transport, then go in the menu and select transport. That should work.
    Regards and Groetjes,
    Maurice Hagen

  • Row and Column Template ?

    Trying to create this thing but no matter what I do I keep getting this ridiculous error:
    Cannot create a linked row and column template based on
    the selected rows. The grid needs to have at least one data row that is
    not part of a row and column template.
    What does this mean?

    You can get your requirement done using the Row and Column Template
    You can not save a row and column template with all rows in a report. You have to exclude at least one data row, otherwise you
    will get the error that you mentioned.
    If you want to save all the rows as a template and re-use it in other report, you can insert a data row at the end of all rows and hide that.
    Now you can select the complete row set as a template by excluding the extra data row that you will insert & hide.
    If you want to link the template in other reports with same row set you must be very careful with the formatting as you need to apply
    inherit formatting before saving the template. I suggest to spend some time with the FR online documentation.
    Regards
    Ram

  • Row and Column Template in Hyperion Reporting

    Hi
    Whenver I am trying to save a column of a report as a template , it is giving an error :
    "The selected columns contain one or more of the items below that cannot be included in templates:
    Invalid Input "
    I am not sure what does this mean. Though I have already deselected the "Link to Source Object". Can anyone suggest ?

    it may also worth cross checking below form doc:
    a.If your row and column template contains formulas with external references (for
    example, to cells outside of the selected row and column template), you are prompted
    to modify those formulas before saving the row or column template.
    Note: You can save a row and column template that contains cell formulas, as these can
    be discarded. For more information, see step 9.c on page 115.
    b. If a secondary database connection was specified within the row and column template,
    a dialog box displays prompting you to continue saving the template. If you save the
    template, the secondary database connection you specified in the row and column
    template is discarded. The primary database connection is then used for the row and
    column template.
    c. If unsupported properties are found, an Information dialog box presents a list of
    properties to discard before saving the template. For example, if the row and column
    template contains a cell formula, you can choose to save the template without the
    formula or not save the template.

  • Hyperion Reports - Row and Column templates

    <p>Sorry if this may be a bit basic but we are new to Hyperionreports. Currently we are going through a redesign process and washoping to get some viewpoints on the benefits of using row andcolumn templates within reports. I am looking at this option butgetting frustrated by the limitations around formatting, etc</p><p> </p><p>Are there any views out there on the preferred options. We havea particular style in design we need to include which is becomingdifficult when we use row and column templates</p>

    it may also worth cross checking below form doc:
    a.If your row and column template contains formulas with external references (for
    example, to cells outside of the selected row and column template), you are prompted
    to modify those formulas before saving the row or column template.
    Note: You can save a row and column template that contains cell formulas, as these can
    be discarded. For more information, see step 9.c on page 115.
    b. If a secondary database connection was specified within the row and column template,
    a dialog box displays prompting you to continue saving the template. If you save the
    template, the secondary database connection you specified in the row and column
    template is discarded. The primary database connection is then used for the row and
    column template.
    c. If unsupported properties are found, an Information dialog box presents a list of
    properties to discard before saving the template. For example, if the row and column
    template contains a cell formula, you can choose to save the template without the
    formula or not save the template.

  • Project and Checklist templates - Copy

    Hi,
    We are on PPM5.0.
    Is it possible to copy project and/or checklist templates from one client/system to another? We are not carrying out any client or system copy.
    We have a significant number of projects and checklist templates in a training client. These templates are now required to be created in the Quality client (another system). Creating them all over again would be a big effort and we are looking at ways (direct or indirect) of copying the existing templates into the new client/system.
    Please advise.
    Thanks.

    Hi Deepak,
    Have you considered exporting to MS Project and Importing into QA client? Disadvantages are you will need to do this for each project and when importing you will have first import (as a simulation) into an operational project and then create a template out of the operational project.
    PPM5.0 also has a data import utility (tcode DPR_DX_PROJECT), however, exporting the data into a spreadsheet may be a challenge.
    Regards,
    Lashan

  • Would like project entry on Recurring JEs and Posting Templates

    From our customer:
    Version:  SAP 2007A PL 49
    Description of requirements: (When setting up recurring entries and Posting Templates there is no place to enter the project code.  There is a field to enter the distribution code.  For some monthly recurring entries such as vehicle insurance, we wish to record a project code on the recurring journal entry which represents the vehicle.
    Valid as of: (Not a legal requirement)
    Business needs: (We use project codes to record all expenses against a given area.  Automated postings such as recurring journal entries that do not post to the project codes jeopardize the accuracy of reports afterwards.)
    Examples: (When creating a new Recurring Journal Entry, there should be a field displayed that allows the user to enter a valid Project Code just like there is for Distribution (Cost Centre) Code.  Then when the Recurring Journal Entry is added on the proper date it will contain the valid Project Code.)
    Current Workaround: (Manually add the project code to the newly created journal entries after the fact.  Hard to find entries and high possibility to miss entries or make mistakes.)
    Proposed solution: (Please see response under Examples.)
    Sally Weinrauch,
    Senior Support Analyst
    Coastal Range Systems Inc.
    Recipients of: SAP's Partner of the Year 2007 & 2005,
    North America's Top Ten 2008, 2007 & 2006.
    Edited by: CRS Notes on Jul 22, 2009 10:39 PM

    Hi
    Adding "project" into Recurring posting and Posting templates has been already considered for B1 later version.
    Yan

  • Team shopping Cart,Personal and public template in SRM 7.0

    Hello Experts,
    We are in SRM 7.0,
    Can someone help me in understanding the below:-
    The questions are the following:
    -     What is the difference between u201CPersonal tamplatesu201D and u201CPublic templatesu201D?
    -     What is the meaning of u201CTeam shopping cartu201D?
    -     How can the personal templates, public templates and team shopping carts be created and maintained, so they can searched for at a later point in time?
    Thank you in advance,
    Regds,
    RKS

    Hi,
    SRM does not use the term "personal template" and "public template" for Shopping Cart.
    There is "Shopping Cart template" which is like public template context.
    http://help.sap.com/saphelp_srm70/helpdata/EN/45/e55096554c0b00e10000000a1553f7/frameset.htm
    Old SRM version had personal template but it is no longer required. "Old Shopping Cart and Template" search is available now.
    Regards,
    Masa

  • Diff. bet. xsl template and rtf template!

    Hi,
    I need to know the difference between xsl template and rtf template.
    Thank you,
    Regards,
    Vishnu

    Hi,
    My 2 cents:
    You can easily customize a new infoobject created from a template.
    An IO created as a reference to the other IO is not customizable at all. It has no its own properties and master data. It uses the referenced infoobject's properties and master data. It means that you cannot even load master data for this new referenced IO.
    Best regards,
    Eugene

Maybe you are looking for

  • Disable cut option in Indesign CS5.5

    Hi, I want to disable CUT option in indesign once document is opened. I have added ActionFilter.cpp in my project and added following code in "FilterAction" function, IDocument* myDoc = Utils<ILayoutUIUtils>()->GetFrontDocument();     if (myDoc)     

  • While installing the linux oracle some of the packages were not be installed.. Especially ihe .i686 file

    At the time of database installation the given packages are can't be installed.. libfreebl3.so(NSSRAWHASH_3.12.3) is needed by glibc-2.17-78.0.1.el7.i686, libstdc++-devel-4.8.2-3.el7.i686 libXtst-1.2.2-1.el7.i686 At the installation time the output w

  • Tango Text Virus?

    Today I received an odd text message from some "Tango Text" app from an unkown number. It read something about how the app was free and to check out its URL to get more information. I have never even heard of, let alone used such an app. Little did I

  • Invisible Fonts in Flash on Webpages

    Ever since upgrading to Snow Leopard, I've been having problems with invisible fonts in Safari on pages that use Flash Player. Here's what I know: They're always in flash, but not all fonts are invisible. I created a new user account and there's no p

  • Ios 7 for iPhone 4

    I have 2.3 GB of space on my iPhone 4. Will the new ios 7 fit that?