Hmm, that is odd. Can you post the relevant portions of your xhtml and also
your template?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4129696#4129696
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4129696
Pete was exactly right in my case. I was using the edit.xhtml template that
did validation. For search fields you shouldn't use your edit template.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4129230#4129230
Reply to the post :
I'm using the EntityQuery framework class, and it's working fine. As per the
seam docs I'm using the Example object to hold query parameters. It works very
well.
BUT, Seam is running the validations on the example object, validation fails,
and the search can't proceed. While the entity
Got it!
Approach stolen from AuthenticationFilter. Essentially the issue is that
identity.login() needs to run with Seam contexts initialized, BUT the filter
apparently runs before these are initialized by Seam. Here's what works:
new ContextualHttpServletRequest(request)
|
I'm implementing simple custom SSO, and am struggling to find the correct place
to perform an implicit login when the user first hits the application.
I had thought that a filter would be the natural place for this, and have a
SsoFilter created and registered with SeamFilter. This works as I
Is anyone else able to run a newly-created seamgen project? Seam from cvs
head. Build seam, run seamgen. Deploy the project to Jboss 4.2.2. For me it
explodes while starting up Identity, spitting out such large stacktraces that
I'm having trouble diagnosing. I added some extra info to
Check out the wiki example in the seam source. I bet that'll be what drives
the community site. Incidently the wiki example is an excellent place to look
at to see a non-trivial seam application. I've learned a lot from it.
View the original post :
Seam is built using JDK 5 features. IBM is a little, er, more patient than
their customers regarding JDK 5, and so decided to wait until their Websphere
6.1 release to start using JDK 5. So unless you're deploying to WAS 6.1,
you're not going to be able to use Seam.
View the original post :
anonymous wrote : I'm starting to see more and more that it is about aiding the
programmer with managing object lifetimes and function specific features such
as wizards, rather than giving the user free reign to edit as many instances of
objects at the same time as they want in a controlled
Btw take a look at the wiki example. There's a pretty nice example of doing
exactly this.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4079371#4079371
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4079371
Nice. Your experience binding seam via FDS sounds similar to that of someone
who began the same thing for GDS. The guys developing GDS have listed Seam
integration as one of their main priorities for the 1.0 release, as described
in http://tech.groups.yahoo.com/group/graniteds/message/539.
No tinkering yet, but I've done quite a bit of research.
The approach I'm most drawn to is the optimized flex remoting support. The
serverside impl from Adobe (Flex Data Services) costs on the order of
$20,000/CPU apparently... #$%^ scratch that. I just stumbled on
I wonder if there's interest in discussing the pros and cons of ways a Flex UI
might communicate with a Seam backend.
In a previous thread someone described using the Seam Remoting support and the
AjaxFlex bridge http://www.jboss.com/index.html?module=bbop=viewtopict=114080.
Another way would
Oh, duh. Ixnay my last suggestion - using the Spring - Flex Data Services
integration as a crutch. Turns out that's a user-provided adapter between FDS
and Spring. So going that route would be silly. It's just a small class you
register with FDS via web.xml.
I'm curious about this as well. I understand that binding JSF components to
logic in Seam component is somewhat impure. But occassionally it's needed.
Pete, do you suggest avoiding binding because it won't work with Seam or
because it isn't as elegant?
View the original post :
The seam component lets you bind to a stream. You can then do just what Shane
suggests. Here's how I use it:
private InputStream uploadFileInputStream;
|
and
s:fileUpload id=catalog
data=#{catalogUpdate.uploadFileInputStream}
|
Thanks Dmitriy. I'll try that again.
As for slow test startup, I try to design so that much of the interesting
logic can be tested in vanilla unit tests (not extending SeamTest) with
dependencies filled via JMock. Because you're right, waiting 15 seconds for
the test to start up slows things
ellenzhao wrote : There are two solutions:
|
| 1.delete the Janino compiler in Seam lib and use Eclipse compiler. You can
get the Eclipse compiler after downloading the Drools 4.0 binary. In the
drools/lib, you see a core-.jar. That is Eclipse compiler. Drop it into
your Seam lib
Yeah, I hit the same thing not long ago. Look carefully at the package names:
tried to access field org.jboss.seam.web.Ajax4jsfFilter.del
| egate from class org.jboss.seam.ui.filter.Ajax4jsfFilter.
I don't remember the exact fix, but I think it was that I referred to the wrong
filter in one
Oh, and after doing the above, drools is now not working when I startup the app
for real - so obviously I've done something wrong. Here's what I see:
Caused by: java.lang.NoSuchMethodError:
org.drools.compiler.PackageBuilderConfiguration.setCompiler(I)V
| at
Thanks Shane. It works fine from within JBoss, but when I run the unit test
here's what I see:
FAILED CONFIGURATION: @BeforeMethod begin
| org.drools.RuntimeDroolsException: Unable to load dialect
'org.drools.rule.builder.dialect.java.JavaDialectConfiguration:java'
| at
Could you please post the showAll() method (and any annotations) as well as the
stacktrace?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4065895#4065895
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4065895
I'd use seam-gen to create a blank new project, then carefully compare your
config files with those in the new project. This will always work, as seam-gen
is generally quickly updated to reflect seam changes (and has helped me several
times).
View the original post :
While I haven't used it via EJB3, in the past I've done unit testing using
ActiveMQ as a JMS provider. It can be configured to run purely in-memory,
which is ideal for unit tests
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4064303#4064303
Reply to the post
I think you would want to run your app with a profiler and find out,
empirically, where your app is spending its time. I think most commercial
profilers have trial versions, and there are a variety of ways to do this.
Your app design based on Seam/JSF is no doubt quite different than it was
mgrouch wrote : Use factories for stateless objects such as DAOs (so they
are created once and not repeteadly created/destroyed).
|
| ...
| Do not forget to cache JNDI lookups.
|
Again, you can certainly spend time doing this kind of stuff on the off chance
that it will improve
Could you post example code? If you're extending SeamTest the mock contexts
are setup for you.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4056858#4056858
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4056858
It's definitely possible, but I don't know how to make it pretty. Here's an
example from one of my tests:
log.info(Begin testing initial mapping);
| setViewId(MappingViewId.APPLICABLE_FIELDS.id);
| invokeMethod(#{catalogMapping.beginForInitialMapping()});
No, I haven't seen examples of the MOCK precendence. But think I remember
Gavin describing that it would always be used if it was present. That is, it
should be in your classpath during tests, but not when you run it. Seam would
always install the component marked with MOCK precedence if it
It does work, but you really have to carefully simulate the browser to make it
work. Note that those methods are all in SeamTest (now no doubt in
BaseSeamTest). You'll find methods there to set request parameters and other
things that simulate the browser.
View the original post :
Nothing in seam limits its use to web clients, though obviously a large amount
of effort has been put into making JSF development smoother. A swing client
can access a seam backend via EJBs remotely (right? I don't think you'd get
conversational support though that's less important anyway with
Hmm. I'm not seeing the class org.jboss.seam.core.ConversationPropagation in
Head, and this is causing compilation errors for me after todays update from
CVS (most recently, just a minute ago). Am I doing something wrong or is there
something that still needs to be checked in?
View the
I was wondering the same thing myself. Is this complimentary to Seam, or is it
accomodating non-seam jsf? I know it's a brand new project, so forgive us if
we're being a little too impatient in our curiosity...
View the original post :
First, this is with Seam 1.3alpha, from CVS, Jboss 4.2.0GA, on OS X.
I'm able to run the other seam examples I've tried, but seam-discs gives me the
following exception when I hit the landing page.
13:42:05,448 ERROR [ExceptionFilter] uncaught exception
javax.servlet.ServletException: Servlet
According to the
http://jira.jboss.com/jira/browse/JBSEAM?report=com.atlassian.jira.plugin.system.project:roadmap-panel
it should be in the 1.3Alpha release his week (or maybe next?).
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4052610#4052610
Reply to the
He's on a well deserved trip to Chile!
http://pmuir.bleepbleep.org.uk/
Hope you have a blast Pete.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4051783#4051783
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4051783
Well the idea behind a4j is to asynchronously issue xml get requests, and
update the page without doing a page refresh.
file updload is, by definition, post-based. The whole form is submitted as a
specially encode post, as per the http spec.
View the original post :
Thanks for such a thorough writeup and example on this Rob.
I'm exploring using this now that gwt 1.4RC is out, using the latest seam from
cvs. Any updates or other things those of us exploring using your approach
should be aware of before I jump in?
Thanks :-)
View the original post :
When i did this, I took one of the converted seam examples, made sure I could
get it to run, then carefully made sure my configuration and setup looked like
the example. All of the examples in cvs are now like this, so if you can live
with it being an unreleased seam version (next version
s:button results in a get, not a post. I think you want h:commandButton.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4047895#4047895
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4047895
once you've checked out the source, just type 'ant'. it will create all of the
dist jars for you.
Richfaces is a separate project of course, with a different build mechanism
(maven I think).
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4048029#4048029
Support for this was just added to seam in CVS (yesterday). From the docs:
12.3. Disabling Security
In some situations it may be necessary to disable Seam Security, for example
during unit tests. This can be done by calling the static method
Identity.setSecurityEnabled(false) to disable
Seam's logger works much like Jakarta Commons Logger, delegating to an
underlying provider. If you're setup to use log4j underneath, then you'll have
access to NDC or MDC. So I'm not sure this is really a seam question - it's
more of a general logging configuration one.
View the original
If you used seamgen to create your project (highly recommended), that will
include the embedded ejb microcontainer. You can import it directly into
eclipse as a java project (look for wtp-style projects once the new ide comes
out apparently - until then don't try, nearly impossible).
Anyway,
You should file a request in Jira for this if you'd actually like to see it
happen.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4046117#4046117
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4046117
When posting an issue, please include enough details for others to understand
what you're seeing.
In your case, you should include at the very least:
version of seam
appserver version
what you did to cause the problem (startup or hitting a certain page)
Having said that, I just tested the
Take a look at the seam docs. Seam has a s:selectItems that gives you what
you're looking for.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4045605#4045605
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4045605
Well injection of logs is only saving you this:
public Log log = Logging.getLog(RegisterAndLoginTest.class);
|
I use this outside of SFSBs where unit testing is important.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4045302#4045302
Reply to the post
Coud you post some more details. I'm using events raised by SFSB just fine.
Please post the relevant snippets where your event is raised, the receiver, and
where the event handling is configured in components.xml. Also your stacktrace
doesn't show any application code, so more of that would
Isn't it just that the uploaded file is too big for the column? You might want
to put some debug in the byte [] setter to check the size, and also specify the
column size.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4045204#4045204
Reply to the post :
Pete wrote up a nice blog post on that at
http://pmuir.bleepbleep.org.uk/2007/04/building-plugin-system-in-facelets.html
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4045227#4045227
Reply to the post :
eirirlar wrote : Hi,
|
| I'm working with the richfaces gmap component. I need to send some data to
the server that is the outcome of some JavaScript method call, along with
calling an action method.
|
| I would like this to be as easy as the following:
| h:commandButton
You might file an enhancement request for this in jira. It would be nice if
the captcha image were optionally generated once per conversation for instance.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4044983#4044983
Reply to the post :
Btw, what's the point of having an event scoped SFSB? SFSB's strength is
statefulness across requests, which is why they default to conversational scope.
Just curious.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4044979#4044979
Reply to the post :
fyi, this section of the seam docs in cvs was just updated yesterday. Might be
worth a look.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4044984#4044984
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044984
You'd get the same behavior by just using a pojo. They're event-scoped by
default for that reason. Using a SFSB that way certainly works, but if you
look at the interceptor stack, there's definitly more overhead when using a
SFSB as a pojo.
View the original post :
The docs discuss accessing the session context (not by injection btw) in
section 3.1.8.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4044987#4044987
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044987
I think you'd get a better response if you posted more details of what you're
doing. it's tough to follow your description.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4044996#4044996
Reply to the post :
Btw I don't believe there is anything special regarding user-created threads in
seam. Just normal JEE restrictions (disallowed though possible in the EJB
container). If the async support in seam fits your needs, you'll find that's a
clean option.
View the original post :
btw the seam eclipse tools aren't terribly interesting at this point. I
develope with eclipse wtp (just for the server controls, as I'm using a
seam-gen project structure), and haven't found anything of particular seam
value in the other plugins. I'm definitely looking forward to the
You might also take a look at the wiki example, which demonstrates this
extensively. Its dao layer is pojos and the pattern works extremely well.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4045067#4045067
Reply to the post :
sradford wrote : True, but...
|
| However, they [POJOs] do not provide the functionality of a session bean
(declarative transaction demarcation, declarative security, efficient clustered
state replication, EJB 3.0 persistence, timeout methods, etc).
|
| (taken from 3.2.4 of the Seam
The spec is _the_ place to look for this stuff. Regarding restrictions, here's
an overview: http://java.sun.com/blueprints/qanda/ejb_tier/restrictions.html
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4045052#4045052
Reply to the post :
Have you looked into the async support built into seam? Take a look at chapter
17 in the docs. It's a much simpler pattern for threading, and seam manages
the threads for you.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4045039#4045039
Reply to the post :
could you please attach the relevant sections of your xhtml and bean? There
isn't enough info in your post to answer your question.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4045154#4045154
Reply to the post :
Not sure what your first question is about seam-ide. I'm not aware of any such
thing at this point, though there will be later this summer.
CVS is working fine. I followed the instructions at
http://wiki.jboss.org/wiki/Wiki.jsp?page=SeamRepository, with username/password
anonymous and
Hi Shane. Could you list the jars that are no longer needed? Obviously the
older versions of the one you mentioned in your post. But if there were other
jars there needed only by the older version of Drools, I'd rather clean them
out.
Thanks
View the original post :
You'll probably have better luck getting help if you post to the Hibernate user
group. From the details you've provided it doesn't appear to be seam related.
You also would need to give more details of what you're doing.
View the original post :
Yeah, eclipse has been kindly trimming some important lines from stacktraces
for me too from time to time. I've had to go in with a debugger and manually
inspect to find the root cause. Wish I knew what caused this.
View the original post :
You can use the empty keyword, like this:
#{advertisingCampaign.keywords == null || empty advertisingCampaign.keyword}
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4043400#4043400
Reply to the post :
Java 5 support isn't solid in Eclipse 3.0 (RAD 6). It'll work just fine in RAD
7. Note though that if you're using WebSphere, you must be using at least WAS
6.1 to run Java 5 which Seam requires.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4042878#4042878
Since updating from CVS (JBoss 4.2.0CR2, Facelets) expressions in SeamTest
fail. Here's what breaks it:
setValue(#{identity.username}, userName);
And I'm seeing:
| FAILED: registerTest
| java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
| at
Hmm. This one's supposed to be fixed. The initial fix was to downgrade
commons jars to the older ones ajax4jsf was using. I noticed that the newer
libs came in through cvs the other day though. I wonder if this got
reintroduced.
http://jira.jboss.com/jira/browse/JBSEAM-1158
View the
Scheduling is a major focus of the next release of Seam.
http://jira.jboss.com/jira/browse/JBSEAM?report=com.atlassian.jira.plugin.system.project:roadmap-panel[/url]
and specifically [url]http://jira.jboss.com/jira/browse/JBSEAM-161.
I agree with the previous poster about Seam being very
I was a complete newbie in January, so have recently followed the path you're
on. I think seam-gen's main benefit is just providing a project structure and
correct packaging of a seam app. The generation stuff was useful for my first
test page, but I haven't used it since. It's much better
vwu98034 wrote :
| It is great to hear that.
|
| What is the next release time table?
|
| Right now, I can't see how to do a small set of integrations that I have
done with Spring.
They have some major features to add... Generally releases come ever month and
a half. Someone
There's code in cvs for integrating with GWT, and a pretty sophisticated
remoting mechanism for general webapps. I'm not familiar with how remoting via
Flex would work, but it should be very doable. You might make a top-level post
on that to see if anyone else is doing it.
You're going to
The debugger shed some light on the problem.
In Application:
private static Application getRIApplicationImpl(FacesContext context) {
| ExternalContext extContext;
| if (context != null) {
| extContext = context.getExternalContext();
| } else {
|
viniciuscarvalho wrote : Hi there! I have a really simple question, can not
find the answer :(
|
| I'm trying to start a conversation on a second page after the user clicks
on
| a link in a view:
|
|
| | h:dataTable value=#{customers} var=c
| |
| |
| |
|
It's a hibernate thing, not seam-related. Check out
http://www.hibernate.org/381.html
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4041682#4041682
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4041682
Seamgen produces a starter app with this working out of the box. Even if you
don't use the seamgen-produced project, you can run it and see how it works.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4040627#4040627
Reply to the post :
The wiki source (which btw I've found the wiki app source to be tremendously
useful - thanks for doing this in the open) for FileHome.java has the following
comment:
| // TODO: This should really use an InputStream and directly stream into
the BLOB without consuming server memory
|
Looking over the source I see methods to get the file contents as bytes and as
an InputStream. But no way to get a handle on the tmp file itself.
I understand it's a tmp file with deleteOnExit() set. And I can certainly
create my own tmp file and copy the contents over. But is there a reason
Actually, looking at the FileUploadTag, it looks like the only useage mode for
this is to have a byte [] set directly in the component the tag is bound to.
Since the tag itself supports working with a tmpfile, I'd prefer to be able to
refer to the uploaded data as a reference to the file, or at
http://jira.jboss.com/jira/browse/JBSEAM-1234
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4039987#4039987
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4039987
___
jboss-user
[EMAIL PROTECTED] wrote : This might be useful for people migration from
MyFaces to the JSF RI:
|
| The default content type for a page is application/xhtml+xml with the JSF
RI and Facelets, not text/html as with MyFaces. If you have existing content
that is not strict XHTML (and it seems
I need to hand off from 1 SFSB to another at a certain point. I see that
Manager has everything I need to manipulate conversations.
But looking through Seam source I didn't see where Seam instantiates beans AND
associates them with contexts. I'd like to do this correctly. Should I just
do
Btw, what I think might be the way to do this is the following:
| // get the mapping action
| CatalogMappingAction mappingAction = (CatalogMappingAction)
Component.getInstance(catalogMapping, true);
| assert mappingAction != null;
|
| //
Looks to me like the biggest losses when not using EJB are the conversational
stuff around SFSB and the JMS tie-ins. Neither are essential though. Seam
without this stuff is very much intact.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4038967#4038967
Thanks for the info Christian. You saved me from jumping in to find this out
myself. Agreed - the xhtml reloading is the most important, as everything else
can be unit tested.
I am intrigued by the JBoss 5 capabilities though. I'll wait until it gets
fully baked.
View the original post :
The seam docs give examples of integration testing, which has been working very
well for me. I'd like to also test expected outcomes from pages.xml navigation
rules, redirects and basically anything else that a real brower would normally
respond to.
Are there examples of this in the seam
http://jira.jboss.com/jira/browse/JBSEAM-697
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4037669#4037669
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4037669
___
jboss-user
http://www.jboss.com/index.html?module=bbop=viewtopict=106369
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4037683#4037683
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4037683
I'd like to switch to a war deployment to take advantage of Seam's dynamic
classloader enhancements.
Using Jboss, are there any capabilities that will be lost? I'd like access to
the full EJB 3 stack, will be using messaging, etc. Or is it really just a
matter of packaging?
Thanks,
Stu
Ahh, so that hasn't changed. I wondered if the embeddable microcontainer stuff
might make that a viable option.
Has anyone explored using the dynamic classloader for ear deployments? The
docs say it's war-only. I understand any EJBs wouldn't be reloadable, but it
would be fantastic to get
I've been using SeamTest in integration mode (I'm not using setField for
instance) and the em accepts seam parameters in EJB-QL.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4036731#4036731
Reply to the post :
What specifically are you looking to do?
Seam doesn't have much in the way of session-specific management, at least that
I'm aware of. Session is just one of the available contexts.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4035869#4035869
Reply to the
I see seam-gen was updated today to prepare for general targeting of Jboss 4.2.
I gave it a try, and bumped into issue
http://jira.jboss.com/jira/browse/AJSF-32 , which I also saw on my own when I
tried targeting 4.2 a few weeks ago. It's easy to reproduce, and I added
comments to the Jira
Any suggestions on this one? I'm fine with doing investigation myself, but I'm
not sure where to look. Something tells me the Seam team is in overdrive right
now with the new 1.3 featureset, which is pretty exciting.
Thanks!
Stu
View the original post :
I'm exploring this in the debugger, but admit it's a bit of a mystery to me
where injection takes place (Interceptor driven and via the Component class I
think).
Here's what I'm seeing.
In this case, IngestService is a SLSB injected into a SFSB. This is injected
and initialized properly.
1 - 100 of 157 matches
Mail list logo