[jboss-user] [JBoss Tools (users)] - Re: AssertionFailedException while creating new EAR in proje
Ok, created a Jira issue: https://jira.jboss.org/jira/browse/JBIDE-3902. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4214357#4214357 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4214357 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - AssertionFailedException while creating new EAR in project a
Hi, I'm experiencing the same problem described in https://jira.jboss.org/jira/browse/JBIDE-3573, which has been marked as fixed. I'm using jbossTools-all-win32-3.0.0.GA-N200902101801-H1424. I'm only experiencing the problem for previously-created projects; new projects created via the new seam project wizard work fine (as verified in the jira issue). I don't know yet what's different between my old projects and a new project that causes the issue. I can investigate further if it's not immediately obvious to the developers from the stacktrace what the problem is. Should I open a new jira issue? Should I re-open https://jira.jboss.org/jira/browse/JBIDE-3573? Thanks for all your hard work on this project! relevant eclipse log snippet: | !ENTRY org.eclipse.jface 4 2 2009-02-12 12:51:51.750 | !MESSAGE Problems occurred when invoking code from plug-in: org.eclipse.jface. | !STACK 0 | org.eclipse.core.runtime.AssertionFailedException: null argument: | at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:86) | at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:74) | at org.jboss.ide.eclipse.archives.core.model.internal.ArchiveNodeImpl.addChild(ArchiveNodeImpl.java:264) | at org.jboss.ide.eclipse.archives.core.model.internal.ArchiveNodeImpl.addChild(ArchiveNodeImpl.java:255) | at org.jboss.ide.eclipse.archives.webtools.archivetypes.EarArchiveType.fillDefaultConfiguration(EarArchiveType.java:105) | at org.jboss.ide.eclipse.archives.webtools.ui.NewEARAction$EARPreviewPage.addToPackage(NewEARAction.java:90) | at org.jboss.ide.eclipse.archives.webtools.ui.PreviewPage.pageEntered(PreviewPage.java:104) | at org.jboss.ide.eclipse.archives.ui.wizards.WizardWithNotification.pageChanged(WizardWithNotification.java:72) | at org.eclipse.jface.wizard.WizardDialog$5.run(WizardDialog.java:1459) | at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) | at org.eclipse.core.runtime.Platform.run(Platform.java:880) | at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48) | at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175) | at org.eclipse.jface.wizard.WizardDialog.firePageChanged(WizardDialog.java:1457) | at org.eclipse.jface.wizard.WizardDialog.update(WizardDialog.java:1237) | at org.eclipse.jface.wizard.WizardDialog.updateForPage(WizardDialog.java:1166) | at org.eclipse.jface.wizard.WizardDialog.access$2(WizardDialog.java:1139) | at org.eclipse.jface.wizard.WizardDialog$4.run(WizardDialog.java:1128) | at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) | at org.eclipse.jface.wizard.WizardDialog.showPage(WizardDialog.java:1126) | at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:820) | at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:369) | at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624) | at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228) | at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) | at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003) | at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823) | at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422) | at org.eclipse.jface.window.Window.runEventLoop(Window.java:825) | at org.eclipse.jface.window.Window.open(Window.java:801) | at org.jboss.ide.eclipse.archives.webtools.ui.NewEARAction.run(NewEARAction.java:38) | at org.jboss.ide.eclipse.archives.webtools.ui.NewEARAction.run(NewEARAction.java:43) | at org.jboss.ide.eclipse.archives.ui.providers.ArchivesActionProvider$ActionWrapper.run(ArchivesActionProvider.java:230) | at org.eclipse.jface.action.Action.runWithEvent(Action.java:498) | at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583) | at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500) | at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411) | at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) | at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003) | at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823) | at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422) | at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384) | at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348) | at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200) | at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495) | at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288) | at
[jboss-user] [JBoss Tools (users)] - Re: AssertionFailedException while creating new EAR in proje
The title should read: AssertionFailedException while creating new EAR in project archives. I forgot to check the title when previewing. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4209677#4209677 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4209677 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: seam spring tomcat without jboss
It looks like you don't have EntityTransaction installed, which you need for vanilla Tomcat deployments. Give that a shot. Also, please use code tags in your posts. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4129555#4129555 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4129555 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How do I fetch the HTML source of a page programatically
You could also read through Seam's code for doing facelets-based emails. It essentially renders a facelets xhtml template to a string. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4127663#4127663 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4127663 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Stateless bean holding data?
Oberiko wrote : | | | | | @Stateless | | @Name(searchPeople) | | public class SearchPeopleAction implements SearchPeopleLocal { | | ... | | private ListPerson peopleList; | | | | public void search() { | | ... | | peopleList = eq.getResultList(); | | ... | | } | | | | public ListPerson getPeopleList() { | | return peopleList; | | } | | | | } | | | This isn't the right way to use a Stateless session bean. This is stateful behavior. So, what I'd do is make SearchPeopleAction an event-scoped stateful session bean. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123795#4123795 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123795 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: @Restrict on POJOs?
@Restrict works fine on pojos. Maybe the documentation is talking about EJB-style security (which I know nothing about), not Seam security. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123796#4123796 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123796 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: DataTable invokes bean one time too much
anonymous wrote : Doesnt JSF just invoke this method one time and then create the datatable? No, not necessarily. You can't predict how often your method will be called, so in general, don't do a lot of stuff in getters. I'd probably use a @DataModel and have your method populate it with a factory. I think the docs show how to do this. This creates a request-scoped variable that jsf can call as often as it wants, but your factory method is only called once. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123794#4123794 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123794 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Application-exception handling
parszab wrote : | So if just someone could tell me where I should look for that in Seam I'd be really grateful! Start looking in ui/src/main/java/org.jboss.seam.ui.validator.ModelValidator.java, though the real cool stuff is in src/main/org.jboss.seam.core.Validators. It's probably only going to be helpful to you if you're doing field-level validation, but not validating combinations of fields (which I'm guessing is what you're after). So, if Seam's exception handling isn't what you need (and, btw, it does handle messages and redirects to the same page. But it'll break the conversation, IIRC, so you shouldn't use it for validation-ish stuff) maybe in your pojo action classes you should catch the appropriate exceptions explicitly and respond appropriately (messages, etc). View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123797#4123797 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123797 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: @Restrict on POJOs?
Cool. I'm using a pojo system with drools security rules, too. I really like drools-based security; Shane did a great job with it. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123800#4123800 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123800 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Simple Question: How do you submit a form with JSF and
Binding jsf components to conversational beans is problematic. I think the FAQ talks about it. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4122026#4122026 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4122026 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Another conversation question: how to correctly begin on
jacob.orshalick wrote : Say, a way to configure begins to use flushmode=MANUAL by default. Maybe this could be configured in components.xml. +1 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4121680#4121680 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121680 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: JSF/Seam Binding and Nested Classes
Do you ever create a Daughter object? I think you may need to post more code, and details on what fails. It looks like what you are trying to do should work, but it's not completely clear from what you've posted so far. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4121529#4121529 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121529 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problem with validation and entityHome
By default, changes made to managed objects are flushed upon transaction completion, even if an update() is never manually called. You probably want to use manual flush mode. It's in the docs. There are also other posts about it. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4121531#4121531 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121531 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problem with validation and entityHome
Oh, maybe I misunderstood the situation. Did you appropriately change the page.xml file? (ReportsHome.page.xml, iirc) Post what you have. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4121534#4121534 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121534 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: @In reference a bit strange
http://jira.jboss.org/jira/browse/JBSEAM-2510 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4121577#4121577 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121577 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problem with validation and entityHome
fjgarmu wrote : | | | s:button id=mysave | |value=mysave | | action=#{reportsHome.mysave} | | view=/Reports.xhtml | | rendered=#{reportsHome.managed}/ | | | | | I think there a couple problems here; I should have noticed them earlier. For one thing, do you really want an s:button? Usually for save kind of controls, you want an h:commandButton, because you want to submit some data, not just trigger an action. If you do in fact want an s:button, you shouldn't specify both action and view. (I think.) In this case, you want the action, but not the view attribute. Also, you'll need a navigation rule in your ReportsEdit.page.xml for your mysave action that goes to the ReportsList page if the outcome isn't error. (Note that the typical JSF pattern, contrary to your design, is to return null if you want to stay on the same page and a string like success if you want to move away. So you may consider doing that instead.) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4121578#4121578 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121578 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: @In reference a bit strange
dhinojosa wrote : | If I inject with the #{} notation objects get created whether even if you specify create=false; | Yeah, I've noticed that too. Component lookup through EL always creates the component, if it doesn't exist. Maybe Seam should issue a warning (or an exception?) if a developer tries to use | @In(value=#{...}, create=false) | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4121483#4121483 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121483 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Large file uploading s:fileUpload
Is there a stack trace? By the way, if you don't want a upload size limit, you can set max-request-size to 0. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4119342#4119342 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4119342 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: begin-conversation starting 4 conversations
How do you know 4 conversations are created? I don't think that can happen in a single request. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4119338#4119338 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4119338 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problem with validation and entityHome
s:validateAll only checks field-level validation, not class-level validation, which includes @AssertFalse. Currently, the simplest way (IMO) to validate multiple fields is to put some logic in your action method. The booking example does this with regards to checkin and checkout dates, IIRC. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4119339#4119339 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4119339 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Representing many kinds of entities in DB with two table
gduq wrote : The problem is that to use the validation annotations on the model the classes need to be '@Entitiy's I didn't think that was true. What happens when you remove the @Entity annotation? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4119344#4119344 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4119344 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: JSF/Seam Binding and Nested Classes
Are the instance variables you speak of annotated @In? Also, maybe you could clarify what parent is. Is it one of the instance variables you're talking about? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4119365#4119365 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4119365 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Page parameter propagation not working?
[EMAIL PROTECTED] wrote : http://jira.jboss.com/jira/browse/JBSEAM-2112 | | I now understand the issue :) My bad... I should have been more clear in my description. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4117789#4117789 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4117789 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Page Parameter Pains.
+1 for more fine grained control on page parameters. I couldn't find a jira issue either, but I remember Pete talking about doing something like this once. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4117790#4117790 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4117790 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: POJO with conversational scope
Conversation-scoped EJBs should be @Stateful. IIRC, @Stateless beans will always be assigned to the Stateless pseudo-scope. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4116767#4116767 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4116767 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: a4j:include and Seam
Looking at your stacktrace, I think your issue is caused by using a myfaces phase listener (AutoScrollPhaseListener). I think this sort of issue was fixed in Seam 1.2.1. (http://fisheye.jboss.com/browse/JBoss/jboss-seam/src/main/org/jboss/seam/contexts/Contexts.java?r1=1.47r2=1.48) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4113570#4113570 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4113570 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: a4j:include and Seam
What version of Seam are you using? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4113075#4113075 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4113075 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to get a child/reference entity to load when the par
[EMAIL PROTECTED] wrote : | I tried instantiating the Account class within my register class and setting the value on the User, but that resulted in a datasource exception when i persisted the user. | I think that ought to work... What's the exception you get? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4113122#4113122 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4113122 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: @Startup and hbm2ddl
If you're using an EntityManagerFactory component (i.e., you're not using the app server's EMF), then the hbm2ddl is run by entityManagerFactory's @Create method. So your @Startup component depends on the database, then you can denote the dependency in the annotation: | @Startup(depends={yourEntityManagerFactoryNameHere}) | and your component's @Create method will be run afterwards. However, instead of using an application-scope/@Startup component, I'd recommend using an observer of the org.jboss.seam.postInitialization event. It's a bit cleaner, IMO. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4112676#4112676 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4112676 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Staying sane (or how do I keep up with Seam releases)?
It's been a few months since I've updated, but over most of the summer I was living on cvs head, updating every week or so. I copied seam-gen's copy-lib task into my project, so I could do a cvs update, clean/build, and copy-lib with relatively little trouble. Of course, like you mentioned, that doesn't solve everything. But breaking changes like directory structure changes aren't too common. And if you keep an eye on fisheye (http://fisheye.jboss.com/browse/JBoss/jboss-seam/), you can usually see them coming. So yeah, it's painful to live on cvs head. Well, it was this summer anyway, as Seam 2 took shape. I think it'd be easier now. I don't think there's a completely painless way to do it, but if someone has found it, I'd like to know too. :-) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4112142#4112142 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4112142 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Tomcat, Seam 2.0.0.GA with no embedded?
Do you really need EJB3 (beyond JPA)? If not (and it sounds like you don't, if you're exclusively using Seam Pojos), then you don't need Embedded Jboss. Take a look at the JPA example, which deploys to tomcat. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4111422#4111422 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4111422 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Tomcat, Seam 2.0.0.GA with no embedded?
And yes, you'd still have page flows, drools, etc. You'd only loose EJB3 stuff (though I think you'd consequently loose the Seam Remoting functionality that uses JMS). View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4111423#4111423 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4111423 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam in clustered environment.
I ran into that exception once (in a different context). I believe that particular problem should be fixed in Drools 4.0.1. See http://jira.jboss.com/jira/browse/JBRULES-1066. Maybe using a newer drools version is all you need? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4110008#4110008 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4110008 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Objects created from link with page params
Thanks for posting a workaround. I'll have to look into that. I've seen other forum posts when people want to use the injection part of page parameters, but not the factory/outjection part. I think it'd be worthwhile thinking through how things could be improved to give users more fine-grained control over what page params do. By the way, the required attribute is taken already. It's used to indicate the parameter is required for that page. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4103134#4103134 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4103134 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Queries with optional arguments
You could look into using Krank's JPA Criteria. I hope to at some point. http://www-128.ibm.com/developerworks/blogs/page/JEE?entry=criteria_qbe_dsl_for_jpa View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4101908#4101908 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4101908 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: JSTL Test Boolean Question
c:when is evaluated when the component tree is created (typically right at the beginning of the renderResponse phase). It's used to determine which components get added to the tree. I'm guessing you want the decision to be made later, for each row. So you actually want both components added to the tree, but you only want one or the other rendered for any given row. So, you probably want something like this: | rich:column | h:outputText value=#{sop.name} style=color:#ff rendered=#{sop.isRequired}/ | h:outputText value=#{sop.name} rendered=#{not sop.isRequired}/ | /rich:column | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4102014#4102014 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4102014 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Autologin cookie extension to Identity component
It's pretty simple. You just need to @Name your subclass the same as Seam's built-in identity component (org.jboss.seam.security.identity). (It needs to have a higher precedence, but the default precdence -- APPLICATION -- is higher than the built-in one, so you don't need to specify one) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4101662#4101662 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4101662 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: exception handling in pages.xml: message params possible
The param tag within a redirect refers to http request parameters, not parameters for the given message. I'm not sure how to do what you're trying to do, except to simply use | error.fileUpload = maximum allowed size #{org.jboss.seam.web.multipartFilter.maxRequestSize/1000} kB. please select another file. | . View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4101555#4101555 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4101555 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: HTTPS redirection
anonymous wrote : I'm now looking at trying to do a filter upstream of the Seam filter (sadly not an area I'm very familiar with) to change the HttpServletRequest URL (conditionally). | This is what we're planning to do. I haven't tested it yet (don't have an ssl cert set up yet), but I think it should work. I'll report back if it doesn't. We use BIG-IP for loadbalancing and ssl decryption. For ssl requests, we've configured it to add a specific request header. I haven't tested this, but I think we only need to override Request.getScheme(), and not Request.getRequestURL(). | | @Name(bigIpSslFilter) | @Scope(ScopeType.APPLICATION) | @BypassInterceptors | @org.jboss.seam.annotations.web.Filter | public class BigIpSslFilter implements Filter { | | public void destroy() { | } | | public void doFilter(ServletRequest request, ServletResponse response, | FilterChain filterChain) throws IOException, ServletException { | if (request instanceof HttpServletRequest) { | filterChain.doFilter(new BigIpSslRequest((HttpServletRequest) request), response); | } else { | filterChain.doFilter(request, response); | } | } | | public void init(FilterConfig filterConfig) throws ServletException { | } | | public static class BigIpSslRequest extends HttpServletRequestWrapper { | | public BigIpSslRequest(HttpServletRequest request) { | super(request); | } | | @Override | public String getScheme() { | String forwardedScheme = getRequest().getHeader(HTTP_X_FORWARDED_PROTO); | if (forwardedScheme != null forwardedScheme.equals(https)) { | return https; | } | return super.getScheme(); | } | | @Override | public HttpServletRequest getRequest() { | return (HttpServletRequest) super.getRequest(); | } | } | } | (btw, it's the same header that rails looks for to determine proxied https requests, since we also have some rails apps) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4101498#4101498 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4101498 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: HTTPS redirection
I suppose that makes some sense. But for us, it's probably more trouble than it's worth. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4101507#4101507 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4101507 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Using fine-grained pages.xml
chris.simons wrote : | I've also read that Seam 2.0 will support specifying additional pages.xml files rather than only have two options. Is this definitely in the 2.0 roadmap? Yes, Seam 2 supports this, with something like the following in components.xml: |navigation:pages | navigation:resources | value/WEB-INF/pages.xml/value | value/WEB-INF/pages-admin.xml/value | ... | /navigation:resources | /navigation:pages | I don't think it's documented yet. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4101084#4101084 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4101084 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: injecting SFSB's and naming conventions
How about | @In(create=true) | private NoteLocal noteAction; | (the variable name needs to match the @Name value) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4100848#4100848 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4100848 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: simple question - how to get handle to managed session b
Yep, I know how you feel. Glad to be of help. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4100016#4100016 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4100016 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: simple question - how to get handle to managed session b
is your SearchPanel component named sp? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4099720#4099720 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4099720 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: SeamTest and expectedExceptions
Sounds good. It doesn't seem to be a must-have for 2.0 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4097967#4097967 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4097967 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Facelets variable injection?
Give this a shot. | @In(#{compvar}) | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4097586#4097586 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4097586 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to serve feeds in Seam application?
The wiki example does feeds. I haven't looked into how it does them, but you could dig around and find out. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4097592#4097592 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4097592 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam 2.0 and RHDS
stuart_wildcat wrote : | Does this mean that there will be Seam 2.0 support in RHDS? | http://in.relation.to/Bloggers/Seam2SupportInJBossTools So I think so. :-) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4097692#4097692 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4097692 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problem with variable argument list logging
Use #0, not #1 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4096711#4096711 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4096711 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: SeamTest and expectedExceptions
So I think I can say I understand what Seam does now. I don't necessarily agree with it, though. I do understand that the installed attribute can't just simply override the annotation on that class, otherwise something like | core:jbpm/ | wouldn't work, because installed would still be false. On a related note, I did a little testing to see if I was reading the source code right. The results are a little odd, I think: | ?xml version=1.0 encoding=UTF-8? | components xmlns=http://jboss.com/products/seam/components; | xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; | xsi:schemaLocation=http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.0.xsd; | | !-- A standard @Name-annotated component: -- | component name=foo scope=session startup=true !-- scope etc attributes ignored... -- | property name=titleA Foo/property !-- ...but property configurations are not... -- | /component | component name=foo installed=false | property name=descriptioninstalled by default/property !-- ...even when installed=false -- | /component | | !-- Not @Name-annotated: -- | component name=bar class=eg.AbstractExampleComponent$Bar scope=session startup=true !-- scope etc attributes not ignored -- | property name=titleA Bar/property !-- properties not ignored, either, of course -- | /component | component name=bar | property name=descriptionnot annotated as a component/property !-- (ever) -- | /component | | !-- @Name-annotated, but also @Install(false): -- | component class=eg.AbstractExampleComponent$Baz scope=session startup=true !-- scope etc attributes not ignored -- | property name=titleA Baz/property | property name=descriptiona non-installed component/property | /component | | /components | | package eg; | | import org.jboss.seam.ScopeType; | import org.jboss.seam.annotations.Install; | import org.jboss.seam.annotations.Name; | import org.jboss.seam.annotations.Scope; | | | public class AbstractExampleComponent { | | private String description; | private String title; | | public String getDescription() { | return description; | } | public void setDescription(String name) { | this.description = name; | } | public String getTitle() { | return title; | } | public void setTitle(String title) { | this.title = title; | } | | @Name(foo) | @Scope(ScopeType.CONVERSATION) | public static class Foo extends AbstractExampleComponent {} | | @Scope(ScopeType.CONVERSATION) | public static class Bar extends AbstractExampleComponent {} | | @Name(baz) | @Install(false) | @Scope(ScopeType.CONVERSATION) | public static class Baz extends AbstractExampleComponent {} | | } | | package eg; | | import org.jboss.seam.Component; | import org.jboss.seam.ScopeType; | import org.jboss.seam.Seam; | import org.jboss.seam.mock.SeamTest; | import org.testng.annotations.Test; | | import eg.AbstractExampleComponent.Bar; | import eg.AbstractExampleComponent.Baz; | import eg.AbstractExampleComponent.Foo; | | public class InitializationTest extends SeamTest{ | | @Override | protected void startJbossEmbeddedIfNecessary() throws Exception { | } | | @Test | public void foo() throws Exception { | new ComponentTest() { | | @Override | protected void testComponents() throws Exception { | Foo foo = (Foo) Component.getInstance(foo); | assert foo.getTitle().equals(A Foo); | assert foo.getDescription().equals(installed by default); | Component component = Seam.componentForName(foo); | assert component.getScope() == ScopeType.CONVERSATION; //xml override not used | assert component.isStartup() == false; //same | } | | }.run(); | } | | @Test | public void bar() throws Exception { | new ComponentTest() { | | @Override | protected void testComponents() throws Exception { | Bar bar = (Bar) Component.getInstance(bar); | assert bar.getTitle().equals(A Bar); | assert bar.getDescription().equals(not annotated as a component); | Component component = Seam.componentForName(bar); |
[jboss-user] [JBoss Seam] - Re: Converters and Validators Problem
If your converter isn't marked @BypassInterceptors, then exceptions get wrapped, I think. So maybe you just need to add that annotation. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4096291#4096291 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4096291 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Injecting a narrower-scoped bean into a wider-scoped bea
adamw wrote : So it seems that injecting C-beans/E-beans into A-beans is a programmer error. I imagine this would be fine if you mark your A-bean @Synchronized. (Though of course, this could cause a bottleneck.) Haven't yet tried it though. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4094931#4094931 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4094931 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Binding Component to Backing Bean Property
That doesn't look like quite the same problem; it looks (from the stacktrace) like you have an @Out(scope=Conversation) somewhere. Try setting it to required=false; IIRC, that will prevent the IllegalStateException from being thrown when the context isn't available. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4094940#4094940 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4094940 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Binding Component to Backing Bean Property
Also, you might want to consider binding to an event-scoped component, not a session-scoped one. It's what the docs recommend, anyway. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4094943#4094943 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4094943 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Calling a Method on a Home Object
I'm confused. Doesn't seam gen create edit pages with a wire() page action which calls getInstance()? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4094746#4094746 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4094746 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: conceptual question about concurrency
Thanks Pete View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4094795#4094795 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4094795 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: OneToMany h:selectOneMenu
Check out the ui example (selectItems.xhtml in particular). generate-entities does do OneToMany, but not using h:selectOneMenu View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4094824#4094824 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4094824 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Intercommunication between Seam's applications?
Why would you make them separate apps? Why not a single app with different sections? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4094225#4094225 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4094225 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Intercommunication between Seam's applications?
I'm pretty sure you can't share sessions between applications. I'm sure it's possible to design your app as multiple deployable applications, but my gut feel is it's more headache than it's worth. But then again, I've only really designed one full web application. :-) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4094288#4094288 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4094288 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Logging all uncaught exceptions to a separate Logger?
Try overriding org.jboss.seam.exception.exceptions. That will let you log any exception caught inside Seam, and your filter should let you log anything not caught by seam. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4094301#4094301 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4094301 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to use Seam without persistence?
From what I gather from http://jira.jboss.com/jira/browse/JBSEAM-1900, you may simply need to put | transaction:no-transaction/ | in your components.xml. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4093274#4093274 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4093274 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to use Seam without persistence?
[EMAIL PROTECTED] wrote : This is also in the docs :) Well, sure, if you want to solve things the simple way... :-) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4093638#4093638 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4093638 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to drag and drop compnents in a form?
I'd suggest you ask this on the RichFaces forum; they can help more, probably. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4093639#4093639 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4093639 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Re-working EJB Extended Context To Use SMPC - Need Help
curtney wrote : | Scenario Two: | | All ejb components are injected using Seam's @In annotation (Switched from @EJB to @In annotation). Why the switch? I am assuming the switch will solve my problem of the entity manager not being injected. Seam now has control of the creation and injection of the ejb components, thus proper injection of the entity manager. However, that is not the case injection fails on both ejb components and entity manager. Before, it was only the entity manager that did not get injected. | | This should work, and is probably what you want. Could you be more specific on what breaks when you do this? (and post code) Also, note that the variable name needs to match the component name. So you'll need to change MyStatelessBean's field myStatelessDAO to myStateless. (Or change the component name, or use @In's value attribute, etc). View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4093756#4093756 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4093756 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Calling a Method on a Home Object
christian_zeidler wrote : I cannot access the Home object before the view is rendered. Why not? I think you should be able to. It'd be a good idea to post some code. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4093771#4093771 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4093771 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Heh, cool
I didn't know you could define multiple components in a single file. You can learn a lot of things by looking through the wiki example... | | @Name(converters) | @Scope(ScopeType.APPLICATION) | public class Converters { | ... | @Name(importerConverter) | @org.jboss.seam.annotations.faces.Converter(forClass = Importer.class) | public static class ImporterConverter implements Converter, Serializable { | ... | } | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4093782#4093782 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4093782 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: EntityHome and EntityQuery difference/problem
Did you manually set the scopes on your subclasses? If not, then they are inherited from their superclasses. EntityHome's default scope is Conversation, while EntityQuery's default scope is Event. This affects where @DataModel stores the DataModel, if you didn't specify its scope attribute. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4093793#4093793 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4093793 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: non-void property setters
The default BeanResolver that comes with EL looks for JavaBeans Properties, which require void setters. I imagine it wouldn't be hard to write an ELResolver that would look for non-void setters. If you do, (and it seems like an easy thing to do, though I've never done it), then you might consider submitting a patch, and maybe it'll get incorporated into Seam. :-) http://java.sun.com/products/jsp/reference/techart/unifiedEL.html View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4093804#4093804 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4093804 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Heh, cool
I'm just copy/pasting code out of the wiki example. But yeah, the inner class is a component, as evidenced by the @Name annotation. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4093836#4093836 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4093836 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Can EntityConverter handle different EntityManagers?
I have no idea if this will work or not, but try this: | s:convertEntity entityManager=#{expressions.createValueExpression('#{anotherEntityManager}')} / | (I think that parses...) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4093853#4093853 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4093853 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Object Level Validation
No, I don't think so. It'd be tough to do. As I understand it, if the validate values phase fails, then the update models phase should be skipped. But @AssertTrue methods are only going to be useful if the model attributes have been updated. So you can't check @AssertTrue methods in the validate values phase. With property-level validation, you can check whether a value is valid without actually setting the property, so normal Model Validation doesn't have this problem. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4093856#4093856 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4093856 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Pojo constructor called twice - normal?
Yep, that's normal. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4093175#4093175 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4093175 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Pojo constructor called twice - normal?
(In general, it's better to put stuff in a @Create method rather than a constructor) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4093177#4093177 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4093177 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to validate currency/float precision on a form
Glad to hear it worked out. :-) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4093227#4093227 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4093227 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Difference between @Factory and @Create for outjected co
@Out behaves in a push fashion; @Factory behaves in a pull fashion. So, without a @Factory, you need to trigger the creation of your component somehow. I'd suggest you make a page action that runs a (potentially blank) method in that component. I'm not sure why the debug page shows that the jobTicket exists when you weren't using @Factory; maybe your component was injected/called by something else in the conversation? You could put a breakpoint in createTicket() if you really wanted to know. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4092830#4092830 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4092830 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to validate currency/float precision on a form
If I were you, I'd try to get annotation-based validation working. So, either: -try including a newer Hibernate Validator jar -write your own (i.e. copy/paste Hibernate's) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4092836#4092836 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4092836 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Re-working EJB Extended Context To Use SMPC - Need Help
curtney wrote : I cannot annotate it with @Name, thus unable to inject the entity manager I really don't think that's a valid conclusion. It is true you can't/shouldn't annotate it with @Name, but concrete implementations should get injection anyway. (Someone correct me if I'm wrong) If you can reproduce this in a simple test case, you can raise a Jira issue and I'm sure someone will look into it. If there is a bug, the Seam community would appreciate knowing about it. :-) As far as parameterized IDs, maybe you could do something like: | public class MyBaseT, ID extends Serializable extends EntityHomeT { | | @Override | public ID getId() { | return (ID) super.getId(); | } | | public void setId(ID id) { | super.setId(id); | } | | @Override | public void setId(Object id) { | throw new UnsupportedOperationException(Not correct type: +id.getClass()); | } | } View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4092317#4092317 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4092317 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam @In EntityManager vs. Extended Persistence context.
marius.oancea wrote : If I switch to seam managed persistence tree does not work | What, precisely, breaks? (There should be no problem injecting a SMPC into a session-scoped component) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4092290#4092290 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4092290 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Re-working EJB Extended Context To Use SMPC - Need Help
Does SMPC injection work for non-hierarchical components? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4092291#4092291 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4092291 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Re-working EJB Extended Context To Use SMPC - Need Help
That's odd. I'm fairly certain it ought to work for ([EMAIL PROTECTED]) superclasses. I know it does for JavaBean components, anyway (I don't yet need to live in EJB land), and I can see that Component.initMembers() (which looks for injectable attributes) doesn't seem to care whether it's a JavaBean or an EJB. I guess you'll have to do some debugging to figure out why it's not working. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4092296#4092296 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4092296 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: including CSS and other html elements - context problem
I do this: | | c:set value=#{facesContext.externalContext.requestContextPath} var=rootPath/ | link href=#{rootPath}/stylesheet/theme.css rel=stylesheet type=text/css / | link href=#{rootPath}/stylesheet/layout.css rel=stylesheet type=text/css / | It may make more sense to put a | factory name=rootPath value={facesContext.externalContext.requestContextPath} scope=stateless/ | in components.xml (instead of the c:set) if you'll be using that in a lot of places. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4092294#4092294 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4092294 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Re-working EJB Extended Context To Use SMPC - Need Help
Are you trying to use the entityManager in a lifecycle method when a conversation context is not active (i.e RestoreView)? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4092297#4092297 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4092297 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam @In EntityManager vs. Extended Persistence context.
matt.drees wrote : There should be no problem injecting a SMPC into a session-scoped component That is, if the conversation context is active. (eg, not during RestoreView). View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4092298#4092298 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4092298 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: including CSS and other html elements - context problem
http://docs.jboss.com/seam/2.0.0.CR1/reference/en/html/ It's a Seam-specific thing. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4092312#4092312 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4092312 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: binding attribute doesnt work with Seam?
Your issue is described in both the faq and the documentation. http://wiki.jboss.org/wiki/Wiki.jsp?page=SeamProblemsFAQ http://docs.jboss.com/seam/2.0.0.CR1/reference/en/html_single/#d0e5034 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4092316#4092316 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4092316 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: @in(create=true) not working !
I think this due to a richfaces tabPanel behavior change/bug. See http://jira.jboss.com/jira/browse/RF-1047 and referenced forum post. I'll bet your EntityController is conversation-scoped, right? The conversation scope isn't available during restore view (when restoreState() is being called above), so that's why it's bombing. Your issue is not quite the same one I had, but it's related. You might comment on the issue, asking if they can possibly refrain from calling getValue() during restoreView. If they can't, though, you'd probably have to mark your injected entityController as non-required. (That is, if you decided to undo your workaround-refactoring, which I'm not necessarily recommending; I'm saying this more for anyone else who might be having the same problem.) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4092107#4092107 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4092107 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam 2.0.0.CR2: lib jars have lost their versions
I think /build/root.pom.xml ought to be enough for figuring out versions, so I don't think a VERSIONS.txt file is necessary. I don't know whether I like version-labeled jars or not. One thing I like about jars without version numbers is the fact that I can run a copy-lib command to copy seam's lib jars into mine, and outdated jars are just overwritten, instead of me having to manually delete them. This is more useful if you're running off cvs, I guess. It'd be interesting if you could specify a build parameter that would give you version-labeled jars if you want them. Not as high a priority as many other FRs in jira, though, in my opinion. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4092198#4092198 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4092198 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Losing Home#instance reference
Sounds suspiciously like ManagedEntityIdentityInterceptor screwing up somehow... but you'd have to debug to find out for sure. Is your snapshot from before http://jira.jboss.com/jira/browse/JBSEAM-1857 was fixed? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4092208#4092208 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4092208 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam 2.0.0.CR2: lib jars have lost their versions
I think that sounds like a great idea, though I don't think I understand the drawback you mention. If someone is using plain ant for their project, they can download the seam-all.zip which will have all the third-party libs, which is the same way it's been, right? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4092210#4092210 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4092210 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Functionality difference between EntityHome and EntityCo
In my (limited) experience: EntityHome is most useful when you need to do CRUD operations on a single entity. It makes it super-convenient if you do things the seam-gen way. If you don't want to do things that way, it can be hard to work with. So, for example, if you want a component that does CRUD simultaneously on multiple entity objects, then I think you're better off with an EntityController. EntityHome extends EntityController, by the way, which is why most of the methods are the same. EntityController really just provides a ton of convenience methods. I find that I use EntityController more often than EntityHome. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4091726#4091726 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4091726 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Functionality difference between EntityHome and EntityCo
seamdiscs is the only one my IDE search found for EntityController. EntityHome is used in the wiki, seamdiscs, quartz, and seampay View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4091802#4091802 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4091802 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problem with injection @In
Which part of the hibernate example are you referring to? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4091804#4091804 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4091804 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: SeamTest and expectedExceptions
This one addresses the issue, I think: http://jira.jboss.com/jira/browse/JBSEAM-1190 I don't think I understand Gavin's last comment, though. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4091163#4091163 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4091163 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: limiting size of query/result set
It does that so that, if you're doing paging, you can tell if there's a next page or not (which is a cute trick, by the way). The getResultList() method will only have 3 results. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4091170#4091170 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4091170 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam patterns and messages
It's in the manual. http://docs.jboss.com/seam/2.0.0.CR1/reference/en/html_single/#validation (towards the end of the chapter) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4091173#4091173 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4091173 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Accessing HttpSession in Jboss Seam
You can even inject (non-Seam) session values into your Seam components: | @In(my_session_object_key) MySessionObjectType mySessionObject; | The cool thing about this is if you later decide to move your object to a different scope (eg conversation), you don't have to change this code at all! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4091169#4091169 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4091169 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Action method with parameter and JSF Navigation
I think you have to do | navigation from-action=#{orgUserAction.changePassword(identity.username)} | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4091181#4091181 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4091181 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Password encryption using seam
It's not built-in, no. The seamspace example shows how you can use MD5 hashing for passwords. I don't think there are any examples that use encryption, though. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4091204#4091204 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4091204 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: SeamTest and expectedExceptions
[EMAIL PROTECTED] wrote : | i.e. install=false says (in all place) don't install this implementation of the component. It doesn't say (in any place) don't install this and any lower precedence versions of this component. | So, this is what I hear you saying: my:component-class installed=true my-property=me/ means Go find the class called ComponentClass, and make sure it's going to be installed. In addition, when instantiating, set myProperty to me. However, my:component-class installed=false my-property=me/ means See this xml element? Ignore it. Pretend it doesn't exist. In particular, don't set myProperty to me. Am I hearing you right? If so, then I'd say two things. First, it's unintuitive. installed='true' is describing the class, while installed='false' is describing this xml element. Second, I don't think Initialization.java actually implements this. I haven't tested this, so don't quote me, but the code looks pretty clear. The installed variable defined on/near line 324 isn't used to determine whether the properties are set or not. So, in the above example, both xml declarations result in myProperty being set to me. Please, clarify. I may be missing something. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4091333#4091333 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4091333 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user