[jboss-user] [JBoss Seam] - components.xml circular references

2008-02-15 Thread enda
Hey I would need an advise:

Can I do in Seam components.xml something like this:


  | 
  | 
  |   #{serviceLocator}
  | 
  | 
  | 
  |   #{userSecurityService}
  | 
  | 
  | 

I am receiving stack overflow on container when hit the server.

Spring can handle this.

Thanks

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129796#4129796

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4129796
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Named conversation and new instance redirected to Home?

2008-02-14 Thread enda
Hi Erik,

I would have two note for your solution.

1.

I do not know if Seam 2.1.0A1 undeprecated id in @Begin.
As you have 

  | @Begin(join = true, id = 
#{facesContext.externalContext.requestParameterMap.forsendelseId}")
  | 

There were some issues why it got deprecated and note from Gavin King was to 
use pages.xml for it.  So if it is undeprecated then it is ok.

2.


  |   
  | 

this will work. But if you have let say two completely different entity Types 
in your conversational context and they have the same id. You would actually 
merge them.

What would help is this: 


  | 
  |   
  | 
  |
  |#{fors.id}
  |   
  |
  |   
  | 

here you would know which entityType is in conversation context.

Please let me know what do think about that.

Tomas

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129478#4129478

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4129478
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Named conversation and new instance redirected to Home?

2008-02-13 Thread enda
Hi Erik this is my working solution (I am handling conversation on my own)

entityManager that inherits generalManager

  | 
  | @Begin(flushMode = FlushModeType.MANUAL, join = true, pageflow = 
"teamHomeFlow")
  | public String select(Team team) {
  | // set conversation
  | setConversationId(team.getId());
  | // manually join conversation 
  | if(joinConversation()) {
  | return null;
  | } else {
  | return super.select(team);
  | }
  | }
  | 
  | 

generalManager


  | 
  | /**
  |  * joins conversations
  |  * expects conversationName set with the same name as in pages.xml 
  |  *  
  |  * @return true if joined, false if not
  |  * 
  |  * @see 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126294#4126294
  |  */
  | protected boolean joinConversation() {
  | 
//ConversationEntries.getInstance().updateConversationId(Conversation.instance().getId(),
 getConversationId());
  | 
  | ConversationEntry ce = 
ConversationEntries.getInstance().getConversationEntry(conversationName + ":" + 
conversationId);
  | if(ce != null) {
  | ce.redirect(); 
  | getFacesMessages().add("Conversation already exists");
  | return true;
  | } else {
  | return false;
  | 
  | }
  | 
  | }
  | 
  | 

pages.xml


  | 
  |  
  | 
  | 

the idea is that every xxManager has unique instance ID (entity.ID) and this id 
is assigned to its whole conversational life (it solves the problem with 
creating new entity too)

Conversation has the same name as instance ID

I am joining that on my own by instance ID.

The disadvantages is your naming convention for conversation and its usage also 
in xxManager not only in pages.xml (coupling)

I hope that it helps. Good thing is that I tested it from various scenarios and 
it works!

I also thank you for comments to convince Seam documentation to do this as 
their example.

Tomas

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129197#4129197

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4129197
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Validation patter -> Invalid State

2008-02-10 Thread enda
I also read and can confirm the think that empty field that has pattern 
annotation and is not required will cause an exception when new object is 
created. Can I somehow avoid to it? I assume that value "" cannot be evaluated? 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4128157#4128157

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4128157
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Validation patter -> Invalid State

2008-02-09 Thread enda
I think I got it.

if I will use 


  | 
  |  
  |  
  | 
  | 

It will break hibernate validation. You can assume that f:validateLength does 
not need to be there, but what other validators, are they valid with hibernate 
validation?

Tomas

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4128122#4128122

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4128122
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Validation patter -> Invalid State

2008-02-09 Thread enda
nope entityManager.merge() did not work. So it seems that @Pattern validation 
is ignored in JSF live cycle and applied at backend logic? I was expecting that 
seem handles this? Or what could be wrong? 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4128052#4128052

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4128052
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Validation patter -> Invalid State

2008-02-08 Thread enda
Hey, I have a question about annotation @Pattern and seam validation of the 
annotated field. I have this annotation


  |   @NotNull
  | @Pattern(regex="[a-zA-Z]?[a-zA-Z0-9]+", 
  | message="Username must start with a letter, and only contain 
letters or numbers")
  | public String getFirstName() {
  | return firstName;
  | }
  | 

When I call this from view form I will get:
 /*message*/
Exception was thrown:validation failed for: 
edu.baylor.icpc.model.businessobjects.PersonInfo

and log:




  | 01:19:02,534 ERROR [ExceptionHandler] 
Exception[Ljava.lang.StackTraceElement;@875e63
  | 01:19:02,534 ERROR [ExceptionHandler] Exception
  | org.hibernate.validator.InvalidStateException: validation failed for: 
edu.xx.xx.model.businessobjects.PersonInfo
  | at 
org.hibernate.validator.event.ValidateEventListener.validate(ValidateEventListener.java:143)
  | at 
org.hibernate.validator.event.ValidateEventListener.onPreUpdate(ValidateEventListener.java:172)
  | at 
org.hibernate.action.EntityUpdateAction.preUpdate(EntityUpdateAction.java:217)
  | at 
org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:65)
  | 
  | ...
  | 
  | 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
  | at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
  | at java.lang.Thread.run(Thread.java:619)
  | 01:19:02,537 WARN  [ReadWriteCache] An item was expired by the cache while 
it was locked (increase your cache timeout): 
edu.xx.xx.model.businessobjects.PersonInfo#2
  | 
  | 

Next valid attempt also fail:

/*message*/
Exception was thrown:null 
Transaction failed



  | [AbstractFlushingEventListener] Could not synchronize database state with 
session
  | org.hibernate.StaleObjectStateException: Row was updated or deleted by 
another transaction (or unsaved-value mapping was incorrect): 
[edu.xx.xx.model.businessobjects.PersonInfo#2]
  | ...
  | Caused by: org.hibernate.StaleObjectStateException: Row was updated or 
deleted by another transaction (or unsaved-value mapping was incorrect): 
[edu.baylor.icpc.model.businessobjects.PersonInfo#2]
  | 
  | 

I guess that here I am supposed to call entityManager.merge() to get valid 
object state?
But what about @Pattern validation. Is that expected behavior?

(When I use entityHome from seam-gened application it fails too)

Thanks Tomas

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4128049#4128049

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4128049
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - @Destroy method problem

2008-02-04 Thread enda
I have defined regular stateful session bean


  | public class TeamActionManager extends GeneralManager implements
  | ITeamManager, IGeneralManager {
  | 
  | ...
  | @Remove @Destroy
  | public void destroy() {
  | }
  | 
  | ...
  | 

it has interface 


  | @Local
  | public interface IGeneralManager {
  |
  | ...
  | 
  | public void destroy();
  | ...
  | 

and time to time my log throws 


  | 17:50:29,244 WARN  [Component] Exception calling component @Destroy method: 
teamManager
  | java.lang.IllegalArgumentException: method not found: destroy for 
component: teamManager (check that it is declared on the session bean business 
interface)
  | at org.jboss.seam.Component.callComponentMethod(Component.java:2100)
  | at org.jboss.seam.Component.callDestroyMethod(Component.java:2013)
  | at org.jboss.seam.Component.destroy(Component.java:1331)
  | at org.jboss.seam.contexts.Contexts.destroy(Contexts.java:251)
  | at 
org.jboss.seam.contexts.Contexts.flushAndDestroyContexts(Contexts.java:394)
  | at 
org.jboss.seam.contexts.FacesLifecycle.endRequest(FacesLifecycle.java:112)
  | at 
org.jboss.seam.jsf.SeamPhaseListener.afterRenderResponse(SeamPhaseListener.java:502)
  | at 
org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:235)
  | at 
org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:182)
  | at 
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:280)
  | at 
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
  | at 
org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at 
org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at 
org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at 
org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
  | at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
  | at 
org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at 
org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
  | at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
  | at 
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
  | at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
  | at 
or

[jboss-user] [JBoss Seam] - Re: Named conversation and new instance redirected to Home?

2008-02-04 Thread enda
I also thank you for the  feedback so I tried this:


  |  
  |
  |
  |
  | 

And it does not work, because then the navigation does not work.
I click the entry in table I want to edit and it does not redirect at all, 
method is called, but view stays in table. I think that to use 
 I have to be inside a long-runnig 
conversation but I am not when I am in table page.

Solution Problem 1. manually join conversations (exactly as you said problem is 
with different stage of life-cycle) - But I would buy a better solution ;D

Solution Problem 2. 
a)Either End conversation and create new one
b)Rename conversation in session bean 
c)Assign unique id to a session bean for all its life (in this case 'new')



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126294#4126294

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126294
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Named conversation and new instance redirected to Home?

2008-02-03 Thread enda
So imagine a scenario that you have one entity lets say people. You will 
provide a table of all people. You can edit people and add new people.

Now you want to use jPDL and natural conversations (mix jPDL and pages.xml 
because jPDL does not offer you to specify conversation name). 
(note: I used to use deprecated method annotation for begin(id="foo.id"))


You start a conversation whenever you click on a person from table or a new 
person button.  You also want to join conversations with the same id.

Scenerio 1: (problem join)

you will click on person and will start conversation. In pages.xml is defined


  |   
  | 
  | 
  | 

so your natural conversation has id==person.id 

Problem 1. raises when you want to join conversations with the same name (same 
person). Because the behavior is: start conversation, redirect to the page 
personHomeView.xhtml and name the conversation id==person.id  as defined in 
pages.xml. The thing is that 
  

should have parameter join. You cannot use annotation (join) on your selection 
method in session bean. Because at that time the new conversation has id=random 
and named id is made later from pages.xml. 

The main point is that I can use join at the time when I do not know which 
object is selected! so conversation has id=random which is renamed later in 
pages.xml, but if such a conversation id already exists it throws an error 
instead of joining. 

Note: this does not help because you do not know person instance at the time 
(otherwise as SeamBay) 

  |  
  |   ..
  | 


(SeamBay does not show this, it has passing id via get, but it seems like very 
un-maintainable and hacked solution) 

Scenerio 2: (problem conversation rename)
Problem 2: you want to create a new person and then redirect to person home 
(jPDL). 



So you click on the button and call method that creates new object Person and 
starts new conversation. Then after method is done it redirects you from table 
to personHomeEdit and conversation is named id=new(note conversation id 
definition). Ok you fill out the form and saves the person. Then you are 
redirected to a page personHome. BUT now the Person instance has id now!!! so 
definition of conversationName evaluates it as conversation id=person.id  and 
not id=new.
personHome now expects conversation name id=person.id but such a conversation 
does not exist! so I am redirect to a default page.

(Now I can manually check it in my method and in case of join redirect, but it 
is hack too and seam should have something better)

What about make an clear example in your documnetation pages doing exactly 
this: one entity and two pages (Home and HomeEdit). You will use natural 
conversations (No hack as in SeamBay or maybe I did not look at it carefully). 
You can edit table entry(redirect to Home and then to HomeEdit and then 
HomeEdit)  and create new (redirect to HomeEdit then to Home)

Thanks for answer 
Tomas ;D

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125965#4125965

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125965
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Join natural conversation ? how ??

2008-02-02 Thread enda
My working solution that is such a hack but now I see the power we have ;D

Please comment it or provide better solution


  | public String select(Team team) {
  | conversationId = team.getId().toString();
  | 
ConversationEntries.getInstance().updateConversationId(Conversation.instance().getId(),
  |  conversationId);
  | Set existingIds =  
ConversationEntries.getInstance().getConversationIds();
  | for (String existingConversationId : existingIds) {
  | String[] split = existingConversationId.split(":");
  | 
  | if(split.length == 2 && conversationId.equals(split[1])) {
  | 
  | getFacesMessages().add("Conversation already exists");
  | 
ConversationEntries.getInstance().getConversationEntry(existingConversationId).
  | redirect();
  | return null;
  | 
  | }
  | }
  | 
  | return super.select(team);
  | }
  | 
  | 
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125745#4125745

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125745
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Join natural conversation ? how ??

2008-02-01 Thread enda
Hey I do not think that it is possible to merge your named conversation as you 
have in documentation in general example?


  | 
  |
  |
  | 


  | 
  | 

As I understand from your documentation I have to use  in my link to merge conversations, but I make my 
conversation name by team.id that is what the best choice is ;D. But how can 
they join them when team is going to be selected and and I am already asking 
for its id, even though that it is not selected yet! 

ex. 

existing Conv1 -> team.id=1
new Conv2 -> team.id=null ; select(team) ; team.id=1 => crash
it takes value from team.id=null

Did I miss something in documentation?  


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125743#4125743

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125743
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Named conversation and new instance redirected to Home? Best

2008-02-01 Thread enda
Hi lets say that I have an elements table. I can pick one element and go to 
entityHome  so my conversation name is entity.id and everything is ok.

 But I also have a navigation from my table to create new instance so I go to 
entityHomeEdit and my conversation is named new. After I save the new instance 
I want to redirect to entityHome , new entity has already id so it redirects as 
 conversation namedentity.id ;(. That is wrong. Lets show you a code:

  |
  | 
  | 
  | 
  | 
  | 

So I can stick in my ManagerBean some condition but it is ugly. Do you have 
some better solution? Eg something like kill conversation when new entity is 
saved and create new conversation with different name. 
But it is in one request, can I do that? Is there access to the conversation 
from my ManagerBean, so I could kill the old named one (new) and build new 
named one (id). 

I am sure that we all goes through it. What is the best solution?

Tomas

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125705#4125705

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125705
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Seam 2.0.1.GA - janino

2008-01-31 Thread enda
seam Build has link to maven repository that does not have janino 2.5.10

if you have other project using maven you can get it from your reps

  | 
  | janino
  | janino
  | 2.5.10
  | runtime
  | 
  | 

or

http://ubuntu.cica.es/mirrors/maven2/janino/janino/2.5.10/

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125358#4125358

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125358
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: s:decorate and javaScript update ?

2008-01-23 Thread enda
I know that it is not a javaScript variable that is more than obvious ;D. 

I was trying to find a way for client side validation as trinidad offers. 

I read in JIRA that Gavin agreed with client side validation in Seam, so I am 
curious how to ;D

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122778#4122778

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122778
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - s:decorate and javaScript update ?

2008-01-22 Thread enda
I am trying to make a client side validation with seam.
Is here a non-Ajax way how to set s:decorate variable #{invalid} to true by 
javaScript?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122443#4122443

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122443
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Search with EntityQuery and OR operator

2008-01-17 Thread enda
I am sure that a lot of you need sometimes the same think as me. I have a 
simple search that applies one input to more search parameters. But  I did not 
find any nice way to change 'AND'ed criteria to 'OR'ed. 

As I was hacking it, I did this:


  | 
  | ...
  | public class SimplePersonList extends EntityQuery {
  | 
  | protected String getRenderedEjbql() {
  | String ejbql = super.getRenderedEjbql();
  | return ejbql.replaceAll(" and ", " or ");
  | }
  | 
  | 

Tada thats it and works.
---
Do you have a better way to do this? I consider my version as a little hack and 
expect that Seam also expects requirements as I need.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121147#4121147

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121147
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Richfaces configuration issues

2007-11-21 Thread enda
Build whatever with seam-gen and you can get it very quickly.

Tomas

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106873#4106873

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106873
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Richfaces/Trinidad configuration

2007-11-21 Thread enda
Check trinidad wiki, they already have a description there or ask trinidad.

http://wiki.apache.org/myfaces/Trinidad_And_Seam

Why do you need trinidad what specific are you missing in rich faces? why not 
to use tomahawk? I am also resolving the similar thing.

Trinidad has maybe better tables and has dialogs. But dialogs are ugly. And you 
can make better table with richfaces?

Tomas

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106869#4106869

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106869
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Pageflow - Redirect & Description

2007-11-19 Thread enda
Thanks, I felt little bit silly after you have rejected it ;).

And what about the redirect="yes" attribute for a page in jPDL? 
what is its purpose? because it does not redirect neither?


  | 
  | 
  |View person home: #{person.username}
  | 
  | 
  | 
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106161#4106161

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106161
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: concurrent-request-timeout - how to set optimal size?

2007-11-19 Thread enda
With code tag 

Seems that concurrent-request-timeout parameter in components.xml is important 
for Ajax

How can I determine optimal size? 


  |  
  | 

Also to use conversation propagation seems important 


  | 
  |
  |  
  | 

Seam examples in documentation does not have this?

When concurrent-request-timeout is small then I have problem:


  | 20:31:21,692 INFO [lifecycle] WARNING: FacesMessage(s) have been enqueued, 
but may not have been displayed.
  | sourceId=null[severity=(WARN 1), summary=(The conversation ended, timed out 
or was processing another request), detail=(The conversation ended, timed out 
or was processing another request)]
  | sourceId=null[severity=(WARN 1), summary=(The conversation ended, timed out 
or was processing another request), detail=(The conversation ended, timed out 
or was processing another request)]
  | 

But can a bigger value cause memory problems on server? 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106112#4106112

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106112
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Pagefrow - Redirect & Description

2007-11-19 Thread enda
Here it is  ;],
so Pete now your answer ;)), thanks

In seam documentation is many various combinations of managing workspace.
But it seem like there is not a combination that would allow to redirect in 
jPDL and to specify description together.

There are examples where I can use pages.xml like this



  | 
  |   Foo at #{bar.circle}
  | 
  | 

but this is completely ignored when I use pageflow jPDL!

other alternative is to use jPDL


  | 
  |
  |  View person home: #{person.username}
  |
  |
  | 
  | 



but then I cannot use redirect!

this fails to deploy:


  | 
  |
  |
  | View person home: #{person.username}
  | 
  | 
  | 
  | 


this is ignored at all (what is the purpose of that???):


  | 
  | 
  |View person home: #{person.username}
  | 
  | 
  | 
  | 




Maybe there is some magic combination but then it is not in documentation.
Does anyone figure it out?

Tomas

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106108#4106108

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106108
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - concurrent-request-timeout - how to set optimal size?

2007-11-19 Thread enda
Seems that concurrent-request-timeout parameter in components.xml is important 
for Ajax 

How can I determine optimal size?

---

---

Also to use conversation propagation seems important
---



--

Seam examples in documentation does not have this?

When concurrent-request-timeout is small then I have problem:

20:31:21,692 INFO [lifecycle] WARNING: FacesMessage(s) have been enqueued, but 
may not have been displayed.
sourceId=null[severity=(WARN 1), summary=(The conversation ended, timed out or 
was processing another request), detail=(The conversation ended, timed out or 
was processing another request)]
sourceId=null[severity=(WARN 1), summary=(The conversation ended, timed out or 
was processing another request), detail=(The conversation ended, timed out or 
was processing another request)] 


But can a bigger value cause memory problems on server? 

Tomas

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106056#4106056

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106056
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Pagefrow - Redirect & Description

2007-11-19 Thread enda
In seam documentation is many various combinations of managing workspace.
But it seem like there is not a combination that would allow to redirect in 
jPDL and to specify description together.

There are examples where I can use pages.xml like this


 Foo at #{bar.circle}


but this is completely ignored when I use pageflow jPDL!

other alternative is to use jPDL



View person home: #{person.username}

  
   


but then I cannot use redirect!

this fails to deploy:




View person home: #{person.username}

  
 


this is ignored at all (what is the purpose of that???):




View person home: #{person.username}

  
 


Maybe there is some magic combination but then it is not in documentation.
Does anyone figure it out?

Tomas

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106038#4106038

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106038
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: conversation id reuse after timeout

2007-11-17 Thread enda
Hi I have that as well with Seam 2.0.0.GA ! 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105823#4105823

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105823
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Bussines logic : separate service?

2007-10-30 Thread enda
Dear friends,

I have discussion question. I am to build architecture for large web 
application under Seam 2. We already have good back-end from first application 
version using Hibernate, Spring, JSF + trinidad (navigation uses pageFlowScope).
In existing version we separated service with service locater pattern(facade), 
so we have nice layers.

 I read two books about Seam and went through JBoss tutorial on web. It seems 
that general approach in Seam is to put all bussines logic into session beans. 
So session bean takes care about Authorization, Conversations, Bussines and 
View. It seems to me that there is too many things in. Isn't it better to 
separate service into a special session beans that will handle service? this 
beans will act as service locator. 

What do you think? maybe I am missing something important in my consideration.

I will be happy for every opinion. 

Tomas

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100320#4100320

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100320
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam 2.0B1: selectItems, convertEntity, and lazy fetchin

2007-08-30 Thread enda
Maybe you have similar problem :)

Scenario: Lazy fetching & equality So the problem was that our component 
selectOneMenu could not getSelected object and was returning no item selected 
But when I was trying to display value by inputText or whatever the value was 
there? I was debugging MenuRenderer and I was receiving null data values in 
object instance, what was the problem? Problem was that our entity object was 
implementing equals method, but method was comparing 
this.name().equals(country.name()) instead of 
this.getName().equals(country.getName()) as a proxy object it just was not 
initialized and was not fetched, so getXXX forces hibernate to fetch data


   @Override
   public boolean equals(Object other) {
   if (this == other) {
   return true;
   }
   if (!(other instanceof Country)) {
   return false;
   }
   final Country country = (Country) other;
   if (this.getName() != null) {
   return this.getName().equals(country.getName());
   }
   return false;
   }


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4079799#4079799

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4079799
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Seam 2Beta - Examples - Todo

2007-08-26 Thread enda
Hi,

I was browsing Seam 2 examples and the third one had minor problem

it is in JSP so it took longer time :)

To finish task is in documentation 





but server cried.

 this works


   
   


Hopefully will help

How should I put it into JIRA system I was looking for duplicity but I did not 
find it?

Tomas

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078176#4078176

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078176
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user