]
Francisco Jose Peredo Noguez commented on JBSEAM-3454:
------------------------------------------------------
But I do not think JBSEAM-3535 solves the problem because I do not think it makes it
possible to set a parameter to null (Does it do it?)
Recursive Entity causes strange behavior with EntityHome Id when
trying to add child Entities inside a conversation
-------------------------------------------------------------------------------------------------------------------
Key: JBSEAM-3454
URL:
https://jira.jboss.org/jira/browse/JBSEAM-3454
Project: Seam
Issue Type: Bug
Components: Framework, Tools
Affects Versions: 2.0.2.SP1
Environment: Jdk 1.6u6, JBoss AS 4.2.2.GA
Reporter: Francisco Jose Peredo Noguez
Priority: Minor
Attachments: SeamRecursionTestCase.zip
Create a Seam 2 project using JBossTools, create an @Entity with a recursive relationship
(lets name it Category), run Seam Generate Entities, run the application.
Create a category using the generated UI.
Save it with name "category 1"
Edit it.
If in Category.xhtml you click "Add category" instead of presenting a clean
form for adding the new children, it will present a form with currently selected category:
"category 1"). (This is a bug, but it is not the one I am reporting here).
So, you decide you want to fix it, and for starters you change the code in the Add
category button to this:
<s:button
value="Add category"
view="/CategoryEdit.xhtml">
<f:param name="categoryId" value=""/>
<f:param name="categoryFrom" value="Category"/>
</s:button>
Note that the value for the categoryId is now empty (it used to have the
#{categoryHome.instance.id} value). After making that change you run the application again
and:
Edit "category1"
In Category.xhtml you click "Add category" and you get what you would expect,
an empty form to add the child category (of course many more changes are needed to make it
possible to really add a child category, but that is not the issue here). In
layout/menu.xhtml you have a link to the CategoryList that looks like this:
<s:link view="/CategoryList.xhtml"
value="Category List"
propagation="none"/>
Well, you decide to add another one (just for the sake of experimenting) that looks like
this:
<s:link view="/CategoryList.xhtml"
value="Category List Propagation Begin"
propagation="begin"/>
And then you Edit "category1"
in Category.xhtml you click "Add category" and.... (here comes the bug)... the
form is not empty, the <f:param name="categoryId" value=""/>
plain just gets ignored.
I think it that the fact that now everything is running a long running conversation
shouldn't screw up this... that is the bug I am reporting here.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: