[jboss-user] [JBoss Seam] - Re: Converter behavior PROBLEM

2007-09-12 Thread urosmil
Hi Stephen, 

this is offer without irrelevant information:


  | public class Offer implements Serializable, Cloneable {
  | 
  | private BigDecimal price;
  | 
  | public BigDecimal getPrice() {
  | return price;
  | }
  | 
  | public void setPrice(BigDecimal price) {
  | this.price = price;
  | }
  | }
  | 

Important to say is that there are situation where I use converter for 
java.util.List objects and everything work fine.

Thanks,
Uros.

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

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


[jboss-user] [JBoss Seam] - Re: Converter behavior PROBLEM

2007-09-12 Thread urosmil
Hi,

it was validation error. I got ""price": Conversion error occurred." from 
h:messages.

BUT why is validation happening?
I even changed "getAsObject" method body to:
public Object getAsObject(FacesContext arg0, UIComponent arg1, String string) {
  | return new BigDecimal(0);
  | }
and I got same error.
Is this some BUG is JSF or Seam or I am doing something wrong?

Thanks,
Uros!

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

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


[jboss-user] [JBoss Seam] - Re: Converter behavior PROBLEM

2007-09-12 Thread urosmil
Hi Stephen,

as "validation" are you referring to explicitly added jsf validation, because I 
don't use that?

This is html code:

I think is important to add that set-er for "offerBean.offer.price" is never 
executed. After "getAsObject" it's going directly to "getAsString" - by 
directly I mean it skips my code not the code for handling jsf lifecycle.

Does jsf controller checks object returned by "getAsObject" method? Should't it 
just call set-er and pass argument returned by "getAsObject" method?
Can someone explain what actually happens behind the scene?

Thanks,
Uros.

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

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


[jboss-user] [JBoss Seam] - Converter behavior PROBLEM

2007-09-12 Thread urosmil
Hi,

I'm having problem with jsf converter behavior. 
This is converter code:

public class OfferPriceConvertor implements Converter{
  | 
  | public Object getAsObject(FacesContext arg0, UIComponent arg1, String 
string) {
  | BigDecimal price = null;
  | try {
  | price = new BigDecimal( string );
  | } catch (Exception e) {
  | price = new BigDecimal(0);
  | }
  | return price;
  | }
  | 
  | public String getAsString(FacesContext arg0, UIComponent arg1, Object 
object) {
  | BigDecimal price = (BigDecimal) object;
  | BigDecimal minPrice = null;
  | try {
  | minPrice = new BigDecimal( 
GlobalProperties.getStaticData("minimum_offer_price") );
  | } catch (Exception e) {
  | minPrice = new BigDecimal(0);
  | }
  | return ((price != null && price.doubleValue() > 0) ? 
price.toPlainString() : minPrice.toPlainString());
  | }
  | 
  | }

Converter works ok when page is rendered. 
Problem appears when page is submitted.  Function "getAsObject" is executed BUT 
instead of entering action method I got same page displayed again.
There are probably some problem inside jsf lifecycle but I don't see anything 
in console.

These anyone had same problem?
I am interested in any suggestion.

Thanks,
Uros.

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

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


[jboss-user] [JBoss Seam] - Re: Seam Remoting - ajax request after session expires

2007-08-20 Thread urosmil
Hi,

I am back with my solution for this issue.
This is what I did to solve problem (I hope this can help someone):

SERVER SIDE:

1) Create Filter:

  | public class SeamRemotingSessionValidationFilter implements Filter  {
  | 
  | public void init(FilterConfig filterConfig) throws ServletException {}
  | public void destroy() {}
  | 
  | public void doFilter(ServletRequest request, ServletResponse response, 
FilterChain chain) throws IOException, ServletException {
  | HttpSession session = 
((HttpServletRequest)request).getSession();
  | String servletPath = ((HttpServletRequest) 
request).getServletPath();
  | 
  | if( servletPath.startsWith("/seam/resource") &&
  | ( session.getAttribute( "loged" ) == null || 
!((String)session.getAttribute( "loged" )).equals("true") ) )
  | {
  | 
((HttpServletResponse)response).getWriter().append("");
  | return;
  | }
  | 
  | chain.doFilter(request, response);
  | }
  | }
  | 
Code "session.getAttribute( "loged" )" is my indicator for sassion.

2) Register Filter in web.xml:

  | 
  | SeamRemotingSessionValidationFilter
  | 
  | com.yc.isystem.presentation.filter.SeamRemotingSessionValidationFilter
  | 
  | 
  | 
  | SeamRemotingSessionValidationFilter
  | /seam/resource/remoting/*
  | 
  | 

CLIENT SIDE:
I decide not to change seam's js libraries so I used Javascript AOP (Aspect 
Oriented Programing). We already use dojotoolkit in our project so I used 
dojo's aop functions (there are other libraries which are created just for aop 
- search google for "js aop"). Next steps are explanation for dojo's aop 
functionalities.

3) Import dojo and set required library:

  | 
  | 
  | dojo.require("dojo.event");
  | 
  | 

4) Set around advice:

  | dojo.event.connect('around', Seam.Remoting, 'processResponse', 
'ajaxResponseInterceptor');
  | 
I put this in html body (tag) onload='--here--' (attribute) but you can put 
where you need it.

5) Create js function for redirection:

  | function ajaxResponseInterceptor(invocation){
  | 
  | if(invocation.args[0].firstChild.tagName == 'redirectPage'){
  | window.location = 
invocation.args[0].firstChild.attributes['to'].nodeValue;
  | }
  | 
  | var result = invocation.proceed();
  | return result;
  | }
  | 

For some other js aop library steps would be same!

If you have problems adding this to you project feel free to ask for help - 
I'll help if I can.

IMPORTANT: This is first version so it's possible that there are some issues. 
If you seen some please inform me.

Thanks,
Uros.

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

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


[jboss-user] [JBoss Seam] - Re: Seam Remoting - ajax request after session expires

2007-08-07 Thread urosmil
Hi Pete,

but isn't this feature that's missing (or bug)?
I wouldn't post this in JIRA if you think this doesn't belongs there!

Thanks,
Uros!

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

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


[jboss-user] [JBoss Seam] - Re: Seam Remoting - ajax request after session expires

2007-08-06 Thread urosmil
Hi. 
Me again.

Is it possible that Seam engineers overlooked this real life situation?
Do you have some recommendation?
Would this be fixed in Seam 2.0?

I really enjoy working with Seam so I hope you would understand this as my 
attempt to help.

Thanks,
Uros!

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

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


[jboss-user] [JBoss Seam] - Re: Seam Remoting - ajax request after session expires

2007-08-03 Thread urosmil
Just to add: I am using Seam 1.2.1 GA.

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

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


[jboss-user] [JBoss Seam] - Seam Remoting - ajax request after session expires

2007-08-03 Thread urosmil
Hi,

after session expires I can access bean with Seam Remoting (as I understand new 
bean is created). Problem is that other necessary beans are not there. I would 
like to redirect page from which ajax request is sent if session is expired.
What is preferred way with Seam to handle this?
I am thinking to extend ResourceServlet and return something like:

  |  <-- This is important part
  | 
if session is expired. But can I intercept Seam Remoting response in javascript?

Thanks,
Uros!

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

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


[jboss-user] [JBoss Seam] - Conditional validation triggering

2007-07-13 Thread urosmil
Hi,

is it possible to add jsf (or seam - annotation) validation but to trigger it 
only from specific action. For example if I call 
"action=#{myBean.proccessData}" validation is executed but for other actions NO 
validation is executed?
I know there is immediate="true" but I don't want to put it in all other links 
(there are a lot of links in header and in menus).

Thanks,
Uros!

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

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


[jboss-user] [JBoss Seam] - Re: replacement for ifNotBegunOutcome in @Conversational

2007-06-22 Thread urosmil
Hi azalea,

it doesn't work. There are to problems:
1) redirection doesn't happen
2) Exception occurs:
WARNING: Exception Processing ErrorPage[errorCode=404, location=/startpage.jsf]
  | ClientAbortException:  java.net.SocketException: Software caused connection 
abort: socket write error
  | at 
org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:327)
  | at 
org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:293)
  | at org.apache.catalina.connector.Response.flushBuffer(Response.java:537)
  | at 
org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:286)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  | at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  | at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  | at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  | at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
  | at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
  | at java.lang.Thread.run(Unknown Source)
  | Caused by: java.net.SocketException: Software caused connection abort: 
socket write error
  | at java.net.SocketOutputStream.socketWrite0(Native Method)
  | at java.net.SocketOutputStream.socketWrite(Unknown Source)
  | at java.net.SocketOutputStream.write(Unknown Source)
  | at 
org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:746)
  | at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:433)
  | at 
org.apache.coyote.http11.InternalOutputBuffer.flush(InternalOutputBuffer.java:304)
  | at 
org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:991)
  | at org.apache.coyote.Response.action(Response.java:182)
  | at 
org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:322)
  | ... 13 more 

If I remove 

  | 404
  | /startpage.jsf
  | 
from web.xml error disappears but redirection steel doesn't happen.

If someone knows how to accomplish this help is appreciated!

Thanks,
Uros!

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

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


[jboss-user] [JBoss Seam] - Re: replacement for ifNotBegunOutcome in @Conversational

2007-06-22 Thread urosmil
Hi azalea,

CORRECTION:

Instead of no-conversation-view-id="/offer*.xhtml" there should be 
view-id="/offer*.xhtml"? 


  | 


Thanks,
Uros!

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

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


[jboss-user] [JBoss Seam] - Re: replacement for ifNotBegunOutcome in @Conversational

2007-06-22 Thread urosmil
Hi azalea,

now I have to add 
for all 10 pages in wizard.
Is there some way to make this shorter (like 
no-conversation-view-id="/offer*.xhtml" )?

Thanks,
Uros!

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

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


[jboss-user] [JBoss Seam] - Re: replacement for ifNotBegunOutcome in @Conversational

2007-06-21 Thread urosmil
Hi Gavin,

but how to redirect to error page?

Thanks,
Uros! 

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

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


[jboss-user] [JBoss Seam] - replacement for ifNotBegunOutcome in @Conversational

2007-06-21 Thread urosmil
Hi,

what should I use to achieve same functionality as with
@Conversational(ifNotBegunOutcome="error")
because this is deprecated in 1.2.1GA?

Thanks,
Uros!



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

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


[jboss-user] [JBoss Seam] - Re: Conversation - setting and getting

2007-06-19 Thread urosmil
Hi petemuir,

this is link:
offer.jsf?lang=en&id=173&type=offerId
this is pages.xml part:

  | 
  | 
  | 
  | 
  | 
this is OfferBean:
@Name("offerBean")
  | @Scope(ScopeType.CONVERSATION)
  | @Conversational(ifNotBegunOutcome = "offerBook")
  | public class OfferBean extends BaseBean{
  | // ...
  | }
this is OfferPreviewBean:

  | @Name("offerPreviewBean")
  | @Scope(ScopeType.SESSION) //ScopeType.EVENT
  | public class OfferPreviewBean extends BaseBean{
  | public OfferPreviewBean() {
  | offerBean = (OfferBean) 
Contexts.getConversationContext().get("offerBean");
  | }
  | }
  | 
I think other code is not relevant because in use case where "offerBean" object 
in OfferPreviewBean bean is not needed pop-up is working perfectly.

Thanks,
Uros!

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

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


[jboss-user] [JBoss Seam] - Re: Conversation - setting and getting

2007-06-19 Thread urosmil
Hi,

I will explain my problem hopping someone can help:

>From page which is in conversation I open pop-up window with url: 
>offer.jsf?lang=en&id=173&type=offerId. Page offer.jsf use session (doesn't 
>need to be session; can be request to) scoped bean "offerPreviewBean". In 
>"offerPreviewBean" bean I try to access conversation scoped bean "offerBean".

Is this possible and if it isn't how to solve this problem?

I can explicitly add objects I need in session but if I use that practice I'm 
moving back to JSP world.

Thanks,
Uros!

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

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


[jboss-user] [JBoss Seam] - Re: Conversation - setting and getting

2007-06-19 Thread urosmil
Hi petemuir,

pop-up is not in conversation. I don't it should be inside conversation. Pop-up 
use other session scoped bean.
Am I making mistake in use?
In what situations is possible to access conversation scoped bean? 

Thanks,
Uros!

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

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


[jboss-user] [JBoss Seam] - Re: Conversation - setting and getting

2007-06-19 Thread urosmil
Hi petemuir,

both "Contexts.lookupInStatefulContexts("myBean")" and 
"Contexts.getConversationContext().get("myBean")" return null when I try to get 
conversation bean in session scoped bean.

I open pop-up window from conversation bean (offerBean). That pop-up use other 
session scoped bean (offerPreviewBean). Inside offerPreviewBean I try to access 
offerBean and I got null.

Is there some conditions in which code you post doesn't work?

Thanks,
Uros!

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

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


[jboss-user] [JBoss Seam] - Conversation - setting and getting

2007-06-19 Thread urosmil
Hi,

I have 2 questions:

1) is it possible to set conversation scope in faces-config.xml; in the same 
way as for session scope: session

2) how go get conversation scoped bean through java code, as it's possible for 
session scoped bean:
MyBean myBean = (MyBean) 
FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get("myBean"
 );

Thanks,
Uros!

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

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


[jboss-user] [JBoss Seam] - Re: actionListener=

2007-06-15 Thread urosmil
Hi Gavin,

can you give me a link to documentation that explains use (in 1.3)? Also does 
this way I lose ActionEvent parameter?

Thanks,
Uros!

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

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


[jboss-user] [JBoss Seam] - actionListener="#{hotelBooking.bookHotel(hotel)}"

2007-06-15 Thread urosmil
Hi,

is it possible to have EL enhancements for actionListener 
(actionListener="#{hotelBooking.bookHotel(hotel)}")?

Thanks,
Uros!

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

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


[jboss-user] [JBoss Seam] - Re: Unwanted conversationId

2007-06-14 Thread urosmil
Hi Gavin,

corection: So if we remove  "conversationId" would disappear, right? 

redirect was disappear previously! 

Thanks,
Uros!

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

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


[jboss-user] [JBoss Seam] - Re: Unwanted conversationId

2007-06-14 Thread urosmil
Hi Gavin,

that is exactly what we do. 
So if we remove  "conversationId" would disappear, right? 

Thanks,
Uros!

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

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


[jboss-user] [JBoss Seam] - Re: Unwanted conversationId

2007-06-14 Thread urosmil
Hi Gavin,

are you saying that with "h:commandLink" i can't remove it?
We are trying to add seam in existing application with 30+ pages and 150+ 
"h:commandLink"-s. We definitely don't want to change them all.
Is there some workaround?

Thanks,
Uros!

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

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


[jboss-user] [JBoss Seam] - Unwanted conversationId

2007-06-14 Thread urosmil
Hi,

how to remove "conversationId" in URL from pages where I don't want it?
Now it's on every page.

Thanks,
Uros!

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

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


[jboss-user] [JBoss Seam] - Re: Just Seam - no ORM

2007-06-13 Thread urosmil
Hi fers,

I followed instruction on site and created project. It was actually very simple 
- just download maven and execute command - that's all.

Thanks,
Uros.

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

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


[jboss-user] [JBoss Seam] - Re: Just Seam - no ORM

2007-06-13 Thread urosmil
Hi fers,

I don't use maven (no experience with it). Is it possible to find created 
example somewhere?

Thanks,
Uros.

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

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


[jboss-user] [JBoss Seam] - Just Seam - no ORM

2007-06-13 Thread urosmil
Hi,

I want to add Seam to our application which has UI implemented in JSF-RI-1.1 + 
Facelets. 

 - Plan is to use Seam capabilities only in UI in 1st step and in 2nd to 
connect it with ORM layer (implemented throw Hibernate 3).
 - We deploy app on Tomcat 5.5.

I have created test project fot tomcat without JBoss Microcontainer libs. Test 
app works without problems but I get error:

Jun 13, 2007 9:51:15 AM org.jboss.seam.servlet.SeamExceptionFilter doFilter
SEVERE: could not roll back transaction
javax.naming.NamingException: Cannot create resource instance
at 
org.apache.naming.factory.TransactionFactory.getObjectInstance(TransactionFactory.java:112)
at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
at org.apache.naming.NamingContext.lookup(NamingContext.java:792)
at org.apache.naming.NamingContext.lookup(NamingContext.java:139)
at org.apache.naming.NamingContext.lookup(NamingContext.java:780)
at org.apache.naming.NamingContext.lookup(NamingContext.java:152)
at org.apache.naming.SelectorContext.lookup(SelectorContext.java:136)
at javax.naming.InitialContext.lookup(Unknown Source)
at 
org.jboss.seam.util.Transactions.getUserTransaction(Transactions.java:153)
at 
org.jboss.seam.util.Transactions.isUTTransactionActiveOrMarkedRollback(Transactions.java:122)
at 
org.jboss.seam.util.Transactions.isTransactionActiveOrMarkedRollback(Transactions.java:50)
at 
org.jboss.seam.servlet.SeamExceptionFilter.rollbackTransactionIfNecessary(SeamExceptionFilter.java:92)
at 
org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:52)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:32)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source).

When "org.jboss.seam.servlet.SeamExceptionFilter" filter mapping from web.xml 
is removed there is no Exception.

All config files for data persistence are removed and other config files are 
set as required (parameters for data persistence removed from component.xml, 
... ).
What is actually happening? Are Exceptions still there but just not showed in 
console? 
Is it possible to achieve what I want?

IMPORTANT: even with Exceptions app works all time as expected!

Thanks,
Uros.

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

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


[jboss-user] [JBoss Seam] - required jars & config

2007-06-05 Thread urosmil
Hi,

I am trying to start app with seam on tomcat 5.5. I have spend whole day and I 
can't.

Questions:
1) What are required jars (all of them) for seam to work on tomcat 5.5 with JSF 
RI 1.1 and Facelets BUT WITHOUT EJB3 - JUST JPA + HIBERNATE?
2) Also how should web.xml and faces-config.xml look?
3) What other config files should be present (seam.properties, pages.xml, 
components.xml, ...) and where I should put them?

Comments:
1) Examples structure is very confusing with resource folder.
2) There should be more examples without ejb3 required and with facelets.

Thanks,
Uros.

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

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