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
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=bbop=viewtopicp=4130029#4130029
Reply to the post :
Override equals on the entity.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4129967#4129967
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=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=bbop=viewtopicp=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=bbop=viewtopicp=4115225#4115225
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4115225
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=bbop=viewtopicp=4113134#4113134
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4113134
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=bbop=viewtopicp=4113136#4113136
Reply to the
Ok,
I replaced the s:selectItems by a good old fashioned f:selectItems backed to a
List
| public ListSelectItem getAssignableItems() {
| assignableItems = new ArrayListSelectItem();
|
|
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=bbop=viewtopicp=4106672#4106672
Reply to the post :
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 int
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
anybody ?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4106621#4106621
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4106621
___
jboss-user mailing list
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
Please post the whole NPE exception.
Are you sure questionCategoryList is outjected?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4105941#4105941
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4105941
Which version of Seam?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4105955#4105955
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4105955
___
jboss-user mailing list
@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
1. What does the bean that generates questionCategoryList look like?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4106094#4106094
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4106094
| @Stateful
| @Scope(ScopeType.SESSION)
| @Name(QuestionCategoryController)
| public class QuestionCategoryControllerBean implements
QuestionCategoryController {
|
| @Logger
| private Log log;
|
| @In(create = true)
| private QuestionCategoryManager
Post your components.xml - you need to use a SMPC with s:convertEntity
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4105050#4105050
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4105050
Why do you have immediate=true?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4105223#4105223
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4105223
___
jboss-user mailing list
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=bbop=viewtopicp=4102865#4102865
Reply to the post :
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
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=bbop=viewtopicp=4102650#4102650
Reply to the post :
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=bbop=viewtopicp=4097823#4097823
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4097823
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=bbop=viewtopicp=4097955#4097955
Reply to the post :
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=bbop=viewtopicp=4097130#4097130
Reply to the post :
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
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:s:selectItems
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=bbop=viewtopicp=4096758#4096758
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4096758
Here is what I have so far:
Here is my xhtml file:
|
| !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
| ui:composition xmlns=http://www.w3.org/1999/xhtml;
|
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=bbop=viewtopicp=4091668#4091668
Reply to the post :
Post the stack trace, use [ code ] tags.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4090246#4090246
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4090246
___
jboss-user mailing
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
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
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:
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=bbop=viewtopicp=4086940#4086940
Reply to the post :
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
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=bbop=viewtopicp=4085672#4085672
Reply to the post :
Apparently extended EL can work oddly inside iterative components :
http://www.jboss.com/index.html?module=bbop=viewtopict=115162
You could always build a Bean to hold all of this when you populate
productPropertyList.
Cheers,
Damian.
View the original post :
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=bbop=viewtopicp=4079808#4079808
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4079808
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=bbop=viewtopicp=4079290#4079290
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4079290
What version of Seam?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4076695#4076695
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4076695
___
jboss-user mailing list
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=bbop=viewtopict=116726)
Thank for helping!
Demetrio
View the original post :
Please post the stack trace when you try this with current CVS.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4076715#4076715
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4076715
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
it seems the same bug of this one, isn't it?
http://jboss.com/index.html?module=bbop=viewtopict=112337
demetrio
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4076730#4076730
Reply to the post :
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:
| framework:entity-query name=linguaAll
| entity-manager=#{entityManager}
| ejbql=select lingua from
Read the SeamProblemsFAQ on the wiki
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4076762#4076762
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4076762
___
jboss-user mailing
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
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 :
I see...
Thank you very much for your answers!!
Demetrio
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4076806#4076806
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4076806
___
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:
| framework:entity-query name=statoArticoliAll
| entity-manager=#{entityManager}
| ejbql=select
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 :
[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 {
|
|
If you are converting ID from long to string and vice versa, why don't you try
s:convertEntity /. But you would still get the same error unless you override
equals in your Company class to equate id's.
View the original post :
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 :
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=bbop=viewtopicp=4063133#4063133
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4063133
But why selected company has to be outjected ?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4063236#4063236
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4063236
___
jboss-user
Any output from h:messages?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4062731#4062731
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4062731
___
jboss-user mailing list
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 :
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=bbop=viewtopicp=4056780#4056780
Reply to the post :
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
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=bbop=viewtopicp=4038933#4038933
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=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
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
| copy todir=${war.dir}/WEB-INF/lib
| fileset dir=${lib.dir}
| include name=ajax4jsf.jar /
|
h:selectOneMenu styleClass=font_style value=#{foo.application}
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 :
petemuir wrote : h:selectOneMenu styleClass=font_style
value=#{foo.application}
|
| 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
i can't resolve this problem yet,
anybody knows about it ?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4022290#4022290
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4022290
___
At the very least it should be this
h:selectOneMenu styleClass=font_style value=#{foo.application}
|s:selectItems value=#{applications.resultList} var=name
label=#{application.name}/
|ec:convertEntity /
| /h:selectOneMenu
View the original post :
Oops, no, this is better
h:selectOneMenu styleClass=font_style value=#{foo.application}
|s:selectItems value=#{applications.resultList} var=application
label=#{application.name}/
|ec:convertEntity /
| /h:selectOneMenu
View the original post :
i can't resolve this problem yet,
anybody knows about it ?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4022267#4022267
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4022267
___
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
#{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 :
75 matches
Mail list logo