ER's for Facelet Support, or "why facelets is a 2nd class citizen in JDev"

Hello all,
After an [url http://forums.oracle.com/forums/thread.jspa?threadID=873997]interesting journey getting Facelets, Trinidad, and JDeveloper 11g to play nicely together, I thought I'd post some thoughts on the sort of things that (IMHO) JDeveloper 11 needs in order to offer real, true Facelets support. I'll offer my list below, which will include observations as well as suggestions:
1). If we are going to use true .xhtml files, JDeveloper 11g doesn't support drag-and-drop from the data control pallette on to the .xhtml page (I do have a workaround that I'll detail below, but that has its own issues).
2). It's literally impossible to mix JSP and Facelets in a single project. As soon as you configure your project for JSP (by adding taglibs, for instance), you can no longer create a Facelets page from the "New" gallery, as JDeveloper will tell you "Cannot add a facelets page to a project configured for JSP." It works both ways, too - if you add a Facelets file to your project, no longer can you create a JSP.
3). Even if I manually try to get data bindings (page definitions) working with .xhtml files, it doesn't seem to work (I did this by creating a jspx file and page definition and copying files / changing the data binding registry).
4). Because ADF Faces is so intertwined with Trinidad, it would be nice if faces-config.xml and web.xml would be properly configured automatically (as an option) for Trinidad. If I manually configure faces-config.xml by ensuring the view handler is not defined there, define an alternate view handler in web.xml, and then add a new Facelets page to my project, JDeveloper undoes all my work and puts the view handler back in faces-config.xml, causing major problems.
5). To work-around the poor support for drag-and-drop from data controls onto .xhtml files, I have just decided to use .jspx as my default suffix for Facelets files. I create them via picking "JSF Page" from the new gallery, and then I manually mess around with the source so that it's not really a JSPX anymore. However, if I do this, I don't have any tag completion support for the Facelets tags. If I download the TLD from [url https://facelets.dev.java.net/servlets/ProjectDocumentList?folderID=4190&expandFolder=4190&folderID=0]here, JDeveloper complains about not having a tag handler class.
6). Two words: WYSIWYG Editing. There isn't any for Facelets pages. I have ADF Template envy. As soon as you configure web.xml and faces-config.xml for Facelets, all WYSIWYG is broken. Now, I know "real" coders don't use WYSIWYG, but it's sure darn nice to switch from source view and take a quick peek at the layout. For new-to-JSF/new-to-Trinidad/new-to-ADF Faces developers, it's almost a hard-and-fast necessity.
7). Would be nice to have page definition inheritance working like for ADF Templates too.
8). Drag-and-dropped things from the data control tend to include f:validator tags. No problems there, but the tags don't include an validatorId. Facelets needs them. I work around this manually by adding validatorId="" to each of the tags. I know there is a velocity template somewhere that JDeveloper uses for this drag-and-drop, but I cannot find them - does anyone know where they are?
9). If, in a project with no ADF Faces - only Trinidad, if I drag-and-drop from the data control on to an ui:define tag in the structure window, I get all kinds of ADF Faces options for the drop, nothing for trinidad.
10). Facelets < 1.1.15 has a tiny bug with the ui:debug tag (you cannot expand the component tree). It would be nice to update the one included with JDev (1.1.12) - I have done this and it appears to work fine.
From a productivity point of view - #6, together with drag-and-drop support on to true .xhtml files (not .xhtml files with a .jspx extension) would elevate the game leaps-and-bounds.
I'm interested in any of the following:
a). Some wonderful news from Oracle that they already know all of these limitations and they are fixed in a patch release which was just uploaded to OTN 5 minutes ago ;)
b). Insight on better ways of working with ADF BC / ADF Bindings / Trinidad / Facelets in JDeveloper 11
c). Feedback and experiences from other people using Facelets in JDeveloper, particularly with ADF Data Binding.
Depending upon the level of interest, perhaps we can migrate the discussion over to the [url http://groups.google.com/group/adf-methodology]ADF Enterprise Methodology group and produce a Wiki page out of it.
Best regards,
John

Nice post John,
Here are some of my comments on those issues:
+1). If we are going to use true .xhtml files, JDeveloper 11g doesn't support drag-and-drop from the data control palette on to the .xhtml page (I do have a workaround that I'll detail below, but that has its own issues).+
+3). Even if I manually try to get data bindings (page definitions) working with .xhtml files, it doesn't seem to work (I did this by creating a jspx file and page definition and copying files / changing the data binding registry).+
I tried that a while back too because Facelets is so much more powerful than anything else to achieve high performance and powerful templating in JSF, but it's completely unsupported. I tried all possible combination of servlet-mapping aand servlet-filter-mapping. AFAIK there's no way to do it yet and Oracle will most likely delay the support of Facelets + Databindings until JSF 2.0 where there won't be much choice. If you got them working somehow in 11g, I would be very very interested in getting a small demo project.
+2). It's literally impossible to mix JSP and Facelets in a single project. As soon as you configure your project for JSP (by adding taglibs, for instance), you can no longer create a Facelets page from the "New" gallery, as JDeveloper will tell you "Cannot add a facelets page to a project configured for JSP." It works both ways, too - if you add a Facelets file to your project, no longer can you create a JSP.+
I can understand that one, I'm sure it comes from a a very good intention from Oracle as Facelets actually replace the JSP engine, meaning the pages don't get parsed by JSP, thus tag classes don't get called. So I assume that limitation was to prevent people from thinking that Facelets integrates with JSP while it's not at all. However, I can understand that some applications might want to leverage both technologies at the same time
Regards,
~ Simon

Similar Messages

  • Why Does Verizon Treat FiOS SD Subscribers As 2nd Class Citizens In Terms of Channel Offerings?

    Verizon is understandably focusing its channel lineup additions toward HD channels. My gripe is that the few new SD channels being offered are being added under the Extreme HD package. In October, Verizon added non-premium, non-sports SD channels Current TV and RFD TV to the Extreme HD package. Now they are adding new SD channels like Blue Highways TV and Chiller to the Extreme HD package. As a SD subscriber, why am I being locked-out from receiving these non-premium, non-sports SD channels? In order to receive these SD channels on my standard definition televisions, I would have to pay an additional $10 a month for the Extreme HD package, plus upgrade to HD set-top boxes for an additional $5 per month for each, but not reap any of the benefits or enhancements of the HD experience. Am I the only SD subscriber who feels cheated? Shouldn't a programming tier entitled Extreme HD consist only of HD channels? Or should SD subcribers just be content with their same conventional channel lineup because we're not worthy of anything new? 

    I am not trying to sound mean or anything, but that's like saying "why doesn't Microsoft still update windows 3.0?". That Is the course of technology Everything gets improved, Adding the SD channels to the HD package will help people move on from old SD technology. Some people wont like it, The same people that still think the picture on a VCR is just as good as a dvd, or blu-ray. Hell even the FCC is forcing everyone to move to all digital broadcasting. I am just surprised on how many people are still effected by the loss of analog. Again this is not a stab at you just an opinion.

  • Number for tech support

    Is there a number for tech support? Why does Apple sell a product without a manual? ARGH!!!
    I reset my nano to 'factory condition'. All my music is STILL in iTunes, but when I try to updated my iPod I get a message saying "the iPod cannot be updated because there is not enough free space to hold all the songs in the iTunes music library. would you like iTunes to choose a selection of songs to copy to this iPod?"
    I have a 'folder' in iTunes named 'my iPod' with the songs I want on my iPod, I have the 4GB and there are only 278 songs in that folder. HOW do I get THAT folder and NOT my entire iTunes Library to upload on my iPod?

    Is there a number for tech support? Why does Apple
    sell a product without a manual? ARGH!!!
    I reset my nano to 'factory condition'. All my music
    is STILL in iTunes, but when I try to updated my iPod
    I get a message saying "the iPod cannot be updated
    because there is not enough free space to hold all
    the songs in the iTunes music library. would you like
    iTunes to choose a selection of songs to copy to this
    iPod?"
    I have a 'folder' in iTunes named 'my iPod' with the
    songs I want on my iPod, I have the 4GB and there are
    only 278 songs in that folder. HOW do I get THAT
    folder and NOT my entire iTunes Library to upload on
    my iPod?
    Hey the number is 1-800-275-2273 then you just follow the instructions to get to a tech

  • ADF Faces (Trinidad?) & Facelets Support

    This is long, but help and advice is very much needed.
    My programming team is facing a migration from UIX to JSF (ADF Faces) for future applications and we have hit a road block in regards to a template structure that is easy to use and maintain. We had gone through official Oracle training with JSF, however the trainer's answer to templates was to "create a template and copy and paste for every new file". For our team this is unacceptable so I've been charged with figuring out how to simply templates for our team. Not only do we need to make this easy for our application developers but we need to keep it simple for web developers to create "simple" survey-like applications.
    From what I've come across the answers seems to be either Facelets or Regions.
    Working with Regions seem to be over-complicated, requiring too much replication (basically back to copy/pasting an entire template) or passing the panelPage's content as a java object (bad for our web developers). I presented the combinations to my team and supervisor and it was agreed that Regions are impractical for our development practices.
    So it seems the answer is with Facelets. The problems I have with this is that:
    1. JDeveloper doesn't appear to natively handle Facelets, or include the libraries.
    2. From what I've learned, the ADF Faces library that comes with JDeveloper doesn't have Facelets support either.
    3. Looking into Trinidad, Facelets support exists but there is a lack of the Oracle skin.
    Facelets support is really what my team needs, as it's the closest thing to the old UIX templates I've seen so far.
    I've followed instructions/examples on several posts here, but I've yet to come across an example that works. I've Googled countless pages and examples, but when it comes down to ADF Faces and Facelets, it seems I'm at a dead end.
    So, can anyone help me with this?
    Thanks in advance,
    Rick
    PS:
    Using JDeveloper 10.1.3.2.0.4066 with stock ADF Faces
    External libraries used:
    Facelets 1.1.11
    Trinidad 1.0.1-incubating

    It just so happens that not long after I posted, I catch the "adf-facelets.jar" on the facelets site.
    dvohra, I had seen the links you've pasted however none of them described the actual process to get it to work, it's all been segmented copy/paste instructions. This doesn't really help someone who is struggling.
    So... I'll paste what my solution was, hopefully this will help others:
    1. Download and install the Facelets 1.1.11 library
    https://facelets.dev.java.net/servlets/ProjectDocumentList?folderID=3635&expandFolder=3635&folderID=0
    2. Download and install the ADF Facelets library
    https://facelets.dev.java.net/servlets/ProjectDocumentList?folderID=3990&expandFolder=3990&folderID=0
    3. In web.xml add the following:
    <context-param>
    <param-name>oracle.adf.view.faces.ALTERNATE_VIEW_HANDLER</param-name>
    <param-value>com.sun.facelets.FaceletViewHandler</param-value>
    </context-param>
    4. Make sure your project's libraries have loaded your Facelets and ADF Facelets, as well as ADF Faces Runtime.
    5. Begin using UI Components as desired.
    Example: http://eugeneciurana.com/pastebin/pastebin.php?show=1308
    Extra notices:
    I had to comment out the following in my faces-config.xml as it conflicted with the web.xml setting:
    <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
    This is what worked for me, I hope this helps others out there.
    Thanks,
    Rick

  • No Direct support for BlackBerry PlayBook tablet - why not I just bought it?

    I've just bought a playbook. It says it comes with complimentary technical support for 90 days form the date of purchase. I have attempted to register the device using the S/N number as required and I get the following:
    Unfortunately, your BlackBerry® PlayBook™ tablet does not qualify for Complimentary Support. You can, however, get assistance using incident based support from Research In Motion.
    Why? grrrrrrrrrrrr

    It should be. The complimentary support is just for help setting it up.
    If you visit http://blackberry.com/support and follow the link for PlayBook you should get a phone number you can call, and RIM support will be able to help you.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!

  • HT4942 my iwork says it no longer supports drag & drop for excel... why?

    my iwork says it no longer supports drag & drop for excel... why?

    '''Swarnava''', I do believe he has already been downloading and installing Firefox 9.0.1 three times already.
    '''avowedrep''', your user agent appears as if it is Firefox 3.5.19 in more system details link on right of your post.
    Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.19) Gecko/20110420 Firefox/3.5.19
    See this on how to reset to default.
    https://support.mozilla.com/en-US/kb/websites+or+add-ons+incorrectly+report+incompatible+browser#w_reset-your-user-agent
    As for the ''"Warning: this version of firefox is no longer supported?"'' is sounds as if you still have the old http://www.google.com/firefox Firefox start page hosted by Google as your homepage. This old default homepage is no longer used (Firefox 3.6.* and earlier) as '''about:home''' has been in use since Firefox 4.0
    Either ignore the "You're not on the latest version of Firefox" message, change homepage to '''about:hom'''e, change it to another page or leave blank.
    http://support.mozilla.org/en-US/kb/How+to+set+the+home+page

  • Facelet support in ADF 11g

    Hi all,
    I am wondering if Facelet is officially supported in ADF 11g (currently looking at 11.1.1.3)
    I searched through both "Fusion Developer's Guide" and "Web User Interface Developer's Guide", neither guide talks about facelet support.
    Any advice is appreciated.
    Thanks,
    Ben Tse

    Depends on what you are looking to do.
    If you just want to build a facelets application then yes you can create a new web project and under the new gallery->web tier you'll see the ability to create facelets pages.
    ADF integration with facelets is going to be more extensive in the next major release that is planned to supports JSF 2.0.

  • HT204003 if i open passbook on iphone 5, it always say cannot connect to itunes, any fix from apple tech support? and whats the reason for this problem? why do we have to figure it out and not even apple can give answer??

    if i open passbook on iphone 5, it always say cannot connect to itunes, any fix from apple tech support? and whats the reason for this problem? why do we have to figure it out and not even apple can give answer??

    actually i found out how to fix it
    1 sign out of apple account
    2 close down passbook app
    3 change year to 2013
    4 reopen passbook and sign in at the button with your apple ID
    5 change the time to auto update and it should work from now on.
    this worked for me let me know if it work for you:)

  • Why isn't there a mobile version / screen size for apple support communities ?

    Why isn't there a mobile version / screen size for apple support communities ?

    GOD!
    I have the same problem and I've been trying to find a way around it for about...4 hours now. It's driving me nuts!
    Is there anything that can be done? Can I really not use the nano b/c of my operating system? that seems nuts to me!
    am totally bummed out as mine was a gift as well and now I have to return it...

  • 2 questions, what do i do when a audio book i purchased is not in purchased menu for re downloading for my account, or why cant i re download the book from iTunes store with out paying for it after support they told me i could.

    what do i do when a audio book i purchased is not in purchased menu for re downloading for my account, or why cant i re download the book from iTunes store with out paying for it after support they told me i could.
    i tried to re download a purchased audio book after i contacted apple support team for iTunes they said it would be ready for re download or they said id have to re download it from iTunes store i cant remember, so i tried both couldn't re download it from purchased menu and the book id have to re download from iTunes store costs money as if i have never purchased what do i do? I don't have any warranty any more or money to purchase another warranty.

    Babowa
    Thank you for your prompt reply.  I have bought 1 MacbookPor 17, 1 Macbook air, 1 MacbookPro 15 , 2 ipads, 3 iphones, and this iMac27 and 2 of iMAC24 or 20 not sure   but I do not recall ever doing what you are telling me in your reply.   When you get a extended car warranty, you don't   sign up for it.. it is just there and is included in the sale.   You don't buy this warranty to use it.. You buy it, in case something happens.   Here a perfect iMAC with minimum 100 hour useage has a dead drive.  That is not normal and I should not have to even be requesting anything since most MFG offer a 3-5 year warranty on their disc drives and I believe that is probably passed on to Apple regardless if an extended warranty is purchased or not.   Customer service dictates a more flexible approach to make sure the lifetime value of a customer is not lost due to some misunderstanding.
    I was in the MacStore that I purchased the unit..and they found and pulled the invoice and confirmed
    the purchase of it in front of me.  I had paid with credit card and fortunately it was there in their system.   I do not also recall recieving any box or paper although most everything I ever get remains sealed.. I am not in the habit of opening anything since I have never encountered any serious issues before.
       I have used my Macbookpro warranty 1 time  and that is all throughout the years I have been investing in Apple equipment.
    I just recieved a letter from the store asking me to get the paper to them so they can register it... I don't recall getting any paper actually.  But I do have several boxes sealed here..  On this iMAC27, it was a hurry up and get it done thing and I don't remember taking anything extra with it.   Regardless,  my request does not seem unreasonable.
    Thank you

  • Just upgraded to snow leopard, downloader apple support drivers for canon mp620.  Why won't a printer list display in add printer window?

    Just upgraded to snow leopard, downloader apple support drivers for canon mp620.  Why won't a printer list display in add printer window?

    Assuming the MP620 is connected to your wireless network, then there are two components to this device - the printer and the scanner. The printer uses Canon proprietary software while the scanner is supported by Apple's Bonjour service. So in many cases, you will at least see the scanner, shown as Bonjour Scanner in the Kind column, while the printer can take longer to appear and is shown as canonijnetwork in the Kind column. If you cannot see either then you have a network issue. Try turning off the MP620 for a minute and then turning back on. Then see if the scanner / printer component appears in the Add Printer window. If you still don't see either, then confirm the MP and the Mac are using the same network. If you know the MP's IP address you can use Network Utility to Ping the address. You can also enable Bonjour Bookmarks in Safari preferences and when selected, the MP620 should appear.

  • Is there a chance that Itunes could be written for linux support?

    is there a chance that Itunes could be written for linux support?
    i use fedora from RedHat and woul like to be able to use itunes on it

    Unfortunately (or fortunately depending on your point of view), this is a user to user forum and no one here knows what Apple's plans for the future might be. Apple discourages us from speculating about such matters.
    If I were to speculate about why they don't want us speculating, it's probably because, among other things, it would just end up encouraging a lot of semi-informed opinions (i.e. speculation).
    But again, I'm just speculating so please don't quote me on that.
    If you'd like to make your opinion known to Apple, submit the form at the bottom of this page:
    http://www.apple.com/feedback/itunesapp.html
    ; - )

  • I descarguei these new versions adobe creative Cloud, y uninstalled for removing the trash, why did not interest me, then appearing me sigue to update something that I have not already installed, how do I solve this problem?

    I descarguei these new versions adobe creative Cloud, y uninstalled for removing the trash, why did not interest me, then appearing me sigue to update something that I have not already installed, how do I solve this problem?

    Link for Download & Install & Setup & Activation problems may help
    -Online Chat http://www.adobe.com/support/download-install/supportinfo/

  • I bought license for CC collection. 600 euro price. When i download an application, i read it is a trial version for 30 days. Why?

    i bought license for CC collection. 600 euro price. When i download an application, i read it is a trial version for 30 days. Why?

    Does your Cloud subscription properly show on your account page?
    If you have more than one email, are you sure you are using the correct Adobe ID?
    https://www.adobe.com/account.html for subscriptions on your Adobe page
    If yes
    Some general information for a Cloud subscription
    Cloud programs do not use serial numbers... you log in to your paid Cloud account to download & install & activate... you MAY need to log out of the Cloud and restart your computer and log back in to the Cloud for things to work
    Log out of your Cloud account... Restart your computer... Log in to your paid Cloud account
    -Sign in help http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html
    -http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html
    -http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
    -http://helpx.adobe.com/creative-suite/kb/trial--1-launch.html
    -ID help https://helpx.adobe.com/contact.html?step=ZNA_id-signing_stillNeedHelp
    If no
    This is an open forum, not Adobe support... you need Adobe staff to help
    Adobe contact information - http://helpx.adobe.com/contact.html
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"

  • For Macbook Pro Mid2010: Why not build a WiFi based AirDrop solution between iOS8 and Yosemite? Really sad it does not work.

    For Macbook Pro Mid2010: Why not build a WiFi based AirDrop solution between iOS8 and Yosemite? Really sad it does not work.

    Your Mac is too old
    To Airdrop between a Mac an iOS device
    System Requirements
    To see if your Mac works with AirDrop, make sure you’re in the Finder by clicking the desktop (the background area of your screen), or by clicking the Finder icon in the Dock. Then, check to see if AirDrop is listed as an option in the Go menu. If you don't see AirDrop listed, your Mac doesn't support this feature.
    In order to transfer files between a Mac and and an iPhone, iPad or iPod touch
    your iOS device needs to include a lightning connector
    your iOS device needs iOS 7 or later installed
    your Mac needs to be a 2012 or later model with OS X Yosemite installed
    Your Mac and iOS device both need bluetooth and Wi-Fi turned on. You do not have to be connected to a specific Wi-Fi network.
    To transfer files between two Mac computers, you need the Mac models listed below with Wi-Fi turned on and OS X Lion or later installed.
    From:
    Mac Basics: AirDrop lets you send files from your Mac to nearby Macs and iOS devices - Apple Support

Maybe you are looking for

  • "Cannot connect to itunes store" error on my  ipod touch 4g?

    i this error always from the day one when i bought  ipod touch 4g but i dont worry bcoz at that time iTunes was not available in India but a week ago it finally reached India but it still give me this error! kindly help me ! HOW to use itunes' music

  • Backup Assistant Plus simply doesn't work, how do I disable it?

    I have a shiny new Samsung Galaxy S III and when I set up my contacts, I added them as "Phone" entries with the expectation that the Backup Assistant Plus app would allow me to back them up. Except that it doesn't and, from what I've seen online, it

  • Year end rate rollover issue (Retained Earnings)

    HFM Retained earnings Showing wrong values after the years end(For January). It is happening for all parent entities at local currency total level(Entity Curr Total) but if we look at USD total values it is showing right values..  Thanks, Mo

  • Apple Notebooks: Operating Temperature

    I see Apple has updated article# 30612 (Apple Notebooks: Operating Temperature) to include the MacBook Pro. The most interesting part of the document is the first paragraph: "The bottom surface and some areas between the keyboard and LCD hinge of you

  • Can Nook be downloaded to Macbook Pro?

    I am able to read my e-books from Amazon on the Cloud Reader on my Macbook, but I cannot read any B&N Nook books or iTunes books I purchased.  I can read them all on my iPad, of course, but why not on my MacBook?