Hello everybody,
Few weeks ago I started playing around with Seam and I must say I'm pretty impressed
with its capabilities. However, I'm somehow less impressed with the fact that it does
not fully cooperate with Trinidad - a component library on which I am (just as tons of
other people) heavily relying.
Let me illustrate the problem (not the first one) I'm having (maybe I'm doing
something stupid). I'm having a Trinidad table and I want to do a simplest possible
master-detail navigation to a page with details for table entry. Now:
-) As I read on this forum (and experienced myself) I cannot use Seam's extended EL
(parameters to methods) with Trinidad.
-) As I'm dealing with Trinidad table @DataModel and @DataModelSelection won't
work.
-) My first idea was to use plain <f:param> to propagate the id of table entry but I
want to do redirect to detail page so request parameters are not propagated, right?
-) My second idea was to use the Seam pages.xml mechanism for request parameters
propagation with the following navigation entry:
| <page view-id="/master.xhtml">
| <navigation>
| <rule if-outcome="viewDetail">
| <redirect view-id="/detail.xhtml">
| <param name="id"
value="#{master.selectedEntry.id}"/>
| </redirect>
| </rule>
| </navigation>
| </page>
|
But then in selectedEntry I need to figure out which table entry was clicked but for
some reason the component tree has only AjaxViewRoot root component with no children.
Hence my questions: is it normal that the component tree is not available in this
context? If not what may I be doing wrong? If so, how can I get the id of selected table
entry?
Thanks a lot for any help!
Adam Koprowski
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026912#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...