[JBoss JIRA] (FORGE-886) Should be able to re-install an existing Addon if it is a SNAPSHOT
by Lincoln Baxter III (JIRA)
Lincoln Baxter III created FORGE-886:
----------------------------------------
Summary: Should be able to re-install an existing Addon if it is a SNAPSHOT
Key: FORGE-886
URL: https://issues.jboss.org/browse/FORGE-886
Project: Forge
Issue Type: Story
Components: Container, Plugin Repository
Affects Versions: 2.0.0.Alpha3
Reporter: Lincoln Baxter III
Fix For: 2.0.0.Alpha4
Currently re-installing Addons is not supported, because there is no way to tell Forge to stop using the existing deployed files without giving it time to detect the change and re-deploy the addon.
In order to implement this, the Forge registry file probably needs to use some kind of marker files.
{code}
.dodeploy
.deployed
.undeployed
{code}
So that it knows how to respond when changes are made faster than timestamps can detect. This would (hopefully) also in theory be a step toward multi JVM (multiple running forge / concurrent modification instance) support.
This has been partially implemented, but only naively. The files are actually re-written on UNIX based OS's, and will be re-loaded next time the addon is disabled/re-enabled, but this will not work on Windows.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 11 months
[JBoss JIRA] (FORGE-873) Scaffold doesn't shows the correct referenced entities in edit views, while in details views shows something like "org.forgetest.model.Entity@5f9ba38e"
by Lincoln Baxter III (JIRA)
[ https://issues.jboss.org/browse/FORGE-873?page=com.atlassian.jira.plugin.... ]
Lincoln Baxter III reassigned FORGE-873:
----------------------------------------
Assignee: Vineet Reynolds
Vineet, is this something you have addressed in the x-scaffold?
> Scaffold doesn't shows the correct referenced entities in edit views, while in details views shows something like "org.forgetest.model.Entity@5f9ba38e"
> -------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: FORGE-873
> URL: https://issues.jboss.org/browse/FORGE-873
> Project: Forge
> Issue Type: Bug
> Components: Scaffold
> Affects Versions: 1.2.3.Final
> Environment: JBoss 7.1.1 final , Hibernate 4.2.0.final,
> Reporter: claudio perrotta
> Assignee: Vineet Reynolds
>
> For a table with a foreign key the UI permits to select the possible values, but this values are listed in a dropdown menu in a form like "org.forgetest.model.Entity@5f9ba38e" (would be preferable that the string present be relative to the PK referenced)
> Anyway, after setting this field and submitting the form, the data are inserted in the table correctly but when i want to modify the record, the UI doesn't show the setted value for the foreign key and i must set it again before saving.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 11 months
[JBoss JIRA] (FORGE-873) Scaffold doesn't shows the correct referenced entities in edit views, while in details views shows something like "org.forgetest.model.Entity@5f9ba38e"
by claudio perrotta (JIRA)
[ https://issues.jboss.org/browse/FORGE-873?page=com.atlassian.jira.plugin.... ]
claudio perrotta updated FORGE-873:
-----------------------------------
Steps to Reproduce:
create a database with two table with one that have a FK.
use forge to create a project and generate the UI.
was:
create a database with two table with one that have a FK to the PK of the other.
use forge to create a project and generate the UI.
> Scaffold doesn't shows the correct referenced entities in edit views, while in details views shows something like "org.forgetest.model.Entity@5f9ba38e"
> -------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: FORGE-873
> URL: https://issues.jboss.org/browse/FORGE-873
> Project: Forge
> Issue Type: Bug
> Components: Scaffold
> Affects Versions: 1.2.3.Final
> Environment: JBoss 7.1.1 final , Hibernate 4.2.0.final,
> Reporter: claudio perrotta
>
> For a table with a foreign key the UI permits to select the possible values, but this values are listed in a dropdown menu in a form like "org.forgetest.model.Entity@5f9ba38e" (would be preferable that the string present be relative to the PK referenced)
> Anyway, after setting this field and submitting the form, the data are inserted in the table correctly but when i want to modify the record, the UI doesn't show the setted value for the foreign key and i must set it again before saving.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 11 months
[JBoss JIRA] (FORGE-572) Forge scaffold faces creates view beans with Id always Long against user-generated Entities
by claudio perrotta (JIRA)
[ https://issues.jboss.org/browse/FORGE-572?page=com.atlassian.jira.plugin.... ]
claudio perrotta commented on FORGE-572:
----------------------------------------
please take a look at https://issues.jboss.org/browse/FORGE-873 for the second issue..i think that have found also the solution..
> Forge scaffold faces creates view beans with Id always Long against user-generated Entities
> -------------------------------------------------------------------------------------------
>
> Key: FORGE-572
> URL: https://issues.jboss.org/browse/FORGE-572
> Project: Forge
> Issue Type: Bug
> Components: Scaffold
> Affects Versions: 1.0.2.Final
> Environment: JBoss Developer Studio 5 Beta 2, Embedded Forge 1.0.2.Final
> Reporter: Will Dinyes
> Assignee: Vineet Reynolds
> Priority: Minor
> Labels: starter
> Fix For: 1.2.4.Final
>
>
> When running:
> scaffold from-entity ~.domain.* --overwrite
> The generated view Bean will always use an id field as a long, even if the entity uses a different type for the @Id. For instance, this code, in an Entity class called ValMealtype:
> @Id
> @GeneratedValue(strategy=GenerationType.IDENTITY)
> @Column(unique=true, nullable=false, length=20)
> private String meal;
> Generates, in ValMealtypeBean:
> private Long id;
> <-- associated gettters and setters -->
> And, later in the class:
> return ValMealtypeBean.this.entityManager.find(ValMealtype.class, Long.valueOf(value));
> That line in particular doesn't work at all, of course, since a Long can't be parsed out of a non-numeric String. I suppose I could name my meals with hex digits . . . CAFE . . . BEEF . . . but sadly, Chicken isn't going to fly.
> Basically, scaffold probably needs to look at the type of @Id in the entity and use that to set the id field type in the generated bean.
> As this is reported against a non-current release, I understand it may be fixed already. In this case, a new Beta of JBDS 5 is probably in order, as that's where I'm seeing this issue.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 11 months
[JBoss JIRA] (FORGE-873) Scaffold doesn't shows the correct referenced entities in edit views, while in details views shows something like "org.forgetest.model.Entity@5f9ba38e"
by claudio perrotta (JIRA)
[ https://issues.jboss.org/browse/FORGE-873?page=com.atlassian.jira.plugin.... ]
claudio perrotta updated FORGE-873:
-----------------------------------
Workaround: Workaround Exists
> Scaffold doesn't shows the correct referenced entities in edit views, while in details views shows something like "org.forgetest.model.Entity@5f9ba38e"
> -------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: FORGE-873
> URL: https://issues.jboss.org/browse/FORGE-873
> Project: Forge
> Issue Type: Bug
> Components: Scaffold
> Affects Versions: 1.2.3.Final
> Environment: JBoss 7.1.1 final , Hibernate 4.2.0.final,
> Reporter: claudio perrotta
>
> For a table with a foreign key the UI permits to select the possible values, but this values are listed in a dropdown menu in a form like "org.forgetest.model.Entity@5f9ba38e" (would be preferable that the string present be relative to the PK referenced)
> Anyway, after setting this field and submitting the form, the data are inserted in the table correctly but when i want to modify the record, the UI doesn't show the setted value for the foreign key and i must set it again before saving.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 11 months
[JBoss JIRA] (FORGE-873) Scaffold doesn't shows the correct referenced entities in edit views, while in details views shows something like "org.forgetest.model.Entity@5f9ba38e"
by claudio perrotta (JIRA)
[ https://issues.jboss.org/browse/FORGE-873?page=com.atlassian.jira.plugin.... ]
claudio perrotta commented on FORGE-873:
----------------------------------------
Solved...
to show the setted value in the dropdown menu must override the equals() function in the entity class with a more "correct" version like this http://stackoverflow.com/questions/3181339/right-way-to-implement-equals-...
> Scaffold doesn't shows the correct referenced entities in edit views, while in details views shows something like "org.forgetest.model.Entity@5f9ba38e"
> -------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: FORGE-873
> URL: https://issues.jboss.org/browse/FORGE-873
> Project: Forge
> Issue Type: Bug
> Components: Scaffold
> Affects Versions: 1.2.3.Final
> Environment: JBoss 7.1.1 final , Hibernate 4.2.0.final,
> Reporter: claudio perrotta
>
> For a table with a foreign key the UI permits to select the possible values, but this values are listed in a dropdown menu in a form like "org.forgetest.model.Entity@5f9ba38e" (would be preferable that the string present be relative to the PK referenced)
> Anyway, after setting this field and submitting the form, the data are inserted in the table correctly but when i want to modify the record, the UI doesn't show the setted value for the foreign key and i must set it again before saving.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 11 months
[JBoss JIRA] (FORGE-873) Scaffold doesn't shows the correct referenced entities in edit views, while in details views shows something like "org.forgetest.model.Entity@5f9ba38e"
by claudio perrotta (JIRA)
[ https://issues.jboss.org/browse/FORGE-873?page=com.atlassian.jira.plugin.... ]
claudio perrotta edited comment on FORGE-873 at 5/6/13 10:56 AM:
-----------------------------------------------------------------
To change the string "org.forgetest.model.Entity@5f9ba38e" i maqke some changes in xhtml files
in create.xhtml and search.xhtml :
<f:selectItems value="#\{EntityBean.all\}"/>
changed to :
<f:selectItems value="#\{EntityBean.all\}" var="entity" itemValue="#\{entity\}" itemLabel="#\{entity.id\}"/>
where "#\{entity\} is the private attribute in the bean relative to the entity class and #\{entity.id\} is the label that you want to show in dropdown menu
in view.xhtml :
<h:link id="ManyToOneBean" outcome="/oneEntity/view" value="#{ManyBean.ManyEntity.OneEntity}">
changed to :
<h:link id="ManyToOneBean" outcome="/oneEntity/view" value="#{ManyBean.ManyEntity.OneEntity.Id}">
i hope it helps
was (Author: reskejal):
To change the string "org.forgetest.model.Entity@5f9ba38e" i change in xhtml files (create, view, search) this line
<f:selectItems value="#\{EntityBean.all\}"/>
in
<f:selectItems value="#\{EntityBean.all\}" var="entity" itemValue="#\{entity\}" itemLabel="#\{entity.id\}"/>
where "#\{entity\} is the private attribute in the bean relative to the entity class and #\{entity.id\} is the label that you want to show in dropdown menu
i hope it helps
> Scaffold doesn't shows the correct referenced entities in edit views, while in details views shows something like "org.forgetest.model.Entity@5f9ba38e"
> -------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: FORGE-873
> URL: https://issues.jboss.org/browse/FORGE-873
> Project: Forge
> Issue Type: Bug
> Components: Scaffold
> Affects Versions: 1.2.3.Final
> Environment: JBoss 7.1.1 final , Hibernate 4.2.0.final,
> Reporter: claudio perrotta
>
> For a table with a foreign key the UI permits to select the possible values, but this values are listed in a dropdown menu in a form like "org.forgetest.model.Entity@5f9ba38e" (would be preferable that the string present be relative to the PK referenced)
> Anyway, after setting this field and submitting the form, the data are inserted in the table correctly but when i want to modify the record, the UI doesn't show the setted value for the foreign key and i must set it again before saving.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 11 months
[JBoss JIRA] (FORGE-873) Scaffold doesn't shows the correct referenced entities in edit views, while in details views shows something like "org.forgetest.model.Entity@5f9ba38e"
by claudio perrotta (JIRA)
[ https://issues.jboss.org/browse/FORGE-873?page=com.atlassian.jira.plugin.... ]
claudio perrotta edited comment on FORGE-873 at 5/6/13 10:57 AM:
-----------------------------------------------------------------
To change the string "org.forgetest.model.Entity@5f9ba38e" i maqke some changes in xhtml files
in create.xhtml and search.xhtml :
<f:selectItems value="#\{EntityBean.all\}"/>
changed to :
<f:selectItems value="#\{EntityBean.all\}" var="entity" itemValue="#\{entity\}" itemLabel="#\{entity.id\}"/>
where "#\{entity\} is the private attribute in the bean relative to the entity class and #\{entity.id\} is the label that you want to show in dropdown menu
in view.xhtml :
<h:link id="ManyToOneBean" outcome="/oneEntity/view" value="#\{ManyBean.ManyEntity.OneEntity\}">
changed to :
<h:link id="ManyToOneBean" outcome="/oneEntity/view" value="#\{ManyBean.ManyEntity.OneEntity.Id\}">
i hope it helps
was (Author: reskejal):
To change the string "org.forgetest.model.Entity@5f9ba38e" i maqke some changes in xhtml files
in create.xhtml and search.xhtml :
<f:selectItems value="#\{EntityBean.all\}"/>
changed to :
<f:selectItems value="#\{EntityBean.all\}" var="entity" itemValue="#\{entity\}" itemLabel="#\{entity.id\}"/>
where "#\{entity\} is the private attribute in the bean relative to the entity class and #\{entity.id\} is the label that you want to show in dropdown menu
in view.xhtml :
<h:link id="ManyToOneBean" outcome="/oneEntity/view" value="#{ManyBean.ManyEntity.OneEntity}">
changed to :
<h:link id="ManyToOneBean" outcome="/oneEntity/view" value="#{ManyBean.ManyEntity.OneEntity.Id}">
i hope it helps
> Scaffold doesn't shows the correct referenced entities in edit views, while in details views shows something like "org.forgetest.model.Entity@5f9ba38e"
> -------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: FORGE-873
> URL: https://issues.jboss.org/browse/FORGE-873
> Project: Forge
> Issue Type: Bug
> Components: Scaffold
> Affects Versions: 1.2.3.Final
> Environment: JBoss 7.1.1 final , Hibernate 4.2.0.final,
> Reporter: claudio perrotta
>
> For a table with a foreign key the UI permits to select the possible values, but this values are listed in a dropdown menu in a form like "org.forgetest.model.Entity@5f9ba38e" (would be preferable that the string present be relative to the PK referenced)
> Anyway, after setting this field and submitting the form, the data are inserted in the table correctly but when i want to modify the record, the UI doesn't show the setted value for the foreign key and i must set it again before saving.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 11 months
[JBoss JIRA] (FORGE-873) Scaffold doesn't shows the correct referenced entities in edit views, while in details views shows something like "org.forgetest.model.Entity@5f9ba38e"
by claudio perrotta (JIRA)
[ https://issues.jboss.org/browse/FORGE-873?page=com.atlassian.jira.plugin.... ]
claudio perrotta edited comment on FORGE-873 at 5/6/13 10:47 AM:
-----------------------------------------------------------------
To change the string "org.forgetest.model.Entity@5f9ba38e" i change in xhtml files (create, view, search) this line
<f:selectItems value="#\{EntityBean.all\}"/>
in
<f:selectItems value="#\{EntityBean.all\}" var="entity" itemValue="#\{entity\}" itemLabel="#\{entity.id\}"/>
where "#\{entity\} is the private attribute in the bean relative to the entity class and #\{entity.id\} is the label that you want to show in dropdown menu
i hope it helps
was (Author: reskejal):
To change the string "org.forgetest.model.Entity@5f9ba38e" i change in xhtml files (create, view, search) this line
<f:selectItems value="#{EntityBean.all}"/>
in
<f:selectItems value="#{EntityBean.all}" var="entity" itemValue="#{entity}" itemLabel="#{entity.id}"/>
where "#{entity} is the private attribute in the bean relative to the entity class and #{entity.id} is the label that you want to show in dropdown menu
i hope it helps
> Scaffold doesn't shows the correct referenced entities in edit views, while in details views shows something like "org.forgetest.model.Entity@5f9ba38e"
> -------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: FORGE-873
> URL: https://issues.jboss.org/browse/FORGE-873
> Project: Forge
> Issue Type: Bug
> Components: Scaffold
> Affects Versions: 1.2.3.Final
> Environment: JBoss 7.1.1 final , Hibernate 4.2.0.final,
> Reporter: claudio perrotta
>
> For a table with a foreign key the UI permits to select the possible values, but this values are listed in a dropdown menu in a form like "org.forgetest.model.Entity@5f9ba38e" (would be preferable that the string present be relative to the PK referenced)
> Anyway, after setting this field and submitting the form, the data are inserted in the table correctly but when i want to modify the record, the UI doesn't show the setted value for the foreign key and i must set it again before saving.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 11 months
[JBoss JIRA] (FORGE-873) Scaffold doesn't shows the correct referenced entities in edit views, while in details views shows something like "org.forgetest.model.Entity@5f9ba38e"
by claudio perrotta (JIRA)
[ https://issues.jboss.org/browse/FORGE-873?page=com.atlassian.jira.plugin.... ]
claudio perrotta commented on FORGE-873:
----------------------------------------
possible duplicate of https://issues.jboss.org/browse/FORGE-697
> Scaffold doesn't shows the correct referenced entities in edit views, while in details views shows something like "org.forgetest.model.Entity@5f9ba38e"
> -------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: FORGE-873
> URL: https://issues.jboss.org/browse/FORGE-873
> Project: Forge
> Issue Type: Bug
> Components: Scaffold
> Affects Versions: 1.2.3.Final
> Environment: JBoss 7.1.1 final , Hibernate 4.2.0.final,
> Reporter: claudio perrotta
>
> For a table with a foreign key the UI permits to select the possible values, but this values are listed in a dropdown menu in a form like "org.forgetest.model.Entity@5f9ba38e" (would be preferable that the string present be relative to the PK referenced)
> Anyway, after setting this field and submitting the form, the data are inserted in the table correctly but when i want to modify the record, the UI doesn't show the setted value for the foreign key and i must set it again before saving.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 11 months