Seam automatically injects parameters when you call a method. Best thing is to
split your datamodel onto another seam component.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098496#4098496
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=p
Hi,
asked this question again [1] with a little more details, and got it sort of
working.
Turned out that I had to invoke an action method for the selected value to get
outjected properly, as suggested in the other post I just call an empty action
mehtod.
Not sure that I'm doing everything cor
I think you should put
@Factory("searchResults")
public String performSearch(){
int nbrHits = RandomUtils.nextInt()%10;
List tmpList = new ArrayList(nbrHits);
for(int i=0; ihttp://www.jboss.com/index.html?module=bb&op=viewtop
Hi again,
when looking at post [1] which seems to have had my problem the main difference
I find is that the @Factory annotation is used to initialize the List backing
the datamodel.
In my test app I initialize the List backing the datamodel via the
performSearch action(which rerenders the pag
Don't use @DataModel with @Out.
Don't use @DataModelSelection with @In.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3975626#3975626
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3975626
__
You can use @Out with @DataModelSelection. Just like you can use @Out with @In.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3975638#3975638
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3975638
___
Is this ok?
| @Out(value = "task", scope = ScopeType.SESSION)
| @DataModelSelection(value = "tasks")
| Task task;
|
Btw, also is it "legal" to have @DataModelSelection in another SFSB than from
where the @DataModel originated? It didn't work, atleast on my portlet
environment w
BINGO! Thanks Gavin.
Is the @Out incorrect in the tutorial as well?
@DataModel
| private List messageList;
|
| @DataModelSelection
| @Out(required=false)
| private Message message;
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3975629#3975629
R
ie. Look again at the examples.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3975627#3975627
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3975627
___
jboss-user mailing list
I'm very doubtful that it's something on the JSF side. I removed every column
with the exception of this one and it still didn't work. It seems pretty clear
to me that there is an informational disconnect in the injection. Do all of my
annotations appear correct?
| @Stateful
| @Scope(
I can't see a problem with what you are doing. It's quite simple, it should
'just work' using a JSF datatable and h:commandButton/Link.
I suggest the standard approach: start with a simple table with clickable links
(see some of the examples), make sure it is working, and make your additions
s
Is there any requirement of the client to pass a unique identifier back to the
SB? Just a thought, though I saw nothing indicating this in the Messages
tutorial.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3975602#3975602
Reply to the post :
http://www.j
Thanks for the reply. I removed the immediate attribute, to no avail. It
appeared, however, that because the rows were uniquely named in the resulting
JSP, that it should have worked regardless. As you might have gleaned from the
JSF, I also implemented a paginator. FWIW, If I were to traver
anonymous wrote : updated in immediate=true
updated when immediate=true
Sorry
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3975539#3975539
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3975539
__
I don't know if this is the case, but I'm not sure that the DataModelSelection
will be updated in immediate=true (and to me it seems unecessary on that page).
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3975538#3975538
Reply to the post :
http://www.jboss.
Sure, sorry. I highlighted the commandLink of interest.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Can you show your jsf?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3975527#3975527
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3975527
___
jboss-user mailing list
jboss-us
Thanks. Below is my source code:
SysConfig2Bean:
| package com.abc.test.session;
|
| import static javax.ejb.TransactionAttributeType.NOT_SUPPORTED;
|
| import javax.ejb.Remove;
| import javax.ejb.Stateful;
| import javax.ejb.TransactionAttribute;
| import javax.interceptor.Inte
"bfo81" wrote : I think @DataModelSelection only works when you use s:link ;).
For me, It didn't work with s:link. But I make it work with commandButton...
see
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=88100
anyway, What about your entityList factory?. Can you post your entire b
No, it quite definitely works without s:link
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963165#3963165
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3963165
___
jboss-user
I think @DataModelSelection only works when you use s:link ;).
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963156#3963156
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3963156
it is typo error but it also doesn't work even correcting it. any other thing i
missed?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963124#3963124
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3963124
__
You seem to be missing a { in your JSF
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963116#3963116
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3963116
___
jboss-user maili
23 matches
Mail list logo