IceFaces with MyEclipse5.5
[Logo]
ICEfaces Forums
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icefaces.org  [Register] Register  [Login] Login 
IceFaces with MyEclipse5.5  XML
Forum Index -> Tools Go to Page: Previous  1, 2
Author Message
mercury


Joined: 17/03/2007 00:00:00
Messages: 39
Offline


Liming,

Thank you very much. I am able to save the Uploaded file. I have executed the example available in tutorials of ICEFaces.

Now the uploaded file is being saved in context relative to the application in the server. Is it possible to save the uploaded file any other location in my machine. If so, plz guide me.

Thanks,
Mercury.
liming.wu

Joined: 26/10/2004 00:00:00
Messages: 170
Offline


In 1.5.3, there is no easy way to do so. but this feature will be available in 1.6.
[Email]
ibanhoe

Joined: 12/04/2007 00:00:00
Messages: 49
Offline


Hi

i have the same firs problem, but im sure that the dir is correct

My MyEclipse Home is c:\myeclipse

And my ice plugin dir is in this place:

C:\myeclipse\myeclipse\eclipse\plugins\com.icesoft.ide.myeclipse.integration_1.5.3

But when i check the correct installaton, the ice plugin does not appear

My Myeclipse version is 5.1.0

Could you help me please?

Regards!!
ibanhoe

Joined: 12/04/2007 00:00:00
Messages: 49
Offline


Hi

I resolved my problem

i execute the command eclipse -clean, and i saw the plugin installed, thank you
mercury


Joined: 17/03/2007 00:00:00
Messages: 39
Offline


Liming,

Thank you very much.

Am now able to save the uploaded file into the directory relative to the context path. However it enough for me, to save the file somewhere.

Many thanks for your cooperation.

Thanks again,
Mercury :)
mercury


Joined: 17/03/2007 00:00:00
Messages: 39
Offline


Liming,

Thanks. Now I could save the uploaded file into the directory, relative to the context root.

Thank you very much.

Rgds,
Mercury.
avoicu

Joined: 11/04/2007 00:00:00
Messages: 2
Offline


Using
MyEclipse Enterprise Workbench
Version: 5.5.0 Milestone 1

I create a simple project with:
- JSF Capabilities having JSF Implementation:MyFaces 1.1.1

and

- ICEFace Capabilities + facelets support

--------------------------------

I defined a LoginBean.class having:
public class LoginBean(){
...
public String login(){ return "success"; }
}

a verry simple login method.

I defined also the face config like this:
<managed-bean>
<managed-bean-name>loginBean</managed-bean-name>
<managed-bean-class>
it.componentFactory.modaWeb.view.beans.LoginBean
</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<navigation-rule>
<from-view-id>/mwLogin.iface</from-view-id>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/MyJsp.jsp</to-view-id>
</navigation-case>
</navigation-rule>


INDEX file is:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd" >
<html>
<head>
</head>
<body>
<jsp:forward page="mwLogin.iface" />
</body>
</html>


myLogin.jspx file is

<?xml version="1.0" encoding="ISO-8859-1" ?>
<f:view xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ice="http://www.icesoft.com/icefaces/component">

<html>
<body>
<ice:form>
<ice:outputText value="User Name " />
<ice:inputText value="#{loginBean.userName}" partialSubmit="false" />
<br/>
<ice:outputText value="Password " />
<ice:inputSecret value="#{loginBean.password}" partialSubmit="false" />
<br />
<ice:commandLink value="Avvia"
action="#{loginBean.login}"
style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-style: normal; font-weight: bold; color: #000099; padding-bottom:3px; padding-right: 1px;" />
</ice:form>
</body>
</html>
</f:view>

and finally the MyJsp.jsp file like this :

<%@ page language="java" pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSF 'MyJsp.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->

</head>

<body>
<f:view>
This is my JSF JSP page. <br>
</f:view>
</body>
</html>


AND NOW THE PROBLEM:

when I click the button "Avvia" on the mwLogin.jspx page instead of respons with MyJspPage.jsp
I obtain a reload of the mwLogin.jspx.

WHY?

Thx a lot

liming.wu

Joined: 26/10/2004 00:00:00
Messages: 170
Offline


Try Sun RI to see if you get the same problem.
[Email]
 
Forum Index -> Tools Go to Page: Previous  1, 2
Go to:   
Powered by JForum 2.1.7ice © JForum Team