Messages posted by liming.wu
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icesoft.org  [Login] Login 
Messages posted by: liming.wu  XML
Profile for liming.wu -> Messages posted by liming.wu [419] Go to Page: Previous  1, 2, 3 ... 25 , 26, 27, 28 Next 
Author Message
Have you tried 1.5.3 or 1.6.0 DR#4?
We will release page design time integration for some eclipse based IDEs in future release (after 1.6)
Try Sun RI to see if you get the same problem.
You should put tlds under WEB-INF/tld according to spec. But putting tlds under WEB-INF works in most web containers.
Netbeans with Visual Web Pack
Sun Java Studio Creator
In 1.5.3, there is no easy way to do so. but this feature will be available in 1.6.
The context param com.icesoft.faces.uploadDirectory allows you specify the upload directory, which is relative to context root.

Hope this helps.

Liming
>>there's twice the opening <html tag in your template.

Sorry. There should be only one ><html tag. Remove the second open ><html> please.

Thanks for pointing out the error.
Don't forget xmlns:jsp="http://java.sun.com/JSP/Page" in jsp:root

Liming
Currently ICEfaces eclipse integration doesn't provide special facelet design time support on top of Eclipse WTP or Eclipse WTP/JSF.

Regarding code assistant on Eclipse WTP for facelet, it is not something ICEfaces Eclipse has done wrong and it looks like a hot topic in facelet forum.

My temporary recommendation to make code-assistance and facelet page work in Eclipse WTP is

1. create page with extension .jspx
2. template would be like:

<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2"
xmlns:jsp="http://java.sun.com/JSP/Page"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ice="http://www.icesoft.com/icefaces/component"
xmlns:ui="http://java.sun.com/jsf/facelets"
.......>
<f:view>
<html xmlns="http://www.w3.org/1999/xhtml">
<html>
<head> <title>ICEfaces page title</title>
<link rel="stylesheet" type="tex/css" href="./xmlhttp/css/xp/xp.css"/>
</head>
<body>
......
<ice:forum>
.......
</ice:forum>
.....
</body>
</html>
</f:view>
</jsp:root>

Give it a try.

Regards

Liming
You cannot use <jsp:root xmlns=... in xhtml for facelets. It doesn't work.

You can use ><jsp:root xmlns=... in ICEfaces JSF as a jspx file and it doesn't work for facelets. This template is a jspx page and code assistant works. This is NOT for facelets.

><?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ice="http://www.icesoft.com/icefaces/component">
<jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" />
<f:view >
<html>
<head>
<title>ICEfaces page title</title>
<link rel="stylesheet" type="tex/css" href="./xmlhttp/css/xp/xp.css"/>
</head>
<body>
<ice:form>
</ice:form>
</body>
</html>
</f:view>
</jsp:root>
This is odd. After install the plugin, restart RAD, rad should be able to pickup the new plugin. It shouldn't need to reboot your machine.
content assist doesn't work if namespace declared in f:view and that is why we provides a template (file extension is .jsp). We are going to provide another template using style as <jsp:root xmlnx="...... with extension .jspx

In 1.5.x, you can define com.icesoft.faces.uploadDirectoryAbsolute or com.icesoft.faces.uploadDirectory in your web.xml and uploaded file can be saved to the directory relatively to web content root. Or you can also get file object from InputFile in your actionHandler for enclosing form. With the file object you can create inputstream and save it or parse it etc.

Hope this helps

Liming

Yes. This is because eclipse wtp doesn't bind content-assistent logic to .xhtml content type. Our eclipse integration hasn't done a lot for facelet support on top of Eclipse WTP yet.
 
Profile for liming.wu -> Messages posted by liming.wu [419] Go to Page: Previous  1, 2, 3 ... 25 , 26, 27, 28 Next 
Go to:   
Powered by JForum 2.1.7ice © JForum Team