jueves, 16 de febrero de 2012

Cannot assign a nil to a TJPEGImage

If that message of cannot assign a nil .... was obtained in STAR UML, when you want to export the diagram.

The problem is that you have some error in your diagram.. you can probe that by click in the Model menu, and click in the verify model submenu.

So, the solution for this is modify any error in the annotations, maybe a bad connector or bad association it has missed or a stereotype like < < include> >; or < < extend > >;. and after that you will be able to export the model without any problem.



miércoles, 15 de febrero de 2012

lunes, 13 de febrero de 2012

Processbase code

https://code.google.com/p/processbase/source/search?q=&origq=&btnG=Search+Trunk

OPENXAVA Error: A request has been denied as a potential CSRF attack y el Session Error

Ejecutar eclipse:

Escritorio/eclipse/eclipse ./eclipse

Seleccionar la ruta del workspace de Openxava descargado, en mi caso la versión:

.../Openxava/openxava-4.2.3/workspace

Hacer clic derecho sobre el archivo: Build.xml, seleccionar Debug as-> 3ra opción Ant Debug

Seleccionar: todas las opciones:

Compilar, desplegarWar, generarPortlets, actualizarOX, actualizarEsquema.

Despues del despliegue, se generan las carpetas:

workspace.dist/

consultorioUPBBGA.dist -> consultorioUPBBGA.war y /lib
consultorioUPBBGA-portlets.war.d


Abrir el archivo consultorioUPBBGA.war con el gestor de archivos, y editar el archivo web.xml dentro de /WEB-INF

y agregar las siguientes lineas en negrita en el servlet :

< servlet >
< servlet-name >dwrInvoker< /servlet-name >
< display-name >DWR Servlet< /display-name >
< description >Direct Web Remoter Servlet< /description >
< servlet-class >org.directwebremoting.servlet.DwrServlet< /servlet-class >
< init-param >
< param-name >debug< /param-name >
< param-value >false< /param-value >
< /init-param >
< init-param >
< param-name >crossDomainSessionSecurity< /param-name >
< param-value >false< /param-value >
< /init-param >
< load-on-startup >12< /load-on-startup >
< /servlet>


Guardar cambios, y desplegar en el servidor- Glassfish en mi caso.

http://sourceforge.net/projects/openxava/forums/forum/437015/topic/4594478/index/page/1

lunes, 6 de febrero de 2012

See all the portlets in the category in liferay

If you are using LIFERAY, for see all the portlets of a category in case that there are a lot, you have to use Internet Explorer.

Both Firefox and Chrome, don't allow the visualization of all, because the size of windows of them are smaller than the list of portlets.


spanish

PORTLET SIZE VAADIN LIFERAY

The AbsoluteLayout works with portlets as such as Horizontal and Vertical Layout (Vaadin GUI) do , the only thing that you have to do is to modify the size of it in a fixed way, because the porcentual value doesn't works with portlets.

so:

The correct way to set the size is:
mainLayout.setWidth("500px");
mainLayout.setHeight("400px");

you CAN NOT do this:

AbsoluteLayout mainLayout= new AbsoluteLayout();
mainLayout.setWidth("-1px");
mainLayout.setHeight("-1px");

neither : mainLayout.setWidth("100%");


http://dev.vaadin.com/ticket/5521#comment:1

miércoles, 1 de febrero de 2012

Ver todos los portlets de una categoría en Liferay

Si estas usando LIFERAY, para poder ver todos los portlets de una categoría en caso de que sean muchos debes usar Internet Explorer.

Firefox y Chrome, no permiten la visualización de todos, porque
las ventanas de ambos browsers o exploradores son más pequeñas que la lista.

English