-
1. Re: Commandbutton doesn't work inside dataTable
rorschach Dec 15, 2005 12:18 PM (in response to janbols)I'm experiencing the same problem using a Conversation scoped action bean.
Neither commandButton, nor commandLink will function in the datatable structure, and both return an empty table without appearing to invoke the method to which they are linked. -
2. Re: Commandbutton doesn't work inside dataTable
rorschach Dec 21, 2005 4:58 PM (in response to janbols)After further investigation, it appears this is a "JSF" specific problem and not particular to Seam.
Still researching. -
3. Re: Commandbutton doesn't work inside dataTable
rorschach Dec 21, 2005 5:35 PM (in response to janbols)Apparently the default scope set to the underlying DataModel is what's causing my particular issue. If I set the scope on my @Datamodel manually (using the @Out annotation) to Session, or Conversation, the command button fires the method as expected.
-
4. Re: Commandbutton doesn't work inside dataTable
gavin.king Dec 21, 2005 5:41 PM (in response to janbols)In the CVS version, @DataModel gets its scope from the component that owns it (unless the component is STATELESS). This would always be correct.
Btw, make sure you are using a current CVS build of Seam. There were many bugfixes in this area. -
5. Re: Commandbutton doesn't work inside dataTable
drapierwim Jan 3, 2006 5:43 PM (in response to janbols)I've used the latest CVS version, and still no success with the commandButton in a datatable, also set the scopetype to UNSPECIFED and PAGE as well as the default CONVERSATION for my SFSB
This is what i've done...
I've created in the footer of the columns inputfields a link and a submitbutton none of this worked. The link is used retrieve an object, inputfields for my object values and submitbutton for adding the object to the datamodels list
I'm sure this is not a JSF problem because it works well only using myfaces
Are there any solutions for this problem. -
6. Re: Commandbutton doesn't work inside dataTable
gavin.king Jan 3, 2006 6:26 PM (in response to janbols)I guess I don't really understand. There are lots of examples of clickable links in the example apps.
Why not just start from something in one of the example apps, and work from there? -
7. Re: Commandbutton doesn't work inside dataTable
drapierwim Jan 3, 2006 6:41 PM (in response to janbols)It's just when your datatable is wrapped inside a form button and link won't work anymore, why I don't know
when a datatable is not wrapped in a table links works fine but button and everything else is useless.
Is there an example of using a dataTable inside a form available in the provided samples? -
8. Re: Commandbutton doesn't work inside dataTable
gavin.king Jan 3, 2006 8:01 PM (in response to janbols)Sure there are examples of that.
-
9. Re: Commandbutton doesn't work inside dataTable
udo.krass Feb 16, 2006 7:34 PM (in response to janbols)Hi,
the examples work very well and I am so glad about your frameworks (hibernate+seam).
But I don't know why the commandLink will not work sometimes in the datatable! First i thought thats my incapability, but i see that some developers have this problem, too.
That's so strange! I work with the latest CVS and i posted this feature/bug a few month ago http://www.jboss.com/index.html?module=bb&op=viewtopic&t=72404.
Since there I hoped for a solution...
I tried to isolate that bug with no success.
Has anyone a workaround for that problem?
Has anyone an idea? -
10. Re: Commandbutton doesn't work inside dataTable
udo.krass Feb 16, 2006 8:08 PM (in response to janbols)Hi,
my webapp will work when i add
@Scope(ScopeType.SESSION)
to my animal-testapp.
janbols did it at his webapp...
jan can you take an unequivocal stand on that?
Thanx.