Design decission for multilingual support using JSF

I am in the process of doing a refactoring of a web application written using Model 2 design (JSP, Servlet). The web application should support diffrent languages and somtimes different page layout and validation rules based on country.
The problem with the application today is that the jsp-pages contain numerous scritlets with conditional statement whether a html-element should be visible or not. All validations are done in javascript which also has a country dependency.
I have been looking at JSF/facelets as a solution to the problem. I believe that the component model of JSF in conjunction with the templating in Facelets could do the trick but I am struggling a bit with which "Best Practices" to use.
I would very much appreciate if anyone has faced a similar problem and could share some start-up recommendations.
/Jörgen

i18n is very good handled in JSF. Read chapter 2.5.2 and on of the JSF specification: [http://jcp.org/aboutJava/communityprocess/final/jsr252/index.html] (pick 1st download).

Similar Messages

  • Help needed in building a demo mobile app for DRM support using Content server 4

    Hi all,
    I am building an application for the blackberry to support reading of pdf and ebuf content similar to Adobe Digital Editions with DRM support . I came to know about the Adobe RMSDK .
    Following is my understanding regarding my implementation , please correct me if i am wrong:
    The DRM implementation on a mobile device for Adobe should satisfy the following criteria:
    1. The mobile device should have a application which uses the Adobe RMSDK.
    2. The publisher or the server app should install and run the content server 4
    3. An acsm file which contains the rights data should be saved stored at the adobe server and should be downloaded by the mobile client.
    4. The urls in the acsm xml file will be used to fetch the content for the ebook.
    I have the following querries:
    1. Is there an implementation of the RMSDK for java to run on blackberry.
    2. Is Adobe content server 4 free to install, if not do we have a test server for this purpose.
    Thanks in advance for the help.

    Hi Jim,
    Thanks for your kind reply. I have some more querries
    Suppose if we have a client implementation of the Adove RMSDK in java,  please help answer these querries:
    1. How do we connect to the cs4 server (what will be the flow of data, is there a documentaion regarding the protocol to be used between the mobile client and the cs4 server in order to communicate and fetch Rights protected ebuf and pdf data.
    2. The link http://www.adobe.com/products/digitaleditions/library does not give me information of how to use this library to store by ebook data and fetch  drm data from the mobile client and the protocol/communication followed.
    3. How do i go forward in evaluating acs4( getting a test version of cs4 and using it ). We want to build a demo app in blackberry.
    thanks
    Amit

  • What is the designated initializer for UIViewControllers that use loadView

    I'm using loadView to programatically create my views in a UIViewController subclass. However, initWithNibName doesn't run anymore. Where can I initialize variables? i.e. what is the new designated initializer when I use loadView?
    Thanks

    So are you saying there are two iCloud mail accounts in your mail preferences?  I don't know that the @mac.com address will work through iCloud, although you should be able to set it up as a regular IMAP account as it was before iCloud. The iCloud account should be using the @me.com address.  I assume you can access that account at the icloud.com portal?

  • Webex Meeting Center and Jabber for Ipad support in Webex Telepresence

    Hello, I have a two questions which are unclear based on my browsing of posts in this thread.
    1) Are traditional Webex Meeting Center meetings able to be joined to a Webex Telepresence session?  Ie. I have two callway/webex telepresence nodes (SX20 and a C40) can they have a webex meeting center participant brought in?
    2) Is Jabber for Ipad supported using the Webex Telepresence service?  Using the example endpoints above I have a SX20 and C40 and they want to add a Webex for Ipad endpoint in.
    Thanks.

    You cannot have Telepresence endpoints using Callway service(WebEx TP service) join a webex session directly. You can do this however using WebEx enabled Telepresence which is meant for on-premise users to work with WebEx
    http://www.cisco.com/en/US/docs/telepresence/infrastructure/tms/config_guide/webex_enabled_telepresence/cts_webex_config.html
    In the call way (aka WebEx tp service), the work around is you have to use an endpoint that has multi site capabilities to make one video call and see video from other end points and then make an audio call to the WebEx service and bridge them together. Now users can audio and video and presentation remains on WebEx but it's not like the true webex enabled telepresence which today call way doesnt support
    See attached PDF last page. Also you may need a PSTN subscription to make that call happen

  • I want to swop my Windows copy of CS6 Design Premium for a Mac License.

    I've brought a copy of CS6 Design Premium for myself to use on a PC laptop. Which I then purchased however at the last I've decided a mac copy would be what I would prefer to use. The Serial key have not been used. So is there a way to swap my PC serial key for a Mac key?
    Thank you

    http://helpx.adobe.com/x-productkb/policy-pricing/order-product-platform-language-swap.htm l

  • How to design a framework for implementing rules in JSF/Spring Application

    We use JSF 1.2 (MyFaces 1.2.2) in the presentation layer, Spring 2.5.3 in the service layer and Hibernate3.2 as persistence layer.
    The java application we are building is mostly CRUD but involves tons of business rules which needs to be implemented at both presentation and service layers
    We are planning to design a business rule framework so that developers can work on individual business rules without stepping on each other and also to prevent redundant implementation of the same business rules .
    Here are the Goals
    Solution Goals:
    • Business rules are implemented in only one piece of code. i.e. Rule is packaged into a unit
    • Business rules have an consistent, identifiable form.
    • Rules have to be Abstract
    • View technology like JSF says I want to createManufacturer(Manufacturer manuf) passing Manufacturer object as parameter. Then the business rule framework should go and fetch the rules to do the job of createManufacturer () and then return the result.
    • Fetch the Rule based on
    �X Target object
    Is the concrete object on which you are performing the Rule for example Device object
    �X Operation Type
    Is C R U D Validate
    Proposed Solution:
    • To have catalog of business rules which will have name of the rulewith parameters and dependencies
    • To have Rule Context designed in such a way that it goes and fetches the Rule i.e. give me all the Rules from the RuleContext and the client will decide which Rule to Apply.
    We modeled the business rule framework as a variant of Strategy pattern. But this approach has limitation in the sense it requires Rules to be injected into the Service Layer Spring Beans .
    Then we looked at other design patterns like Command, Visitor but that doesn’t seems to fit the bill either.
    Any pointers/suggestions will be greatly appreciated

    "In many cases multiple instances of a single class works just as well."
    This sounds a lot like the way I would do something in other languages. I would simply create an array of structs (or records) containing variables like these:
    type critter:record
      int x,y; // The critter's position, of course
      int vx,vy; // Used to keep track of velocity
      int ctype; // What kind of thing this is
      int subtype; // Additional flags or info that may affect behavior
      int yadayadayada,etcetera;
    end;
    var critters:array[0..somelargenumber] of critter;Of course, I suspect that what may work well in Pascal might not work as well in Java. For one thing, I don't think Java even has records per se. It may be necessary to use a class to duplicate that functionality. (Is this true? Or did I miss something?) The array then becomes an array of objects.
    Since I'm using classes anyway, I guess it makes sense that I should go all the way, creating interfaces for common functions and subclassing a basic Critter class for each different kind of critter (at least in cases where the behavior and/or rendering methods would be significantly different from the basic class methods).
    This is okay as long as I don't go overboard, right?

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

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

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

  • Support for Multilingual Numeral Input in JTextField swing component

    When the User Locale is changed from the regional & language options in the control panel and the standard digits are customized to a non Latin character set, all the windows applications adhere to the changes made. HTML also respects the changes in effect and displays any numeric values using the new character set, which are the national digits for many Eastern Locales such as Chinese, Arabic(Saudi Arabia), Urdu and many more. The JTextField swing component given by java, however, does not show any support to the new settings. Any numeric input is displayed in the Latin character set even when the input locale of the system is also changed respectively. Any text input for this case is correctly displayed in the desired literals and appropriate glyphs. However, unlike the AWT components, numeral input and display is not catered as per the user/developer's requirements. This behavior was first noticed in 2007, as far as i have found out, and was reported once again on the same thread in 2010. The thread is given below as a reference. No action or response has been taken. Kindly look into this matter and please let me know if this bug has been reported before and if there is any intent of providing a fix for it.
    Reference: http://www.coderanch.com/t/344075/GUI/java/Multilingual-support-JTextField
    Regards,
    Aitzaz Ahmad
    Software Engineer
    SENSYS

    I too had an itch to reply with something like this
    This is a sign of work well done!
    The WD has so strong UI abstraction, that hides client-server nature applications almost completely. If you search forum, you will even find posts where developers try to upgrade value of ProgressMeter in <b>for</b> loop )
    VS

  • Need advice about design approach for query editing tool with JSF

    Hi !
    I would like to propose in my application a way to allow end-user to create queries that could be executed on a some tables. I suppose that this kind of stuff is not new and would like to know if someone has to good design practice or example to do this with the JSF technology ?
    I think that two approaches is possible:
    1/ the user specifies the complete query from the start and get the final result when query is executed in the background
    2/ user specifies the query in a interactive way. It specifies one criteria and get the results of it, then on the results specifies another criteria and get new results, then specifies another criteria and so on.
    Also for information I use Hibernate as database framework.
    Some advice or start of approach will be very appreciated.
    Thanks !
    B.D.

    No-one could advice on this ?

  • Does the nb7.1 support using the javafx Components panel to design the ui?

    does anyone knows whether the nb7.1 support using the javafx Components panel to design the ui? thanks

    Hello guys, what kind of support would you like to see?
    Code snippets in the palette?
    Please answer here: What would you like to have in NetBeans 7.2 for JavaFX?

  • How to design a web based leave management application  using jsf n Spring

    I'm a beginner for spring and jsf technology. I have a requirement to design web based leave management module using jsf and spring. Im confused in the design phase itself and not clearly knowing how to classify the classes. I need to understand clearly on how to do class design, and wanted to use MVC design patterns. As i know jsf itself is MVC but, as i want to use spring, i need to have some kind of model files and bean files.
    I'm clear about the following 3 classes.
    Applicant
    Approver
    Leave
    this will be like applicant will apply for leave and approvar when he logs he will see list of applied leaves and he will approve / reject the same by selecting one or more rows from datatable.
    Please guide me on designing this or gimme some link where i can read about designing java classes for web based applications.
    Thanks for your time and help.

    Please guide me on designing this or gimme some link where i can read about designing java classes for web based applications.Sure:
    http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/

  • Returning a SharePoint 2013 termset in a tree structure using JavaScript for MultiLingual

    Hi,
    How do we get the path of term,if my term label is in some other locale, lets say for Spanish but using currentTerm.get_pathOfTerm() property it returns default path of my term store, i.e English.
    But i need the path to use my values returned in Spanish ???
    Do we have any idea how to achieve this. ??
    Regards,
    Avinash

    Hi,
    According to your post, my understanding is that you want to get term path using JavaScript for MultiLingual.
    Per my knowledge,
    SP.Taxonomy.Term.pathOfTerm property (sp.taxonomy) gets the path for this
    Term in the
    TermStore default language.
    To get path for MultiLingual, I recommend that you can use
    Term.GetPath method (Int32) which
    gets the path for the current
    Term in the specified lcid.
    If the lcid is not a valid TermStore language, then the default language is used.
    Thanks,
    Linda Li                
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • Hi all,I am planning to buy apple air or pro laptop for my office use,kindly give ur suggestions,will it work structural design software like staad pro ETAB,cad in apple laptops?

    Hi all,I am planning to buy apple air or pro laptop for my office use,kindly give ur suggestions,will it work structural design software like staad pro ETAB,cad in apple laptops?

    Hi VigneshCivil,
    Thank you for using Apple Support Communities. 
    Without knowing the specification requirements of the applications you will be using, I can't give you a specific recommendation. But I have provided you with the specifications of the two screen sizes of both the MacBook Pro Retina and the MacBook Air to compare with the requirements of your apps. One caution I would provide is not to go with the bare minimums required for the app, doing that would not give you optimum performance. 
    MacBook Pro (Retina, 15-inch, Mid 2014) - Technical Specifications
    MacBook Pro (Retina, 13-inch, Mid 2014) - Technical Specifications
    MacBook Air (13-inch, Early 2014) - Technical Specifications
    MacBook Air (11-inch, Early 2014) - Technical Specifications
    Regards,
    Jeff D. 

  • Create Adobe Form using Design Time for Processes and Forms

    Hi all,
    I am trying to create a form that have 3 fields:
    1. pernr
    2. ename
    3. effective_date
    I done all the necessary setup of BADI ,class, interface and form.
    I need the step to step guide where you create the adobe form using the Design Time for Processes and Forms. Anyone have any idea?
    Edited by: Siong Chao on Jan 3, 2011 4:54 AM
    Edited by: Siong Chao on Jan 3, 2011 5:00 AM

    Hi,
    I couldn't get to your query..
    What do you mean by step by step procedure for a design time & process for forms.
    if you are a beginner and looking for basic examples to implement adobe forms there are lot of them in SDN, please search them.
    let me know if your query was a very specific one.
    Cheers,
    Sai

  • Report Designer odbc connection string for data source using a parameter

    I am using stand alone report designer 3 for the present and have a question/problem regarding the odbc connection string for MySQL when setting up the data-source
    I need to be able to enter a parameter which is the database name i.e. BOE-201401 or say BOE-201312 etc  from a list of databases the user can choose from.
    at present the odbc connection string points to BOE-201402
    the connection string is at present  Dsn=Development Server for MYsql;description=MYSQL;server=ldndw01;database=BOE-201402;port=3306
    my parameter has the name BOE_DATABASE
    and in an expression it is  as such
    =Parameters!BOE_DATABASE.Value
    I want to point the datasource for the report to the parameter value before the user sees the report.

    Hi Leslie,
    Based on your description, we want to design a report with a dynamic DataSource connection string. There are the basic steps below for your reference:
    Create report with static database.
    Change data source to report parameter.
    Send new database connection string as a report parameter. 
    More detail information, please refer to the following blog: Dynamic Database in SSRS 2008.
    http://haseebmukhtar.wordpress.com/2011/11/09/dynamic-database-in-ssrs-2008/
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

Maybe you are looking for