GithubHelp home page GithubHelp logo

Comments (11)

bamarni avatar bamarni commented on July 17, 2024

Could you paste the generated HTML? You mean the hidden input is not here anymore and it's rendered as a simple select?

from genemuformbundle.

Efarya avatar Efarya commented on July 17, 2024

Yes that's it

Generated HTML :
select id="mots_cles_ajout_motcle" required="required" name="mots_cles_ajout[motcle]">

And the getName of the form

public function getName()
{
return 'mots_cles_ajout';
}

And it's generating simple select like this in all autocompleter_entity i'm using

from genemuformbundle.

bamarni avatar bamarni commented on July 17, 2024

I've just tested it and it's generating the hidden input too, maybe you should just clear your cache, yesterday I made a change about the template block naming.

from genemuformbundle.

Efarya avatar Efarya commented on July 17, 2024

After clearing cache, it's still not working.
I've tried to remove the vendor folder and reinstall the symfony component, nothing has changed.

I've tried to remove theme from forms, we never know, still the same...

from genemuformbundle.

Efarya avatar Efarya commented on July 17, 2024

I just tried with the previous getName() in

\vendor\genemu\form-bundle\Genemu\Bundle\FormBundle\Form\JQuery\Type\AutocompleterType.php

and it works...

public function getName()
{
return 'genemu_jqueryautocompleter';
}

So i don't know where comes the problem, but just this function makes the autocompleter not working correctly

from genemuformbundle.

bamarni avatar bamarni commented on July 17, 2024

Well, update to the latest symfony and you'll get an error if you keep this name ;-)

As I told you, it works just fine for me so I can't really help you.

Edit : Could you debug the types used in the twig form extension for the autocompleter type (it's in the Twig Bridge)? Apparently genemu_autocompleter isn't there in your case.

from genemuformbundle.

Efarya avatar Efarya commented on July 17, 2024

Oh yes that's right i thought i was on beta3 of Sf 2.1.0 but no i'm still in beta2 and i use the dev-master version of genemu, that's why i got an error...

Isn't this composer.json lines get back the latest Sf version ?

"symfony/symfony": "2.1.*",
"doctrine/orm": "2.2.0",
"doctrine/doctrine-bundle": "dev-master",
"twig/extensions": "dev-master",
"symfony/assetic-bundle": "dev-master",
"symfony/swiftmailer-bundle": "dev-master",
"symfony/monolog-bundle": "dev-master",
"sensio/distribution-bundle": "dev-master",
"sensio/framework-extra-bundle": "dev-master",
"sensio/generator-bundle": "dev-master",

from genemuformbundle.

bamarni avatar bamarni commented on July 17, 2024

it depends on the command you'll run, composer update symfony/symfony genemu/genemu-form

from genemuformbundle.

Efarya avatar Efarya commented on July 17, 2024

i'm always running a full composer.phar update...and i'm not gone on sf 2.1.0beta3...

from genemuformbundle.

bamarni avatar bamarni commented on July 17, 2024

You're not on the beta3 because it's not explicitely specified in your composer.json, but it's ok you should be on the latest commit of the master branch. Anyway do you stil have the error?

from genemuformbundle.

Efarya avatar Efarya commented on July 17, 2024

No i don't have anymore thanks for support

from genemuformbundle.

Related Issues (20)

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.