Mostrando entradas con la etiqueta Seam. Mostrar todas las entradas
Mostrando entradas con la etiqueta Seam. Mostrar todas las entradas

lunes, 11 de octubre de 2010

s:convertDateTime

s:convertDateTime

In the Seam documentation there is very little information about this tag.
In the documentation, there is only one example:
     h:outputText> 

This doesn't really say much. However, after some googling, I can explain some of the attributes, and what is actually useful to use.
If you want to show both date and time: dd-MM-yyyy hh:mm:ss you can use type="both" and dateStyle="full". If you want to show only date. Use type="date".

You choose from a range of different dateStyle.
default May 14, 2007 2:35:45 PM ( Default Value)
short 5/14/07 12:55:42 PM
medium May 14, 2007 2:42:36 PM
long May 14, 2007 2:41:08 PM
full Monday, May 14, 2007 2:39:56 PM


However what I have found the most useful is just to use the pattern attribute together with the type.
So if you want the style 14.07.2009 you just write

     h:outputText>
And you are set to go!

fuente

Documentacion:

http://docs.jboss.org/seam/2.1.2/reference/en-US/pdf/seam_reference.pdf
33.1.2. Converters and Validators

miércoles, 4 de agosto de 2010

Istalacion jboss seam 2

http://jboss.org/tools
-copiar el link de JBoss Tools 3.1 :: Eclipse 3.5.2
-agregarlo en eclipse >help>install sofwarre
-marcar plugin:
* jboss tool rich faces
* jboss toll hibernate
* jboss tool seam

jueves, 17 de diciembre de 2009

Instalacion jboos Seam

Tutorial:
http://docs.jboss.org/tools/3.0.1.GA/en/seam/html/index.html

  • Bajar Eclipse 3.4.2 Ganimedes:
http://download.eclipse.org/eclipse/downloads/drops/R-3.4.2-200902111700/index.php

  • bajar los pluggin en Eclipse :
La que hay que agregar a site es:URL : http://download.jboss.org/jbosstools/updates/stable

http://community.jboss.org/wiki/InstallingJBossTools
http://www.jboss.org/tools/download/update

  • Definir Home fold de Seam:
al llegar a seleccionar el Seam Runtime me sale el error de que 'Seam Runtime is not selected', por tanto le doy a 'New Seam Runtime' y busco la carpeta en la que está Seam, me aparece el error siguiente 'Cannot find jboss-seam.jar file'.

Hay que haber bajado previamente el framework de Seam para luego poder establecer el Seam Runtime.

http://seamframework.org/Download (vercion 2.2.0)

http://sourceforge.net/project/downloading.php?group_id=22866&filename=jboss-seam-2.1.2.zip

fuente.


  • Instalar Glassfish en eclipsse: asegurarse que el eclipse sea la ultima vercion estable de 3.4.2
Windows>Preference>Server>Runtime Environmentns>add
Download additional server adapters
elijo glassfish


  • bajar Hibernate Validator 3.1.0

  • Agregar a EAR Lybrery la libreria que esta en la carpeta de plugin de eclipse , la libreria es: org.eclipse.jdt.core_3.3.4

  • Para deployar : Export el ear y copiarlo a la carpeta dentro de personaldomine>Autodeploy