[jboss-user] [JBoss Seam] - Re: Form Element ID changed

2007-10-19 Thread swd847
JSF pretty much generates id's of the form : container1ID:container2ID:elementID
but it depends on the container. 

If you are still stuck there are other ways to approch this.

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

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


[jboss-user] [JBoss Seam] - Re: document.getElementById() problem with JSF/Seam

2007-10-18 Thread swd847
try:
document.getElementById(formID:dataTableId:rowNumber:elementID)


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

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


[jboss-user] [JBoss Seam] - Re: PropertyNotFoundException, something I am overlooking...

2007-10-17 Thread swd847
are getSearchString and setSearchString part of the local interface?

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

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


[jboss-user] [JBoss Seam] - Re: how to check more than one role with @Restrict?

2007-10-16 Thread swd847

@Restrict(#{s:hasRole('admin') or s:hasRole('member')}) 

should work

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

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


[jboss-user] [JBoss Seam] - Re: making custom user-object available to Seam context

2007-10-16 Thread swd847
Can you post more code? The full code for authenticator and applicationUser 
would be good. Also more details about where in the lifecycle this exception 
occurs, is it straight after the login button is pressed or is it subsequent 
pages.

I think the problem you are probably having is that it looks like you have not 
specified the scope of the authenticator (and possibly applicationUser), which 
means that they will be bound to EVENT scope (which is probbly fine for the 
authenticator, but you would want applicationUser to be bound to SESSION 
scope). 

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

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


[jboss-user] [JBoss Seam] - Re: Random conversation id's

2007-10-15 Thread swd847
anonymous wrote : 
  | Ahem, conversation IDs are _already_ globally unique because by definition, 
they are combined with the unique session ID. There is no way you can step 
back into conversation 5 from a bookmark with a reasonably short session 
timeout. 
  | 

I have two use cases where this can happen:

1) A user bookmarks a page with the cid=2. They come back to your site later 
without using the bookmark, and while using it decide that they want to access 
the bookmarked page, but as cid=2 is already in use they will be redirected 
somewhere unexpected.


2) A user has mutliple windows open and then leaves your site until session 
timeout, when they come back they log in in one of the windows and continue 
working. They then try and use one of their pre-existing windows, and get 
redirected to an unexpected place because the cid was re-used while they 
continued to work.

2 is the reason why I wanted this, I know it is not a biggie, but it is 
confusing to the user, and whenever my users are confused the first thing they 
do is ring me, especially as my app encorages the use of multile windows 
(actually iframes, but the same principle applies). It seems to work ok, I have 
not noticed anything broken.

Stuart

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

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


[jboss-user] [JBoss Seam] - Re: component injection seam 1.2.1. ga

2007-10-15 Thread swd847

  | @In Identity identity;
  | 

Are you sure it is not this @In that is causing the exception? Maybe try 
create=true here as well.


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

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


[jboss-user] [JBoss Seam] - Re: Random conversation id's

2007-10-15 Thread swd847
The feature request is for the ability to overide the cid generator with a seam 
component. This would make it very easy to use incremental cid's in development 
and UID's in production to eliminate any chance of cid collision's, while still 
making it easy to debug.

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

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


[jboss-user] [JBoss Seam] - Re: component injection seam 1.2.1. ga

2007-10-15 Thread swd847
Can you post a full stacktrace? I think that does occur is that you probably 
want to access the bean through it's local interface, i.e. 

@In UserService userServiceBean;



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

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


[jboss-user] [JBoss Seam] - Re: Random conversation id's

2007-10-15 Thread swd847
I have submitted a patch to the JIRA that uses a session scoped 
conversationIdGenerator. This is my first attempt at submitting a patch, so all 
comments/criticisms are welcome.

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

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


[jboss-user] [JBoss Seam] - Re: Looking for Seam design ideas

2007-10-15 Thread swd847
Most seams app's probably have something like the following in their 
components.xml:


  | event type=org.jboss.seam.postAuthenticate
  | action expression=#{redirect.returnToCapturedView} /
  | /event
  | 

this is the config that redirects you to the page you where trying to hit after 
a login. Replace this with some custom logic that checks for expiration and the 
either manually returns redirect.returnToCapturedView() or returns the viewid 
of the password expiration page. You can even have the password expiration page 
call redirect.returnToCapturedView() when you are done.

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

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


[jboss-user] [JBoss Seam] - Re: Architecture question

2007-10-11 Thread swd847
If you design your schema properly you probably shouldn't have to do anything 
like this. How much data are you talking about?

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

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


[jboss-user] [JBoss Seam] - Re: Architecture question

2007-10-11 Thread swd847
That is not that many records, depending on what you want to do with them. As 
long as they are properly indexed etc and you are not doing any full table 
scans that should not be a problem.


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

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


[jboss-user] [JBoss Seam] - Re: problem in login.seam

2007-10-10 Thread swd847
The code in question looks like:


  |  protected void notLoggedIn()
  |{
  |   Events.instance().raiseEvent(org.jboss.seam.notLoggedIn);
  |   
  |   FacesMessages.instance().addFromResourceBundleOrDefault( 
  | FacesMessage.SEVERITY_WARN, 
  | org.jboss.seam.NotLoggedIn, 
  | Please log in first 
  |  );
  |}
  | 

So there is no way to stop something being added to the faces messages.

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

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


[jboss-user] [JBoss Seam] - Re: problem in login.seam

2007-10-10 Thread swd847
I have two simple and rather dodgy ways to work around this:

1) remove s:messages/ from the login page.

2)
Try something like:
 
  | IteratorFacesMessage iter = 
FacesContext.getCurrentInstance().getMessages();
  |   while ( iter.hasNext() )
  |   {
  |  FacesMessage m = (FacesMessage)iter.next();
  |  if(m.getDetail().equals(Please log in first) 
  |iter.remove();
  | 
  |   }
  | 
  | 

The code above probably won't work, but you get the general idea.

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

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


[jboss-user] [JBoss Seam] - Re: boolean property not binding

2007-10-10 Thread swd847
Can you post the full stacktrace? The one you posted is incomplete.



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

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


[jboss-user] [JBoss Seam] - Re: boolean property not binding

2007-10-10 Thread swd847
The problem is with the @In, your component 'checked' cannot be injected. try 
@In(create=true) and you might see some improvement. 

I must admit though I have never tried to inject a  primitive, I have a feeling 
that this will not work.

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

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


[jboss-user] [JBoss Seam] - Re: Upgrade CR1 to CR2

2007-10-10 Thread swd847
You could try downloading Seam again, as it sounds like the jar is corrupt. 

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

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


[jboss-user] [JBoss Seam] - Re: boolean property not binding

2007-10-10 Thread swd847
Why do you want a scoped boolean anyway? It seems a bit odd to me. 

Are you sure you actually want to inject this boolean and not just have it 
bound to the check box on the page? If this is the case then remove the @In 
annotation and everything should work ok.



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

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


[jboss-user] [JBoss Seam] - Re: boolean property not binding

2007-10-10 Thread swd847
You need to read the docs and look at the examples. Dependency injection of 
seam components is pretty core to the framework, and it is a bit to much to 
re-type here.

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

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


[jboss-user] [JBoss Seam] - Re: inserting into associations..

2007-10-10 Thread swd847
can you give more info? Entity code, and the code where you try and persist the 
entity would be useful.

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

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


[jboss-user] [JBoss Seam] - Re: EntityHome and Primay Key value assignment for new recor

2007-10-10 Thread swd847
I am to 100% sure what you mean, by q2 but I think you want to look up the 
section in the hibernate entityManager docs on event listeners. I think you 
could set a PrePersist listener on you keygen component, and this would 
acomplish what you are after, I am not sure though.


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

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


[jboss-user] [JBoss Seam] - Re: Can EntityConverter handle different EntityManagers?

2007-10-10 Thread swd847
Try

  | s:convertEntity entityManager=anotherEntityManager /

don't know if it will work or not.

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

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


[jboss-user] [JBoss Seam] - Object Level Validation

2007-10-10 Thread swd847
Is it possible to do object level validation in Seam? e.g. I have an 
@AssertTrue on one of my entities and I was wondering if there was a easy way 
to perform validation based on this. 
At the moment I am having to roll my own, which is less than optimal.

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

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


[jboss-user] [JBoss Seam] - Re: binding attribute doesnt work with Seam?

2007-10-09 Thread swd847
Can you post the xhtml and the backing bean?

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

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


[jboss-user] [JBoss Seam] - Re: Conversation management in a desktop-like applikation

2007-10-09 Thread swd847

Seam contains el enhancements that allow you to pass parameters to action 
methods, so to make it a bit less verbose you could try:


  | @End
  | String navFunc(String param) 
  | { 
  | return param;
  | }
  | 


  | rich:menuItem value=#{messages.menu_manage_persons}
  | action=#{MyClass.navFunc('/modules/manageCatalogs/persons/main.xhtml')} /
  | 

Although you still need a class to put the navFunc method on, so it does not 
help that much.

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

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


[jboss-user] [JBoss Seam] - Re: Standard task : lookup field

2007-10-09 Thread swd847
Something like:


  | 
  | rich:datatable value=#{datamodel} var=var
  |   rich:column
  | f:facet name=headerCategory/f:facet
  | h:selectOneMenu value=#{var.category_id}  
converter=#{converters.myConverter} /
  |  s:selectItems value=#{categoryList} var=cat label=#{cat.name}/
  | /h:selectOneMenu
  |   /rich:column
  | /rich:datatable
  | 
  | 

Most likely you will want to use s:convertEntity/ rather that a custom 
converter, if however you actually want to set the category_id property 
explicitly (i.e. you are not using hibernate to map the one to many 
relationship) then you will need to write a converter to convert between the 
Category entity and it's id, look in the docs for an example.



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

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


[jboss-user] [JBoss Seam] - Re: boolean property not binding

2007-10-09 Thread swd847
You need to add getters and setter for checked to both MyBean and IMyBean.

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

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


[jboss-user] [JBoss Seam] - Weird entity behavior

2007-10-09 Thread swd847
I have some entities, call them Portfolio and Account

Account is the root of a single table inheritance heirachy.

Portfolio has a OneToMany bidirectional relationship to a Account, mapped using 
a foreign key in Account.

if i call portfolio.getAccounts() the accounts do not get initialized properly. 
All the primitive properties of Account are initialized but not relationships 
to entities that have already been loaded (or something like this, I am not 
100% sure). 

So if I take one of the Account's that I got using portfolio.getAccounts() and 
call account.getPortfolio() it will return null. Same with other entities that 
are loaded (e.g. Acccount has a List of AccountTransactions, I can call 
account.getAccountTransactions() no problems but not 
accountTransaction.getAccount()).

Does anyone know what could be causing this? There is nothing special about the 
entities and apart from this one problem everything else works fine.

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

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


[jboss-user] [JBoss Seam] - Re: Weird entity behavior

2007-10-09 Thread swd847
Yes, especially because Account actually has the foreign key, and the 
relationships work fine in both directions normally. 

The only time there is a problem is if the entity is first loaded by 
portfolio.getAccounts(). If the entity has already been loaded getAccounts() 
works fine.


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

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


[jboss-user] [JBoss Seam] - Re: Setting the default propagation for s:link

2007-10-08 Thread swd847
http://jira.jboss.com/jira/browse/JBSEAM-2062

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

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


[jboss-user] [JBoss Seam] - Re: problem in login.seam

2007-10-08 Thread swd847
When you try and access the main page (index.seam or whatever) seam detects 
that you have not logged in yet and throws a NotLoggedInException.
It then redirects you to the login page and adds 'Please login first' to the 
FacesMessages (which are displayed via the s:messages component) .  The message 
is controlled in pages.xml as specified in section 13 of the docs.

When you just go the the login page without the NotLoggedInException beging 
thrown the message is not added. If you really want it you could try one of the 
following:

- Just use a static Message
- Add a page action with something like:

public void PageAction()
{
 if(FacesMessages.instance().getMessages().isEmpty())
  FacesMessages.instance().add(Please Log in first)
}

Hope this helps.



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

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


[jboss-user] [JBoss Seam] - Re: Seam Managed ActionHandler

2007-10-08 Thread swd847
The problem is that foo has not been outjected yet, and by default Seam will 
not automatically create context variables. This should be solved by specifying 
create=true on the @In annotation.





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

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


[jboss-user] [JBoss Seam] - Re: Entities generated by seam (many 2 many)

2007-10-08 Thread swd847
Does the user-role table have a primary key?

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

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


[jboss-user] [JBoss Seam] - Re: NotSuchMethod exception

2007-10-08 Thread swd847
The problem is not caused by Drools as far as I can tell. What I think is 
happening is you are getting an EntityNotFoundException in 
cz.bpsolutions.ims.model.Account.getLoginName() 

You then get a NoSuchMethodException when it is attempting to create the 
EntityNotFoundException, as it cannot find the contructor (String,Throwable). 
Do you have two Hibernate jars of different versions on the classpath or 
anything like that? 

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

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


[jboss-user] [JBoss Seam] - Re: Difference between @Factory and @Create for outjected co

2007-10-08 Thread swd847
Because you are outjecting it as jobTicket and referring to it as 
selectedJobTicket.

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

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


[jboss-user] [JBoss Seam] - Re: ANTLR problem

2007-10-08 Thread swd847
The version of ant that you are using does not have the ANTLR taskdef jar. You 
can download it from antlr.org. 

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

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


[jboss-user] [JBoss Seam] - Re: Setting the default propagation for s:link

2007-10-07 Thread swd847
I do not think that there is a way to do this in seam. I think that you can 
work around it by creating your own taglib, although I am far from an expert on 
this. Something like:

mylink.xhtml:

  | composition xmlns=http://java.sun.com/jsf/facelet;
  | xmlns:s=http://jboss.com/products/seam/taglib;
  | 
  | s:link id=#{id} value=#{value} propagation=none view=#{view} 
rendered=#{rendered} /
  | /composition
  | 

mytaglib.taglib.xml:

  | ?xml version=1.0?
  | !DOCTYPE facelet-taglib PUBLIC
  |   -//Sun Microsystems, Inc.//DTD Facelet Taglib 1.0//EN
  |   http://java.sun.com/dtd/facelet-taglib_1_0.dtd;
  | facelet-taglib
  |   namespacehttp://www.test.com/mynamespace/namespace
  |   tag
  | tag-namemylink/tag-name
  | sourcemylink.xhtml/source
  |   /tag
  | /facelet-taglib
  | 



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

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


[jboss-user] [JBoss Seam] - Re: Setting the default propagation for s:link

2007-10-07 Thread swd847
On second thoughts this is not a very good solution as f:param etc will not 
work. 
A better solution would probably be to subclass UILink and then create a taglib 
for that, or possibly scan the component tree at the end of the RENDER_RESPONSE 
phase and for every UILink with propagation=default set it to none.

I must admit though I am not sure if either of these is a particularly good 
solution.

Stuart 

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

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


[jboss-user] [JBoss Seam] - Re: Jboss Seam 2.0.0.CR1 toooooo slow

2007-10-04 Thread swd847
I just did it then.
[url]
http://jira.jboss.org/jira/browse/JBSEAM-2046[/url]

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

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


[jboss-user] [JBoss Seam] - Re: Jboss Seam 2.0.0.CR1 toooooo slow

2007-10-04 Thread swd847
Also with regard to performance you will probably get better performance with 
Jrockit rather than the sun VM, I have had a lot of issues with the sun VM and 
hot deployment, especially when you have a large number of classes.

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

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


[jboss-user] [JBoss Seam] - Re: el processor ignoring errors

2007-10-04 Thread swd847
Would it be possible to have a configuration option to enable logging of 
unresolved properties? 

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

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


[jboss-user] [JBoss Seam] - Re: Problem with injection @In

2007-10-04 Thread swd847
Are you referring to the booking example? 

The reason why it works in the example is because of this little bit of code in 
the AuthenticatorBean:

@Out(required=false, scope = SESSION)
   private User user;

when a user logs in the user entity is outjected to session scope, allowing it 
be used by other beans. When you think about it it makes sense that an 
exception is thrown, how can you inject the current user if they have not 
logged in yet?

@In without create=true is basically saying that you want an initialized User 
injected, with create=true you are saying that you do not care if it has been 
initialized or not, you just want a user.

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

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


[jboss-user] [JBoss Seam] - Re: servlet functionality with seam component

2007-10-03 Thread swd847
I was asking the same question not long ago. Here is an easy way to return a 
pdf from an action method (in this case a Jasper Report):


  | byte[] data = JasperRunManager.runReportToPdf(compileDir
  | + report.getReport() + 
.jasper, params);
  | 
  | FacesContext facesContext = 
FacesContext.getCurrentInstance();
  | HttpServletResponse response = 
(HttpServletResponse) facesContext
  | 
.getExternalContext().getResponse();
  | response.setContentType(application/pdf);
  | response.setContentLength(data.length);
  | response.setHeader(Content-disposition,
  | 
attachment;filename=report.pdf);
  | 
  | try {
  | 
  | OutputStream out = 
response.getOutputStream();
  | 
  | out.write(data);
  | 
  | out.flush();
  | out.close();
  | 
  | facesContext.responseComplete();
  | } catch (IOException ex) {
  | FacesMessages.instance().add(
  | Error while 
downloading the file: report.pdf);
  | }
  | 
  | 

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

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


[jboss-user] [JBoss Seam] - Re: Jboss Seam 2.0.0.CR1 toooooo slow

2007-10-03 Thread swd847
Or log an error message if a page using an out of date schema is found, so 
people don't leave pages using the out of date schema's lying around forever.

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

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


[jboss-user] [JBoss Seam] - Re: Performance: @Name and @Stateless

2007-10-02 Thread swd847
Can you post your full XHTML page and your backing bean code? And probably also 
the code for the entities that are in acaoList?

Which constructor is being called 5 times? The constructor for acaoList?

The easiest (and only good way) of figuring out what is slowing you down on is 
to run your code through a profiler.

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

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


[jboss-user] [JBoss Seam] - Re: Performance: @Name and @Stateless

2007-10-01 Thread swd847
The only time I have seen navigation that slow with seam was when I forgot go 
change all my pages.xml schema from 1.2 to 2.0, it still works but as the 
schema is not longer included in the 2.0 jar it has to download it from the 
SEAM website for every request, resulting in a really slow webapp.

Can you be more specific as to where the bottleneck is?

Stuart

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

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


[jboss-user] [JBoss Seam] - Re: JSF Chart Creator in Seam

2007-09-19 Thread swd847
I have it working. My settings are as follows:

web.xml:

  | context-param
  | param-namefacelets.LIBRARIES/param-name
  | param-value/WEB-INF/chartcreator.taglib.xml/param-value
  | /context-param
  | 
  | context-param
  |   param-namenet.sf.jsfcomp.chartcreator.USE_CHARTLET/param-name
  | param-valuefalse/param-value
  | /context-param
  | 

faces-config.xml


  | component
  | 
component-typenet.sf.jsfcomp.chartcreator.component.UIChart/component-type
  | 
component-classnet.sf.jsfcomp.chartcreator.component.UIChart/component-class
  | /component
  |   
  |  lifecycle
  | phase-listenernet.sf.jsfcomp.chartcreator.ChartListener/phase-listener
  |/lifecycle
  | 
  | 

the backing bean for a line chart  (in a seam component called priceHome):


  | public TimeSeriesCollection getPriceDataSet() {
  | TimeSeries series = new TimeSeries(Price, Day.class);
  | 
  | ListData price = entityManager
  | .createQuery(
  | from Data).getResultList();
  | for Data i : price) {
  | series.addOrUpdate(new Day(i.getDate()), i.getPrice());
  | }
  | 
  | // Add the series to your data set
  | TimeSeriesCollection dataset = new TimeSeriesCollection();
  | dataset.addSeries(series);
  | return dataset;
  | }
  | 

and in the Facelets page:


  | c:chart id=price_chart datasource=#{priceHome.priceDataSet} 
type=timeseries is3d=true antialias=true title=Pricing xlabel=Date 
ylabel=Price height=350 width=500/c:chart
  | 


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

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


[jboss-user] [JBoss Seam] - Re: @Service / @Management bean injection

2007-09-19 Thread swd847
Have you tried @In(create=true) or annoting the EJB with @AutoCreate ? 

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

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


[jboss-user] [JBoss Seam] - Random conversation id's

2007-09-17 Thread swd847
Is this the correct way to implement random conversation id's?


  | @Observer(org.jboss.seam.beginConversation)
  | public void RandowmConversationId()
  | {
  | Manager.instance().updateCurrentConversationId( + 
Math.round(Math.random() * Integer.MAX_VALUE));
  | }
  | 

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

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


[jboss-user] [JBoss Seam] - Downloading Files

2007-09-16 Thread swd847
At the moment to create a file download in SEAM it looks like you have to 
implement a custom servlet / filter. I was thinking it would be neat if you 
could just annotate an action method with an @ContentType(mimetype) 
annotation and return a byte array, and have seam take care of the rest? 



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

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


[jboss-user] [JBoss Seam] - Re: Seam 2.0: java.lang.OutOfMemoryError: PermGen space

2007-09-06 Thread swd847
If you go for even bigger permgen (512) it should work, but will die eventually 
after you re-deploy the app a few times. 

The way I 'fixed' this was to change to jrockit, which does not have this 
problem.

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

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


[jboss-user] [JBoss Seam] - Re: does seam ignore generics in lists?

2007-09-05 Thread swd847
You need to use a converter. If you are using entities you can use 
s:convertEntity/ like so:


  | h:selectOneMenu value=#{bscPr.selected}
  | s:selectItems value=#{bscPr.times} var=n 
  | label=#{n.toShortString()} 
  | noSelectionLabel=Please select.../
  |s:convertEntity/
  | /h:selectOneMenu
  | 

otherwise you have to write your own, I think seam comes with an example of how 
to do this.

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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - class loader problem

2007-08-28 Thread swd847
I am having trouble when re-deploying a seam application on Jboss 4.2.
It works fine when the server is first started, however if I redeploy it I will 
get the following error eventually (usually after 1-5 redeploys):


  | 11:03:42,289 WARN  [TxConnectionManager] Connection error occured: 
org.jboss.resource.connectionmana
  | [EMAIL PROTECTED] mc=org.jboss.resource.adapter
  | [EMAIL PROTECTED] handles=1 lastUse=1188176622285 permit=true 
trackByTx=true mcp=
  | [EMAIL PROTECTED] context=org.jboss.re
  | [EMAIL PROTECTED] xaResource=org.jboss.resource.connect
  | [EMAIL PROTECTED] txSync=null]
  | java.lang.NullPointerException
  | at 
org.jboss.mx.loading.RepositoryClassLoader.findClass(RepositoryClassLoader.java:623)
  | at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
  | at 
org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:467)
  | at 
org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:408)
  | at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
  | at 
org.postgresql.jdbc2.TimestampUtils.loadCalendar(TimestampUtils.java:89)
  | at org.postgresql.jdbc2.TimestampUtils.toDate(TimestampUtils.java:402)
  | at 
org.postgresql.jdbc2.AbstractJdbc2ResultSet.getDate(AbstractJdbc2ResultSet.java:394)
  | at 
org.postgresql.jdbc2.AbstractJdbc2ResultSet.getDate(AbstractJdbc2ResultSet.java:2343)
  | at 
org.jboss.resource.adapter.jdbc.WrappedResultSet.getDate(WrappedResultSet.java:575)
  | at org.hibernate.type.DateType.get(DateType.java:28)
  | at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:163)
  | at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:154)
  | at org.hibernate.type.AbstractType.hydrate(AbstractType.java:81)
  | at 
org.hibernate.persister.entity.AbstractEntityPersister.hydrate(AbstractEntityPersister.java:2096
  | )
  | at org.hibernate.loader.Loader.loadFromResultSet(Loader.java:1380)
  | at org.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:1308)
  | at org.hibernate.loader.Loader.getRow(Loader.java:1206)
  | at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:580)
  | at org.hibernate.loader.Loader.doQuery(Loader.java:701)
  | at 
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
  | at org.hibernate.loader.Loader.doList(Loader.java:2220)
  | at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
  | at org.hibernate.loader.Loader.list(Loader.java:2099)
  | at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:378)
  | at 
org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
  | at 
org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
  | at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
  | at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
  | 11:03:42,290 INFO  [DateType] could not read column value from result set: 
last5_1729_; Error; - nes
  | ted throwable: (java.lang.NullPointerException)
  | 11:03:42,290 WARN  [AbstractBatcher] exception clearing maxRows/queryTimeout
  | org.postgresql.util.PSQLException: Statement has been closed.
  | at 
org.postgresql.ds.jdbc23.AbstractJdbc23PooledConnection$StatementHandler.invoke(AbstractJdbc23Po
  | oledConnection.java:460)
  | at $Proxy171.getMaxRows(Unknown Source)
  | at 
org.jboss.resource.adapter.jdbc.WrappedStatement.getMaxRows(WrappedStatement.java:267)
  | at 
org.hibernate.jdbc.AbstractBatcher.closeQueryStatement(AbstractBatcher.java:276)
  | at 
org.hibernate.jdbc.AbstractBatcher.closeQueryStatement(AbstractBatcher.java:212)
  | at org.hibernate.loader.Loader.doQuery(Loader.java:726)
  | at 
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
  | at org.hibernate.loader.Loader.doList(Loader.java:2220)
  | at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
  | at org.hibernate.loader.Loader.list(Loader.java:2099)
  | at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:378)
  | at 
org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
  | at 
org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
  | at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
  | at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
  | at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:64)
  | at 
com.baileyroberts.web.data.home.ImportTypeHome.createImportTypeList(ImportTypeHome.java:33)
  | 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 

[jboss-user] [JBoss Seam] - Re: Class loading problem

2007-08-27 Thread swd847
No, I redeploy the whole app each time.

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

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


[jboss-user] [JBoss Seam] - Re: Custom annotation scanner

2007-08-27 Thread swd847
There does not seam to be a logical place to put it at the moment, other than 
components.xml, which would not really work. 

anonymous wrote : 
  | The wiki has several use cases as well and I've been experimenting with 
different metamodels and ways of scanning/constructing/registering this data so 
it is conveniently available at runtime. I'm not convinced yet I found the best 
approach but there is definitely a need for a more generic registry feature 
in Seam. 
  | 

What would be the benefit of a generic registry over application scoped 
components? 

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

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


[jboss-user] [JBoss Seam] - Class loading problem

2007-08-26 Thread swd847
I am getting the following error intermittently after a hot deploy. If I 
redeploy enough it will always occur and then I have to restart the App server. 
I get the error with both jrocket and hotspot JVM, however it appears to be 
much more common running on hotspot. 
Does anyone know what could be causing this?


  | 11:03:42,289 WARN  [TxConnectionManager] Connection error occured: [EMAIL 
PROTECTED] [EMAIL PROTECTED] handles=1 lastUse=1188176622285 permit=true 
trackByTx=true [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] 
txSync=null]
  | java.lang.NullPointerException
  | at 
org.jboss.mx.loading.RepositoryClassLoader.findClass(RepositoryClassLoader.java:623)
  | at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
  | at 
org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:467)
  | at 
org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:408)
  | at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
  | at 
org.postgresql.jdbc2.TimestampUtils.loadCalendar(TimestampUtils.java:89)
  | at org.postgresql.jdbc2.TimestampUtils.toDate(TimestampUtils.java:402)
  | at 
org.postgresql.jdbc2.AbstractJdbc2ResultSet.getDate(AbstractJdbc2ResultSet.java:394)
  | at 
org.postgresql.jdbc2.AbstractJdbc2ResultSet.getDate(AbstractJdbc2ResultSet.java:2343)
  | at 
org.jboss.resource.adapter.jdbc.WrappedResultSet.getDate(WrappedResultSet.java:575)
  | at org.hibernate.type.DateType.get(DateType.java:28)
  | at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:163)
  | at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:154)
  | at org.hibernate.type.AbstractType.hydrate(AbstractType.java:81)
  | at 
org.hibernate.persister.entity.AbstractEntityPersister.hydrate(AbstractEntityPersister.java:2096)
  | at org.hibernate.loader.Loader.loadFromResultSet(Loader.java:1380)
  | at org.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:1308)
  | at org.hibernate.loader.Loader.getRow(Loader.java:1206)
  | at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:580)
  | at org.hibernate.loader.Loader.doQuery(Loader.java:701)
  | at 
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
  | at org.hibernate.loader.Loader.doList(Loader.java:2220)
  | at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
  | at org.hibernate.loader.Loader.list(Loader.java:2099)
  | at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:378)
  | at 
org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
  | at 
org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
  | at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
  | at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
  | 11:03:42,290 INFO  [DateType] could not read column value from result set: 
last5_1729_; Error; - nested throwable: (java.lang.NullPointerException)
  | 11:03:42,290 WARN  [AbstractBatcher] exception clearing maxRows/queryTimeout
  | org.postgresql.util.PSQLException: Statement has been closed.
  | at 
org.postgresql.ds.jdbc23.AbstractJdbc23PooledConnection$StatementHandler.invoke(AbstractJdbc23PooledConnection.java:460)
  | at $Proxy171.getMaxRows(Unknown Source)
  | at 
org.jboss.resource.adapter.jdbc.WrappedStatement.getMaxRows(WrappedStatement.java:267)
  | at 
org.hibernate.jdbc.AbstractBatcher.closeQueryStatement(AbstractBatcher.java:276)
  | at 
org.hibernate.jdbc.AbstractBatcher.closeQueryStatement(AbstractBatcher.java:212)
  | at org.hibernate.loader.Loader.doQuery(Loader.java:726)
  | at 
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
  | at org.hibernate.loader.Loader.doList(Loader.java:2220)
  | at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
  | at org.hibernate.loader.Loader.list(Loader.java:2099)
  | at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:378)
  | at 
org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
  | at 
org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
  | at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
  | at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
  | at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:64)
  | at 
com.baileyroberts.web.data.home.ImportTypeHome.createImportTypeList(ImportTypeHome.java:33)
  | 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 org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
  | 

[jboss-user] [JBoss Seam] - Custom annotation scanner

2007-08-26 Thread swd847
Would it be possible to add a scanner for custom annotations into seam? 
I am thinking something along the lines of:

1) Define the annotations that we are interested in in a configuration file, as 
well as the application scope context variables that they are to be loaded into.

2) When the component scanner runs it also looks for these class level 
annotations, and loads the class names into a list.

3) These lists are then saved to the application scope.

Application scoped components could then use these lists to set up any 
infrastructure that uses these classes.

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

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


[jboss-user] [JBoss Seam] - Re: Custom annotation scanner

2007-08-26 Thread swd847
I might be prepared to work on it, as I have a use for it, but I would need 
confirmation on how people would want it to work.
The JIRA issue seems to just be about making the Scanner class public, so it is 
possible to write custom scanners. 
I was thinking of re-using the seam scanner to reduce startup times. I was 
thinking the configuration would be something like:

  | scannerconfig
  |   annotations
  | annotation class=com.custom.Annotation 
variable=customAnnotationList /
  |   /annotations
  |   files
  | file pattern=*.customdata.xml variable=customFileList /
  |   /files
  | /scannerconfig
  | 



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

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


[jboss-user] [JBoss Seam] - Trouble migrating to seam 2.0

2007-07-23 Thread swd847
I am having trouble migrating my appliation to SEAM 2.0 the error I get is:

  | 14:58:36,412 ERROR [STDERR] java.lang.UnsupportedOperationException
  | 14:58:36,414 ERROR [STDERR] at 
com.sun.faces.config.ConfigureListener$InitFacesContext.getViewRoot(ConfigureListener.java:1690)
  | 14:58:36,414 ERROR [STDERR] at 
com.sun.faces.util.MessageFactory.getMessage(MessageFactory.java:113)
  | 14:58:36,414 ERROR [STDERR] at 
com.sun.faces.util.MessageUtils.getExceptionMessageString(MessageUtils.java:277)
  | 14:58:36,414 ERROR [STDERR] at 
com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:855)
  | 14:58:36,415 ERROR [STDERR] at 
com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:502)
  | 14:58:36,416 ERROR [STDERR] at 
com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:402)
  | 14:58:36,416 ERROR [STDERR] at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3854)
  | 14:58:36,417 ERROR [STDERR] at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4359)
  | 14:58:36,418 ERROR [STDERR] at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
  | 14:58:36,418 ERROR [STDERR] at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
  | 14:58:36,419 ERROR [STDERR] at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
  | 14:58:36,420 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 14:58:36,420 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 14:58:36,421 ERROR [STDERR] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 14:58:36,422 ERROR [STDERR] at 
java.lang.reflect.Method.invoke(Method.java:585)
  | 14:58:36,423 ERROR [STDERR] at 
org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
  | 14:58:36,423 ERROR [STDERR] at 
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
  | 14:58:36,424 ERROR [STDERR] at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | 14:58:36,431 ERROR [STDERR] at 
org.apache.catalina.core.StandardContext.init(StandardContext.java:5310)
  | 14:58:36,432 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 14:58:36,432 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 14:58:36,433 ERROR [STDERR] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 14:58:36,433 ERROR [STDERR] at 
java.lang.reflect.Method.invoke(Method.java:585)
  | 14:58:36,434 ERROR [STDERR] at 
org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
  | 14:58:36,434 ERROR [STDERR] at 
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
  | 14:58:36,435 ERROR [STDERR] at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | 14:58:36,435 ERROR [STDERR] at 
org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
  | 
  | 

further down there is also this:


  | 
  |  Exception sending context initialized event to listener instance of class 
org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
  | java.lang.ClassCastException: com.sun.faces.config.WebConfiguration
  | at 
com.sun.faces.config.WebConfiguration.getInstance(WebConfiguration.java:135)
  | at 
com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:249)
  | at 
org.jboss.web.jsf.integration.config.JBossJSFConfigureListener.contextInitialized(JBossJSFConfigureListener.java:69)
  | at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3854)
  | at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4359)
  | at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
  | at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
  | at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
  | 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 
org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
  | at 
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at 

[jboss-user] [JBoss Seam] - Re: Exception with rule based security

2007-03-15 Thread swd847

  | jboss-app
  |loader-repository 
  |   seam.jboss.org:loader=myprogram
  |/loader-repository 
  | /jboss-app 
  | 


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

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


[jboss-user] [JBoss Seam] - Re: Exception with rule based security

2007-03-15 Thread swd847
I got it, there was the another copy of the same version of the antlr jars on 
the classpath. 

However, now I get the following:

  | 12:20:16,037 ERROR [[/brgjava]] Session event listener threw exception
  | org.drools.rule.InvalidRulePackage: Unable to create Field Extractor for 
'name'
  | Unable to create Field Extractor for 'action'
  | Unable to create Field Extractor for 'name'
  | 
  | at org.drools.rule.Package.checkValidity(Unknown Source)
  | at org.drools.common.AbstractRuleBase.addPackage(Unknown Source)
  | at org.jboss.seam.drools.RuleBase.compileRuleBase(RuleBase.java:70)
  | 

My rules file is from the example:


  | package MyApplicationPermissions;
  | 
  | import org.jboss.seam.security.PermissionCheck;
  | import org.jboss.seam.security.Role;
  | 
  | rule CanUserDeleteCustomers
  | when
  |   c: PermissionCheck(name == customer, action == delete)
  |   Role(name == admin)
  | then
  |   c.grant();
  | end;
  | 

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

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


[jboss-user] [JBoss Seam] - Re: Exception with rule based security

2007-03-15 Thread swd847
Don't worry, I've fixed this as well

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

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


[jboss-user] [JBoss Seam] - Exception with rule based security

2007-03-14 Thread swd847
I keep getting an exception when I try and use use based security. I have 
following the directions in the docs, but I keep getting an exception:



  | 16:21:02,557 ERROR [STDERR] StringTemplate: problem parsing group 
unknown: java.lang.ClassCastException: antlr.CommonToken
  | 16:21:02,562 ERROR [STDERR] java.lang.ClassCastException: antlr.CommonToken
  | 16:21:02,569 ERROR [STDERR] at 
antlr.CharScanner.makeToken(CharScanner.java:173)
  | 16:21:02,569 ERROR [STDERR] at 
org.antlr.stringtemplate.language.GroupLexer.mID(GroupLexer.java:333)
  | 16:21:02,569 ERROR [STDERR] at 
org.antlr.stringtemplate.language.GroupLexer.nextToken(GroupLexer.java:103)
  | 16:21:02,569 ERROR [STDERR] at 
antlr.TokenBuffer.fill(TokenBuffer.java:69)
  | 16:21:02,569 ERROR [STDERR] at 
antlr.TokenBuffer.LA(TokenBuffer.java:80)
  | 16:21:02,569 ERROR [STDERR] at antlr.LLkParser.LA(LLkParser.java:52)
  | 16:21:02,569 ERROR [STDERR] at antlr.Parser.match(Parser.java:210)
  | 16:21:02,569 ERROR [STDERR] at 
org.antlr.stringtemplate.language.GroupParser.group(GroupParser.java:117)
  | 16:21:02,569 ERROR [STDERR] at 
org.antlr.stringtemplate.StringTemplateGroup.parseGroup(StringTemplateGroup.java:754)
  | 16:21:02,569 ERROR [STDERR] at 
org.antlr.stringtemplate.StringTemplateGroup.init(StringTemplateGroup.java:264)
  | 16:21:02,569 ERROR [STDERR] at 
org.antlr.stringtemplate.StringTemplateGroup.init(StringTemplateGroup.java:244)
  | 16:21:02,569 ERROR [STDERR] at 
org.drools.semantics.java.RuleBuilder.clinit(Unknown Source)
  | 16:21:02,569 ERROR [STDERR] at 
org.drools.compiler.PackageBuilder.addRule(Unknown Source)
  | 16:21:02,570 ERROR [STDERR] at 
org.drools.compiler.PackageBuilder.addPackage(Unknown Source)
  | 16:21:02,570 ERROR [STDERR] at 
org.jboss.seam.drools.RuleBase.compileRuleBase(RuleBase.java:64)
  | 

I also get this exception further down:


  | 
  | java.lang.IllegalArgumentException: Can't find template consequenceMethod.st
  | at 
org.antlr.stringtemplate.StringTemplateGroup.lookupTemplate(StringTemplateGroup.java:477)
  | at 
org.antlr.stringtemplate.StringTemplateGroup.getInstanceOf(StringTemplateGroup.java:364)
  | at 
org.antlr.stringtemplate.StringTemplateGroup.getInstanceOf(StringTemplateGroup.java:376)
  | at org.drools.semantics.java.RuleBuilder.buildConsequence(Unknown 
Source)
  | at org.drools.semantics.java.RuleBuilder.build(Unknown Source)
  | at org.drools.semantics.java.RuleBuilder.build(Unknown Source)
  | at org.drools.compiler.PackageBuilder.addRule(Unknown Source)
  | at org.drools.compiler.PackageBuilder.addPackage(Unknown Source)
  | at org.jboss.seam.drools.RuleBase.compileRuleBase(RuleBase.java:64)
  | 

I do not get the error if the rule file is mostly empty (no rules, just the 
package declaration and imports), however as soon as I add a rule I get this 
exception.
I am sure it must be something simple but I can't think what it could be.

Stuart

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

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


[jboss-user] [JBoss Seam] - Re: Exception with rule based security

2007-03-14 Thread swd847
I am not using a custom loader, and I don't think I have different versions of 
antlr in the classpath, just antlr-3.0ea8.jar and antlr-2.7.6.jar . 

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

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


[jboss-user] [JBoss Seam] - Re: Fully Qualifed Names in EL

2007-02-03 Thread swd847
Can I add this to the JIRA?

Also, would it be possible to have something like and @DefaultNamespace package 
level annotation that would automatically assign a fully qualified name to all 
components in the package without one? 
And maybe the ability to import namespaces in page.xml so it is not nessesary 
to always refer to them via the FQN in the EL?

What do you think?

Stuart

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

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


[jboss-user] [JBoss Seam] - Re: Fully Qualifed Names in EL

2007-02-03 Thread swd847
I was thinking pages.xml, so you can say things like 'pages from this directory 
use components from this namespace', which I know I would find quite useful.

When you say you don't think it can be implemented do you mean the 
@DefaultNamespace or namespaces for arbitrarily injected values?

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

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


[jboss-user] [JBoss Seam] - Fully Qualifed Names in EL

2007-02-01 Thread swd847
I was wondering if it was possible to do something like this:


  | @DataModel(com.test.messages.messageList)
  | ListMessage messageList;
  | 
And then reference the resulting component in the EL something like:

  | h:outputText value=No Importers Found 
rendered=#{com.test.messages.messageList.rowCount==0}/
  | h:dataTable id=messages 
value=#{com.test.messages.messageList} var=msg 
  | 

But it does not seem to work for me (it works fine if I do not use a fully 
qualified name for the messageList component). 

I am assuming there is some easy way to do this, I just don't know what it is. 
Could someone point me in the right direction?

Stuart

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

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