Messages posted by h_aptioglu
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icesoft.org  [Login] Login 
Messages posted by: h_aptioglu  XML
Profile for h_aptioglu -> Messages posted by h_aptioglu [45] Go to Page: Previous  1, 2, 3 Next 
Author Message

nasri21 wrote:
No idea plz ?  


http://jira.icefaces.org/browse/ICE-2528

you can take a look

phil.gunbin wrote:
1. change "frameborder" to "frameBorder" in style.js in icefaces (see above).
2. comment "jPortlet.css({position: "relative"});" line in liferay (see above too).

Again, I'm not sure these are the correct fixes, and it will be great if someone from Icefaces comment this. 


i cant find style.js where is it ?
i find solution

manageBean :
Code:
 FacesContext facesContext = FacesContext.getCurrentInstance(); 
 			 ExternalContext externalContext = facesContext.getExternalContext();
 			 PortletSession portletSession = (PortletSession)externalContext.getSession(false);
 			 portletSession.setAttribute("testParam",
 					"This is testParam",PortletSession.APPLICATION_SCOPE);
 			JavascriptContext.addJavascriptCall(FacesContext
 					.getCurrentInstance(),
 					"window.open(\"/delegate/testServlet.rep\"); window.focus");


servlet :
Code:
 public class TestServlet extends javax.servlet.http.HttpServlet implements
 		javax.servlet.Servlet {
 	static final long serialVersionUID = 1L;
 
 	protected void doGet(HttpServletRequest request,
 			HttpServletResponse response) {
 		doPostOrGet(request, response);
 	}
 
 	protected void doPost(HttpServletRequest req, HttpServletResponse resp)
 			throws ServletException, IOException {
 		doPostOrGet(req, resp);
 	}
 
 	protected void doPostOrGet(HttpServletRequest request,
 			HttpServletResponse response) {
 		
 		 System.err.println("session testParam ---------------- "+request.getSession().getAttribute("testParam"));
 		  
 		
 		
 		
 	}
 
 
 }


web.xml :
Code:
<servlet>
   <servlet-name>springdemo</servlet-name>
   <servlet-class>
     com.liferay.portal.kernel.servlet.PortalDelegateServlet
   </servlet-class>
   <init-param>
     <param-name>servlet-class</param-name>
     <param-value>
      test.TestServlet
     </param-value>
   </init-param>
   <init-param>
     <param-name>sub-context</param-name>
     <param-value>testServlet.rep</param-value>
   </init-param>
   <load-on-startup>1</load-on-startup>
 </servlet>


mapping /delegate its important if you want to change it you can change it from liferay/root.war web.xml
Solved!

The problem does not occur in DR3.
In Popup Calendar, you can delete(deselect) the selected value.
I guess, there is a misunderstanding.

This looks like a bug however in icefaces showcase page, it runs normally.


Because, I don't wanna set any value for Date component any more.

I have a trouble with selctInputDate component.
First of all, here is version information:
INFO:
ICEsoft Technologies, Inc.
ICEfaces 1.7.0 DR1
Build number: 7
Revision: 14881

Now, this is the basic code : (Attention! Even if there is no bean!)
Code:
 <?xml version="1.0" encoding="UTF-8"?>
 <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
 	xmlns:ui="http://java.sun.com/jsf/facelets"
 	xmlns:h="http://java.sun.com/jsf/html"
 	xmlns:ice="http://www.icesoft.com/icefaces/component"
 	xmlns:f="http://java.sun.com/jsf/core" version="2.0">
 
 	<f:view>
 		<ice:form>
 			<ice:selectInputDate renderAsPopup="true" >
 			
 			</ice:selectInputDate>
 		</ice:form>
 	</f:view>
 	
 </jsp:root>
 


Now, there is a pesky behavior. If a date is selected once, it's value never can not be cleaned. But I can change.

Any idea?
Regards,
Okan.
i have same problem any answer ?

Ragnarok wrote:
h_aptioglu, can you show me a minimal working web.xml, portlet.xml and any xml needed to get working the inputfile, i have version 1.7.0 rc1, i have icefaces and facelets working, but input file not :(

Thanks!!! 


i didnt try it on 1.7.0 rc1 i tried on 1.7 DR2 and i did nothing special for inputfile just a normal portlet conf.

Code:
 FacesContext ctx = FacesContext.getCurrentInstance();
 		ExternalContext ectx = ctx.getExternalContext();
 		
 		user = ectx.getRemoteUser();
 		try {
 		user=UserLocalServiceUtil.getUserById(Long.parseLong(user)).getFirstName();
 		} catch (Exception e) {
 			// TODO Auto-generated catch block
 			e.printStackTrace();
 		} 


ectx.getRemoteUser() return long value from liferay adn you can use it to find correct user from liferay

greating...
hi all ;

i have a problem selectOneMenu with converter
when i run my app i got
java.lang.NullPointerException from converter

my converter
Code:
public String getAsString(FacesContext arg0, UIComponent arg1, Object arg2)
 			throws ConverterException {
 			if (arg2!=null && arg2 instanceof MyBean )
 				return ((MyBean) arg2).getId().toString();
 		return null;
 	}

backbeanCode:
private List<SelectItem> selectMyBeanList;
 
 	public List<SelectItem> getSelectMyBeanList() {
 		SelectItem item;
 		try {
 
 		selectMyBeanList = new ArrayList<SelectItem>();
 			
 				MyBean bean = new MyBean();
 				bean.setStrValue("test1");
 				bean.setId(new Long(0));
 				item = new SelectItem(bean, bean.setStrValue(), bean
 						.setStrValue());
 				selectMyBeanList.add(item);
 		
 		} catch (Exception e) {
 			e.printStackTrace();
 		}
 		return selectMyBeanList;


and jspx
Code:
				<ice:selectOneMenu value="#{myController.mybean}"
 					partialSubmit="true" style="overflow: auto;font-size: 10px;"
 					converter="myBeanConverter"
 				  <f:selectItems value="#{myController.selectMyBeanList}" />
 				</ice:selectOneMenu>


my envairment ;
icefaces 1.7 RC1
tomcat 5.5.x
JSF 1.1

thanks all

deryk.sinotte wrote:
I'm not sure what you are asking. Can you provide more details about the goal you are trying to accomplish? There might be a better way to approach your problem. 


i have one jspx and one servlet to view images in liferay .i want to sent a parameter from jspx to servlet . if i dont use liferay everything is ok bu whenever i use liferay parameter returns null

Code:
FacesContext context = FacesContext.getCurrentInstance();
 context.getExternalContext().getRequestMap().put("param",
 					param);


i did the same thing for session scope but again returns null

thanks
hi all;

i have a problem with liferay and icefaces
liferay 4.3.4
icefaces 1.7 DR2#
jdk 1.5
jsf 1.1
tomcat 5.5.x

i want to pass parameters to servlet by request or session

myservlet :Code:
public class MyServlet extends javax.servlet.http.HttpServlet implements
 		javax.servlet.Servlet {
 	static final long serialVersionUID = 1L;
 
 	protected void doGet(HttpServletRequest request,
 			HttpServletResponse response) {
 		System.err.println("parameter = "+request.getAttribute("test"));
 	
 	}
 
 	protected void doPost(HttpServletRequest req, HttpServletResponse resp)
 			throws ServletException, IOException {
 	
 		System.err.println("parameter = "+request.getAttribute("test"));
 	}
 	
 }


and web.xml :
Code:
	<servlet>
 		<servlet-name>MyServlet</servlet-name>
 		<servlet-class>com.test.MyServlet</servlet-class>
 	</servlet>
 
 <servlet-mapping>
 		<servlet-name>MyServlet</servlet-name>
 		<url-pattern>*.rep</url-pattern>
 	</servlet-mapping>

but parameter return null

as i read from liferay forum; thay said that to use servlet i should exdends my servler from GenericPortlet and i tried but this time i got java.lang.ClassCastException error :(

if anyone know can help me

just how to pass parameters from iceportlet to servlet

thanks
1.7 Beta1 uses jsf 1.2
Tomcat 5.5.26 doesnt support jsf 1.2

if you wanna deploy 1.7 Beta1 on Tomcat 5.5.26 you should change jsf 1.2 to 1.1
(just replace 1.2 library with 1.1 library)
 
Profile for h_aptioglu -> Messages posted by h_aptioglu [45] Go to Page: Previous  1, 2, 3 Next 
Go to:   
Powered by JForum 2.1.7ice © JForum Team