[JBoss JIRA] (FORGE-479) Implement @CommandScoped to enable Plugin - Facet communication
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-479?page=com.atlassian.jira.plugin.... ]
George Gastaldi closed FORGE-479.
---------------------------------
Fix Version/s: (was: 2.x Future)
Resolution: Duplicate Issue
Duplicate of FORGE-848
> Implement @CommandScoped to enable Plugin - Facet communication
> ---------------------------------------------------------------
>
> Key: FORGE-479
> URL: https://issues.jboss.org/browse/FORGE-479
> Project: Forge
> Issue Type: Feature Request
> Components: Plugin API
> Affects Versions: 1.0.0.CR2
> Reporter: Lincoln Baxter III
>
> (05:04:44 PM) Lincoln: i want to implement @CommandScoped
> (05:04:46 PM) Lincoln: that would be nice
> (05:04:49 PM) Lincoln: and not hard to do actually
> (05:05:00 PM) Lincoln: actually, is that there?
> (05:05:13 PM) Paul Bakker: no
> (05:05:17 PM) Paul Bakker: but good idea
> (05:05:54 PM) Lincoln: easy to tie into the command execution lifecycle
> (05:06:01 PM) Lincoln: would be nice to add extension points there as well
> (05:06:04 PM) Lincoln: could be helpful for plugins
> (05:06:09 PM) Lincoln: before/after command
> (05:06:47 PM) Paul Bakker: yes should really do this, very helpful I think for plugin/facet communication
> (05:07:03 PM) Lincoln: yeah that could be a recommended pattern actually
> (05:07:11 PM) Lincoln: if it works well
> (05:07:21 PM) Paul Bakker: yep
--
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, 8 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 Vineet Reynolds (JIRA)
[ https://issues.jboss.org/browse/FORGE-873?page=com.atlassian.jira.plugin.... ]
Vineet Reynolds resolved FORGE-873.
-----------------------------------
Resolution: Done
Resolved by use of runtime decisions to render the object, through the Forge tag library. The tag library now provides a {{display}} static function, that accepts an object and returns it's representation using the {{toString()}} if it is defined by it's class. If the {{toString()}} method is not defined in the class, the primary key is used to represent it.
Pushed upstream: https://github.com/forge/core/commit/3a50900cdf7c11036acb5693c993cbb4fa34...
> 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
> Fix For: 1.3.4.Final
>
>
> 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, 8 months
[JBoss JIRA] (FORGE-1024) The generated scaffold may fail to compile when array-typed fields are present in the JPA entities
by Vineet Reynolds (JIRA)
[ https://issues.jboss.org/browse/FORGE-1024?page=com.atlassian.jira.plugin... ]
Vineet Reynolds updated FORGE-1024:
-----------------------------------
Summary: The generated scaffold may fail to compile when array-typed fields are present in the JPA entities (was: Type mismatch: cannot convert from byte[] to byte)
Description:
This is from the Sakila-h2 model and happens occasionally in this model depending on JPA field order in the {{Staff}} class, but could be more frequent in other models.
The scaffold generator is unable to distinguish between array types and corresponding primitive types, thus resulting in code that is syntactically invalid, like:
{noformat}
byte picture = this.example.getPicture();
if (picture != 0)
{
predicatesList.add(builder.equal(root.get("picture"), picture));
}
{noformat}
where the {{picture}} field in the JPA entity is of type {{byte[]}}.
This also seems related to FORGE-918 where information about array-types is lost.
Priority: Critical (was: Major)
Assignee: Vineet Reynolds
Affects Version/s: 1.3.3.Final
Component/s: Scaffold
Bumping priority to critical, since this may not be resolvable in all circumstances, and resolving the issue would require manual removal of the offending code as well as the references to the field from the {{search.xhtml}} facelet.
> The generated scaffold may fail to compile when array-typed fields are present in the JPA entities
> --------------------------------------------------------------------------------------------------
>
> Key: FORGE-1024
> URL: https://issues.jboss.org/browse/FORGE-1024
> Project: Forge
> Issue Type: Bug
> Components: Scaffold
> Affects Versions: 1.3.3.Final
> Reporter: Burr Sutter
> Assignee: Vineet Reynolds
> Priority: Critical
> Attachments: Staff.java, StaffBean.java
>
>
> This is from the Sakila-h2 model and happens occasionally in this model depending on JPA field order in the {{Staff}} class, but could be more frequent in other models.
> The scaffold generator is unable to distinguish between array types and corresponding primitive types, thus resulting in code that is syntactically invalid, like:
> {noformat}
> byte picture = this.example.getPicture();
> if (picture != 0)
> {
> predicatesList.add(builder.equal(root.get("picture"), picture));
> }
> {noformat}
> where the {{picture}} field in the JPA entity is of type {{byte[]}}.
> This also seems related to FORGE-918 where information about array-types is lost.
--
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, 8 months