[jboss-user] [Clustering/JBoss] - Asynchronous session replication

2007-04-21 Thread lightbulb432
Just saw the JBoss Web Clustering webinar, and have a question:

It was said that asynchronous replication occurs in a different thread but is 
guaranteed, and the default interval value is 1 second. Is it true upon node 
failure, any updates to its session that occur from the time of last 
replication (which could be up to 1 second in this case) would be guaranteed to 
NOT be replicated? (I just want to clarify what was meant by guaranteed.)

Is 1 second a good amount of time, or does anybody recommend lowering it in 
your application?

Thanks.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4039551#4039551

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4039551
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Query with empty restriction

2007-03-19 Thread lightbulb432
I could catch the QuerySyntaxException and return an empty list, but is this 
the expected behavior from a query with an empty #{member.countries}?

Instead, shouldn't it evaluate to

SELECT c FROM Country c where c IN (NULL) 

instead of 

SELECT c FROM Country c where c IN () 

or something like that?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4029556#4029556

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029556
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Query with empty restriction

2007-03-18 Thread lightbulb432
I get the following exception when I have in components.xml the following 
query, but #{member.countries} refers to an empty list:

SELECT c FROM Country c where c IN (#{member.countries})

If you look at the root cause of the error the message says:
org.hibernate.hql.ast.QuerySyntaxException: unexpected end of subtree [SELECT c 
FROM Country c where c IN ()]

The #{member.countries} expression for a member that has no countries specified 
doesn't show up in the generated query (SELECT c FROM Country c where c IN 
()). Why is this happening, and how could I cause the query to simply return 
an empty list instead of this exception?

Thanks.


javax.faces.el.EvaluationException: /list.xhtml @36,43 rendered=#{empty 
countries}: Cannot get value for expression '#{countries.resultList}'
  | at 
com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:60)
  | at 
javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:1075)
  | at 
com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:241)
  | at 
com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
  | at 
com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:573)
  | at 
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:29)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:43)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
  | at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | at 
org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  | at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  | at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  | at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  | at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
  | Caused by: javax.faces.el.EvaluationException: Exception getting value of 
property resultList of base of type : 
org.jboss.seam.framework.EntityQuery$$EnhancerByCGLIB$$4d3f50d3_7
  | at 
org.apache.myfaces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:96)
  | at 
org.apache.myfaces.el.ELParserHelper$MyPropertySuffix.evaluate(ELParserHelper.java:532)
  | at org.apache.commons.el.ComplexValue.evaluate(ComplexValue.java:145)
  | at 
org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:383)
  | at org.jboss.seam.core.Expressions$1.getValue(Expressions.java:53)
  | at org.jboss.seam.framework.Query.getParameterValues(Query.java:332)
  | at org.jboss.seam.framework.Query.evaluateAllParameters(Query.java:340)
  | at 
org.jboss.seam.framework.EntityQuery.createQuery(EntityQuery.java:101)
  | at 
org.jboss.seam.framework.EntityQuery.getResultList(EntityQuery.java:40)
  | at 
org.jboss.seam.framework.EntityQuery$$FastClassByCGLIB$$225925e6.invoke(generated)
  | at 

[jboss-user] [JBoss Eclipse IDE (users)] - NullPointerException in FreeMarker IDE

2007-02-24 Thread lightbulb432
When I go to the context editor to add a new context variable in the FreeMarker 
IDE and enter a name and class, I get the following error. What could be 
causing this?

java.lang.NullPointerException: 
  | at hudson.freemarker_ide.editor.Editor.dispose(Editor.java:83)
  | at 
org.eclipse.ui.part.MultiPageEditorPart$3.run(MultiPageEditorPart.java:638)
  | at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
  | at org.eclipse.core.runtime.Platform.run(Platform.java:843)
  | at 
org.eclipse.ui.part.MultiPageEditorPart.disposePart(MultiPageEditorPart.java:631)
  | at 
org.eclipse.ui.part.MultiPageEditorPart.dispose(MultiPageEditorPart.java:333)
  | at 
org.eclipse.ui.internal.WorkbenchPartReference.doDisposePart(WorkbenchPartReference.java:687)
  | at 
org.eclipse.ui.internal.EditorReference.doDisposePart(EditorReference.java:256)
  | at 
org.eclipse.ui.internal.WorkbenchPartReference.dispose(WorkbenchPartReference.java:642)
  | at 
org.eclipse.ui.internal.WorkbenchPage.disposePart(WorkbenchPage.java:1548)
  | at 
org.eclipse.ui.internal.WorkbenchPage.handleDeferredEvents(WorkbenchPage.java:1311)
  | at 
org.eclipse.ui.internal.WorkbenchPage.deferUpdates(WorkbenchPage.java:1295)
  | at 
org.eclipse.ui.internal.WorkbenchPage.closeEditors(WorkbenchPage.java:1269)
  | at 
org.eclipse.ui.internal.WorkbenchPage.closeEditor(WorkbenchPage.java:1324)
  | at org.eclipse.ui.internal.EditorPane.doHide(EditorPane.java:54)
  | at org.eclipse.ui.internal.PartStack.close(PartStack.java:499)
  | at org.eclipse.ui.internal.EditorStack.close(EditorStack.java:205)
  | at org.eclipse.ui.internal.PartStack$1.close(PartStack.java:106)
  | at 
org.eclipse.ui.internal.presentations.util.TabbedStackPresentation$1.handleEvent(TabbedStackPresentation.java:81)
  | at 
org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:267)
  | at 
org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:276)
  | at 
org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabFolder.access$1(DefaultTabFolder.java:1)
  | at 
org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabFolder$1.closeButtonPressed(DefaultTabFolder.java:67)
  | at 
org.eclipse.ui.internal.presentations.PaneFolder.notifyCloseListeners(PaneFolder.java:580)
  | at 
org.eclipse.ui.internal.presentations.PaneFolder$3.close(PaneFolder.java:187)
  | at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:2107)
  | at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:292)
  | at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
  | at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
  | at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
  | at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
  | at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4021732#4021732

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4021732
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: EL enhancements

2007-02-20 Thread lightbulb432
Below is the log of the exception. Also, I have the following in my 
faces-config.xml:

application
  | ...
  | 
view-handlerorg.jboss.seam.ui.facelet.SeamFaceletViewHandler/view-handler
  | /application

javax.el.ELException: Error Parsing: #{compHome.done(x.id)}
  | at 
com.sun.el.lang.ExpressionBuilder.createNodeInternal(ExpressionBuilder.java:140)
  | at com.sun.el.lang.ExpressionBuilder.build(ExpressionBuilder.java:157)
  | at 
com.sun.el.lang.ExpressionBuilder.createValueExpression(ExpressionBuilder.java:201)
  | at 
com.sun.el.ExpressionFactoryImpl.createValueExpression(ExpressionFactoryImpl.java:74)
  | at 
org.jboss.seam.ui.facelet.SeamExpressionFactory.createValueExpression(SeamExpressionFactory.java:105)
  | at com.sun.facelets.el.ELText$ELTextVariable.apply(ELText.java:161)
  | at com.sun.facelets.el.ELText$ELTextComposite.apply(ELText.java:142)
  | at 
com.sun.facelets.compiler.TextInstruction.apply(TextInstruction.java:56)
  | at 
com.sun.facelets.compiler.UIInstructionHandler.apply(UIInstructionHandler.java:85)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
  | at 
com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
  | at com.sun.facelets.tag.ui.DefineHandler.apply(DefineHandler.java:58)
  | at 
com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:128)
  | at 
com.sun.facelets.impl.DefaultFaceletContext$TemplateManager.apply(DefaultFaceletContext.java:306)
  | at 
com.sun.facelets.impl.DefaultFaceletContext.includeDefinition(DefaultFaceletContext.java:279)
  | at com.sun.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:68)
  | at 
com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
  | at 
com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
  | at 
com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
  | at 
com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
  | at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)
  | at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)
  | at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)
  | at 
com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:143)
  | at 
com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:113)
  | at 
com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
  | at 
com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
  | Caused by: com.sun.el.parser.ParseException: Encountered ( at line 1, 
column 20.
  | Was expecting one of:
  | } ...
  | . ...
  | [ ...
  |  ...
  | gt ...
  |  ...
  | lt ...
  | = ...
  | ge ...
  | = ...
  | le ...
  | == ...
  | eq ...
  | != ...
  | ne ...
  |  ...
  | and ...
  | || ...
  | or ...
  | * ...
  | + ...
  | - ...
  | ? ...
  | / ...
  | div ...
  | % ...
  | mod ...
  | 
  | at com.sun.el.parser.ELParser.generateParseException(ELParser.java:1651)
  | at com.sun.el.parser.ELParser.jj_consume_token(ELParser.java:1531)
  | at com.sun.el.parser.ELParser.DeferredExpression(ELParser.java:134)
  | at com.sun.el.parser.ELParser.CompositeExpression(ELParser.java:61)
  | at 
com.sun.el.lang.ExpressionBuilder.createNodeInternal(ExpressionBuilder.java:103)
  | at com.sun.el.lang.ExpressionBuilder.build(ExpressionBuilder.java:157)
  | at 
com.sun.el.lang.ExpressionBuilder.createValueExpression(ExpressionBuilder.java:201)
  | at 
com.sun.el.ExpressionFactoryImpl.createValueExpression(ExpressionFactoryImpl.java:74)
  | at 
org.jboss.seam.ui.facelet.SeamExpressionFactory.createValueExpression(SeamExpressionFactory.java:105)
  | at com.sun.facelets.el.ELText$ELTextVariable.apply(ELText.java:161)
  | at com.sun.facelets.el.ELText$ELTextComposite.apply(ELText.java:142)
  | at 
com.sun.facelets.compiler.TextInstruction.apply(TextInstruction.java:56)
  | at 
com.sun.facelets.compiler.UIInstructionHandler.apply(UIInstructionHandler.java:85)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
  

[jboss-user] [JBoss Seam] - Re: EL enhancements

2007-02-20 Thread lightbulb432
What is the recommended method of executing a query for each line in a 
DataModel or list of entities on a page upon each load?

I was thinking I could pass in the loop variable to a method that would go and 
execute a query. Since that's not possible, what should I do - I know how to 
use DataModel for doing things once you've selected an entity, but not how to 
do something for every entity, with regards to a list.

Is there a good example of this I could check in the Seam examples?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4019384#4019384

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4019384
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: EL enhancements

2007-02-20 Thread lightbulb432
Right, but that would only be evaluated when I click the link, whereas I would 
like the value to be shown when the list page is shown.

For example, in a list of entities I'd like to show next to it the result of a 
query (i.e. that value isn't stored as a property of the entity, but is 
evaluated as a result of a query).

I can't see how to get them all to display on the list page.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4019416#4019416

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4019416
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: EL enhancements

2007-02-20 Thread lightbulb432
Here's the type of thing I'm trying to do. The point is that there are a list 
of favorites, and within that list I want to specially mark those favorites 
of the logged in user.

But of course, the enhanced EL expression I have in the view doesn't work. It 
seems like the most intuitive way to do it, but I guess I have to look for 
another option.

Hopefully you can advise as to what I can do here. Thanks.

@DataModel
  | private List favorites;
  | 
  | @Factory
  | public void getFavorites() {
  |   favorites = entityManager.createQuery(...).getResultList();
  | }
  | 
  | public String getStatus(int id) {
  |   for (Favorite f : member.getFavorites()) {
  | if (member.getFavorite().getId() == id) return Your Favorite;
  |   }
  |   return Not Your Favorite;
  | }

h:dataTable value=#{favorites} var=fave
  |   h:column
  | #{fave.name}
  |   /h:column
  |   h:column
  | #{entityHome.status(fave.id)}
  |   /h:column
  | /h:dataTable

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4019616#4019616

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4019616
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Factory and injection in EntityHome

2007-02-19 Thread lightbulb432
Well that weird @In is the whole reason behind this topic.

I really don't want to have to use page parameters for certain things, like 
removing an entity from a list of entities, because then I'd have to build in 
all sorts of unnecessary logic that I wouldn't have to worry about by doing it 
this way.

But I still have no idea why this isn't working...could one of the Seam 
developers perhaps address this issue?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4019034#4019034

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4019034
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - End conversation after back button

2007-02-19 Thread lightbulb432
I have a page that displays a list of entities. I click on one list element (an 
s:link with a page parameter), taking me to a page that uses the page parameter 
to display certain things about that entity.

I hit the back button, taking me to that initial list. I click another entity. 
However, even though the request parameter has changed, the page still has 
information about the same entity as the first time.

Because they're all conversation scoped elements, I'm using the following on 
the page with the list of elements to show the page in a new conversation:

h:outputLink value=nextPage.seam
#{listElement.name}
f:param name=id value=#{listElement.id} /
s:conversationPropagation propagation=none /
/h:outputLink

This doesn't seem to solve the problem. Is there something I'm not considering 
about the use of the back button and conversation propagation?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4019175#4019175

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4019175
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: EntityQuery

2007-02-19 Thread lightbulb432
How can I use framework:restrictions to represent OR conditions? Or if not 
framework:restrictions, how can I use anything else in my queries in 
components.xml to represent OR conditions?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4019181#4019181

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4019181
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - EL enhancements

2007-02-19 Thread lightbulb432
Do the EL enhancements only work when used as the action attribute of a link? I 
ask because I got a parse exception when I tried to use 
#{entityHome.myMethod(var)} as plain text in an h:column, where var is the loop 
variable of the dataTable.

Is the EL enhancement not supposed to work here, or should I keep looking for 
where I might have made a mistake?


Also, I'm confused as to when methods need to have a get prefixed to their 
name when the name is specified in EL. For example, for what I described above 
(entityHome.myMethod), would the entityHome need a method named myMethod, or 
getMyMethod?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4019215#4019215

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4019215
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Factory and injection in EntityHome

2007-02-18 Thread lightbulb432
I have an EntityHome that contains the following code. When I go to page to 
create the entity, the myEntity factory variable is already populated with the 
first entity in the dataModel list, even though nothing has been selected (and 
myEntityHome.managed evaluates to true, even though it shouldn't, because 
nothing from the list has been selected). Why might this be?

@Name(myEntityHome)
  | public class MyEntityHome extends EntityHomeMyEntity {
  | 
  | @Factory
  | public MyEntity getMyEntity() { return getInstance(); }
  | 
  | @In(#{myQuery.dataModel.rowData})
  | public void setInstance(MyEntity instance) {
  | super.setInstance(instance);
  | }
  | 
  | }

In the create page, I have the following. The first time I access the page, 
myEntity.name is populated with the value of the first row of 
myQuery.dataModel, even though myQuery.dataModel.rowData should be empty 
because no row has yet been selected. How do I fix this so that it behaves 
correctly and shows nothing, because nothing has been selected? This should 
work, right?

h:form
  | h:inputText value=#{myEntity.name} /
  | h:commandButton value=Create action=#{myEntityHome.persist} /
  | /h:form

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4018467#4018467

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018467
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Factory and injection in EntityHome

2007-02-18 Thread lightbulb432
My guess of what's happening here is that when I first access the myEntity 
factory to return the instance, myQuery.dataModel.rowData automatically 
selects the first entity in the dataModel.

This isn't the correct behavior right? Isn't a dataModel only supposed to be 
populated when the a row is actually selected, or does it always have a default 
selected value upon access?

I have no idea how to proceed from this...

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4018537#4018537

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018537
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Factory and injection in EntityHome

2007-02-18 Thread lightbulb432
Stepping through my debugger, the problem seems to be that ListDataModel's 
setRowIndex(int) is being called with a value of 0 upon first access... is 
there something I can do in my EntityHome to prevent this from happening, or is 
it a bug? (Meaning why is setRowIndex being called when nothing has been 
selected?) Anyways, once I've sorted it out I think it'll work.

saeediqbal1, this is not seam-gen. I'm trying a slightly different but valid 
way of deleting entities from a list. I don't have anything special in my 
serializable class, if by that you mean entity (you can't inject into entities, 
using @In)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4018588#4018588

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018588
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: DataModelSelection and components.xml

2007-02-17 Thread lightbulb432
How can I get the row index when I'm using entityquery.resultList?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4018395#4018395

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018395
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Remove from list using EntityHome

2007-02-16 Thread lightbulb432
How would you remove an entity using EntityHome when you're in a list of those 
entities (populated either using the query's resultList or dataModel property)?

I can maybe see how you could do it from within a page that is centered around 
that one entity, but not from a list of many of those entities. How could I do 
this?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4017470#4017470

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4017470
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Remove from list using EntityHome

2007-02-16 Thread lightbulb432
I was afraid you'd say that :) Just kidding...I actually experimented with a 
different approach, and it goes about 90% of the way...maybe you could tell me 
why it isn't working. (Sure I'll end up using the parameters way if this 
doesn't work, but working through this will help me understand Seam better...)

In my components.xml:

!-- where myEntityQuery is also defined in this components.xml --
  | factory name=myFactory value=myEntityQuery.dataModel /

In my xhtml within an h:column:

h:commandLink value=... action=#{myEntityHome.remove} /

In my MyEntityHome:

@In(#{myFactory.rowData})
  | public void setInstance(MyEntity my) {
  |super.setInstance(my);
  | }

Believe it or not, this setup goes about 90% of the way in my debugger...the 
my parameter gets correctly passed to setInstance, the EntityHome's 
instance variable is set correctly, and the remove method is called while 
instance is set! But for some reason the entity doesn't get removed, 
setInstance then gets called a second time before the request is over, this 
time with null passed to setInstance.

Why might setInstance be getting called twice? I don't think I'm doing anything 
special apart from what I've indicated above... Please help.

I could try using rowIndex instead of rowData and setting the id instead of the 
instance, but I'm not sure that would change anything...

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4017692#4017692

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4017692
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam Security

2007-02-16 Thread lightbulb432
So to get it working, did you have the same @Name as the built-in component, 
@Scope of APPLICATION, and no @Install annotation?

Could you show what the line in your components.xml that you changed to get it 
working was? I'm about to start doing this, so your help would be greatly 
appreciated.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4017701#4017701

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4017701
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Remove from list using EntityHome

2007-02-16 Thread lightbulb432
petemuir wrote : My best guess as to why it fails from what you've said is 
that by passing the instance through the datamodel like that it has become 
unmanaged so cannot be removed - you can check this by calling 
entityManager.contains().  Setting by Id rather than instance might just work 
(use it with my.getId rather than rowIndex).

Where should I set the breakpoint in my debugger to do an 
entityManager.contains() check?

Or if it's better to output a FacesMessage with this value, where should I put 
that debugging line?


anonymous wrote : And beware of the fact that a remove won't remove the entity 
from memory - it just detaches it from the persistence context.

So the refreshed page after the delete would still show the removed entity in 
the list right? But if I look in my DB, am I correct to say I should no longer 
see it there (if things work correctly) even though it's still in memory?

Next question is why does this happen - isn't entity-query EVENT-scoped, which 
means that on the next refresh it doesn't exist and has to hit the DB again?

Thanks a lot.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4017709#4017709

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4017709
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Remove from list using EntityHome

2007-02-16 Thread lightbulb432
I tried using the id by changing to the following, but it complained that 
rowData doesn't have an id:

@In(#{myFactory.rowData.id})
  | public void setInstance(MyEntity my) {
  |super.setInstance(my);
  | }

(Shouldn't rowData have an id if the underlying entity has an id, which it 
does?)

How would I implement your suggestion to use my.getId rather than rowIndex?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4017823#4017823

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4017823
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Remove from list using EntityHome

2007-02-16 Thread lightbulb432
(Of course I meant setId in both cases where I put setInstance in the previous 
post)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4017824#4017824

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4017824
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Remove from list using EntityHome

2007-02-16 Thread lightbulb432
I'm getting the following exception that says the row is unavailable, which is 
just crazy because the debugger clearly shows the correct value being passed to 
setInstance:

@In(#{myFactory.rowData})
  | public void setInstance(MyEntity my) {
  | super.setInstance(my);
  | }

Why could this be happening?

javax.faces.el.EvaluationException: Cannot get value for expression 
'#{association.name}'
  | at 
org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:402)
  | at org.jboss.seam.core.Expressions$1.getValue(Expressions.java:53)
  | at 
org.jboss.seam.core.Interpolator.interpolateExpressions(Interpolator.java:88)
  | at org.jboss.seam.core.Interpolator.interpolate(Interpolator.java:67)
  | at 
org.jboss.seam.core.FacesMessages.createFacesMessage(FacesMessages.java:318)
  | at org.jboss.seam.core.FacesMessages$2.run(FacesMessages.java:222)
  | at org.jboss.seam.core.FacesMessages.runTasks(FacesMessages.java:132)
  | at org.jboss.seam.core.FacesMessages.afterPhase(FacesMessages.java:142)
  | at 
org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:109)
  | at 
org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersAfter(PhaseListenerManager.java:89)
  | at 
org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:345)
  | at 
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:29)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:43)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
  | at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | at 
org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  | at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  | at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  | at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  | at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
  | at java.lang.Thread.run(Unknown Source)
  | Caused by: javax.faces.el.EvaluationException: Cannot get value for 
expression '#{associations.rowData}'
  | at 
org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:402)
  | at org.jboss.seam.core.Expressions$1.getValue(Expressions.java:53)
  | at org.jboss.seam.Component.getInstanceToInject(Component.java:1878)
  | at org.jboss.seam.Component.injectMethods(Component.java:1364)
  | at org.jboss.seam.Component.inject(Component.java:1155)
  | at 
org.jboss.seam.interceptors.BijectionInterceptor.bijectNonreentrantComponent(BijectionInterceptor.java:76)
  | at 
org.jboss.seam.interceptors.BijectionInterceptor.bijectComponent(BijectionInterceptor.java:58)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  | at 

[jboss-user] [JBoss Seam] - Re: Remove from list using EntityHome

2007-02-16 Thread lightbulb432
You can ignore all of the above. The problem, believe it or not, is when the 
deletedMessage contains an expression of the current instance of the EntityHome.

In the code below, if my deletedMessage in public String getDeletedMessage() 
contains #{myEntity.myProperty}, then the factory to get the row data is run 
again (to evaluate myEntity) with a null value for instance...but if I 
leave it as a String with no EL in it, then it's fine.

Am I outjecting to the correct scope of CONVERSATION? What could be wrong with 
putting EL of the current instance in the message?

@Factory(value=myEntity,scope=ScopeType.CONVERSATION)
  | public MyEntity returnMyEntity() { return getInstance(); }

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4018013#4018013

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018013
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: EntityHome

2007-02-15 Thread lightbulb432
I put an @Out on the @Factory but that didn't seem to work (not that I really 
expected it to...)

Any ideas?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4017162#4017162

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4017162
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: EntityQuery

2007-02-15 Thread lightbulb432
I just reinstalled JBoss 4.0.5 using the installer, but that didn't seem to 
make any real difference...

How do I include the things that it's missing (well, would that even solve the 
exceptions that are happening when I run the app?)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4017163#4017163

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4017163
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: DataModelSelection and components.xml

2007-02-14 Thread lightbulb432
That works, thanks.

The value attribute of my dataTable is #{entityQueryName.resultList}. How do 
I get the rowIndex? I tried using #{entityQueryName.resultList.rowIndex} like I 
used to do before, but it gives a NumberFormatException wrapped in something 
else.

If I'm using #{entityQueryName.resultList} as the value of my dataTable, then 
is the factory factoryName in my earlier post still necessary? Does this do 
away with factories in the case of dataTables, or should my dataTable's value 
be factoryName, which points to entityQueryName.resultList...or are these 
interchangeable?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4016504#4016504

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4016504
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: f:param in h:commandLink in h:column

2007-02-14 Thread lightbulb432
I can't get the request parameter to work from pages.xml. My dataTable is as 
follows. What should be in my myBean.myAction method - anything? Right now it's 
empty, like it was when I was using DataModel/DataModelSelection...

h:dataTable id=table value=#{myList} var=a
  | h:column
  | s:link value=#{a.text} 
action=#{myBean.myAction} 
  | f:param name=theId 
value=#{a.id} /
  | /s:link
  | /h:column
  | /h:dataTable

My pages.xml looks like the following. Should the param element be in the 
navigation element of the initiating page, the page element of the resulting 
page, or either? What's the difference? (Right now I've got it commented out in 
the latter.) The resultPage.xhtml displays information relating to 
contextualBean...

page view-id=/listpage.xhtml
  | navigation from-action=#{myBean.myAction}
  | begin-conversation /
  | redirect view-id=/resultPage.xhtml
  | param name=theId 
value=#{contextualBean.id} /
  | /redirect
  | /navigation
  | /page
  | 
  | page view-id=/resultPage.xhtml
  | !--
  | param name=theId value=#{contextualBean.id} /
  | --
  | /page

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4016524#4016524

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4016524
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: f:param in h:commandLink in h:column

2007-02-14 Thread lightbulb432
In that case the parameter doesn't show up in the address bar at all. To test 
whether it's working, I entered a parameter with a value of an entity id that I 
know exists, but still the appropriate data doesn't show up.

When I set contextualBean.id from the param element, does the entire 
contextualBean get refreshed from the database? Or does it just create an empty 
component and insert the id value? 

I feel like I am missing some code (either in my myBean.myAction method or 
elsewhere to get that data). Is that the case?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4016587#4016587

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4016587
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Views within views

2007-02-14 Thread lightbulb432
I need to have XHTML views containing other views using the templating features 
of Facelets. e.g. view outside.xhtml contains views inside1.xhtml and 
inside2.xhtml.

However, because each view can also be seen as a standalone view, I'm concerned 
about conflicts in the injected/outjected components that may not be evident 
initially. Does such a risk exist? e.g. inside1.xhtml outjects a value that 
gets overridden by inside2.xhtml. Or was Seam designed to handle such things, 
where variables are kept apart (e.g. DataModels, DataModelSelections...)

The next issue is with navigation. In pages.xml, which view would you mention 
for a link clicked in inside1.xhtml - would it be outside.xhtml, or 
inside1.xhtml? (Keeping in mind that the address bar would of course show 
outside.xhtml)

Any other potential troubles here?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4016692#4016692

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4016692
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - EntityQuery

2007-02-14 Thread lightbulb432
When you do an @In EntityQuery to bring in a query that you defined in 
components.xml, does the value of this object contain some kind of cached 
results of the previous time you ran the query, or is it just the query object 
itself?

What I'm trying to say is if you inject EntityQuery into a SFSB and use the 
SFSB in multiple requests, would calling getResultList() or similar on it run 
the query again and get the latest info from the database, or would it contain 
cached info from the previous run (being the same instance of the EntityQuery 
that was run before on the SFSB in a previous request)?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4016689#4016689

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4016689
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: DataModelSelection and components.xml

2007-02-14 Thread lightbulb432
Any word on how to get the rowIndex from an EntityQuery or it's resultList?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4016791#4016791

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4016791
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: EntityQuery

2007-02-14 Thread lightbulb432
Big problem when using EntityQuery instead of regular query...I know it's 
caused by that because it appears when I change one line from 
em.createNamedQuery(...).getSingleResult() to 
injectedEntityQuery.getSingleResult().

javax.ejb.ConcurrentAccessException: no concurrent calls on stateful bean 
'jboss.j2ee:service=EJB3,name=RegisterBean' (EJB3 4.3.13)

What in the world could be causing it?

2007-02-14 19:16:11,906 ERROR [org.jboss.seam.servlet.SeamExceptionFilter] 
uncaught exception
  | javax.servlet.ServletException: Error calling action method of component 
with id addEmailAddressForm:_id29
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:29)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:43)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
  | at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | at 
org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  | at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  | at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  | at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  | at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
  | at java.lang.Thread.run(Unknown Source)
  | 2007-02-14 19:16:11,906 ERROR [org.jboss.seam.servlet.SeamExceptionFilter] 
exception root cause
  | javax.faces.FacesException: Error calling action method of component with 
id addEmailAddressForm:_id29
  | at 
org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:74)
  | at javax.faces.component.UICommand.broadcast(UICommand.java:106)
  | at 
javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:94)
  | at 
javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:168)
  | at 
org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343)
  | at 
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:29)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:43)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | at 

[jboss-user] [JBoss Seam] - Re: EntityQuery

2007-02-14 Thread lightbulb432
Wow, that makes things quite ugly! I have to create another useless component 
just to hold the form field value so that it doesn't interfere with the action 
method containing the injected EntityQuery.

Are there any better solutions than what I've done?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4016837#4016837

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4016837
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: EntityQuery

2007-02-14 Thread lightbulb432
I'm going down a rat hole here...solving problems just reveals more... any 
reason why the following transaction not found exceptions might be happening, 
when I'm using regular session beans and my connection to the DB is up? 

It results in an org.jboss.seam.TransactionFailed message, and only happens 
when I'm using the EntityQuery as opposed to a regular query.

javax.servlet.ServletException: Error calling action method of component with 
id addEmailAddressForm:_id29
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:29)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:43)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
  | at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | at 
org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  | at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  | at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  | at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  | at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
  | at java.lang.Thread.run(Unknown Source)
  | 2007-02-14 20:42:54,687 ERROR [org.jboss.seam.servlet.SeamExceptionFilter] 
exception root cause
  | javax.faces.FacesException: Error calling action method of component with 
id addEmailAddressForm:_id29
  | at 
org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:74)
  | at javax.faces.component.UICommand.broadcast(UICommand.java:106)
  | at 
javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:94)
  | at 
javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:168)
  | at 
org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343)
  | at 
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:29)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:43)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 

[jboss-user] [JBoss Seam] - EntityHome

2007-02-14 Thread lightbulb432
I'm setting up relationships between entities from EntityHome subclasses. In a 
bidirectional relationship I have one EntityHome injecting the value of the 
other entity, and that entity's EntityHome injecting the value of the first.

This seems like it's going to work fine, except for not knowing how to outject 
the value of the first EntityHome's entity so that the second EntityHome can 
inject it.

In the first EntityHome I have as follows:

@Factory(firstEntity)
  | public FirstEntity init() { return getInstance(); }
  | 
  | @In
  | private SecondEntity secondEntity;

In the second EntityHome I have as follows:

@In
  | private FirstEntity firstEntity;

It is this line that complains about not finding a firstEntity contextual 
component to inject...why? Isn't my declaring it as @Factory(firstEntity) 
enough? How would I outject appropriately?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4016879#4016879

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4016879
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: EntityQuery

2007-02-14 Thread lightbulb432
Maybe these exceptions that've been happening on every deployment is related?

java.lang.RuntimeException: javax.management.InstanceNotFoundException: 
jboss.j2ee:ear=test.ear,jar=jboss-seam.jar,name=TransactionListener,service=EJB3
 is not registered.
  | at 
org.jboss.ejb3.JmxKernelAbstraction.uninstallMBean(JmxKernelAbstraction.java:159)
  | at 
org.jboss.ejb3.JmxKernelAbstraction.uninstall(JmxKernelAbstraction.java:175)
  | at org.jboss.ejb3.Ejb3Deployment.stop(Ejb3Deployment.java:501)
  | at org.jboss.ejb3.Ejb3Module.stopService(Ejb3Module.java:107)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStop(ServiceMBeanSupport.java:315)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:247)
  | at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
  | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  | at java.lang.reflect.Method.invoke(Unknown Source)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
  | at $Proxy0.stop(Unknown Source)
  | at org.jboss.system.ServiceController.stop(ServiceController.java:508)
  | at sun.reflect.GeneratedMethodAccessor275.invoke(Unknown Source)
  | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  | at java.lang.reflect.Method.invoke(Unknown Source)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  | at $Proxy36.stop(Unknown Source)
  | at org.jboss.ejb3.EJB3Deployer.stop(EJB3Deployer.java:469)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  | at java.lang.reflect.Method.invoke(Unknown Source)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | at 
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | at 
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
  | at 
org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
  | at 
org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
  | at 
org.jboss.ws.integration.jboss.DeployerInterceptor.stop(DeployerInterceptor.java:122)
  | at 
org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.stop(SubDeployerInterceptorSupport.java:196)
  | at 
org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:99)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  | at $Proxy37.stop(Unknown Source)
  | at org.jboss.deployment.MainDeployer.stop(MainDeployer.java:667)
  | at org.jboss.deployment.MainDeployer.stop(MainDeployer.java:659)
  | at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:638)
  | at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:632)
  | at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:615)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  | at java.lang.reflect.Method.invoke(Unknown Source)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | at 
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | at 

[jboss-user] [Installation, Configuration Deployment] - Re: Cycle Log Files

2007-02-13 Thread lightbulb432
Right now what I'm doing is stopping the server everytime I'd like to have a 
clean server.log, deleting the log, starting the server again so I can separate 
issues without having to do so visually when looking at the log file.

Alternatively, are there JBoss-specific log utilities that make it easy to 
visually distinguish what's happening in the log based on time, etc?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4015843#4015843

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4015843
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration Deployment] - Upgrading strategy

2007-02-13 Thread lightbulb432
I have a general question about upgrading from one version of JBoss to another. 
When you've done all the slimming/thinning in your current installation and 
changed specific configuration files for your application (including debug 
levels, what services are enabled, and much more...), you'd like to be able to 
upgrade to another version while keeping these around.

What strategies do you use to minimize the effort needed to upgrade while 
keeping your settings? Do you use version control, or is there some feature of 
the actual installation process that I'm not aware of that simplifies this?

If using version control, which files/folders do you put there from the 
JBOSS_HOME directory?

I'd just like a workable solution to make this process hassle- and error-free 
(or -minimized, at least), and am interested to get your ideas. Thanks.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4015844#4015844

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4015844
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - end-conversation

2007-02-13 Thread lightbulb432
Could somebody please explain when you'd have beforeRedirect set to true vs 
false for end-conversation in pages.xml? I can't seem to figure out when you'd 
use it and what the difference would be in your application.

Thanks.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4015917#4015917

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4015917
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: end-conversation

2007-02-13 Thread lightbulb432
Oh...I didn't realize the behavior under true wasn't default behavior. 

If there wasn't a redirect, wouldn't the conversation be over on the 
re-rendered page (and if you did a GET for something else the conversation 
would not come with it)? Then how can a conversation propagate across a GET 
that happens immediately after the render in the form of a redirect?

Confused...whatever...I'll just memorize that.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4015961#4015961

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4015961
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Scopes

2007-02-13 Thread lightbulb432
Hopefully somebody has a practical example of their use of PAGE. Something 
where PAGE was more suited than the other scopes.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4015964#4015964

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4015964
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Can conversation override session?

2007-02-13 Thread lightbulb432
I'm trying to override a session-scoped component with a conversational-scoped 
component for the duration of the conversation (i.e. Within the conversation 
the conversational-scoped component is injected when @In refers to the shared 
component name. Then when the conversation ends that same @In would get the 
session-scoped component.)

I have outjected something from pages.xml using the following code. I have a 
session-scoped component under the name shared, and this takes a 
conversational-scoped component existing and puts it under a conversational 
scope under the name shared.

Now there are both a session- and conversational-scoped component with a name 
exists, but the problem is that in the debug screen they have the same values 
when they shouldn't. Does putting scope=CONVERSATION outject it only into the 
conversation, or into both the conversation and session? (I want the former 
behavior.) They are the same class of entity.

page view-id=/mypage.xhtml
  | navigation from-action=#{mybean.action}
  | out name=shared value=#{existing} 
scope=CONVERSATION /
  | redirect view-id=/toredirect.xhtml /
  | /navigation
  | /page



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4016177#4016177

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4016177
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: DataModelSelection and components.xml

2007-02-13 Thread lightbulb432
I'm stuck on this same issue, but am getting the following error:

value=#{factoryName}: Cannot get value for expression 
'#{entityQueryName.resultList}'

framework:entity-query name=entityQueryName ejbql=... /
  | factory name=factoryName value=#{entityQueryName.resultList}/

Why is this happening, and how do I solve it?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4016188#4016188

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4016188
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: DataModelSelection and components.xml

2007-02-13 Thread lightbulb432
I guess it was because I needed to add a entity-manager=em attribute to the 
framework:entity-query because that's what my core:managed-persistence-context 
is, but that gave the following exception on deployment:

Exception sending context initialized event to listener instance of class 
org.jboss.seam.servlet.SeamListener
  | java.lang.IllegalArgumentException: No converter for type: 
javax.persistence.EntityManager

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4016200#4016200

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4016200
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: DataModel

2007-02-12 Thread lightbulb432
anonymous wrote : What I'm trying to tell you is that you have to update the 
DataModel when you change the data.

That works (i.e. calling the factory method to update the DataModel) when the 
Factory method grabs results from the database. But I have a Factory that grabs 
results from another entity that has just been updated.

My DataModel is a collection of entities from another entity. e.g. 
myA.getCollectionOfBs(). My remove method from the DataModel does the following:

em.remove(b);
  | // em.flush();
  | runFactory();

runFactory() simply does a myA.getCollectionOfBs(), which returns the same set 
of entities (not removing the entity I just got rid of). I tried doing a flush 
where I've commented it out above, but that didn't help.

What can I do to get these changes reflected? (Short of just doing a 
query...shouldn't I be able to get them straight from the entities?)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4015205#4015205

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4015205
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - SMPC

2007-02-12 Thread lightbulb432
When would you get LazyInitializationExceptions using SMPC? If you have 
lazily-loaded collections, am I correct to assume that because the persistence 
context is alive everywhere within the conversation, that lazily-loaded 
collections are loaded when accessed, hence you never see LIE anymore?

i.e. No need to make them EAGER, but still no LIEs anymore...everything's 
loaded on-demand?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4015246#4015246

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4015246
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: SMPC

2007-02-12 Thread lightbulb432
Cool.

If the scope of an EXTENDED persistence context is greater than that of a 
conversational one (i.e. session vs conversation), then wouldn't you also never 
have LIEs if EXTENDED PCs were used conversationally in a conversational SFSB?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4015255#4015255

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4015255
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: f:param in h:commandLink in h:column

2007-02-12 Thread lightbulb432
Apparently I should be using outputLink instead of commandLink to get the 
parameters to show up...

So here's the issue I foresee now...each row in the dataTable has a link to a 
remove method which contains that row's entity id as a request parameter.

How would I use pages.xml to get the parameter to the method? If I put the 
pages.xml param element on the page that contains the dataTable, then many 
links on that page contain a paramName=0 the first time the page is loaded

I could use @RequestParameter, but I'd like to use the pages.xml way of doing it

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4015449#4015449

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4015449
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Conversation-scoped JavaBean

2007-02-12 Thread lightbulb432
I have an SFSB with an @Out of myVariable, where myVariable is an entity. The 
SFSB then calls a method on a conversation-scoped JavaBean with an @In of 
myVariable. Ideally, the myVariable should be exactly the same in the SFSB and 
the JavaBean.

The problem may be that myVariable is an entity with properties that are named 
the same as other outjected components. What is happening is that the 
myVariable is not being injected into the JavaBean from the outjected version 
in the SFSB...instead, the myVariable in the JavaBean seems to be constructing 
itself from scratch and injecting each property of the entity from the contexts.

For example, if myVariable is made up of properties a and b, then it will bring 
in whatever the current values of a and b are in the contexts. Is this supposed 
to happen - because if myVariable already exists, why doesn't it just inject 
that?

The JavaBean is implementing an interface, and the JavaBean class has the 
following annotations:

@Name(thejavabean)
  | @Scope(ScopeType.CONVERSATION)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=401#401

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=401
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Conversation-scoped JavaBean

2007-02-12 Thread lightbulb432
Other entities are getting correctly injected into the JavaBean. I read the 
documentation section on JavaBeans, but I'm not sure if there are some 
restrictions on what can successfully be injected into them, and on what the 
scopes of the JavaBean, injected components, etc must be.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4015587#4015587

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4015587
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - DataModel

2007-02-10 Thread lightbulb432
I'm removing an entity from a DataModel, so I do an em.remove(selectedEntity), 
where selectedEntity is the value of the DataModelSelection.

There's a problem: the entity gets removed and the page gets refreshed with the 
correct FacesMessage. However, the entity still shows up in the dataTable. Only 
when I do another refresh of the page does it get removed.

What are possible reasons for this? I'm not using browser caching... I'm using 
an SFSB:

@DataModelSelection(data)
  | @Out(required=false)
  | private Entity selectedEntity;
  | 
  | @DataModel
  | private ListEntity data;
  | 
  | @Factory(data)
  | public void initData() {
  | // init the data...
  | }



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4014233#4014233

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4014233
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration Deployment] - Cycle Log Files

2007-02-10 Thread lightbulb432
Is there a way from the web console, JMX console, or any other way of getting 
JBoss to cycle its server.log file while it is still running (i.e. move 
server.log to server-something.log and create a new, empty server.log)?

I ask because right now it only does it once a day.

Is there the capability to do it on demand, so that when looking through it for 
errors I only see errors related to a certain, predetermined amount of time?

I tried deleting server.log while the server is running but of course it says 
the file is in use and won't let me delete it. And even if it did, would it 
create a new server.log in its place?

I really hope there's a way to do this. Thanks.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4014252#4014252

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4014252
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: DataModel

2007-02-10 Thread lightbulb432
em.flush() doesn't work. It still gives the same problem.

What could be causing another refresh to be necessary? After the redirect in 
pages.xml, shouldn't that take care of the refresh?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4014299#4014299

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4014299
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: DataModel

2007-02-10 Thread lightbulb432
It's only specified as @DataModel right now. If I try putting an 
@DataModel(scope=ScopeType.something), it gives an error saying it can only be 
ScopeType.UNSPECIFIED or ScopeType.PAGE.

ScopeType.UNSPECIFIED gives identical behavior to having just @DataModel (with 
no scope), and ScopeType.PAGE gives some very weird behavior. Should it be 
ScopeType.PAGE or something else?

Completely confused...

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4014307#4014307

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4014307
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Scopes

2007-02-10 Thread lightbulb432
I'm having a hard time understanding the PAGE scope. I've read the Javadoc on 
what it is, but could somebody give examples in simple terms of when you might 
use it... I can't think of anything, but would like to learn its value...

Thanks.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4014347#4014347

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4014347
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: DataModel

2007-02-10 Thread lightbulb432
That makes sense (and works). Thanks.


I have two DataModelSelections for two DataModels on the same SFSB. When I 
select one table, the DataModelSelection for that gets properly injected, but 
the other gets injected with null values (and an id of 0).

Why is something (albeit a null value) getting injected into the 
DataModelSelection that I didn't select? This is causing problems when I do a 
#{empty selectedEntity} to check whether the OTHER entity (the one I didn't 
select) has been injected. 

It returns FALSE because it has been injected when it shouldn't have been!

Why is a null entity getting injected into DataModelSelection? Is this 
expected behavior? If not, what might be causing it?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4014399#4014399

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4014399
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Multiple DataModels in an SFSB

2007-02-09 Thread lightbulb432
I'm getting a problem where the DataModelSelection that isn't being selected 
(because there's 2 in the SFSB) is still being outjected, albeit with all 
properties empty...I do a null check on whether a particular component is not 
empty in conversation scope for application functionality, so this is a 
problem. (By the way, is that not a good way of doing things?)

Where in my debugger should I put a breakpoint to see when a component gets 
outjected into any scope (in particular, the conversation scope)? I think it's 
a simple case of having a ${mycomponent.myproperty} somewhere in one of the 
pages, so the component is getting outjected...


A related question is if I put a ${mycomponent.myproperty} within Facelets 
template text in a page to output the value if that property exists (or remain 
empty otherwise), I get an empty mycomponent outjected (is that expected 
behavior)? I thought things only get outjected when you specify explicitly that 
you outject them (e.g. in an @Out of a session bean). But a simple property 
access...?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4013706#4013706

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4013706
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam Examples

2007-02-09 Thread lightbulb432
I noticed that all the Seam examples use HSQLDB, and their Ant builds work 
perfectly even though I've done no HSQLDB install or configuration on my end.

Where are the HSQLDB JARs located (couldn't find them in the deployed EAR, or 
JBOSS_HOME/server/default/lib)? It seems a little weird that it's working so 
well!

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4013708#4013708

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4013708
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: f:param in h:commandLink in h:column

2007-02-09 Thread lightbulb432
Could somebody please describe whether the behavior I'm expecting is the 
behavior that should be happening (because maybe I'm totally wrong about this 
to begin with)?

Also, is there anything you can think of related to the use of Seam that might 
be causing this...or do you think it's totally a JSF issue?

Any direction would be highly appreciated.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4013732#4013732

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4013732
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Multiple DataModels in an SFSB

2007-02-07 Thread lightbulb432
Ok, then in an SFSB how can you ensure that every time the property is accessed 
the factory is getting run again?

The way I understand it is that the factory is only executed when the 
corresponding property is null. Therefore, the only time that would apply is 
the very first time that the factory method is run on the SFSB.

I don't want to be dealing with stale data though! How should I solve this?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4012487#4012487

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4012487
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam Security

2007-02-07 Thread lightbulb432
lightbulb432 wrote : When catching NotLoggedInException in exceptions.xml, I 
have a 
  | 
  | redirect view-id=/login.xhtmlNot logged in/redirect for the 
NotLoggedInException.
  | 
  | While the redirect works correctly, the message Not logged in doesn't 
display in login.xhtml's h:messages globalOnly=true /
  | 
  | Why won't this message appear?

I spoke too soon when I said the above problem sorted itself out. The following 
does not work:

exception class=org.jboss.seam.NotLoggedInException
  |redirect view-id=/login.xhtml
  |   messageNot logged in/message
  |/redirect
  | /exception

This does not appear in any case. Only for authorization exceptions (when the 
user doesn't have appropriate permissions) does the message appear. Keep in 
mind the redirect is working, however, and the login.xhtml does have an 
h:messages. Is this a bug in Seam?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4012497#4012497

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4012497
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam Security

2007-02-07 Thread lightbulb432
I'll give it a shot, thanks.


How would you use enums as roles added to the identity? Right now I'm using an 
enum but it expects strings, so instead of having a simple enum with just { 
ROLE1, ROLE2 }, I have to have a constructor and String property in the enum.

I also must refer to it as myEnumEntry.getStringProperty() instead of just 
myEnumEntry. Is there any support for using enums as roles, or must I convert 
everything to a String before doing it?

I figure enums could be a nice, clean, and simple way of doing this...? (An 
example of where enums are appropriate, no?)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4012698#4012698

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4012698
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Multiple DataModels in an SFSB

2007-02-06 Thread lightbulb432
I have multiple DataModels with corresponding DataModelSelections in an SFSB. 
The problem is that every time one is injected based on a selection, the other 
seems to get injected into its DataModelSelection as well (a default value of 
the first in the row of that other DataModel, because no row was actually 
selected for it).

Has anybody else had this problem? I'm not doing caching or anything in my 
bean, so am wondering whether this might be a bug?

In the code below, on one page I select a row in the table of A 
entities...however, not only is the DataModelSelection for A injected, but also 
for B! Totally unexpected... (The injected value for B is always the first 
element in its list.) The same thing happens in the opposite way when I am on 
the page for B.

@DataModelSelection(a)
  | @Out(required=false)
  | private A a;
  | 
  | @DataModelSelection(b)
  | @Out(required=false)
  | private B b;
  | 
  | @DataModel
  | @Factory
  | @SuppressWarnings(unchecked)
  | public ListA getA() {
  | ...
  | }
  | 
  | @DataModel
  | @Factory
  | @SuppressWarnings(unchecked)
  | public ListB getB() {
  | ...
  | }

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4011778#4011778

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4011778
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam Security

2007-02-06 Thread lightbulb432
Yet another problem... Is it looking for a login() method, rather than a login 
with the three required arguments? I dunno, but it's not working with the 
latest CVS of Seam and I've declared the login method in the session bean 
interface.

And I've declared my login method in the components.xml...


12:48:56,609 ERROR [SeamLoginModule] Error invoking login method
  | javax.faces.el.EvaluationException: Exception while invoking expression 
#{login.login}
  | at 
org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:165)
  | at 
org.jboss.seam.actionparam.ActionParamBindingHelper.invokeTheExpression(ActionParamBindingHelper.java:59)
  | at 
org.jboss.seam.actionparam.ActionParamMethodBinding.invoke(ActionParamMethodBinding.java:74)
  | at org.jboss.seam.core.Expressions$2.invoke(Expressions.java:102)
  | at 
org.jboss.seam.security.jaas.SeamLoginModule.login(SeamLoginModule.java:102)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
  | at 
javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
  | at javax.security.auth.login.LoginContext$5.run(LoginContext.java:706)
  | at java.security.AccessController.doPrivileged(Native Method)
  | at 
javax.security.auth.login.LoginContext.invokeCreatorPriv(LoginContext.java:703)
  | at javax.security.auth.login.LoginContext.login(LoginContext.java:575)
  | at org.jboss.seam.security.Identity.authenticate(Identity.java:204)
  | at org.jboss.seam.security.Identity.authenticate(Identity.java:197)
  | at org.jboss.seam.security.Identity.login(Identity.java:182)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at com.sun.el.parser.AstValue.invoke(AstValue.java:151)
  | at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
  | at 
com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
  | at 
com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:69)
  | at 
org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
  | at javax.faces.component.UICommand.broadcast(UICommand.java:106)
  | at 
javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:94)
  | at 
javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:168)
  | at 
org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343)
  | at 
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:29)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:43)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
  | at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  | at 

[jboss-user] [JBoss Seam] - Re: Seam Security

2007-02-06 Thread lightbulb432
Note that it was working fine until I upgraded to the latest CVS version to 
solve another problem, so I don't think the problem's within my login method or 
anything like that (as I didn't make changes to those after upgrading).

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4012121#4012121

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4012121
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam Security

2007-02-06 Thread lightbulb432
Oh, I didn't realize that, thanks.


When catching NotLoggedInException in exceptions.xml, I have a 

redirect view-id=/login.xhtmlNot logged in/redirect for the 
NotLoggedInException.

While the redirect works correctly, the message Not logged in doesn't display 
in login.xhtml's h:messages globalOnly=true /

Why won't this message appear?


My next question is how can the exception object be accessed from within a 
page? I looked up the Seam documentation under the Seam pre-installed 
components but nothing related to exceptions comes up...I'm thinking of some 
kind of #{exception.stackTrace} or something...

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4012139#4012139

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4012139
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: First JBoss Seam book released

2007-02-06 Thread lightbulb432
Isn't this book already obsolete? :)

Seriously though, would it be a worthwhile purchase considering the amazing 
speed at which Seam is developing? (Even if it were up-to-date today, by the 
time it comes in the mail I imagine that would cease to be true.)

Or is this meant for learning the bare minimum Seam basics that'll remain 
consistent and probably won't really change with time?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4012143#4012143

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4012143
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Caching pages in browser

2007-02-06 Thread lightbulb432
I seem to be getting conflicting info from different resources...people say to 
make sure browsers don't cache your pages, while page caching is a huge part of 
increasing performance that others thoroughly recommend

Should you set response headers or meta tags for caching pages to off or on? 
Does this apply to every single page in your application or does it depend on 
certain criteria? (I read that for Seam's MVC style with redirects to work 
browsers shouldn't cache your pages...) Why?

Are there certain criteria (e.g. don't cache any page with a form, or an 
s:link, or something like that) that make a good rule of thumb for which pages 
can be cached and which shouldn't?

(I imagine it's still okay to cache purely static pages, but in a Seam 
application where a static page might still be composed of multiple 
templates, that'll never apply...)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4012169#4012169

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4012169
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Caching pages in browser

2007-02-06 Thread lightbulb432
I'm not quite sure what you're saying ... so we should not cache pages in 
browser but can still use things like s:cache?

How does s:cache change anything...doesn't the page in the cache still need to 
be re-executed when accessed? And if not (i.e. it's already in HTML), then 
how's it any better than browser caching?

Is it true that browser caching with Seam is never a good combo?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4012180#4012180

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4012180
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Multiple DataModels in an SFSB

2007-02-06 Thread lightbulb432
SmokingAPipe wrote : ... I have always used @DataModel on a variable, not on 
a method.  Also I would think that @Factory and @DataModel should not be on the 
same thing.

Could one of the developers of Seam comment on whether the above is correct? 
I'd think that whether I annotate a method or a variable as @DataModel, in 
either case it shouldn't affect when @DataModelSelection is populated.

What might be causing the @DataModelSelection to be populated with the first 
row in its corresponding @DataModel when another @DataModel's element is 
selected?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4012182#4012182

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4012182
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam Security

2007-02-06 Thread lightbulb432
I wrapped the message in an element according to the new pages.xml DTD, but 
there's no change...it still doesn't appear for me.

Also, how can I override the default org.jboss.seam.loginFailed and 
org.jboss.seam.loginSuccessful messages? I tried putting them in my properties 
files (e.g. org.jboss.seam.loginSuccessful=My Message) that I've added in 
components.xml, but the default messages still appear!

I'm not having any luck with Seam and messages, I guess...

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4012233#4012233

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4012233
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam Security

2007-02-06 Thread lightbulb432
Never mind my previous post; the first problem magically disappeared and the 
second was solved by adding messages to the list of resource bundles in 
components.xml.


How do I debug roles? I've added the roles to the identity component in my 
login method but the debug page doesn't list roles for the identity component! 
It only lists the following properties, but nothing like roles:

authenticateMethod
class
cookieEnabled
cookieMaxAge
jaasConfigName  
loggedIn
password  
principal
rememberMe
securityContext
securityRules
subject
username
toString()

How can I see why s:hasRole('...') isn't working correctly? I'd like to know 
what roles identity actually has added and whether they've been added correctly 
from my code...

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4012273#4012273

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4012273
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam Security

2007-02-05 Thread lightbulb432
Ok, that's what I would've guessed. By the way, I looked through the code of 
Identity's logout() method and didn't see a call to Seam.invalidateSession() 
anywhere in the things it calls...am I looking in the wrong place? In fact, 
that method does a few things...

Also, if writing my own logout method could I specify a logout method like I do 
a login method in components.xml?

Or would I have to subclass Identity and override logout?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4011396#4011396

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4011396
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam Security

2007-02-05 Thread lightbulb432
Also, if 99/100 pages need to only allow access to logged in users, do I need 
to add the following to every one of those 99 page elements in pages.xml? 

Or is there a simpler way to do this (e.g. set a default of every page 
requiring login then override it with a few pages that don't)? Or does using 
security.drl have some functionality that'd be useful for this?

restrict#{identity.loggedIn}/restrict

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4011404#4011404

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4011404
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam Security

2007-02-05 Thread lightbulb432
Why is the NotLoggedInException being swallowed? Aren't we supposed to be able 
to do things with this, like specify it in exceptions.xml - which isn't working 
for me...

19:55:48,625 ERROR [AbstractSeamPhaseListener] Swallowing exception thrown by 
page action
  | org.jboss.seam.security.NotLoggedInException
  | at org.jboss.seam.security.Identity.checkRestriction(Identity.java:161)
  | at org.jboss.seam.pages.Page.enter(Page.java:185)
  | at org.jboss.seam.core.Pages.enterPage(Pages.java:239)
  | at 
org.jboss.seam.jsf.AbstractSeamPhaseListener.enterPage(AbstractSeamPhaseListener.java:241)
  | at 
org.jboss.seam.jsf.AbstractSeamPhaseListener.beforeRender(AbstractSeamPhaseListener.java:192)
  | at 
org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:53)
  | at 
org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersBefore(PhaseListenerManager.java:70)
  | at 
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:373)
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:32)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:46)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
  | at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | at 
org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  | at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  | at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  | at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  | at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
  | at java.lang.Thread.run(Thread.java:595)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4011705#4011705

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4011705
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam Security

2007-02-05 Thread lightbulb432
Aah, I see.

Regarding the authenticator.authenticate method, when you add roles to the Set 
roles in the method argument, where in the debug would you look to see that 
it's actually being added correctly?

I checked the identity component but there's no roles property there...where 
else do I look? (I'm having some troubles that seem to be related to these 
roles...)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4011718#4011718

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4011718
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam Security

2007-02-04 Thread lightbulb432
Both those suggestions solved that problem, thanks.


When users logout, if the link has an action of identity.logout, I find that 
because it's not my custom method I can't do things like 
Seam.invalidateSession() and clear the session of its context variables and 
other custom things specific to a given application. 

How would I be able to incorporate these things when somebody logs out?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4011180#4011180

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4011180
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Seam Security

2007-02-03 Thread lightbulb432
Umm, have we lost the ability to use Hibernate Validators on our login fields 
(username and password) when using Seam Security's identity.username and 
identity.password? If not, where would I put 'em?

Am I gonna hafta override Identity and put the annotations on the overridden 
getters?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4010556#4010556

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4010556
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: dataTable in two windows

2007-02-03 Thread lightbulb432
anonymous wrote : First problem can be solved by passing the id as a request 
parameter instead of blindly using @DataModelSelection.

Could anybody please explain how they've done this with their code?

The code below explains how to remove the appropriate entity when you have a 
request parameter passed in. But how can I make every row in the dataTable 
output a corresponding request parameter (so that when someone clicks a link in 
the table, the request parameter gets passed)?

@RequestParameter
  | Long entityId;
  | 
  | public void removeMyEntity() {
  |  MyEntity mySelectedEntity = em.find(MyEntity.class, entityId);
  |  em.remove(mySelectedEntity);
  | }

Is it as simple as an h:commandLink to the action method with a nested f:param 
that has the id of the entity?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4010560#4010560

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4010560
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam Security

2007-02-03 Thread lightbulb432
I'm way too cool for JSF validator tags ;)

Just to see how the overriding would work, afer you override the class how 
would you get Seam to use it everytime I refer to identity as opposed to the 
current Identity?

I could change the line in components.xml bundled with the Seam JARs to the 
following, but I'm sure there's a way to do this without messing with the Seam 
JARs. (Seam must be extensible, right?)

factory scope=stateless auto-create=true name=identity 
value=#{myIdentitySubclass}/

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4010562#4010562

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4010562
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam Security

2007-02-03 Thread lightbulb432
Problem! Why might the security and identity components not be showing up in 
the debug page under application components? The log shows seam component not 
found for identity.

I have replaced the previous JARs with the 1.1.5.GA JARs (even reinstalled 
JBoss using the BETA3 JEMS installer)...are there any other settings that must 
be changed when moving to 1.1.5?

Right now I have jboss-seam.jar underneath the EAR directly, and 
jboss-seam-debug, jboss-seam-ui, jsf-facelets, el-api, and el-ri JARs 
underneath WAR/WEB-INF/lib...do you see anything wrong here?

I've also registered jboss-seam.jar in application.xml as a java module.

Or any other configuration needed for the new security features?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4010607#4010607

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4010607
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam Security

2007-02-03 Thread lightbulb432
[EMAIL PROTECTED] wrote : Identity is a session-scoped component.

Yes, but my other session-scoped components appear in the Application Context 
section of the debug page as theName.component. The log is below (from the 
beginning of one simple request to the end). Several messages say it can't find 
the identity component...what might be going on?

Also, I'm not sure if it's relevant but every field bound to the identity 
components value - identity.username and .password (regardless of what value, 
if any, is submitted in it) comes back with a 
javax.faces.component.UIInput.CONVERSION error.

23:35:41,906 DEBUG [SeamPhaseListener] before phase: RESTORE_VIEW(1)
  | 23:35:41,906 DEBUG [Naming] JNDI InitialContext 
properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory,
 java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
  | 23:35:41,906 DEBUG [AbstractSeamPhaseListener] beginning transaction prior 
to phase: RESTORE_VIEW(1)
  | 23:35:41,906 DEBUG [Naming] JNDI InitialContext 
properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory,
 java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
  | 23:35:41,906 DEBUG [Lifecycle]  Begin web request
  | 23:35:41,906 DEBUG [Events] Processing event:org.jboss.seam.beforePhase
  | 23:35:41,921 DEBUG [SeamPhaseListener] after phase: RESTORE_VIEW(1)
  | 23:35:41,921 DEBUG [Events] Processing event:org.jboss.seam.afterPhase
  | 23:35:41,921 DEBUG [Component] instantiating Seam component: 
org.jboss.seam.core.manager
  | 23:35:41,921 DEBUG [Component] initializing new instance of: 
org.jboss.seam.core.manager
  | 23:35:41,921 DEBUG [Component] done initializing: 
org.jboss.seam.core.manager
  | 23:35:41,921 DEBUG [Events] Processing 
event:org.jboss.seam.preSetVariable.org.jboss.seam.core.manager
  | 23:35:41,921 DEBUG [Events] Processing 
event:org.jboss.seam.postSetVariable.org.jboss.seam.core.manager
  | 23:35:41,921 DEBUG [Events] Processing 
event:org.jboss.seam.postCreate.org.jboss.seam.core.manager
  | 23:35:41,921 DEBUG [Manager] No stored conversation, or concurrent call to 
the stored conversation
  | 23:35:41,921 DEBUG [AbstractSeamPhaseListener] After restoring conversation 
context: ConversationContext(26)
  | 23:35:41,921 DEBUG [SeamPhaseListener] before phase: APPLY_REQUEST_VALUES(2)
  | 23:35:41,921 DEBUG [Events] Processing event:org.jboss.seam.beforePhase
  | 23:35:41,921 DEBUG [SeamVariableResolver] resolving name: member
  | 23:35:41,921 DEBUG [Contexts] found in session context: member
  | 23:35:41,921 DEBUG [SeamVariableResolver] resolved name to Seam component
  | 23:35:41,921 DEBUG [SeamVariableResolver] resolving name: member
  | 23:35:41,921 DEBUG [Contexts] found in session context: member
  | 23:35:41,921 DEBUG [SeamVariableResolver] resolved name to Seam component
  | 23:35:41,921 DEBUG [SeamVariableResolver] resolving name: member
  | 23:35:41,921 DEBUG [Contexts] found in session context: member
  | 23:35:41,921 DEBUG [SeamVariableResolver] resolved name to Seam component
  | 23:35:41,921 DEBUG [SeamVariableResolver] resolving name: member
  | 23:35:41,921 DEBUG [Contexts] found in session context: member
  | 23:35:41,921 DEBUG [SeamVariableResolver] resolved name to Seam component
  | 23:35:41,921 DEBUG [SeamVariableResolver] resolving name: member
  | 23:35:41,921 DEBUG [Contexts] found in session context: member
  | 23:35:41,921 DEBUG [SeamVariableResolver] resolved name to Seam component
  | 23:35:41,921 DEBUG [SeamVariableResolver] resolving name: member
  | 23:35:41,921 DEBUG [Contexts] found in session context: member
  | 23:35:41,921 DEBUG [SeamVariableResolver] resolved name to Seam component
  | 23:35:41,921 DEBUG [SeamVariableResolver] resolving name: member
  | 23:35:41,921 DEBUG [Contexts] found in session context: member
  | 23:35:41,921 DEBUG [SeamVariableResolver] resolved name to Seam component
  | 23:35:41,921 DEBUG [SeamVariableResolver] resolving name: member
  | 23:35:41,921 DEBUG [Contexts] found in session context: member
  | 23:35:41,921 DEBUG [SeamVariableResolver] resolved name to Seam component
  | 23:35:41,921 DEBUG [SeamVariableResolver] resolving name: member
  | 23:35:41,921 DEBUG [Contexts] found in session context: member
  | 23:35:41,921 DEBUG [SeamVariableResolver] resolved name to Seam component
  | 23:35:41,921 DEBUG [SeamVariableResolver] resolving name: member
  | 23:35:41,921 DEBUG [Contexts] found in session context: member
  | 23:35:41,921 DEBUG [SeamVariableResolver] resolved name to Seam component
  | 23:35:41,921 DEBUG [SeamVariableResolver] resolving name: member
  | 23:35:41,921 DEBUG [Contexts] found in session context: member
  | 23:35:41,921 DEBUG [SeamVariableResolver] resolved name to Seam component
  | 23:35:41,921 DEBUG [SeamPhaseListener] after phase: APPLY_REQUEST_VALUES(2)
  | 23:35:41,921 DEBUG [Events] Processing event:org.jboss.seam.afterPhase
  | 23:35:41,921 DEBUG [SeamPhaseListener] before phase: 

[jboss-user] [JBoss Seam] - Re: OptimisticLockException

2007-02-01 Thread lightbulb432
In cases like this where an OptimisticLockException occurs, does Seam have no 
way of using exceptions.xml to handle this fact and display a nice error 
message?

I've exhausted all my resources and don't know where else to turn apart from 
this board...please, if somebody knows how to use exceptions.xml to catch it, 
let me know...

If you need any more info on the issue, I can provide it...

Thanks.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4009225#4009225

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4009225
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: dataTable in two windows

2007-02-01 Thread lightbulb432
How do I get each row's ID to appear in it's text within the link? Right now 
when I put the following in pages.xml every commandLink shows up (when I put my 
cursor over it) with an ID URL parameter of the value that was previously 
selected, as opposed to the value that corresponds to the ID of what entity 
that row represents...

param name=entityId value=#{mySelectedEntity.id} /

Every single commandLink on the page has the exact same entityID in its URL 
string! Why?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4009224#4009224

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4009224
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: OptimisticLockException

2007-01-26 Thread lightbulb432
Is my only option then to use an action method? It seems like an ugly solution 
but the only thing I can think of...am I missing any possibilities?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4006942#4006942

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4006942
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: OptimisticLockException

2007-01-25 Thread lightbulb432
I was using @Render, I'll try using @Redirect instead. I'm guessing @Render 
would've been preferrable so that the error appears on the same page rather 
than (like a FacesMessage from an invalid field)

Why do @Render (only in INVOKE_APPLICATION) and @Redirect (not in 
RENDER_RESPONSE) not work at any time in the request lifecycle? Can't redirects 
and forwards happen at any time? (I'm sure there's a good reason, maybe someone 
could explain.)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4006438#4006438

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4006438
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration Deployment] - Re: Deploy change to property file

2007-01-25 Thread lightbulb432
Oh, that makes sense.

For production would you generally deploy things packaged or exploded (with the 
hot deployer turned off)? Any advantages to either (e.g. convenience, 
performance, other issues...)

Could you point me to resources for how to turn the hot deployer off and to 
invoke it manually? (Would both of these be done from within the JMX Console or 
through some configuration file...I can never tell the difference between these 
two approaches!)

Thanks.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4006508#4006508

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4006508
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: OptimisticLockException

2007-01-25 Thread lightbulb432
Changing exceptions.xml to redirect from render doesn't do anything - same 
problem. This exception is getting caught somewhere and not propagating to a 
point where exceptions.xml can do anything with it.

What am I supposed to do here? (Short of creating an action method - see my OP.)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4006600#4006600

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4006600
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: OptimisticLockException

2007-01-25 Thread lightbulb432
In the log, the OptimisticLockException (OLE) shows up somewhere between the 
following two statements:

[SeamPhaseListener] after phase: INVOKE_APPLICATION(5)
  | #Several other statements here
  | #The exception stack traces followed immediately by the next line:
  | [SeamPhaseListener] before phase: RENDER_RESPONSE(6)

Also, the OLE is caused by a org.hibernate.StaleObjectStateException. The OLE 
causes org.jboss.tm.JBossRollbackException which then causes 
java.lang.IllegalStateException. I try catching all of them in exceptions.xml, 
but none of them work!

exceptions
  | exception class=org.hibernate.StaleObjectStateException
  | redirectoptimistic lock exception/redirect
  | /exception
  | /exceptions

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4006608#4006608

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4006608
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration Deployment] - Re: Deploy change to property file

2007-01-25 Thread lightbulb432
How can I remove a servlet in a running JBoss instance? I want to debug the 
init() method of the servlet but it only runs the first time after being 
instantiated. The only option I see is to restart the server, which would not 
be a good option because of the time involved.

(I can't just delete the servlet from the deploy directory because it's part of 
an external library, so if I delete it I'm sure I'll break something else in 
the running app, requiring a restart anyways!) Hopefully JBoss has this 
capability.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4006661#4006661

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4006661
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam Examples

2007-01-24 Thread lightbulb432
I think I figured out #3...even though there's a cid in the address bar, 
there's not a clr=true so I guess that makes sense.

Anybody have any insights on #2,4,5? Your help would be greatly appreciated.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4005819#4005819

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4005819
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam Examples

2007-01-24 Thread lightbulb432
Thanks for your response. If there's always at least a temporary conversation, 
why do I sometimes see a cid and sometimes not in the address bar?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4005873#4005873

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4005873
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Conversations

2007-01-24 Thread lightbulb432
Additional question:

When updating elements in a long-running conversation, is one big update sent 
to the database when the conversation is explicitly ended?

Or are updates being sent to the database throughout the long-running 
conversation (i.e. every time a page gets submitted), but if the conversation 
is explicitly ended the transaction is committed and not rolled back?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4005876#4005876

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4005876
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Conversations

2007-01-24 Thread lightbulb432
So if it's not sent as one big update, is it sent as I guessed in the second 
paragraph in my previous post?

If you specify flushMode=MANUAL, the docs say you explicitly have to call 
flush(). What happens if you end a conversation that has pending updates to it 
without calling flush()...aren't they flushed anyways??

When would you choose to use MANUAL vs not? Aren't both options really the same 
(i.e. intermediate updates held in database uncommitted vs in the session bean)?

I'm really confused.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4005934#4005934

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4005934
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Conversations

2007-01-24 Thread lightbulb432
Thanks, that description cleared that up.

Let's say you have a conversation with several methods (one method called per 
request) and I use FlushMode.COMMIT/AUTO. If the first few requests in the 
conversation access a NEVER or NOT_SUPPORTED action method, and the next 
request accesses a REQUIRES (or similar) action method, would the persistence 
context be flushed when that REQUIRES method successfully returns?

Or would changes be flushed after every request because of the fact that 
there's always a transaction?

anonymous wrote : use two transactions per request; the first spans the 
beginning of the update model values phase until the end of the invoke 
application phase; the second spans the render response phase

How do the transactions from the quote above relate to the transactions 
specified by the transaction attributes? 

If somebody could please lay this all out for me that'd be wonderful...I've 
been reading the Seam and Hibernate sections on transactions, but now I just 
need to ask a human...

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4006062#4006062

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4006062
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: How to really flush data in the middle of a transaction

2007-01-24 Thread lightbulb432
Don't set your MySQL transaction setting to READ UNCOMMITTED unless you really 
want to allow dirty reads (do you!?). 

I think you might've solved the wrong problem...setting READ UNCOMMITTED works 
because they're running in separate transactions like the previous post said. 
You should figure out how to get the observer method in the same transaction so 
you can leave the transaction isolation at whatever it was before.

Anybody have suggestions on how might you do this? Can you just annotate 
observer methods with transaction attributes or is that only for session beans?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4006068#4006068

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4006068
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - OptimisticLockException

2007-01-24 Thread lightbulb432
I have a versioned object for which I'd like an error message to show up when 
an OptimisticLockException occurs. Adding an entry to exceptions.xml doesn't do 
anything because, though the OLE is thrown as seen in the log, it's 
subsequently caught by something.

I'm not merging the object in an action method, however. The update to the 
object simply occurs as the result submitting a form with an inputText that is 
bound to a property on the versioned object.

When I submit the form bound with an out-of-date object, the exception is 
thrown but there's no output on the page to indicate so because the OLE doesn't 
reach out of the Seam layer to exceptions.xml.

How can I solve this? I'd think it'd be common enough that the JBoss forums 
would have some insight, but nothing is there on this issue!

I think I could have an action method and catch the exception there, but then 
I'd need the additional method, which would just do a merge(). And then I'm not 
taking advantage of the SMPC with its mergeless updates! (But this probably 
applies to EXTENDED PCs too...)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4006098#4006098

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4006098
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration Deployment] - Re: Deploy change to property file

2007-01-24 Thread lightbulb432
That makes sense, thanks.

Does it ever make sense to deploy an exploded archive? I've noticed that in the 
Ant build, as it copies the folder over, the JBoss console starts to show 
different parts of the application deploying in bursts and before the Ant build 
has completed. Is this expected behavior? (Should there be console output 
before the Ant build completes? This never happens with packaged archives...)

Is the only reliable way to deploy to JBoss through packaged archives? Or can 
exploded archives work reliably?

What's recommended for production use?

If exploded archives aren't good for production purposes, can they reliably be 
used in a development environment or will the problem with the Ant builds keep 
happening? (Btw, the Ant build happens from within Eclipse.)

I'd really like for the exploded archive strategy to work, because am I correct 
to say that the whole application won't be undeployed/redeployed as in the 
packaged archive case?

Can anybody please clarify all this for me?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4006198#4006198

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4006198
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: s:link

2007-01-23 Thread lightbulb432
When would you use s:link vs h:commandButton within a dataTable?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4005624#4005624

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4005624
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


  1   2   3   >