Giter VIP home page Giter VIP logo

admin-starter-tomcat's Introduction

AdminFaces Starter project

A simple project to get you started with AdminFaces.

Building

This project uses Maven for the build:

mvn clean package

Running

Run the jar file generated from the previous step:

java -jar admin-starter-executable.jar

You can access the running webapp through:

Demo

Screenshots

Login page

starter1

Car list

starter2

Car form

starter3

Car form responsive

starter4

admin-starter-tomcat's People

Contributors

rmpestano avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

admin-starter-tomcat's Issues

Dialog Modal com SelectOneMenu - problema ao renderizar itens

Estou usando o SelectOneMenu, sem conexão ao managedBean, quando selecione ele os itens são mostrados atras do Dialog,

Version: 1.0.0-RC18
Primefaces: 6.2
Primefaces Extensions: 6.0.0
Omnifaces: 2.6.1

<p:dialog header="Manutenção de Usuário"
widgetVar="registroSelecionado"
draggable="false"
resizable="false"
modal="true"
closable="false"
appendToBody="false"
ajax="false">
<h:form id="frmCadastro">



<h:panelGrid id="pnlCadastro" columns="2">

				<p:outputLabel for="nome" value="Nome:" />
				<p:inputText 
					id="nome"
					maxlength="50" 
					size="50" 
					value="#{usuarioMB.usuarioSelecionado.nome}" 
					required="true" 
					requiredMessage="Campo obrigatório" 
					style="margin: 10px 0 0 10px;"/>

				<p:outputLabel for="email" value="Email:" />
				<p:inputText 
					id="email"
					maxlength="200" 
					size="80" 
					value="#{usuarioMB.usuarioSelecionado.email}"
					required="true" 
					requiredMessage="Campo obrigatório" 
					style="margin: 10px 0 0 10px;"/>

				<p:outputLabel for="senha1" value="Senha:" />
				<p:password
					id="senha1"
					maxlength="32" 
					size="30" 
					value="#{usuarioMB.usuarioSelecionado.senha}"
					required="true" 
					requiredMessage="Campo obrigatório" 
					style="margin: 10px 0 0 10px;"
					match="senha2"/>

				<p:outputLabel for="senha2" value="Redigite:" />
				<p:password
					id="senha2"
					maxlength="32" 
					size="30" 
					value="#{usuarioMB.usuarioSelecionado.senha}"
					required="true" 
					requiredMessage="Campo obrigatório" 
					style="margin: 10px 0 0 10px;" />
			  
				<p:outputLabel for="ativo" value="Ativo:" />
				<p:selectBooleanButton 
					id="ativo" 
					value="#{usuarioMB.usuarioSelecionado.ativo}"
					onLabel="Sim" 
					offLabel="Não" 
					style="margin: 10px 0 0 10px; width: 60px;" />
					
				<p:outputLabel for="tipo2" value="Tipo:" />
				<p:selectOneMenu
					id="tipo2" 
					value="#{usuarioMB.usuarioSelecionado.usuarioTipo}"
					style="margin: 10px 0 0 10px;" 
					ajax="false">
					<f:selectItem itemLabel="Selecione" />
					<f:selectItem itemLabel="Administrador" itemValue="ADM" />
					<f:selectItem itemLabel="Gerente"       itemValue="GER" />
					<f:selectItem itemLabel="Comprador"     itemValue="COM" />
					<f:selectItem itemLabel="Vendedor"      itemValue="VEN" />
				</p:selectOneMenu>
				
			</h:panelGrid>
			<p:spacer width="30"/>
			<h:panelGrid columns="3">
				<p:commandButton 
					styleClass="btn-info"
					icon="fa fa-check"  
					value="Salvar" 
					actionListener="#{usuarioMB.salvar}"
					oncomplete="PF('registroSelecionado').hide();"
					update=":frmListagem :frmListagem:tblRegistro"
					/>
				<p:spacer width="20"/>
				<p:commandButton 
					styleClass="btn-danger"
					icon="fa fa-close" 
					value="Cancelar" 
					oncomplete="PF('registroSelecionado').hide();"/>
			</h:panelGrid>
		</div>
	</div>
</h:form>

</p:dialog>

Does no execute action in datatable

Hi
When I implemented my functionalities within the adminfaces project I cannot execute an action inside p: commandButton or p: commandlink.

<p:commandButton action="#{locatarioBean.iniciarCadastro}" icon="fa fa-plus" value="Novo" styleClass="btn-primary"/> <p:spacer width="5"/>

<p:commandLink styleClass="btn btn-primary btn-sm" actionListener="#{locatarioBean.recarregaEntidadeDetalhar(locatario.id)}" title="Editar" oncomplete="/pages/locatario/cadastrolocatario?faces-redirect=true" tabindex="3"> <span class="glyphicon glyphicon-pencil" /> </p:commandLink>
thank you very much

Silvio Guedes

Sorting tables does not work with Primefaces 10 dependency

Sorting tables functionality does not work with the Primefaces dependency in version 10, even though it works with version 8.

sorting_Tables

I have even tried the example case proposed in the project with tomcat and the functionality does not work well either.

I wonder if you know of any reason why this bug occurs on the tomcat 9 servers? and how to repair it in version 10 of primefaces ?.

I remain attentive to your response and I will be available for any question or information you need from me.

best regards.

customize header

Hi,
I want to customize header, by adding logo or changing colors.

For example, If I want to add a logo in this div : "center-navbar"

What is the best practice to do this ?

Thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.