Working with taglibs in jdev 10.1.3.4 (to be used for facelets)
Short question:
How do I get the jdeveloper to accept this declaration: <em><%@taglib uri="http://java.sun.com/jsf/facelets" prefix="ui"%></em> and its elements, such as <em><ui:include></em> ?
Full story:
I've been trying to get facelets to work in a project I'm working on. A part of this project, which I have no control over, is automatic javascript insertion via xslt, which makes it impossible for me to use xml style documents. (due to '<'>' being used for comparison, rather than tag opening/closing. Having said that, here's my problem:
I want to use jsf / facelets to create a template page, that will be used in about 30 other pages. If I was able to use an xml-style jsp docuement, I could add an xmlns:ui, and faces support would work. However, since the above is true, I have to define the taglib in jsp style, to be able to use facelets. This would look something like:
<blockquote>
<em><%@taglib uri="http://java.sun.com/jsf/facelets" prefix="ui"%></em>
</blockquote>
Upon doing this, jdeveloper tells me that
<blockquote>
<em>Error(7): "http://java.sun.com/jsf/facelets" is not a registered TLD namespace</em>
</blockquote>
and for any uses thereof:
<blockquote>
<em>Error(33): ui:include is not a registered tag in that namespace.</em>
</blockquote>
After I add the jsf-facelets.jar library (tried versions 1.0.1.14, 1.1.11, 1.1.14), nothing changes.
I understand that Jdeveloper wants to validate the taglibs I define, but there is no tld in the jsf distribution and there also should be no need for this (in xml-style syntax, it works fine without validation).
If there's any way I can skip this validation or make jdeveloper believe the library is valid, I'm done. However, I have not been able to find such a function.
Some guy from exadel has uploaded a tld for facelets to the facelets project (it's under contrib, here ). This tld has been referenced in most threads that deal with the problem (jsf in jdeveloper). The tld can't however provide a structural solution, since it's not complete. The <tag-class> and <tei-class> tags within the tld are empty. Reason enough for jdeveloper to halt on it.
Adding the library to jdeveloper would be done thus: go to tools, go to 'manage libraries', go to 'tag libraries' click 'user' and select 'new'. Browse your way trough your filesystem and locate the tld file. Add a reference to the jsf-facelets and a reference to the el-api and el-impl jars and click ok. Then go to project properties and under tag lib libraries, add this library.
Jdeveloper responds to this with the following error:
<blockquote>
<em>Error(33): Unable to instantiate tag: ui:include (class: null) Make sure that the tag class is available and that the tag library containing the class is not excluded from this application.</em>
</blockquote>
Right. To be able to instantiate the tag, jdeveloper seems to not only need the description of the tag, but also the connection to the real thing. I've been exploring the jsf-facelets jar and came to the conclusion that the tags in the tld correspond to the classes in the 'com.sun.facelets.tag.ui.' package, so for ui:include, that would be 'com.sun.facelets.tag.ui.IncludeHandler'.This class, described here here, seems indeed to have the same attributes as our ui:include tag. Tag tei-tag (tag extra information), is, afaik, not mandatory, so I'll leave it empty. Rebuild in developer gave me lots of errors when I did it the first time (which I solved by filling in the other tag-classes), but when recreating it for this topic, I had no problems of that sort. The error I'm stuck with is:
<blockquote>
<em>Error(33): src is not a property of com.sun.facelets.tag.ui.IncludeHandler</em>
</blockquote>
I'm baffled by this statement. The tld says this property exists, the ui:include documentation agrees with me and the file I'm linking to has a src TagAttribute (for which I'm having trouble finding the setter, but it worked in the xml-style version). Using this tld Jdeveloper grants content assistance, which suggests to me that I should use the src tag. It is mandatory.
I tried to fill in the <tei-class>'es, but the facelets jar contains no class (that extends from) tagExtraInfo, as far as I could see. Using the one from jsf (facelets are, in a manner, jsf tags, being just a viewHandler for jsf), didn't change anything.
At this point, I'm stumped. I hope there is either
- a way to disable the tld resolution feature
- a way to make a change in the tld I have now and make jdeveloper parse this tld
- a way to create some dummy tld that jdeveloper will accept
<blockquote>
<em>Error(33): src is not a property of com.sun.facelets.tag.ui.IncludeHandler</em>
</blockquote>
How can I get rid of this error? Thanks for any suggestions!
edit: fixed some typos and messed-up links on 04-Nov-2008 04:35
Edited by: user2103934 on 04-Nov-2008 06:07
Opon further expirimentation, I've discovered that the facelets view handler can not handle the <%@ taglib > declaration, returning me an
com.sun.facelets.FaceletException: Error Parsing /mapviewer.jsp: Error Traced[line: 3] <Line 3, Column 2>: XML-20201: (Fatal Error) Expected name intead of %.
With the facelets handler off, the non-xml facelet declaration is handled fine, but is no help.
Which means I'm bound to use the xml style for facelets, which means I'm going to have to catch the inserted javascript in some manner.
In any case, the original question in this topic is not the problem anymore, so I closed it here and awarded 5 points for a helpful answer.
Edited by: rjonkman on 05-Nov-2008 07:17
Similar Messages
-
I used to have an application in my iPhone 4 and 4s that captures business card and creates its content to my contacts. Its no longer working with my i5. Can you recommend me a new apps for this same function
Try CardMunch it works well for me
-
I'm interesting on buying a Firefox Smart Phone, but
I would like to know if are any app to install on Firefox OS smart phone in order to work with cisco call manager 10.5.
Something like Cisco Jabber for Android o iOS.
Thanks,Hi Itech,
If Cisco Jabber has a webapp, or mobile version of their website available, you should technically be able to access it through Firefox OS.
You may also search Firefox Marketplace for an alternative solution:
* [https://marketplace.firefox.com/]
- Ralph -
McAfee SiteAdvisor is no longer working with my Safari 8.0. I never had trouble using it with Safari before this latest version. Has anyone else had this problem? I contacted McAfee support and they said nobody else is reporting this issue.
Wow, life is certainly tough for you.
S***t happens. That's why there's a warranty. -
I am working with Adobe 'Classroom in a book' and it's asking me for 'write access' when saving.
How do I do that.
I tried going to file >get info and it would not allow me to unlock.
How do I do that?It sounds like the folder you are saving to does not have the proper permission for you to write to it. What OS are you using?
-
I am from turkey and Iphone4 can be used Turkcell and vodafone(carriers) in turkey but i bought my iphone in usa and it only works with at&t.Is there anything i can do to use my iphone with turkcell or vodafone?
No. Return it and get your money back if still within the 30 day return window. All US iPhones are carrier locked and cannot be officially unlocked.
-
I have an Airport Extreme Base Station and have recently upgraded to Mountain Lion. Now airport utility won't work with my base station so I bought a Time Capsule. For the life of me I can't make the substitution work and only see a blinking amber light. Can anyone who has made this change offer some advice?
apikoros wrote:
The Utility transferred all of the AE's settings, so I still have to change the password, which leaves me with only 2 other questions, I think:
1) I assume it's just a matter of using the Utility, entering a stronger password and checking for it to be remembered in Keychain Access. But do I have to change the password for each individual unit-- the TC, the Extreme and both Expresses-- or will changing it just for the TC alone work for the entire network?
Resetting the password you will need to do for each device... the utility cannot even see those old units.
So you will have to do it for each one.. think it through.. because as you change passwords the others will lose connection.. so start from the express which are wireless extending .. change those first.. and go back up the chain.. as each one changes it will drop off the network.. until you reach extreme and change that. Then you might need to reboot the whole network to get everything talking again. If something goes wrong.. just pluck that one out of the mix and plug in ethernet.. reset and redo the setup. That is my preferred method anyway.. do everything in isolation one by one. By ethernet and then nothing goes wrong.
2) Who's the treasonous SOB who spilled the beans to you about the ICBM in my back yard?!?
N.Korean hackers.
[Edit] Whoops-- one more question: I want to partition the TC's disk, but Disk Utility doesn't see it. What do I need to do?
You cannot partition a network disk. And apple provided no tools for it in the TC itself. You can pull the disk out and partition it but that voids your warranty. (although done with care who is to know).
Look at Q3 here.
http://pondini.org/TM/Time_Capsule.html
Mixing TM and data on the TC is worth planning carefully. They don't necessarily sit happily together. -
It came to my attention there a new program working with itune since last update named Apsdaemon.exe its been using 99% of my processus when its active.
Any idea why so much and will it be fix eventually because before last update i never encounter any issue using Itune? Now when that aplication or extention from Itune is working my computor froze to a huge alt. I play video games online and love listening to my music with itune playing in the background and normally was able to have firefox open and a program called ventrillo all working at the same time and now i can barelly have itune and play a game. As soon it start been choppy i just control alt delete wait 5 minute to close down apsdaemon.exe when i'm capable most of the time i have to restart my computor. And why is it so Heavy consuming on the process its memory utility is under the 100ko i believe so why 99% of my processus is been use ?
a good exemple i could give is itune.exe working it shows process 02% for 123 000ko that is light and perfect.Wow, Karan Taneja, you've just embarrassed yourself on a worldwide support forum. Not only is your post ridiculous and completely inappropriate for a technical support forum, but it also shows your ignorance as to whom you think the audience is. Apple is not here. It's users, like you.
If you would have spent half the time actually reading the Terms of Use of this forum that YOU agreed to by signing up to post, as you did composing that usesless, inappropriate post, you (and the rest of us on this forum) would have been much better off. -
I activated this week my Photoshop and Lightroom CC and noticed it is a dutch version but in the past I always worked with an english version. Can I change the dutch version for an english ? Thanks. Peter
Hi t Forograafken,
You can check your Creative Cloud Application Preferences to see if 'Deutsch' is chosen.
You can change the App language from here :
Regards,
Rave -
Can I do all my work with 8 bpc and then change the comp to 32 bpc for final render?
Well, I know I can, but I want to know if this is a fine workflow.
Since non of the effects in AE are destructive, when I change from 8-bit to 32-bit everything gets recalculated, right?
To give you more detail, I'm working with RAW footage from my Canon 5Dm3 and I'm using Element 3D and RedGiant plugins. The whole thing has tons of comps and effects.
Any help would be highly appreciated.The look of blend modes, color correction, and blurs, gradients, and motion blur will change so you'll need to check everything carefully before you render. FYI I seldom work in anything but 32Bit because most of my work involves a lot of blending and layering and that all works better. If I do 8 bit projects they are usually just simple graphics. Even those projects are usually converted to 16bit for rendering.
Most of the time I render tests for client approval using the AME using the Vimeo or YouTube h.264 presets, but most approved projects are rendered to a 32 bit image sequence if they are to be used again or at minimum a 10 bit 444 Digital lIntermediate for archiving. Compressed deliverables are always rendered using the Adobe Media Encoder or specialized software requested by the client. -
I am currently studying abroad in Italy and my imessage has been working with wifi up until now. I just wen to PAris for the weekend and when I came back it says that Imessage is waiting for activation. How do I fix this? Thanks!
If iMessage has become deactivated on your iPhone, which, apparently it has, the phone will need to send an SMS to activate it again. Therefore, you'll need a cellular connection.
-
I accidentally set up two accounts. One account with my old e-mail address which I've been using for years and has all of my purchases on it. Now I have a new account with my current e-mail address. How do I disable this new account? I need to disable the new e-mail address account so that I can add it as an additional e-mail to my old account. THEN, how do I make this new e-mail address my primary e-mail for this old account?
Did yoo go to Settings>iTunes and App Stores and sign out and sign back in?
Next see:
Frequently Asked Questions About Apple ID -
Hi there,
I am planning to use Labview 2010 in a short time.
But before I'm going to use it I have some questions.
I know it is possible to run Labview 2010 in an XP environment. But is it also possible to, when running Labview 2010 on a XP system, to build a project to a version that is useful in a Windows 7 environment?
Or do I have to run Labview 2010, when I want to build a project that is useful on a Windows 7 system, on a system with Windows 7?
Please give me some information.
I hope to hear from one of you soon.
Regards,
Kenny
Solved!
Go to Solution.Is it possible to build a project with Labview 2009 on a Windows XP system, that is useful for a system with windows 7 on it?
Thanks.
Philippe B.
Certified Associate Developer / Dépt Moyens d'essais
www.ingenia-system.com -
I just received a new macbook pro. I am looking for a usb3 external storage 500 GB drive. Some manufacturers of drives aren't for sure their drive will work with the new system. Does anybody have any suggestions for drives that will workw
There seems to be a problem, just now, with the USB 3 ports on the new MBP's supporting eternal USB 3 drives. Some people have no luck at all - can't even recognize the drive - and some are reporting USB 2 speeds (those who drives are recognized). I'd call a dealer such as LaCie or OWC to see if they have USB 3 drives that actually work with MBP's with USB 3 ports. You may have to wait for a software/firmware update.
Clinton -
My Iphone 5 will no longer work wiht my Bose Dock? The dock is two years old and I'm using an "Apple" 30 pin to Fire adapter? It stopped after software upgrades?
I Have the exact same issue. Bose sound dock 3 and it does not work for me with my iPad air 2 and iPhone 5 anymore.
Used to to work fine 2 weeks ago.
Is it to do with updating to iOS 8.1.3?
Thanks.
Maybe you are looking for
-
Re Downloading apps help please
Hi, I have a nokia 5530 XM. I t had a few troubles at the beginning so i had to format the memory card and it's fine now. But i've lost all my apps and i go to the store to re download them but the download button is darker and it wont let me re down
-
How do you add additional fields in infotypes?i want to leave blank space
how do you add additional fields in infotypes?i want to leave blank space in front of the field?
-
RFC Connection Problem between Production Server & Solution Manager
Hi, I want to make a RFC Connection between Production Server & Solution Manager. But when go through Tcode- SM59 and click on Remote Logon from Production to connect Solution Manager it showing me a Client/Userid/Password window and when i connect
-
Problem with Wine, doesn't start
Hello everyone, I try to use wine, but I have a small problem : It doens't start. When I try to launch it, or for example, winecfg, I have this error : ratur@trillian ~% winecfg wine: Unhandled page fault on read access to 0x00340023 at address 0x7ef
-
Is there a workaround for the lack of Cannon Pixma iP1700 driver for my MacBook Pro and Yosemite?