Questions tagged as 'mvc'

1
answer

Problems persisting data in Doctrine

I'm doing this: function Autenticar($objecto) { //require $this->db; require ROOT . "config/bootstrap.php"; return $entityManager->getRepository('models\Usuarios')->findOneBy(array('login' => $objecto-&...
asked by 30.09.2014 / 20:21
1
answer

Error while displaying the result of a List using MVC and JSF

I need to return data from the database to JSF but even before I get to JSF I can not show the searched data. I have the following error: Advertência: #{usuarioBean.pesquisa}: java.lang.ClassCastException: java.lang.Class cannot be cast t...
asked by 03.10.2014 / 17:22
1
answer

Map routes works only the default

I'm having a problem with my project. I have two routes, the "Default" and a test, but I do not know if it is done correctly because it does not work when they put in the url what I put there, it works only the "Default" public static void Reg...
asked by 23.08.2014 / 06:27
1
answer

Creating a new view on a Controller

In a Rails project, I created a Scaffold Responsability and consequently Rails created the whole basic structure of this Scaffold. I've created a has_and_belongs_to_many relationship between a responsability model and a Knowledge...
asked by 27.05.2014 / 14:28
1
answer

Remove bank data with GRAILS AND GORM

I am learning a bit of GRAILS and I have the following problem I can display the information of some users usually registered when I try to delete them I can not and I do not receive any error, follow the code def delete() { Usuario...
asked by 30.06.2014 / 03:10
1
answer

AbstractController :: ActionNotFound for a destroy action

Hello, I have two applications running in Heroku with the same code, but I'm having a problem with the production version. When trying to make a request, I have the following log: AbstractController::ActionNotFound (The action 'destroy...
asked by 28.06.2014 / 17:30
1
answer

link_to action e id

I want to make an action to change the password and I have the following link_to to redirect to html.erb with the correct user <%= link_to 'Mudar Senha', "edit_password_form/" + @usuario.id.to_s %> I feel like I'm doing the wrong th...
asked by 23.05.2014 / 01:39
1
answer

Relationship in doctrine

I have a problem that is analogous to the following situation: A car may or may not have a driver, ie a car may have a minimum of 0 and a maximum of 1 driver. A driver may or may not have a car, ie a driver can have a minimum of 0 and a ma...
asked by 17.07.2014 / 05:36
0
answers

Change create.objectURL to HTMLMediaElement.srcObject

When adding the createObjectURL class, it is accusing the failed error in some browsers, after the searches, I checked that I can use HTMLMediaElement. But how can I include it in my project? export class CameraController { constructor(vi...
asked by 20.12.2018 / 13:28
1
answer

Querying in more than 1 field with FindBy in spring mvc

I have this repository: public interface RepositorioUsuarioPermissao extends JpaRepository<UsuarioPermissao, Long> { @Query("SELECT u FROM UsuarioPermissao u WHERE u.id_seletivo = ?1 and u.id_usuario = ?2") List<UsuarioPermis...
asked by 28.11.2018 / 14:01