adding to it : it probably is NOT a real "seam" issue but a conflict of
hibernate lazy loading (using proxy) and the JSF implementation
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130029#4130029
Reply to the post :
http://www.jboss.com/index.html?module=b
i had already overriden hashCode en equals. that was/is not the issue as far as
I can conclude.
[ an object is equal if it has the same object ID, if no ID is present, values
are compared, hashCode accordingly, using apache EqualsBuilder and apache
HashCodeBuilder ]
the only wat to fix it was
Override equals on the entity.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129967#4129967
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4129967
___
jboss-user mailing list
i ran into the same issue. feels like a SERIOUS bug to me. at worst it should
get in the seam documentation, but a fix is preferred.
curious on your experiences or alternative solutions !
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129624#4129624
Reply to
Thanks DragosPD for the pointer.
I will try with MyFaces implementation sometime next week. Any other
alternatives? Known solution or workaround? This is quite a common usage I
believe, and surely there have been others finding this issue. I would like to
hear what you guys do to resolve this.
see http://www.techienuggets.com/Detail?tx=17739
it seems that the problem comes from RI
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115225#4115225
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115225
_
I am wondering is this issue due to using jsf ri 1.2 compared to previously
using myfaces? because our applications worked fine in 1.2 and now in 2.0 they
are broke on SelectOneMenu :(
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113136#4113136
Reply to th
i am having a similar problem.
I think 2.0.1 has a fix for it.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113134#4113134
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113134
___
Ok,
I replaced the s:selectItems by a good old fashioned f:selectItems backed to a
List
| public List getAssignableItems() {
| assignableItems = new ArrayList();
|
| for(Assignable value : this.getAv
If you can create a runnable example and provide steps to reproduce please put
an issue into JIRA so I can take a look.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106672#4106672
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mod
anybody ?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106621#4106621
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106621
___
jboss-user mailing list
jboss-user@lists.jbos
Hi all -
I actually scrapped this code and changed it to the following:
components.xml
plus a list seam-gen generated list bean:
@Name("uploadDefinitionList")
| public class UploadDefinitionList extends EntityQuery {
|
| private static final String[] RESTRICTIONS = {
|
Pete, since he is using @PersistenceContext, doesn't that rule out the
possibility of using an SMPC?
This PC is only scoped to the event, after which it is unavailable. I've been
having a null filled list problem recently and I think (haven't had time to
check) that it is tied to the PC flushin
I don't know if I have a Seam Managed Persistence Context in my components.xml.
I'm mailing this from work. But I at last did get s:selectItems to work.
What did the trick was that every @entity that is used as a source for
s:selectItems must implement a "boolean equals(Object obj)" and an "i
| @Stateful
| @Scope(ScopeType.SESSION)
| @Name("QuestionCategoryController")
| public class QuestionCategoryControllerBean implements
QuestionCategoryController {
|
| @Logger
| private Log log;
|
| @In(create = true)
| private QuestionCategoryManager
1. What does the bean that generates questionCategoryList look like?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106094#4106094
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106094
__
@Pete
Seam 2.0.0.GA
@Marius
Yes I`m sure that questionCategoryList is outjected. Anyway, this code works on
Seam 1.2.1.GA...
questionCategory entity
| @Entity
| @Scope(ScopeType.EVENT)
| @Name("questionCategory")
| @Table(name="QuestionCategories")
| public class QuestionCategory impl
Which version of Seam?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105955#4105955
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105955
___
jboss-user mailing list
jboss-us
Ah. I posted my message before you posted the exception.
Anyway: please make sue you are using the entityManager (and is named
entityManager). This seems correct according to your posted XML.
Your entity has to have a @Id. Make sure of that.
NPE seems to be at
EntityIdentifier key = new Entit
Please post the whole NPE exception.
Are you sure questionCategoryList is outjected?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105941#4105941
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105941
Exception
| 10:40:36,766 ERROR [STDERR] Nov 19, 2007 10:40:36 AM
com.sun.facelets.FaceletViewHandler handleRenderException
| SEVERE: Error Rendering View[/question.xhtml]
| java.lang.NullPointerException
| at
org.jboss.seam.ui.converter.EntityConverterStore.getEntityManager(Enti
Why do you have immediate="true"?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105223#4105223
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105223
___
jboss-user mailing li
Post your components.xml - you need to use a SMPC with s:convertEntity
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105050#4105050
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105050
I've just tested this in my app and it does get set back to NULL in the
database. Post some of your code.
Cheers,
Damian.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102865#4102865
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting
If you have the noSelection present and nothing is selected the value should be
null. Have you tested it? What value are you getting?
Cheers,
Damian.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102650#4102650
Reply to the post :
http://www.jboss.com/ind
"damianharvey" wrote : If you have the noSelection present and nothing is
selected the value should be null. Have you tested it? What value are you
getting?
If nothing is selected (i.e., the noSelectionLabel is the selected entry) and
the entity-field is null, nothing is set.
However, if the f
Oh I'm sorry I forgot to post that I finally figured what the issue was...I
changed from using @PersistenceContext to @In on the EntityManager variable in
my stateful bean.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097955#4097955
Reply to the post :
ht
What is in a proxy wrapper? The obj? That shouldn't matter, just cast it to
Person.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097823#4097823
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097823
__
Oops...I guess I spoke too soon...I'm having a related issue...This time I'm
having an issue with my edit mode...After the zipcode is added my app goes back
to a the home screen where it displays the person in a table where you can edit
it...When clicking on edit it brings up the correct record
Either use a4j:support nested inside your button using "onclick" or use an
a4j:commandButton instead of an s:button.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097130#4097130
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=
Thanks Damian...I finally got it working...In hind sight it was such an easy
solution.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096758#4096758
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096758
___
You really should take a look at some of the examples and read the reference. I
found it *extremely* useful to use SeamGen to start with. Gives you something
that works right away.
For starters, you need something to provide a list of zipcodes. In your page
you have:
But zipCodes is an entity
Here is some more information...The stack trace error that I get when running
my page:
|
|
| java.lang.IllegalArgumentException: Expected a child component type of
UISelectItem/UISelectItems for component type javax.faces.SelectOne(zipCodes).
Found null.
| at
com.sun.faces.rend
Here is what I have so far:
Here is my xhtml file:
|
| http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
| http://www.w3.org/1999/xhtml";
| xmlns:ui="http://java.sun.com/jsf/facelets";
| xmlns:h="http://java.sun.com/jsf/
is your list populated via a factory or something else that would reload its
values when the page is refreshed?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091668#4091668
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&
ok, here it is
| javax.faces.el.EvaluationException: Exception while invoking expression
#{authenticator.authenticate}
| at
org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:153)
| at
org.jboss.seam.actionparam.ActionParamBindingHelper.invokeTheExpress
Post the stack trace, use [ code ] tags.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090246#4090246
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090246
___
jboss-user mai
I have tried this but then it no longer allows me to log in.. it tells me that
the transaction failed.
I get an error invoking the login method
javax.faces.el.EvaluationException: Exception while invoking expression
#{authenticator.authenticate}
Caused by: javax.ejb.EJBTransactionRolledbackExce
Well it looks like you are trying to pass an entity to a String.
Why does user have an areaID property? If user has a many to one M:1
relationship with area, shouldn't it just have an area property? This is
assuming these are both entities.
So how about something like this
areaID
|
|
Nevermind, I misunderstood what you were telling me. Grab the jsf
implmentation sources, not the jsf view sources (xhtml files).
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4086940#4086940
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=p
How do I set a break point in an xhtml file? Netbeans allows for this (if I
remember correctly) but I can't seem to do this in RHDS.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4085672#4085672
Reply to the post :
http://www.jboss.com/index.html?module=bb&
I'm going to guess that your problem is due to the use of jstl in building the
select list. I think that you'll find that the jstl doesn't evaluate correctly
when you submit, hence you get an empty list. Grab the JSF sources and use
your debugger to see whats going on (start by breaking where
If you can produce a simple test case based on a seam-gen app from CVS I can
take a look.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4079808#4079808
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4079808
Apparently extended EL can work oddly inside iterative components :
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=115162
You could always build a Bean to hold all of this when you populate
productPropertyList.
Cheers,
Damian.
View the original post :
http://www.jboss.com/index.htm
Hi again,
it works when I use t:selectItems:)).Is it this issue a bug??
Best regards,
mb
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4079290#4079290
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4079290
___
I see...
Thank you very much for your answers!!
Demetrio
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076806#4076806
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4076806
"demetrio812" wrote : (so the same JPA session?)
Yes.
anonymous wrote : is there a way to leave the component on application scope
and then merge it in conversation scope?
You have to implement equals()
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076796#
Hi, thanks again...
I read it yesterday and I thought that giving that application scope is longer
then conversation scope it would work...
now I read it again that line:
anonymous wrote :
| Ensure that you are in a long-running conversation that spans the both the
select list creation and
Read the SeamProblemsFAQ on the wiki
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076762#4076762
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4076762
___
jboss-user mailing
I updated the project and it works now!!
Sorry for all the time you lost following me...
another little question:
I have a component in application scope:
|
|
|
I putted in application because it doesn't change after startup...
If I use it in a selectOneMenu in this way:
it seems the same bug of this one, isn't it?
http://jboss.com/index.html?module=bb&op=viewtopic&t=112337
demetrio
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076730#4076730
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=rep
I wanted to try with current CVS but I can't because it doesn't deploy coz of
the other error and I need message bundles (the page that give me the error use
them)...
So I'm waiting to solve the resourceBundle problem and then I will test it...
see the link I putted in the other post for furthe
Please post the stack trace when you try this with current CVS.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076715#4076715
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4076715
___
2.0B1, but it was a version of the july 9th...
so I'm tring with the latest one but I got some problem (see also
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=116726)
Thank for helping!
Demetrio
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=40767
What version of Seam?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076695#4076695
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4076695
___
jboss-user mailing list
jboss-use
I also tried to do not use the method and use component definition in
components.xml, if I don't use a value of the instance of articoloHome it
works, like that:
|
|
|
I manually coded the "2" value of the id of tipologiaArticolo (that's wrong, I
need dynamic value).
In
It probably subtley altered the way in which your variables were scoped. The
way you have written your code doesn't require it. milli is correct - you need
to make sure the selected object appears in the original list, otherwise
validation fails.
View the original post :
http://www.jboss.co
But why selected company has to be outjected ?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063236#4063236
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4063236
___
jboss-u
If your Company object is an entity you need to be aware of:
http://hibernate.org/109.html
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063133#4063133
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4063133
___
OK, it started to worked after i had changed:
| @Out
| private Company selectedCompany;
|
and implemented equals in Company.
It's still not clear to me why selectedCompany should be outjected in this case.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&
If you are converting ID from long to string and vice versa, why don't you try
. But you would still get the same error unless you override
equals in your Company class to equate id's.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063094#4063094
Reply to th
"[EMAIL PROTECTED]" wrote : Any output from h:messages?
Hi,
message from h:messages is:
"value is not valid"
but why ?
the Converter class:
| @Name("CompanyConverter")
| @Converter
| public class CompanyConverter implements javax.faces.convert.Converter,
Serializable {
|
|
Any output from h:messages?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4062731#4062731
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4062731
___
jboss-user mailing list
jbo
The issue with this solution is that the converter is coupled to the User class
and so will only work if the list being displayed by selectOneMenu is the one
in the user class. It isn't an issue in my particular application though.
View the original post :
http://www.jboss.com/index.html?modul
Thanks Pete. Will check out Rick's tutorial. I actually went thru his facelets
tutorial not too long ago.
If only the valueChangeEvent or selectOne objects had an index attribute that I
could read, I could use that same index to retrieve the the selected item from
my list. Seems like an odd omis
You need a JSF converter - JSF can't handle object in select boxes. Take a
look at Rick Hightowers tutorials on Developer Works for a good intro to this.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056780#4056780
Reply to the post :
http://www.jboss.com/
In early version of seam that code does work and with cvs from today not.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4038933#4038933
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4038933
___
No. Don't put it in the lib folder. Follow the examples provided for
packaging.
It looks like converter isn't getting used. As for why... You should check
with a breakpoint whether the converter is used. You could also try
registering the converter by id - org.jboss.seam.EntityConverter iir
"petemuir" wrote :
|
| Foo is the backing bean on which you wish to set the application property.
It could be just #{application} - though I'm not sure how well this works on
the whole.
ok,
1. i had entityconverter.jar into my war file
2.my project component.xml file looks like :
|
Foo is the backing bean on which you wish to set the application property. It
could be just #{application} - though I'm not sure how well this works on the
whole.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023065#4023065
Reply to the post :
http://w
sorry petemuir for my disturb :(
i tryed it for a week and could not resolve this problem,
i added ur jar file into build.xml file
|
|
|
|
|
|
Oops, no, this is better
|
|
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4022357#4022357
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4022357
___
jboss-u
At the very least it should be this
|
|
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4022328#4022328
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4022328
i can't resolve this problem yet,
anybody knows about it ?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4022290#4022290
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4022290
i can't resolve this problem yet,
anybody knows about it ?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4022267#4022267
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4022267
"petemuir" wrote : #{application.name} references a String, you are trying to
set it with a Application object. Likewise for language.Read up on JSF
converters and what they do. And take a look at the EntityConverter on the
wiki as it does what you are trying to do for you...
hi again,
fo
#{application.name} references a String, you are trying to set it with a
Application object. Likewise for language.Read up on JSF converters and
what they do. And take a look at the EntityConverter on the wiki as it does
what you are trying to do for you...
View the original post :
http:
i tryed to use another ways.
here is fragment of my program :
1. login page:
|
|
|
|
2. components.xml
|
|
|
|
3. My Converter :
| @Transactional
| public Converter getAppli
"petemuir" wrote : You've probably got errors occuring on the coversion,
validation or update model phase. Put an h:messages component on the page to
see.
hi petemuir,
u're right i put h:messages into login page and i got an error like this :
| . value could not be converted to the expected
You've probably got errors occuring on the coversion, validation or update
model phase. Put an h:messages component on the page to see.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4019302#4019302
Reply to the post :
http://www.jboss.com/index.html?module=
80 matches
Mail list logo