elemak valek

Greenhorn
+ Follow
since Mar 22, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by elemak valek

Hi, I'm having the following problem. It's kind of weird.
I'm using the component DataTable from the Richfaces 3.3.0 librarie and Tomcat 6.0.
The problem is that locally (on Windows) my application works perfectly, but in my server (Unix) when I use the filter included in the DataTable the server crashes completely, but only sometimes, which is annoying because I can't tell where is the origin of the error in the server.
Has anybody experienced anything similar or know a solution for this?
Thanks
14 years ago
JSF
Hi,

I'm having a problem with the implementation of Trinidad in a project. I just get this error:

org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderKit createResponseWriter
SEVERE: No RenderingContext has been created

The page displays but the <tr:treeTable> component that I use doesn't work. I'm using Richfaces as well and I don't know if that causes conflicts with Trinidad, or if I should add anything else to the face-config.xml or the web xml.

Currently in the face-config.xml I added:



To the web.xml I added:

<


Thanks

14 years ago
JSF
Hey , thanks a lot !!
17 years ago
Hi, this is the CalificacionForm
-----
//Created by MyEclipse Struts
// XSL source (default): platform:/plugin/com.genuitec.eclipse.cross.easystruts.eclipse_3.8.3/xslt/JavaClass.xsl
import java.util.ArrayList;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import co.edu.icesi.notas.*;
public class CalificacionForm extends ActionForm {
// --------------------------------------------------------- Instance Variables

/** matriculas property */
private ArrayList matriculas;
private String nombre;

// --------------------------------------------------------- Methods
public void reset(){
matriculas=new ArrayList();
}
public CalificacionForm(){
reset();
}
/**
* Returns the matriculas.
* @return ArrayList
*/
public ArrayList getMatriculas() {
return matriculas;
}
public Calificacion getCalificacion(int index){
while(index>=matriculas.size()){
matriculas.add(new Calificacion());
}
return (Calificacion) matriculas.get(index);
}
public String getNombre() {
return nombre;
}
public void setNombre(String nombre) {
this.nombre = nombre;
}
}
-----

the list matriculas has an ArrayList filled with Calification objects
A Calificacion object has an ArrayList filled with Nota objects
Nota has an attribute named nota

and the jsp part:

<logic:iterate name="calificacionForm" id="calificacion" property="matriculas" indexId="index">

<bean:write name="calificacion" property="codigo"/><html:hidden name="calificacion" property="codigo" indexed="true"/>
<bean:write name="calificacion" property="nombre"/><html:hidden name="calificacion" property="nombre" indexed="true"/>

<logic:iterate name="calificacion" id="nota" property="notas" indexId="index2">

<html:hidden name="calificacionForm" property='<%= "matriculas[" + index + "].notas[" + index2 + "].nota" %>' />
<html:text name="calificacionForm" property='<%= "matriculas[" + index + "].notas[" + index2 + "].nota" %>' size="3"/>

</logic:iterate>
17 years ago
Hey thanks for the help,I tried that way, but there is another problem now:
it cant populate the form because of this...
---
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
java.util.ArrayList.RangeCheck(ArrayList.java:547)
java.util.ArrayList.get(ArrayList.java:322)
org.apache.commons.beanutils.PropertyUtils.getIndexedProperty(PropertyUtils.java:521)org.apache.commons.beanutils.PropertyUtils.getIndexedProperty(PropertyUtils.java:428)org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUtils.java:770)org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:801)org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:881)org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1252)org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821)org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
-----

I have to mention Im working with ArrayList, and just like before, it shows the information, but after the submit, this exception. I cant find the reason for an IndexOutofBounds...
17 years ago
Hi, my problem is not to show up the information,the logic:iterate inside logic:iterate works fine, the problem is to get the information again by tyhe form.
------
<logic:iterate name="calificacionForm" id="calificacion" property="matriculas" indexId="index">

<bean:write name="calificacion" property="codigo"/><html:hidden name="calificacion" property="codigo" indexed="true"/>

<bean:write name="calificacion" property="nombre"/><html:hidden name="calificacion" property="nombre" indexed="true"/>


<logic:iterate name="calificacion" id="nota" property="notas" indexId="index2">

<html:text name="nota" property="nota" indexed="true" size="3"/>

</logic:iterate>
</logic:iterate>
-----
I cant get the "notas" information for each "calificacion" to the form in the internal logic:iterate.
17 years ago