Messages posted by nirmala_86
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icesoft.org  [Login] Login 
Messages posted by: nirmala_86  XML
Profile for nirmala_86 -> Messages posted by nirmala_86 [21] Go to Page: 1, 2 Next 
Author Message
I get the same error in error console of Mozilla.

when i hit backspace n mozilla, the page goes to login page and i get the same error in console.I am using icefaces-1.7.1

Any idea.. ?
If we give style attribute and set width and height the firefox wont take more column
<ice:inputTextArea> takes more rows in firefox inside <ice:dataTable>
I have given 2 rows for iceinputtextarea .But it is taking three rows in iceinputtextarea inside data table in firefox

<ice:column id="notesColumn">
<f:facet name="header"> <ice:commandSortHeader columnName="notesCol" id="sortNotesCol" arrow="true"> <ice:outputText id="headerNotes" value="Notes" style="width:300px" /> </ice:commandSortHeader> </f:facet> <ice:inputTextarea cols="20" rows="2" onclick="Event.stop(event);" disabled="#commitmentList.disableFlag}" value="#{commitmentList.custNote.custNoteText}"
valueChangeListener="#{custCommitmentBean.changeNotes}"
onkeypress="javascript:noteKeyPress(this)" id="tabNotes"
partialSubmit="true"></ice:inputTextarea>
</ice:column>

Please give me how to overcome this problem
I have used an inputtextarea insida a data table

<ice:column id="notesColumn"> <f:facet name="header"> <ice:outputText id="headerNotes" value="Notes" style="width:300px" /> </f:facet> <ice:inputTextarea cols="35" rows="2" onclick="Event.stop(event);" value="#{commitmentList.custNote.custNoteText}"
onkeypress="javascript:noteKeyPress(this)" id="tabNotes" partialSubmit="true"></ice:inputTextarea>
</ice:column>

In IE its working fine.ie inputtextarea takes only 2 rows.But in firefox , it takes 3 rows. How can i avoid this problem.

I Have two model pop up in one jsp page. A pop up will come and the confirmation of that pop up second pop up will come. If we did the operations, then the javascript is not working in all other pages.(I have onkeyPressEvent in javascript). i am using model pop up.. Immediate help required............
I have a data table and i am loading it with data model.Inside the data table i have an select one menu and i am using row selection also.

At first time while page loading and i am selecting row(ie row selection) But both the row selection event and value change event is calling. please tell me how to avoid this.....

Please help me immediately......
Can any one give the detail that where the parent node and child node are built in component showcase tree loading.......(in the left side tree of component showcase in 1.7.1)
I am using an application
Icefaces 1.7.1 ,JSF 1.2, Spring 2.5, Hibernate 3.3
Whether i can use tomahawk(Then wat version of tomahawk will i use to support my application)

I downloaded tomahawk jar from www.docjar.com and added in my lib folder
I added ,
xmlns:t="http://myfaces.apache.org/tomahawk"
<t:inputCalendar id="secondOne" value="#{bean.date}"
renderAsPopup="true"
popupDateFormat="MM/dd/yyyy"
popupWeekString="Week"
popupTodayString="The date today is :"
renderPopupButtonAsImage="true"
forceId="true"/>

But nothing is displayed in output
just adding this line in coding

<snappy:calendar value="#{bean.date}"/> and clicking the calendar icon i get "the calendar with NAN and no other value"

Whether i have to give a default date from bean while page loading.
Thanks, i got the snappy calendar
Hi all,
I have downloaded snappy. I want to use snappy calendar.so i put the jar in WEB-INF/lib folder .
My jsp page:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<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:snappy="http://sensemaker.net/snappy"
xmlns:ice="http://www.icesoft.com/icefaces/component">
<jsp:directive.page contentType="text/html;charset=ISO-8859-1" pageEncoding="ISO-8859-1"/>
<f:view>
<ice:outputDeclaration doctypeRoot="HTML" doctypePublic="-//W3C//DTD HTML 4.01 Transitional//EN" doctypeSystem="http://www.w3.org/TR/html4/loose.dtd"/>
<html>
<head>
<link rel="stylesheet" type="text/css" href="styles/snappy.css" />
</head>
<body>
<ice:outputText value="Thank you for using ICEfaces." />
<ice:form partialSubmit="true" id="snappyDate">
<snappy:calendar value="#{bean.date}" autoSubmit="true" id="cal"></snappy:calendar>
</ice:form>
</body>
</html>
</f:view>


My bean:
package com.zylog.brighthouse.iris.view.bean;
import java.util.Date;
public class SnappyBean {

public Date date;

public Date getDate() {
return date;
}
public void setDate(Date date) {
this.date = date;
}

}

When i run this eg, i get "sp_calendar is undefined" ie javascript error.
Wat i am doing wrong? is there any others steps to use this snappy calendar? plz help me.
Hi all,
I have downloaded snappy. I want to use snappy calendar.so i put the jar in WEB-INF/lib folder .
My jsp page:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<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:snappy="http://sensemaker.net/snappy"
xmlns:ice="http://www.icesoft.com/icefaces/component">
<jsp:directive.page contentType="text/html;charset=ISO-8859-1" pageEncoding="ISO-8859-1"/>
<f:view>
<ice:outputDeclaration doctypeRoot="HTML" doctypePublic="-//W3C//DTD HTML 4.01 Transitional//EN" doctypeSystem="http://www.w3.org/TR/html4/loose.dtd"/>
<html>
<head>
<link rel="stylesheet" type="text/css" href="styles/snappy.css" />
</head>
<body>
<ice:outputText value="Thank you for using ICEfaces." />
<ice:form partialSubmit="true" id="snappyDate">
<snappy:calendar value="#{bean.date}" autoSubmit="true" id="cal"></snappy:calendar>
</ice:form>
</body>
</html>
</f:view>


My bean:
package com.zylog.brighthouse.iris.view.bean;
import java.util.Date;
public class SnappyBean {

public Date date;

public Date getDate() {
return date;
}
public void setDate(Date date) {
this.date = date;
}

}

When i run this eg, i get "sp_calendar is undefined" ie javascript error.
Wat i am doing wrong? is there any others steps to use this snappy calendar? plz help me.
this is my jsp page

<?xml version="1.0" encoding="ISO-8859-1" ?>
<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">
<jsp:directive.page contentType="text/html;charset=ISO-8859-1" pageEncoding="ISO-8859-1"/>
<f:view>
<ice:outputDeclaration doctypeRoot="HTML" doctypePublic="-//W3C//DTD HTML 4.01 Transitional//EN" doctypeSystem="http://www.w3.org/TR/html4/loose.dtd"/>
<html>
<head>
<title>Ajax push</title>
</head>
<body>

<ice:form id="aa" partialSubmit="true">
<ice:panelGrid columns="2">
<ice:outputLabel value="name"></ice:outputLabel>
<ice:inputText value="#{ajaxBean.inputName}"></ice:inputText>
<ice:commandButton value="Submit" actionListener="#{ajaxBean.submit}"></ice:commandButton>
</ice:panelGrid>

<ice:panelGrid columns="1">
<ice:outputLabel value="#{ajaxBean.outputName}"></ice:outputLabel>
</ice:panelGrid>
</ice:form>

</body>
</html>
</f:view>
</jsp:root>


this is my bean
/**
*
*/
package com.zylog.zconnect.bean;

import javax.faces.event.ActionEvent;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.icesoft.faces.async.render.IntervalRenderer;
import com.icesoft.faces.async.render.RenderManager;
import com.icesoft.faces.async.render.Renderable;
import com.icesoft.faces.context.DisposableBean;
import com.icesoft.faces.webapp.xmlhttp.FatalRenderingException;
import com.icesoft.faces.webapp.xmlhttp.PersistentFacesState;
import com.icesoft.faces.webapp.xmlhttp.RenderingException;
import com.icesoft.faces.webapp.xmlhttp.TransientRenderingException;
/**
* @author nirmalaa
*
*/
public class AjaxBean implements Renderable,DisposableBean{
private static Log log = LogFactory.getLog(AjaxBean.class);

private String inputName;
private String outputName="hai";
private PersistentFacesState persistentState = null;
private IntervalRenderer renderer = null;
public RenderManager renderManager;

/**
* @return the renderManager
*/
public RenderManager getRenderManager() {
return renderManager;
}

public AjaxBean(){
persistentState = PersistentFacesState.getInstance();
}

public void submit(ActionEvent e){
reRender();
outputName=inputName;
System.out.println("inside submit "+outputName);
}
/**
* @return the inputName
*/
public String getInputName() {
return inputName;
}
/**
* @param inputName the inputName to set
*/
public void setInputName(String inputName) {
setOutputName(inputName);
this.inputName = inputName;
}

/**
* @return the outputName
*/
public String getOutputName() {
return outputName;
}
/**
* @param outputName the outputName to set
*/
public void setOutputName(String outputName) {
this.outputName = outputName;
}


public void reRender() {
if (renderer != null) {
renderer.requestRender();
} else {
if (log.isDebugEnabled()) {
log.debug("IntervalRenderer was not available (it was null)");
}
}
}

public void setRenderManager(RenderManager renderManager) {
System.out.println("inside set render manager");
renderer = renderManager.getIntervalRenderer("ajax");
renderer.setInterval(5000);
renderer.add(this);
renderer.setBroadcasted(true);
renderer.addCurrentSession();
renderer.requestRender();
}


public void renderingException(RenderingException renderingException) {
if (log.isWarnEnabled()) {
if (log.isDebugEnabled()&& renderingException instanceof TransientRenderingException) {
log.debug("AjaxBean Transient Rendering exception:", renderingException);
} else if (renderingException instanceof FatalRenderingException) {
if (log.isDebugEnabled()) {
log.debug("AjaxBean Fatal rendering exception: ", renderingException);
}
performCleanup();
}
}
}

protected boolean performCleanup() {
try {
// remove ourselves from the render group.
if (renderer != null){
renderer.remove(this);
}
return true;
} catch (Exception failedCleanup) {
if (log.isErrorEnabled()) {
log.error("Failed to cleanup a clock bean", failedCleanup);
}
}
return false;
}

/**
* View has been disposed either by window closing or a session
* timeout.
*/
public void dispose() throws Exception {
if (log.isInfoEnabled()) {
log.info("AjaxBean Dispose called - cleaning up");
}
performCleanup();
}


public PersistentFacesState getState() {
persistentState.setCurrentInstance();
return persistentState;
}

/**
* @return the persistentState
*/
public PersistentFacesState getPersistentState() {
return persistentState;
}

/**
* @param persistentState the persistentState to set
*/
public void setPersistentState(PersistentFacesState persistentState) {
this.persistentState = persistentState;
}

/**
* @return the renderer
*/
public IntervalRenderer getRenderer() {
return renderer;
}

/**
* @param renderer the renderer to set
*/
public void setRenderer(IntervalRenderer renderer) {
this.renderer = renderer;
}



}


and i get

[STDOUT] inside set render manager
INFO [STDOUT] inside set render manager
INFO [RenderHub] scheduled render service created:
core pool size : 5
INFO [STDOUT] inside submit
INFO [RenderHub] core render service created:
core pool size : 10
max pool size : 15
keep alive time: 300000
INFO [STDOUT] inside submit
INFO [STDOUT] inside submit d
INFO [STDOUT] inside submit d
INFO [STDOUT] inside submit d


but if i open another page, it wont refresh...........

please help me........
i am using my application in request scope...i have an arraylist for displaying data in datatable....if i click the pagination(ie next page) i get illegal argument exception -5(that 5 is the no of rows i have given to be displayed in a single page).........if i am using the arraylist as static i wont get this error....but the page wont get refreshed..........

plz help me
in the component show case also,the menu pop up is not working as i wish ie if i click outside the menu ,the menu should disappear .but it is not like that.............
 
Profile for nirmala_86 -> Messages posted by nirmala_86 [21] Go to Page: 1, 2 Next 
Go to:   
Powered by JForum 2.1.7ice © JForum Team