In regards to ordering in 2.0.8:
The ordering is not a concern. The problem is that both persistence.xml files
are loaded and parsed. So my solution is important to ensure that the main
persistence.xml is not used for unit tests.
View the original post :
Done
http://jira.jboss.org/jira/browse/JBSEAM-2424
Thanks,
Andrew
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4115217#4115217
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4115217
Seam's TestNG support is quite nice, but there is one major design flaw that
really affects test case design.
The test classes are designed to be used as a black box. The init and cleanup
methods are made to be used at the class instance level. Ramping up Seam is
very slow. My project, which
For those that are interested, here is my hack:
TestBase.java:
| private static TestBase instance;
|
| /**
|* @see org.jboss.seam.mock.SeamTest#init()
|*/
| @Override @BeforeClass @BeforeSuite
| public synchronized void init() throws Exception
| {
| if
I got it working, but it was a configuration pain. For those that read this
post here is a very quick howto:
| * create src/main/conf - this will be files that are added to the war but
not added to target/classes on build (and therefore will not interfere with
testing)
| * move
I have finally got the maven unit tests through testng running, but they are
failing.
I want to have two databases, one for tomcat deployment and one for my unit
tests. The problem is that the seam configuration is picking up my
src/main/resources/META-INF/orm.xml and
Never mind. Figured out all the necessary parameters can go in the persistence
properties and there is no need to create a datasource.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4113630#4113630
Reply to the post :
I am having issues trying to figure out how to configure my unit tests to test
my entities and seam components. I am running in the JPA environment. I made a
test base class to setup the entity manager. I am just not sure how to hook up
the EntityManagerFactory with my datasource.
Test class
Thanks,
That was all I needed to know. Now I just need to figure out what jar provides
LocalOnlyContextFactory besides the embedded:
Caused by: java.lang.ClassNotFoundException:
org.jnp.interfaces.LocalOnlyContextFactory
| at
I used the JPA as an example. I did find the problem though. I had a few extra
config files still around from before, so I deleted them and that fixed the
issue
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4111711#4111711
Reply to the post :
I am trying to upgrade my application from Seam 1.2.1 to 2.0.0. It seems like
the embedded support is much worse now though. This is what I had in a maven
built war (subset of what I am using):
MyFaces 1.1.5
Facelets 1.1.14
Seam 1.2.1
Trinidad 1.0.5-SNAPSHOT
Drools (for security with seam)
EJB
Also,
Is it possible to run Seam 2.0 with the Embedded EJB3 instead of JBoss Embedded
(As I mentioned, that configuration was *much* better)?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4111420#4111420
Reply to the post :
I created a bug:
http://jira.jboss.com/jira/browse/JBSEAM-1803
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4074520#4074520
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4074520
I just came across this myself. It is a bug with the component UIFormattedText.
UIFormattedText extends UIOutput which sets the renderer type to
javax.faces.Text, but UIFormattedText doesn't have a renderer.
UIFormattedText should be setting the renderer type to null in the constructor,
but
I've got the seam rules engine installed and am trying to write a drl file to
grant access to my entities. I have a class that is restricted. Relevant beans:
@Name(calendar)
CustomerCalendar {
members : List
}
CalendarMember {
user : User
}
User {
username : String
}
The CustomerCalendar
Nevermind got it to work. I made an additional call to Pages.enterPage for my
includes after the buldView call in the view handler.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4072261#4072261
Reply to the post :
okay:
http://jira.jboss.org/jira/browse/RHDS-67
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4070168#4070168
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4070168
___
jboss-user
When I use #{s:hasRole('test')} in a facelet view it works. However, when I try
to use
facesContext.getApplication().createValueBinding(#{s:hasRole('test')}); I get
the following error:
...
| Caused by: javax.faces.el.ReferenceSyntaxException: Functions not supported
in expressions.
I keep having Eclipse continuously crash on me. There seems to be some kind of
conflict between the code completion using the browser and the jboss tools
using the browser.
If I open an XHTML file, I can no longer use the code completion (crashes
eclipse in the XUL shared library).
If I
I have installed the nightly JBossTools for eclipse 3.3 and am trying to use
the hibernate console to run HQL queries in a JPA session context. Everything
is working except for the seam listener that is throwing exceptions in eclipse.
In my META-INF/orm.xml I have:
...
entity-listener
I installed the plug-ins for the JBossTools nightly and had the red hat
developer studio (RHDS) functionality working. I then wanted to edit a Drools
file, so I went to the update site and installed the JBossIDE 2.0.0.Beta2
drools plug-in version 3.0.4.
Once I did that all the Exadel/RHDS
I just installed the nightly tools
(JBossTools-200706241629-nightly-ALL-linux-gtk.zip) and was re-adding JSF
support to my project. When I am doing so, the servlet version drop down has
2.3 and 2.4. How can I get 2.5 support?
View the original post :
I have setup the Drools based security with a Seam project residing on Tomcat
6. I am getting an exception of:
Caused by: java.lang.IllegalArgumentException: The rule called TestRule is not
valid. Check for compile errors reported.
(stack)
In the tomcat6/logs/localhost.2007-06-22.log file.
In seam 1.2.1 in RuleBase.java there is the following code:
packageDescr = new DrlParser().parse(drlReader);
It never checks to see if the parser had any errors and therefore does not log
them. Even worse, DrlParser is not a local variable to even have a look at
using a debugger, and the
Gavin,
I am no longer sure if this is a seam problem after all, but a problem with
drools.
In rules 3.0.6 (the only source I could get my hands on),
The Rule.isValid() has:
if ( this.consequence == null || !isSemanticallyValid() ) {
but nowhere in the code is the consequence set, so it is
Okay, found the issue. I used maven to build my war, and I built the
dependencies that pulled the jars from maven central. It appears those are
incompatible with the Seam setup.
What I had from maven:
commons-jci-core-1.0.jar
commons-jci-janino-1.0.jar
drools-compiler-3.0.5.jar
http://jira.jboss.org/jira/browse/JBSEAM-1243
Will try to get some example code working to reproduce it
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4040322#4040322
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4040322
I have an AJAX'd (A4J) page that shows a dialog. There is a link that opens
that dialog. The action of that link is annotated with
@Begin(ifOutcome=success, nested=true)
The OK button of the dialog (a4j:commandLink) calls:
@End(ifOutcome=success)
| public String applyChanges()...
There is
I keep losing my conversation when using a redirect.
Environment:
Seam 1.1.6
A4J 1.1.0
MyFaces 1.1.5
Page flow:
1) user hits landing page (conversation started from pages.xml)
2) user clicks link (conversation still active, also a join=true used on action
method)
3) user fills out information
Some how it seemed like an error was getting processed. So I commented out the
following from web.xml:
error-page
| error-code500/error-code
| location/displayError.jsf/location
| /error-page
| error-page
| error-code404/error-code
|
shouldn't normally need such verbose in/out declarations
-1
It is often very helpful with rendering specific member variables with
conversation or session scoped beans. For example, a SELECT box may use a
selectItems that takes a List return value from a backing bean. If this were to
be
I find things defined in XML files to be very hard to maintain and try to stay
away from them and use annotations instead. Also putting variables not tied to
beans into the request scope also makes it hard to maintain -- as it is hard to
determine what bean put them there. I like to bean
http://jira.jboss.org/jira/browse/JBSEAM-903
I put in @Bidirectional. @Bi doesn't sound any less perverted than @InOut :-).
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4020637#4020637
Reply to the post :
Before making this an official JIRA request, I wanted to make sure that there
wasn't already something out there that I missing.
IMO, it would be great to have an InOut annotation that can combine In and Out
to avoid excessive typing. Examples:
Now:
@In(required=false, value=someString,
Is there any way to get notifications of JBoss-Seam releases via RSS
(preferably) or at least email? I know I can get email of every post, but I
just release notifications if possible.
Thanks
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4013098#4013098
I just tried to upgrade Seam from 1.1.0 to 1.1.6 and I can no longer deploy our
EAR/WAR. We are running facelets 1.0.14 and cannot switch to 1.1.x at this time
due to compatibility breaking changes in 1.1.x. Seam is now throwing:
10:44:47,253 ERROR [[/OSoft]] Exception sending context
Just tried 1.1.1, and it looks like the problem is there as well. This is
unfortunate as 1.1.1 has bug fixes for bugs that are affecting us.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4013183#4013183
Reply to the post :
It looks like the problem is:
org/jboss/seam/ui/facelet/FaceletsRenderer.java
I don't see any code referring to this class or any configuration referring to
it (including the @Name(renderer)). What is the purpose of this class?
View the original post :
We cannot upgrade facelets due to the fact that 1.1 breaks backwards
compatibility.
I deleted that class and rebuilt the jars for 1.1.6 and it seems to work. Is
email the only thing that will be broken without that class?
View the original post :
I am trying to send a hierarchy of java objects back to the JS client using
Seam remoting. The call is working, I am getting the top level class back fine,
but the data in that class is undefined. I have turned on debugging and the
result looks fine to me. I am not sure what is wrong.
Return
Fri Jan 26 2007 14:20:22 GMT-0700 (MST): Request packet:
|
envelopeheadercontextconversationId2/conversationId/context/headerbodycall
component=insightDashboard method=getKpis id=0
| params/paramsrefs/refs/call/body/envelope
|
| Fri Jan 26 2007 14:20:22 GMT-0700 (MST): Response packet:
Never mind found the solution. I needed to tell the proxy script:
/seam/remoting/facesInterface.js?insightDashboardamp;com.outlooksoft.cpm.insight.dashboard.DashboardKpi
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4007036#4007036
Reply to the post :
Never mind, found the description in the docs
http://docs.jboss.com/seam/1.1GA/reference/en/html/annotations.html#d0e6964
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4005852#4005852
Reply to the post :
I have an event listener with an End attribute on it inside of a conversation
scoped bean:
@Observer(UserContextUtils.APP_SET_CHANGE_EVENT_NAME)
| @End
| public void currentViewAppSetChanged(CurrentViewApplicationSetChangeEvent
evt) {...}
There is no nested conversation when this
Thank you @End(beforeRedirect=true) was exactly what I was looking for.
Didn't realize the conversation would propagate with the redirect filter and
having the End.
Is there documentation on this (if so I'd like to see if there is more that I
wasn't aware of)?
View the original post :
I just started having issues with the conversation IDs with AjaxAnywhere:
Below is in the format of: Action (AJAX state, Conversation action,
conversation ID)
1) create new report (AJAX, Begin/join, #22)
2) Next page (AJAX-redirect, same, #22)
3) Add new item (AJAX, Begin/nested, #25)
4) Finish
Please help! This is a crucial show stopping bug with 1.1. I am having null
pointer exceptions all over my code (and not just with circular dependencies)
because Seam keeps setting all of my member variables to null right in the
middle of method calls!
I haven't been able to pinpoint exactly
A circular call in Seam 1.1 causes null references to injected values.
Circular call use case:
@Name(a)
| public class A {
| @In(create=true)
| private B b;
|
| public void doSomething(ActionEvent evt) {
| b.thisWorks();
| b.nullPointerHere();
| }
|
| public void
Just found the bug for this (was already open):
http://jira.jboss.org/jira/browse/JBSEAM-631
This is a show stopper for us, so please upgrade the severity to Blocker
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3997285#3997285
Reply to the post :
We are having the same issue, and the work-around is not acceptable (we cannot
pass this around, as B is not always called by A).
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3997289#3997289
Reply to the post :
Okay, that fixed the inner class problem (I moved my code to an external
class). However, I am getting exceptions, where it *should* be working. I have
a class that is called via EL, it is SESSION scoped, and the @In(create=true)
variables are still null! I don't know if there is some kind of
A little more information. I found a work-around, but not sure why it works.
The method:
changeCurrentViewSelection(currentDimensionName, oldValue, newValue.getKey());
Causes a seam event to be thrown and some other things. When that method
returns my injected member variables are set to null
I needed some functionality from seam 1.1 compared to 1.0.1, so I just tried to
upgrade and I'm having some really bad luck. The worst is problems with the
@In(create=true) annotation.
Exception:
java.lang.NullPointerException
| at
It looks like Seam is no longer intercepting all of my calls. Normally the
stack would be full of proxy class names. Below, there are no proxies, only
the real classes. So it seams something has changed that seam is no longer
createing the proxy.
here is the stack:
at
Here is the stack from the inner-class constructor:
16:26:38,374 INFO [STDOUT] java.lang.Exception: Stack trace
| 16:26:38,375 INFO [STDOUT] at
java.lang.Thread.dumpStack(Thread.java:1158)
| 16:26:38,375 INFO [STDOUT] at
An inner class is part of the outer class. If the outer class as @In variables,
they should be visible from the inner class. Inner classes are not independant
of their outer classes. It worked just fine in 1.0.1.
Are you saying that this is no longer supported?
View the original post :
Tomahawk Seam guys, is there a way we can end the flame wars?
I am using Tomahawk and Seam together for two projects and have not had many
issues (at least that I know of). Instead of saying don't use tomahawk or don't
use seam, why don't we just work through bugs and fix the issues. Both
I looked into this a bit, and it seems like I would need a change to the
Pages.java in the seam core package. Right now the method I could use (that
takes a view-id as a parameter) is marked private (1.0.1). That method could be
used to check a view that is not the current view root.
View the
The pages.xml features have been invaluable for executing actions when a page
is loaded. I also see that it now has support for changing the view if a
conversation is not active.
These features are great, but unfortunately on apply to root views. Ajax4Jsf
has a include tag that pulls in a
I ended up creating a special return class that can hold a value as well as
return an exception to the client caller, but I would be nice to be able to
have this automatically wrapped. I tried a custom annotation and interceptor on
my @WebRemote method that would catch exceptions and change the
One more question,
Do @Render/@Redirect work with Seam remoting @WebRemote methods, so that the
page can be redirected to a new view if the @WebRemote method fails with an
exception?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3989390#3989390
Reply to the
I am curious on the recommended way to handle errors in the Seam remoting
calls.
Since Java doesn't have multiple return value support it is hard to return one
type of data (like an int) and also return error information to show to the
user.
I could develop some kind of special return value
Seam 1.0.1 GA
My remoting just stopped working on my POJO:
java.lang.RuntimeException: No compatible method found.
| at org.jboss.seam.remoting.Call.execute(Call.java:118)
| at
org.jboss.seam.remoting.ExecutionHandler.handle(ExecutionHandler.java:92)
After looking at the
Seam version 1.0.1
I just had an NPE in my site. The page almost always works, so this is hard to
reproduce. The use case is this:
Web page with a conversation that has two IFRAME references. These IFRAMES
contain the same JSF page URL but two difference parameters of what to load.
Using the
I have a question regarding @Out and its use without the scope parameter.
JavaDoc:
ScopeType.UNSPECIFIED: Indicates that the scope is implied.
So, I assumed wrongly that this would use the scope of the managed bean that it
is in:
@Name(mybean)
| @Scope(ScopeType.CONVERSATION)
| public
Great news. Thank you. Can't wait for 1.1, looks like it has a lot of nice new
functionality
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3978280#3978280
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3978280
I just tried a little demo of using seam remoting in my JSF app using Seam, and
found that I can't use it for my needs. We have a lot of code that uses the
FacesContext and its internal classes for our beans methods. It looks like
Seam doesn't create a FacesContext inside of the remoting
I would like to have unique validation for a user object's username in a JSF
page. Ideally, it will create a faces message and mark the UI input component
as not valid when not unique. It should allow the value if the object is the
same and the property hasn't changed (the user found in the
I have an issue in which a 3rd party control is attempting to access a bean
property of a conversation state bean during the decode phase. This property
returns null (which the 3rd party control hates) when there is no conversation.
So I thought that I would add a custom method interceptor on
Unfortunately I am stuck in POJOs for this project at the moment and the
@Interceptors doesn't seem to work with them. I think I'll use another
work-around.
Good to know that is a TODO item though. Thank you,
Andrew
View the original post :
Okay, I am observing some odd behavior. I have a backing bean with a custom
validation method. In there I added a validation error message using the
FacesMessages.add(String, FacesMessage) method. However, when I debug the faces
context, the message is there, but the component ID is not. If I
I am trying to track down some slow code in my JBoss/JBoss-Seam JSF code. After
debugging into the source, I have found the culprit. The problem is in the code
that is attempting a JNDI lookup. This lookup is resulting in a
CommunicationException with the message Receive timed out.
The code
No dice unfortunately, still a problem. I started BIND for DNS caching and
although it made my internet a little faster, it didn't help JBoss at all
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3957181#3957181
Reply to the post :
After the execute phase there is a large delay in my application. I went
hunting it down to find out why. I found the slowness in Seam.
From inside of isTransactionAvailableAndMarkedRollback of Transactions.java,
the return (UserTransaction)
74 matches
Mail list logo