-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generated AngularJS Controller Doesn't Work on Save #6048
Comments
Can you write a good title? |
Thanks ! |
Well you copied only one entity <details>
<summary>Summary Goes Here</summary>
...this is hidden, collapsable content...
</details> |
@gmarziou we should use this in our issue template, have you tried it? |
@vw98075 if you use your browser in "dev mode", can you see the network rework? Does clicking on the button produce a request? If yes, you should be able to see it on the backend, with our logging aspect. This is to understand if the issue is on the backend or on the frontend. |
@jdubois Yes I used it many times, it has some restrictions though, you cannot have complex markdown in included text but for code or command output it'll be fine using |
@vw98075 I wonder why this happens only to one entity, maybe this is related to your way of naming entities using plural? |
I edited the issue using details tag. |
@gmarziou we can incorporate the details tag into the output of |
Sorry but you also posted this on StackOverflow at https://stackoverflow.com/questions/44960062/nothing-happens-after-clicking-the-submit-button
-> I'm closing this as "invalid" as you have answers on SO, and as there should only be one "ticket" or "question" |
@deepu105 yes good idea. I can PR it if you want |
I think its ok if it doesnt collapse in SO, the primary purpose is for us to work on issues efficiently |
OK, I will do it. |
It works with firefox and mobile chrome |
@jdubois Sorry for this late reply. It was a bed time here when your folks had a conversation on this problem. To answer your question, I retest it and don't see any traffic on the network panel of the browser. And I was not aware of such guideline which a question only can be posted either here or Stockoverflow. Sorry for that. I first noticed this problem two days ago. I thought the problem must be something I didn't do it right. I try not to bother your folks as possible. I believe that it is a front end problem. The Spring Rest controller method is not hit. @gmarziou I will rename the entity and replace the "S" at the end with something else. And report back to you later. A update: After I rename the related entity names from SkuS to SkuSup, the problem still persists. I believe that problem is likely caused by associated relationships. I add all related relationship definitions from an output of "jhipster info". |
Overview of the issue
With the generated code, one of my entities can not be saved. On the 8080 port, the form remains the same and nothing shows up on the console after I click the submit button. On the 9000 port, however, a log message shows fetching for related entities from the database after I click the button. There isn't an error message on any console, including the browser's console. The followings is the html file.
HTML template
And the followings is the controller. Note I insert the console.log and nothing is printed on a browser console.
Controller code
Motivation for or Use Case
Reproduce the error
Related issues
Suggest a Fix
In the controller,
Or in the html file,
JHipster Version(s)
4.5.6
JHipster configuration
An output of
jhipster info
is quite long. I only copy the related portion hereSkuS.json
The
.yo-rc.json
fileEntity configuration(s)
entityName.json
files generated in the.jhipster
directoryThe related SkuS.json is shown above. And the ProductSup is the following:
Browsers and Operating System
Linux Mint 18.2
The text was updated successfully, but these errors were encountered: