[jboss-user] [JBoss Seam] - Seam Filter + Commons fileupload problem

2007-11-28 Thread Holger Prause
Hello, i am using the commons file upload api in a servlet to upload files. I noticed when declaring the seam filter in web.xml | filter | filter-nameSeam Filter/filter-name | filter-classorg.jboss.seam.web.SeamFilter/filter-class | /filter | |

[jboss-user] [JBoss Seam] - rich:calendar localisation problem / improvement suggesstion

2007-10-11 Thread Holger Prause
Hello , i am using the rich:calendar tag. I noticed the day and week strings are localized (good) but the today String on the bottom is not. How can i archieve this? If i have to customize the calendar to do this, can you please tell me where to start (in what java class and/or resource file)

[jboss-user] [JBoss Seam] - h:message for / s:decorate question

2007-10-10 Thread Holger Prause
Hello, first of all ill explain what i want to do and then let me ask if its possible with seam look at the following code, it displays an error message for an input field | h:inputText id=myInput required=true value=#{TestBean.value} errorStyle=color:red / | h:message for=myInput / |

[jboss-user] [JBoss Seam] - Re: h:message for / s:decorate question

2007-10-10 Thread Holger Prause
I am using the js implementation coming with jboss-4.0.5.GA () i specified the label attribute on the inputText, still same behaviour. Well guess ill try to update the jsf implementation libs on my jboss server I realized that the newest myfaces implemenations are horrible slow so i tried to

[jboss-user] [JBoss Seam] - Re: h:message for / s:decorate question

2007-10-10 Thread Holger Prause
Hello i update to the newest myfaces jar , same behaviour, i am currently trying to upgrade to jsf-1.2_04-b07 but i get the error message java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.context.FacesContextFactory I

[jboss-user] [JBoss Seam] - Re: h:message for / s:decorate question

2007-10-10 Thread Holger Prause
If u want to upgrade to jsf 1.2 too, take a look here: http://www.jboss.com/index.html?module=bbop=viewtopict=94738 I am switiching to last jboss server, i let u know if i get it (finally) to work. View the original post :

[jboss-user] [JBoss Seam] - Re: h:message for / s:decorate question

2007-10-10 Thread Holger Prause
well i try also to get tomahawk working together with jsf ri. wish me luck - good night View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4093578#4093578 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4093578

[jboss-user] [JBoss Seam] - Re: h:message for / s:decorate question

2007-10-10 Thread Holger Prause
Now i finally upgraded everything the behaviour is slightly better, but still not like expected: I am using latest jsf ri implementation and jboss-4.2.1.GA in my messages.properties | myInput=Label for my Inputfield | in my facelets page | h:inputText id=myInput required=true

[jboss-user] [JBoss Seam] - Re: h:message for / s:decorate question

2007-10-10 Thread Holger Prause
I dont think u got it right, my message properties file is just as it should, the entry that should be used as label is there and configured. Its just the h:message tag in combination with the h:inputText tag that just dont work together. The code i posted (the 2 lines) are so simple, well

[jboss-user] [JBoss Seam] - Re: h:message for / s:decorate question

2007-10-10 Thread Holger Prause
Well finally i found out how to(semi dirty workaround in my opinion) Dont override the required message in your messages.properties It will take effect for all your input fields where required is specified When u got an internet application with just 1 form field thats maybe an solution

[jboss-user] [JBoss Seam] - Re: h:message for / s:decorate question (cause of the proble

2007-10-10 Thread Holger Prause
Well first of all sorry to all for the confusion. First of all 1 thing: 1) its working like expected (upgrade to jsf 1.2 and use label attribute ) I was so sure that my message template(generated from redhat developer studio) was the same like in the jsf implementation and that i am doing

[jboss-user] [JBoss Seam] - logoff question

2007-01-24 Thread Holger Prause
Hello,i have problems with my logoff action, i need to set the user object to null. The code below dont works (i also made sure theres no seam component with name user) | @Stateless | @Name(logoff) | public class LogoffAction implements Logoff { | | @In |

[jboss-user] [JBoss Seam] - outject a constant string value from pages.xml

2007-01-23 Thread Holger Prause
| rule if-outcome=loginsuccess | out name=detailViewId value=/details.xhtml / | render view-id=/welcome.xhtml/ | /rule | Hello, i noticed in the rule tag u can sepcifiy an out tag, i want that this out tag to output a constant string value (no el expression), how can i do

[jboss-user] [JBoss Seam] - Re: outject a constant string value from pages.xml

2007-01-23 Thread Holger Prause
i noticed the same problem occurs if u use params, u cant output a constant string(u can only use el expression which will be evaluated), i am really getting crazy/ mad on this , why o why? Such a simple thing and i am stuck on it, pls help. View the original post :

[jboss-user] [JBoss Seam] - need help pls!!!

2007-01-23 Thread Holger Prause
Hello in need urgent help for this problem or at least a comment on this http://www.jboss.com/index.html?module=bbop=viewtopict=99753 Sorry for any cross posting but i really need an answer / reaction on this (didnt got any) View the original post :

[jboss-user] [JBoss Seam] - Re: outject a constant string value from pages.xml

2007-01-23 Thread Holger Prause
finally found out how to uotput a constant string for example use : use | out name=name value=#{'yourstring'} / | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4005538#4005538 Reply to the post :

[jboss-user] [JBoss Seam] - Re: access faces-config.xml in a java bean

2007-01-22 Thread Holger Prause
Halo, thx for the answer i have 2 questions on this. 1) Why the seam developers decided to introduce a new workflow config file (pages.xml) instead using the jsf approach (faces-config.xml), are there any real advantages on this ? (i have about 50 navigation rules in faces-config.xml, would

[jboss-user] [JBoss Seam] - Re: access faces-config.xml in a java bean

2007-01-22 Thread Holger Prause
thx for the tip, ill put some time on it and take a look at it right now. If i got any problem, can i post in this thread again? thx very much(this is really the only bulletin board where ppl understand what i want and help me), Bye, Holger View the original post :

[jboss-user] [JBoss Seam] - Re: access faces-config.xml in a java bean

2007-01-22 Thread Holger Prause
Hello i a curently trying to migrate the naivagation rule but somehow i making a mistake but cant see it(rule has no effect). rule from faces-config.xml (working) navigation-rule navigation-case

[jboss-user] [JBoss Seam] - Re: access faces-config.xml in a java bean

2007-01-22 Thread Holger Prause
i have to correct the code above the code in pages.xml is: !DOCTYPE pages PUBLIC -//JBoss/Seam Pages Configuration DTD 1.1//EN http://jboss.com/products/seam/pages-1.1.dtd; !-- login -- rule if-outcome=loginsuccess redirect

[jboss-user] [JBoss Seam] - Re: access faces-config.xml in a java bean

2007-01-22 Thread Holger Prause
Oh ok, i didnt knew. (Didnt even noticed seam 1.1.1 is out, from public donwload area your cant donwload http://labs.jboss.com/portal/jbossseam/download/index.html) Well ill try to udate to Seam 1.1.1. In the case i dont post here in this thread again, i got it working. Thx very much, Holger

[jboss-user] [JBoss Seam] - Re: access faces-config.xml in a java bean

2007-01-22 Thread Holger Prause
Hello, i also had the same idea, giving the page element a view id in my case /index.xhtml I tried the code u posted ,but it still has no effect. I am using jboss-seam-1.1.0.GA, the pages.xml is deployed correctly (like in the examples), somewhere i got a log no events.xml defined , i hope it

[jboss-user] [JBoss Seam] - Re: access faces-config.xml in a java bean

2007-01-22 Thread Holger Prause
ok i found potential mistake change to code blow -still no effect (have problems posting xml code) - pages page navigation !-- login -- rule if-outcome=loginsuccess redirect view-id=/welcome.xhtml / /rule

[jboss-user] [JBoss Seam] - Re: access faces-config.xml in a java bean

2007-01-22 Thread Holger Prause
ok the navigation rule defined in pages.xml take effect! Great! Only 1 final problem how can i inject that component? Thx, Holger View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4005111#4005111 Reply to the post :

[jboss-user] [JBoss Seam] - Re: access faces-config.xml in a java bean

2007-01-22 Thread Holger Prause
Ah ok :-) Its also in the api if one can read ^^ | @Name(value=org.jboss.seam.core.pages) | and again thx very much, everything is working now :-) Bye, Holger View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4005115#4005115 Reply to the post :

[jboss-user] [JBoss Seam] - Re: access faces-config.xml in a java bean

2007-01-22 Thread Holger Prause
Oh i got 1 final question, i can get access to the rule i need to know, but i need to get the target viewId redirect view-id=/welcome.xhtml/ How can i archieve this (i am stuck at this point) | rule if-outcome=loginsuccess | redirect view-id=/welcome.xhtml/ | /rule | java code

[jboss-user] [JBoss Seam] - Re: access faces-config.xml in a java bean

2007-01-22 Thread Holger Prause
Hello i noticed a nice feature in the rule element u can specify out tag, that would be just perfect! I only got 1 problem how can i specify a constant string expression to be outjected: like | rule if-outcome=loginsuccess | out name=detailViewId value=/details.xhtml / | render

[jboss-user] [JBoss Seam] - access faces-config.xml in a java bean

2007-01-21 Thread Holger Prause
Hello, i need to access the navigation-cases defined in faces-config.xml in my application (a java bean has to do that). I need that becourse i am writing an own wizard (for my case a4j:include is not the right way). Is there any predefined component what does this (like messages) ? or any

[jboss-user] [JBoss Seam] - Re: seam jsf desgin question

2006-12-06 Thread Holger Prause
Sigh ^^ Well, ok that means u have -model -view package in every module, did i understood you right? I have to decide between 2 and 3, if u say solution 3) works good for you , ill adopt it. Thank you very much, Holger View the original post :

[jboss-user] [JBoss Seam] - seam jsf desgin question

2006-12-05 Thread Holger Prause
Hello, i just posted on the myfaces mailing list on jsf application design and package structure The most people the use this approach: 1) The managed bean (seam component) contains the action methods for itself (explanation course they are tied together) I noticed the seam example

[jboss-user] [JBoss Seam] - Re: seam jsf desgin question

2006-12-05 Thread Holger Prause
You'll run into problems if you try to put the action methods on entities (e.g. Seam annotations have no effect). Oh i see, so i really have to split actions and model(entity) bean (like it is now) shouldnt this difference be reflected in your package structure or would u put all into the

[jboss-user] [JBoss Seam] - Re: null component check in the view -- how does it work?

2006-08-01 Thread Holger Prause
Well as far as i understand it works like this: first, seam looks if a object for this variable exists, in all scopes, if none was found, seams looks if a component with such a name exists - (the code u posted) if yes , it will be created. currentUser would only be never null when u write

[jboss-user] [JBoss Seam] - @OneToMany Question

2006-07-27 Thread Holger Prause
Hello, i have a site where the uses can select TaskItems (entities from the database) and set it to a task. I use a OneToMany relationship (a task hast many taskitems) When i set the TaskItems to the task and save it, everything will be ok. But when i save another task whith the same

[jboss-user] [JBoss Seam] - Re: @OneToMany Question

2006-07-27 Thread Holger Prause
Hello anonymous wrote : | It sounds like you want a ManyToMany relation. If Tasks can have many TaskItems and a TaskItem can be associated with more than one Task this is a ManyToMany relation, not a OneToMany. | Hmm but the TaskItem dont have any information about the task it owns (no

[jboss-user] [JBoss Seam] - @Out Question

2006-07-26 Thread Holger Prause
Hello, i wrote a register wizard bean where u can register member. How can i tell @Out that it should only export values into context when the value is not null? I found out that @Out always export a value even when null. //export the tester as our logged in user

[jboss-user] [JBoss Seam] - Re: @Begin and @End

2006-07-19 Thread Holger Prause
[EMAIL PROTECTED] wrote : If you really _have_ to have transparent lazy fetching of data off of the user, combined with caching of that data then create a session-scoped managed persistence context. | | There are a couple of ways to do this, but the easiest is to use Seam 1.1 CVS build and

[jboss-user] [JBoss Seam] - Re: ajax4js and seam integration - my guide

2006-07-13 Thread Holger Prause
Hello, well thats strange, i somehow remember this error but i dindt get it anymore for 1 day,maybe u deploy the jars u copied to $JBOSSSERVERHOME/default/lib with your application? (look at build.xml) If all dont helps, try cleaning up/reinstalling everything, sorry i couldnt help

[jboss-user] [JBoss Seam] - ajax4js and seam integration - my guide

2006-07-12 Thread Holger Prause
Hello, after spending 3 days with trying to integrate ajax framworks with jboss seam i finally get a integration with ajax4jsf working 1) first download ajax4js https://ajax4jsf.dev.java.net/nonav/ajax/ajax-jsf/ 2) copy the following jars to $JBOSSSERVERHOME/default/lib el-api.jar el-ri.jar