Skip to content

jonatansalemes/tagria

Repository files navigation

tagria

Tagria is an open source component suit framework that help build beautiful view in minutes. Tagria integrates perfectly with any action based mvc framework for java : Tagria it`s easy , fast and productive.

Tested at moment in MVC frameworks and specs :

  • Spring MVC
  • Vraptor
  • Struts
  • Servlet
  • Mentawai

Tested at moment in applications servers :

  • Tomcat
  • Jetty
  • Wildfly
  • Jboss
  • Websphere

Features :

  • Full html5,css3 support
  • Cross browser support components
  • Responsive
  • W3C compatible
  • Support for i18n (internationalization)

You can self host demos and docs following steps, ps: java 1.8 and wildfly 18x is required to build and deploy:

git clone https://github.com/jslsolucoes/tagria.git
cd  tagria
mvn clean install -Dgpg.skip
mv tagria-doc-v4/target/tagria-doc-v4.war yourwildfly18+home/standalone/deployments/tagria-doc-v4.war
http://localhost:8080/tagria-doc-v4/app/home


Quick start installation and configuration :

Add latest maven dependency to your project : check for versions here

	
<dependency>
	<groupId>com.jslsolucoes</groupId>
	<artifactId>tagria-lib-v4</artifactId>
	<version>latest-version</version>
</dependency>
	

Create an jsp for example index.jsp and import directives

	
	
<%@ taglib  uri="http://v4.tagria.jslsolucoes.com/tags/html" prefix="html"%>
<%@ taglib  uri="http://v4.tagria.jslsolucoes.com/tags/ajax" prefix="ajax"%>
<%@ taglib  uri="http://v4.tagria.jslsolucoes.com/tags/x" prefix="x"%>
<%@ taglib uri="http://v4.tagria.jslsolucoes.com/tags/security" prefix="security"%>
<html:view title="My title">
	<html:alert state="info">
		My firts view	
	</html:alert>
</html:view>

Some configuration can be change by creating an tagrialib.xml file in source folder like, all options is optional by default :

	
	<?xml version="1.0" encoding="ISO-8859-1" ?>
	<tagrialib>
		<templates>
			<template>
				<name>master</name>
				<path>/WEB-INF/jsp/app/template.jsp</path>
				<cached>false</cached>
				<ignoreSSL>true</path>
			</template>
		</templates>
		<formatters>
			<formatter>
				<class>com.package.YourCustomFormatterThatImplementsFormatterInterface</class>
			</formatter>
		</formatters>
		<exporters>
			<exporter>
				<class>com.package.YourCustomExporterThatImplementsExporterInterface</class>
			</exporter>
		</exporters>
		<warning>
			<componentMountTimeThreshold>200</componentMountTimeThreshold>
			<componentDataSetThreshold>300</componentDataSetThreshold>
		</warning>
		<cdn>
			<enabled>false</enabled>
			<url>d35ckkxcy33ron.cloudfront.net</url>
		</cdn>
		<encoding>UTF-8</encoding>
		<skin>default</skin>
		<locale>en</locale>
		<security>
			<class>com.package.YourAuthorizerThatImplementsAuthorizerInterface</class> 
		</security>
	</tagrialib> 
	

if you want, can configure servlet manually

	
		<servlet>
			<servlet-name>tagria-v4</servlet-name>
			<servlet-class>com.jslsolucoes.tagria.lib.v4.servlet.Tagria</servlet-class>
		</servlet>
		
		 <servlet-mapping>
			<servlet-name>tagria-v4</servlet-name>
			<url-pattern>/tagria/v4/*</url-pattern>
		</servlet-mapping>
		
		<servlet>
			<servlet-name>tagria-exporter-v4</servlet-name>
			<servlet-class>com.jslsolucoes.tagria.lib.v4.servlet.TagriaExporter</servlet-class>
		</servlet>
		
		 <servlet-mapping>
			<servlet-name>tagria-exporter-v4</servlet-name>
			<url-pattern>/tagria-exporter/v4</url-pattern>
		</servlet-mapping>
	

TagriaLib Framework has some official certification programs. Become an Tagria Library Framework Certified and demonstrate understanding of fundamental TagriaLib concepts needed to undertake any web java project using Tagria Library Framework as view framework.

Authorized companies as TagriaLib Framework Certification Test Center:

If you want be a TagriaLib Framework Certification Test Center partner please contact us via issue request (https://github.com/jslsolucoes/tagria/issues)

About

Action based component suit that integrates with spring mvn, vraptor,struts, servlet, spring and any kind of action based mvc framework

Resources

License

Stars

Watchers

Forks

Packages

No packages published