[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3824: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3826: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3827: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3828: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
Next Framework • Ver Tópico - enumerator + jsp (combo) + usertype

enumerator + jsp (combo) + usertype

Não deixe de perguntar, solucione aqui suas dúvidas...

enumerator + jsp (combo) + usertype

Mensagempor gbrezolini » Qui Abr 03, 2014 2:22 pm

Boa tarde

Preciso de ajuda. Eu tenho uma entidade UsuarioCaixa, que possui um atributo tipoUsuario do tipo Enumerator, nesse atributo eu uso o @Type

@Required
@DisplayName("Tipo de usuário")
@Column(name = "USU_TIPO_USUARIO")
@Type(type = "br.inf.inovacao.iweb.webcad.usertype.TipoUsuarioCaixaType")
public TipoUsuarioCaixa getTipoUsuarioCaixa() {
return tipoUsuarioCaixa;
}

No JSP eu carrego o t:property de tipoUsuario da entidade, nesse caso é carregado todos os tipos constantes do enumerator. Eu preciso carregar na combo somente os tipos referentes ao codigo do usuario.
Com exceção dos usuários 10, 11 e 12, ao incluir um novo registro eu só posso carregar na combo os tipos X e Y.
Como eu faço isso ? Tem alguma idéia ? Alguém pode me ajudar ?
gbrezolini
 
Mensagens: 10
Data de registro: Qua Mar 26, 2014 9:17 am

Re: enumerator + jsp (combo) + usertype

Mensagempor rogelgarcia » Sex Abr 04, 2014 7:24 pm

rogelgarcia
Administrador
 
Mensagens: 674
Data de registro: Qua Jul 08, 2009 9:02 am


Retornar para Dúvidas

Quem está online

Usuários vendo este fórum: Nenhum usuário registrado online e 7 visitantes

cron