What is the best method for bookmarkable URLs

Hi Everyone,
I've been working with JSF for a little while now, and I've been using RestFaces ( [https://restfaces.dev.java.net/|https://restfaces.dev.java.net/] ) for my bookmarkable URLs, but there are still a few limitations, like, when validations phase occurs, the real path to the JSF page is exposed (currently working on a fix, but it's lead me to ask some other questions.)
What has everyone's experience been?
I want to be able to use Pretty URLs as Links, commandButtons (aka, as a result of an action method / or any navigation event).
So:
http://mysite.com/app/viewuser/username1
This URL should bring me to the viewUser page... and if they choose to take an action, "Edit a user" by clicking a command button for example, then they should be redirected to the editUser page, which should still have a pretty URL: http://mysite.com/app/edituser/username1
Effectively, I want to alias a pretty URL to a page:
/Login -> /faces/login.jspx
/viewUser/{username} -> /faces/viewUser.jspx (and also sets the username parameter based on the value parsed from the URL)
/editUser/{username} -> /faces/editUser.jspx (and also sets the username parameter based on the value parsed from the URL)
I know PrettyURLPhaseListener helps with this, but it does not enable rendering of pretty URLs after navigation like RESTfaces does.
Thoughts? Thanks.

Ok, so I solved my problem by creating a JSF extension.
[ PrettyFaces|http://ocpsoft.com/prettyfaces/]
I wrote it recently and released it as opensource in order to fix some of the major problems with existing JSF URL mapping tools.

Similar Messages

  • What is the best method for saving files off of the hard drive?

    I would like to save music files and photos somewhere other than my hard drive (eg. CDs, DVDs, zip disks). What is the best method for doing this?

    It rather depends on how paranoid you are
    External hard drives protect you from hard disk trouble on your machine.
    Optical media (CD's, DVD's) protect you from trouble with magnetic disks - such as external hard drives and the HD in your machine. Optical disks are thought to be more reliable that magnetic disks for long term storage.
    Off site back-ups will protect you from fire or theft at your home or office.
    How paranoid are you? Personally everything is backed up across three diferent external HD's. And maybe twice a year I burn a copy of my photos onto DVDs and they go to a relative's house across town.
    Regards
    TD

  • What is the best method for transferring iTunes library from PC to iMac?

    I have a new iMac.  I have authorized it with my iTunes account.  My current iTunes library is on a Windows Vista PC, not on the same network.  What is the best method for me to use to transfer the iTunes library from the PC to the iMac?
    iMac, Mac OS X (10.7.4)

    Did I just answer this in another post for you?
    iTunes: How to move [or copy] your music to a new computer [or another drive] - http://support.apple.com/kb/HT4527
    Quick answer if you let iTunes manage your music:  Copy the entire iTunes folder (and in doing so all its subfolders and files) intact to the other drive.  Start iTunes with the option (shift on Windows) key held down and guide it to the new location of the library.
    Macworld - How to transfer iTunes libraries between PC and Mac - http://www.macworld.com/article/46248/2005/08/shiftitunes.html
    Move an iTunes library from a Windows PC to a Mac - http://www.macworld.com/article/1146958/move_itunes_windows_mac.html
    iTunes for Windows: Moving your iTunes Media folder - http://support.apple.com/kb/HT1364

  • What is the best method for finding duplicates in iPhoto?

    What is the best method for finding duplicates in iPhoto?  I would like them identified and then prompted to delete or not.

    iPhoto Library Manager - http://www.fatcatsoftware.com/iplm/ - , duplicate annahalitor, Decloner
    LN

  • What's the best method for a nav menu with image rollover for all visitors?

    Hi.
    First, thanks for reading this.
    What's the best method for a nav menu with image rollovers for all visitors, including PDAs? I've used JavaScript rollovers for years because the majority of my customers' visitors use some version of IE (past 7.0) but I'm building a new site that has to display properly for the widest range of visitors imaginable. (I also know that I need to use a more modern method for everyone and this is my excuse to start).
    Finally, using images is critical. I apologize ahead of time to anyone I offend, but I have never seen a nav menu without images that doesn't look just plain terrible.
    Thanks.
    Fitz21

    If you want the best menus possible for Dreamweaver look no further than Project Seven:
    http://projectseven.com/
    They have all kinds of menus and other extensions available for purchase.  Easy to use and they work as advertised.  I personally use Pop Menu Magic and Tab Panel magic myself.  I could go on and on, but I guarantee that if others respond they will echo the same sentiment for Project Seven.

  • HT1229 what is the best method for using a iphoto with an external hard drive for greater capacity?

    what is the best method for using a iphoto with an external hard drive for greater capacity?

    Moving the iPhoto library is safe and simple - quit iPhoto and drag the iPhoto library intact as a single entity to the external drive - depress the option key and launch iPhoto using the "select library" option to point to the new location on the external drive - fully test it and then trash the old library on the internal drive (test one more time prior to emptying the trash)
    And be sure that the External drive is formatted Mac OS extended (journaled) (iPhoto does not work with drives with other formats) and that it is always available prior to launching iPhoto
    And backup soon and often - having your iPhoto library on an external drive is not a backup and if you are using Time Machine you need to check and be sure that TM is backing up your external drive
    LN

  • What is the best method for moving iTune Libraries from Old to New Computer

    Hello,
    Thanks in advance for any assistance you may offer.
    My Sony Vaio Desktop recently died and untimely death, so I just purchased an HP Notebook. I was trying to wait out the release of the possible update of the Macbook line. However the old computer didn't agree. This HP will tie me over till a new release.
    I've been doing weekly backups for over 3 years with a backup drive from Western Digital. At this point I just want to transfer my music in iTunes and applications from the App store that are loaded on to my iPod Touch into the new computer and then reauthorize and sync.
    My question is what's the best method. Oh another problem I'm having includes the latest iPhone & iPod Touch software problem of 3rd party apps not working along with the vanishing of my music on the Touch.
    Any guidance would be much appreciated.

    Open up a fresh copy of iTunes. Point iTunes in the direction of your Western Digital Harddrive. Import Folders.
    1. New Copy
    2. Edit -> Preferences -> Advanced -> General -> Change -> <the address of the iTunes library on WD>
    3. File -> Add Folder to Library -> <Select iTunes folder on WD>
    Always keep a backup of your iTunes Library file and the iTunes XML Document. If you have those, then it might be just as simple as copying those to your iTunes file folder. If you are not sure where they are, then do a search for iTunes.xml.

  • What is the best method for backing up photos in IPhoto?

    I have over 10,000 photos in IPhoto and am looking for the best method for doing a backup (or an archive?).  I'm now using ICloud and it appears it's just photo streaming and does not have storage capability. External hard drive, copying to a DVD, other suggestions?

    Most Simple Back Up
    Drag the iPhoto Library from your Pictures Folder to another Disk. This will make a copy on that disk.
    Slightly more complex:
    Use an app that will do incremental back ups. This is a very good way to work. The first time you run the back up the app will make a complete copy of the Library. Thereafter it will update the back up with the changes you have made. That makes subsequent back ups much faster. Many of these apps also have scheduling capabilities: So set it up and it will do the back up automatically. Examples of such apps: Chronosync or DejaVu . But are many others. Search on MacUpdate
    My Routine
    My Library lives on my iMac. It’s Backed up to  two external hard disks every day. These disks are permanently attached to the iMac. These back ups run automatically. One is done by Time Machine, one is a bootable back up done by SuperDuper
    It’s also backed up to a portable hard disk when ever new photos are added. This hard disk lives in my car. For security, this disk is password protected.
    I have a second off-site back up at a relative’s house across town. That’s updated every 3 or 4 months.
    My Photos are backed up online. There are many options: Flickr, Picasa, SmugMug etc. However, check the terms of your account carefully. While most sites have free uploading, you will often find that these uploads are limited in terms of the file size or the bandwidth you can use per month. For access that allows you to upload full size pics with no restrictions you may need to pay.
    Every couple of months I test the back ups to make sure they are working correctly. It’s very easy to mis-configure a back up application, and the only way to protect against that is to do a trial restore.

  • What is the best method for writing Multicolum​n List data to a text file?

    I am trying to find the best method for writing the data from a multicolumn list to a text file. Say the list has 7 rows and 6 columns of data. I would like the final file to have the data resemble the Multicolumn List as closely as possible with or without column headers. A sample VI showing how to accomplish this would be greatly appreciated. I realize this is pretty basic stuff, but I can get the output to the file, but it comes out with duplicate data and I am on a time crunch hense my request for help.
    Thank You,
    Charlie
    Everything is Free! Until you have to pay for it.

    Hello,
    I think that the answer to your question it's on the example that I've made right now.
    See the attached files....
    Software developer
    www.mcm-electronics.com
    PS: Don't forget to rate a good anwser ; )
    Currently using Labview 2011
    PORTUGAL
    Attachments:
    Multi.vi ‏12 KB
    Multi.PNG ‏6 KB

  • What is the best method for multiple language interface?

    Hi,
    I need to adapt my CVI application to multiple languages.  But I have to be able to do this on the fly.  The Localizer is great for all the panel objects and this works great.  But I was wondering what the best method is for all the dialog box text?  Right now I'm using const char defines for the text. For exampl:
    const char *CONST_NO_STRING         = "No";
    Is there a simple method, or best practice method, to load different language dialog text at run time or on the fly?
    Thanks,
    Andy

    Not sure if Andy's original concern was settled... but let's try and button this up:
    - The UI Localizer does use a text file with manually-written translated strings for each supported language
    - From the Localizer help: this will only aid in translating the panel labels.
    Use this instrument driver to easily display user interfaces in different languages. When loading a panel or menu bar, you can specify a language file that contains translations for all the labels on the panel and all the menu items. You can create different language files for the user interfaces by translating them with the User Interface Localizer utility (localui.exe).
    - If you have additional content to be translated (like the text inside a drop down box), manually loading from .lwl, or similar, files and programmatically setting those dialog box entries would be the solution. - Looks like CVI should handle multibyte languages just fine (see below), though I have never used them.
    To close, these 2 devzones are good references:
    http://zone.ni.com/devzone/cda/tut/p/id/4036
    http://zone.ni.com/devzone/cda/tut/p/id/3841
    Regards,
    Peter Flores
    Applications Engineer

  • What is the best method for storing/retrieving images?

    Friends,
    OS: RHEL AS 3
    DB: 9iR2
    We have some critical situation. We need to scan all our Purchase orders and to store in our pc. we don't want to store the images in the database. it will be a big headache. We have 4 branches in different cities. All the branches are connected to our local network. We have novell server in every branches to store the oracle forms and the db is centralized in our head office. The purpose is to view any PO in any branch.
    so,what will be the best solution for storing the images for our archiving?
    thanks & regards

    Yes - a good quality external hard drive is the answer
    Moving the iPhoto library is safe and simple - quit iPhoto and drag the iPhoto library intact as a single entity to the external drive - depress the option key and launch iPhoto using the "select library" option to point to the new location on the external drive - fully test it and then trash the old library on the internal drive (test one more time prior to emptying the trash)
    And be sure that the External drive is formatted Mac OS extended (journaled) (iPhoto does not work with drives with other formats) and that it is always available prior to launching iPhoto
    And backup soon and often - having your iPhoto library on an external drive is not a backup and if you are using Time Machine you need to check and be sure that TM is backing up your external drive
    LN

  • What's the best strategy for storing URLs as keys?

    I need to create an index that maps URLs to 8-byte longs. I know that I can just use StringBinding and LongBinding to create my entries, however I'm wondering if there's anything that I could do to make more efficient use of memory. I need quick lookups, but I also need to store a lot of data (600M URLs and growing). The average length of a URL is about 90 characters.
    Since I don't know what BDB actually keeps in memory at runtime, I'm wondering what advantage there is (if any) from using hashes for the keys instead of the full URLs. I'd have to store the URL in the data to distinguish hash collisions. There's obviously a trade-off between the size of the hash output and the number of collisions. I can't imagine that the lookup time would suffer that much if I have to iterate through all of the records that hash to a particular key, but I'd like to know if you have a reason to contradict that assumption.
    In summary, I'd like to know what BDB would prefer from a performance standpoint (both size and speed):
    + smallest key/data records (store URL as key, long as data)
    + smaller keys/larger data/minimal collisions (store 160-bit hash of URL as key, URL and long as data)
    + even smaller keys/same data/more collisions (store 64-bit hash of URL as key, URL and long as data)
    The key size would also be much more consistent if I use a hash function. I don't know if BDB cares about that.
    I know that every situation is different and that I could just run my own performance tests (and I will), but it takes a few days to load the data into the index, so I'd like to call on the experience here to avoid making any really bad decisions and save me some time.
    Thanks,
    -Justin

    Hi Justin,
    I know you're not looking for an "it all depends" answer, but it does depend largely on how much of the data set you're accessing fits into the JE cache. If you're not sure about this and can't measure it by running your app and looking at the EnvironmentStats, please run the DbCacheSize utility. There's an FAQ about it, and several OTN threads.
    If the large majority of the data set you access frequently fits into the cache, you'll get maximum performance with the first option you mention (no hashing), since you don't have to filter out hash collisions.
    If I/O to read from disk is a big factor (because the JE cache isn't large enough), then you may be able to reduce this problem by trying to fit more into the JE cache.
    Reducing the key size by using a hash is one way to fit more data into cache, since the keys are stored multiple times in the Btree internal nodes. However, unless the records with the same hash are likely to have been read recently, reading the colliding records will result in more random reads, and that will probably outweigh the advantage. JE stores each record separately on disk in write order, so records with the same hash key will not be stored in "pages" together -- JE has no pages.
    So instead, you may want to try configuring key prefixing, if the URLs are likely to have common prefixes. See DatabaseConfig.setKeyPrefixing.
    If that isn't sufficient, you could use a hash key and store all the records with that hash in a single record. In other words, you could store multiple logical records per JE record. This is quite a bit more work on your part, since you have to handle the packing and unpacking, as well as deletions, etc. For that reason I don't recommend it, but we have had some users do this successfully.
    --mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • What is the best method for updating Bios for 8.1 on GT70 2OD

    Hey,
    I've been getting a bunch of different BSODs and its been recommended I update my bios because I am running win 8.1
    Im just a little confused with which method would be best to update the bios. The EFI bios utility method on the PDF looks easy enough, but the information above that says to use the flash utility in the compressed file. Is that the afuwinx64.exe file and I run it from windows? or can I do something with the .bat files?
    As you can tell I dont know to much about this kind of thing, I have been avoiding this update hoping to solve all issues without it, no such luck unfortunately. The feedback I got said that it seems as If something is misconfigured. in your opinion is it likely not having the bios updated could cause issues?
    Thanks.

    Use one of the methods outlined in the PDF files on the website from MSI. Either of those methods should work just fine.
    The generally recommended method though is using the BIOS HQ Flasher.
    >>Use the MSI HQ Forum USB flasher<<
    I would NOT just flash using the exe or the bat files, as this can cause issues if done improperly.
    I believe there was a bios update for the GE series of laptops because of a configuration issue for Windows 8.1. I don't believe the update for the GT series for Windows 8.1 had that same issue.

  • What is the best method for synchronizing tables in two different DB?

    We have a core banking database and this database includes our customer related tables and these tables are really huge.
    And we have other database for some applications and this database needs fresh customer data which take place in core banking database.
    Our current method is materalized views but we have some performance problems about it.
    What can give better performace for synchronizing the tables between databases?
    -oracle streams?
    -triggers?
    -dbms_comparison?
    or anything else?
    Edited by: 983327 on Jan 28, 2013 2:14 PM

    Assuming that both databases are Oracle, both run relatively recent versions of Oracle, and your organization has administrative access to both systems ("core banking" databases are often run by third parties), Streams is a more efficient architecture than materialized views on the capture side (assuming that you are doing incremental refreshes with materialized views). It's more work to configure than materialized views but you get much greater flexibility and better performance.
    Oracle's direction is to move away from Streams and towards GoldenGate which requires additional licenses. Since Oracle does not plan on enhancing Streams moving forward, if this is a strategic decision for your organization, you might want to look at GoldenGate instead even if it doesn't offer any benefits today over Streams.
    Justin

  • What is the best method for developing for Internet Explorer Mobile 6 on handheld devices?

    We have customers with various versions of IE Mobile on handheld devices, and I commonly come across peculiarities when customers view our web pages on these devices. I was wondering what would be the best way to test page layouts to make sure customers
    don't have issues. We currently check it on the two handheld devices we own, but this does not seem to be enough sometimes. Is there any sort of emulator available to view on the different versions available? Or would it be valid to set up a VM with a copy
    of IE 6 to verify page layout? Or is there a list of what CSS properties and selectors are actually available on the devices? I keep coming across some things that are supported, and others that are not, and I can't make any sense out of why some CSS2 things
    are, but others aren't. And even then this seems to change per device.

    I'm already testing using IE7 mode with IE11. It is quite nice, but the handheld devices still do not display anything like IE7 does. More specifically the devices are running Windows Mobile 6~6.5 (I'm not positive), but that lists IE Mobile 6 as running
    on that; furthermore, it seems the closest desktop browser is IE6. Which is much different than IE7.
    Once I get the handheld the company owns back, someone else is using it for testing atm, I plan to run through a short script to see what CSS properties it supports. And try to figure out how to access the version information for the browser.
    var testElement = document.createElement('table'),
    jsTestsElement = document.getElementById('jsTests');
    jsTestsElement.innerHTML = '<ul>';
    for(var name in testElement.style){
    jsTestsElement.innerHTML += '<li>'+name+'</li>';
    jsTestsElement.innerHTML += '</ul>';
    Otherwise all I've got at the moment is the user agent string: Mozilla/4.0 (compatible; MSIE 6.0; Windows CE; IEMobile 8.12; MSIEMobile 6.5)
    Which has led me to old blog posts and what I find confusing information that doesn't seem to show me what CSS it supports. I'm more interested in styling than developing new web pages currently.

Maybe you are looking for

  • Can my husband access my itunes library from his user account on our shared mac?

    My husband and I share the use of our iMac and both sync to my itunes library. Because we both want to use the Cloud we've just set up a separate user account for my husband but I believe there is some way he can share my itunes library under his Use

  • Urgent help needed in Cube Security implementation

    I have a need in implementing security in one of the dimensions(Performance Rating) and users under different roles should be able to browse the cube as below. The tables information is as below Dimension Table Description Dim_Employee Employee detai

  • Credit note for Returns

    Hello, I did a credit note for a "returns order". Does someone know why I get the message: Document xxx saved (no accounting document generated) After that I have to press the "green flag" in change billing document or the ReleaseToAccounting within

  • Blocked after 4.3.5 update

    The update process stopped, maybe besause of my anti virus (avira) Now the ipad is un DFU mode but no longer recognized by iTunes : so it is completly blocked !! I tried to desinstall the anti virus and firewall, reinstall iTunes, stop potential conf

  • Syncing calendars  results in 3 entries

    When I sync my iPhone 4 with my iMac the result is 3 entries of every calendar event on my iPhone. The calendars on the iMac are OK. The contacts and the bookmarks are all OK. The sync also takes a very long time to complete. Please how can I get bac