[jboss-user] [JBoss Seam] - Re: Page flow issues using jPDL

2007-12-27 Thread Zerg-Spirit
Yeah, I actually 'fixed' the problem of a user getting out of the pageflow by putting a propagation = 'none' on my s:links. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115678#4115678 Reply to the post : http://www.jboss.com/index.html?module=bb&op=postin

[jboss-user] [JBoss Seam] - Page flow issues using jPDL

2007-12-11 Thread Zerg-Spirit
Hi, We're currently trying to build a tool to translate the messages of our site. We basically want the translator just to see a simple panel showing him the message, its description and its different translations, with of course a possibility of changing them. So the translator see a message,

[jboss-user] [JBossCache] - Re: improve s:cache performances

2007-12-07 Thread Zerg-Spirit
Config file wasn't pasted correctly: | | | | | | | | | | | | | | | | | | | | jboss:service=Naming | jboss:service=TransactionManager | | | | | PESSIMISTIC | | | REPEA

[jboss-user] [JBossCache] - improve s:cache performances

2007-12-07 Thread Zerg-Spirit
Hi, I already posted this message in the Seam forums, but I figured it was most probably a topic that would fit here. I'm currently working on a big page displaying a topic and every of its children hierarchically. Since these topics can have a lot of children, I figured out I should cache my p

[jboss-user] [JBoss Seam] - Re: Enhance s:cache performances

2007-11-27 Thread Zerg-Spirit
Apparently, when the page is loaded using the cache (at least I think so), it still gets the 'sortedColumnedChildren' property from the entities, which shouldn't be the case if the page was static, so I guess it's not cached correctly after all... Might be nothing, but at the bottom of the page

[jboss-user] [JBoss Seam] - Re: Enhance s:cache performances

2007-11-27 Thread Zerg-Spirit
Well, it surely caches at least some part of the page (so I guess the whole page?) since it greatly reduced the page generation time. But I guess I was right on a point reading your post, the page should be 'instantly' loaded if it was correctly cached, right? View the original post : http://w

[jboss-user] [JBoss Seam] - Enhance s:cache performances

2007-11-27 Thread Zerg-Spirit
Hi! I'm currently working on a big page displaying a topic and every of its children hierarchically. Since these topics can have a lot of children, I figured out I should cache my page to enhance my performances. I actually managed to cache it, jumping from a poor 40s~ page generation time to

[jboss-user] [JBoss Seam] - Proper back buttoning again...

2007-11-06 Thread Zerg-Spirit
Hey, I currently have a problem regarding the back buttoning. Basically, I have a page to translate messages (as a matter of fact, it's my messages stored in database for my ResourceBundles). A message owns a list of expression, each representing a translation for the message for a given Languag

[jboss-user] [JBoss Seam] - Re: Pageflow problems with back button

2007-10-31 Thread Zerg-Spirit
Well, same here. I think I read in the Seam documentation that in a stateful context, back button is 'disabled' by Seam, but it seems not to be the case. I have exactly the same problem as stated above. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100753#410

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

2007-10-25 Thread Zerg-Spirit
Just do that: @Scope(value = SESSION) | @Name(value = "org.jboss.seam.international.localeSelector") | @BypassInterceptors | public class CustomLocaleSelector extends | org.jboss.seam.international.LocaleSelector { | ... | } View the original post : http://www.jboss.com/i

[jboss-user] [JBoss Seam] - Re: LazyInitialization and ScopeType.SESSION question

2007-09-11 Thread Zerg-Spirit
As far as I know make your Bean a Stateful Bean would probably solve the problem (@Stateful). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4082889#4082889 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4082889

[jboss-user] [JBoss Seam] - Re: ResourceBundle in Database

2007-09-11 Thread Zerg-Spirit
@Scope(APPLICATION) | @BypassInterceptors | @Name("org.jboss.seam.core.resourceLoader") | public class ExtendedResourceLoader extends | org.jboss.seam.core.ResourceLoader { | | /** | * Method called to load a bundle | * @param bundleName the name of the bundle to loa

[jboss-user] [JBoss Seam] - Re: ResourceBundle in Database

2007-09-10 Thread Zerg-Spirit
Ok, the only way I managed to do it yet is to check inside the private ResourceBundle class if the Locale is dirty using a singleton Control class every time the handleGetObject method is called. Seems to work at the moment, but I'm really not sure it's either elegant or the best way to do it.

[jboss-user] [JBoss Seam] - Re: ResourceBundle in Database

2007-09-10 Thread Zerg-Spirit
Though it's a nice article and helped me simplify the whole stuff, it doesn't really speak about my mine problem: the caching issue. Say, starting with your example, that I want to cache every locale's bundle, and reload them only if they have changed (tagged as 'dirty'). Then, how to 'stay' the

[jboss-user] [JBoss Seam] - Re: ResourceBundle in Database

2007-09-10 Thread Zerg-Spirit
Nice article, making things way easier than implementing a lot of class to do the controls. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4082485#4082485 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4082485 __

[jboss-user] [JBoss Seam] - Re: ResourceBundle in Database

2007-09-07 Thread Zerg-Spirit
Ok, then I must do something wrong, that's for sure. I have overriden 2 classes: ResourceLoader and MessageFactory ResourceLoader: @Scope(SESSION) | @BypassInterceptors | @Name("org.jboss.seam.core.resourceLoader") | public class ExtendedResourceLoader extends | org.jboss.seam

[jboss-user] [JBoss Seam] - Re: ResourceBundle in Database

2007-09-07 Thread Zerg-Spirit
Yes, I've noticed it and I manage to reload a resource bundle using that, but it doesn't change the actual resourceBundle.instance(), which means if I'm changing my locale again, the resourceBundle will be back to its dirty state. View the original post : http://www.jboss.com/index.html?module

[jboss-user] [JBoss Seam] - Re: ResourceBundle in Database

2007-09-06 Thread Zerg-Spirit
Another revival since I still can't find a way to make my 'dirty' thing works. I don't know where to hook to change the code in order to reload the resourceBundle from the database. I tryed some different things using the messageFactory class, but couldn't work out with it. Basically, I'd need

[jboss-user] [JBoss Seam] - Re: ResourceBundle in Database

2007-08-09 Thread Zerg-Spirit
Actually, I've worked around the problem, since we just need to override ResourceLoader loadBundle method, but now I have a problem about the caching to reload the messages when I set a locale as 'Dirty'. Before the last changes, I was using an implementation or international.Message, but I don'

[jboss-user] [JBoss Seam] - Re: ResourceBundle in Database

2007-08-09 Thread Zerg-Spirit
Hey guys! Sorry about the revival, but with the new ResourceBundle implementation in the last Seam CVS, I'm kinda lost. I modified my implementation trying to get it working, but somehow I never manage to get the 'ResourceBundle.instance()' to change. I can easily load whatever language I want,

[jboss-user] [JBoss Seam] - Re: Evaluation of action attibute in s:link

2007-08-09 Thread Zerg-Spirit
I realise I posted in the wrong thread, I'll post it at the right place, and if an admin could delete this, it would be nice=) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072371#4072371 Reply to the post : http://www.jboss.com/index.html?module=bb&op=post

[jboss-user] [JBoss Seam] - Re: Evaluation of action attibute in s:link

2007-08-09 Thread Zerg-Spirit
Hey guys! Sorry about the revival, but with the new ResourceBundle implementation in the last Seam CVS, I'm kinda lost. I modified my implementation trying to get it working, but somehow I never manage to get the 'ResourceBundle.instance()' to change. I can easily load whatever language I want,

[jboss-user] [JBoss Seam] - Re: Evaluation of action attibute in s:link

2007-07-20 Thread Zerg-Spirit
Just in case, what are you trying to do with that code exactly? I guess you don't won't to simply change the local, or you have customized the Resource Bundles. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066201#4066201 Reply to the post : http://www.jbos

[jboss-user] [JBoss Seam] - Re: Evaluation of action attibute in s:link

2007-07-20 Thread Zerg-Spirit
action="#{localeSelector.selectLanguage('${locale.value}')} I think it's simply that you have to remove the ' that are surrounding #{locale.value}. Not sure about it though. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066163#4066163 Reply to the post : h

[jboss-user] [JBoss Seam] - Re: Evaluation of action attibute in s:link

2007-07-20 Thread Zerg-Spirit
I'm having the same problem, I can't retrieve any parameter with a s:link in my action, it's simply always null. At the moment I simply dodged the problem by using h:commandLink instead of s:link. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066071#4066071

[jboss-user] [JBoss Seam] - Re: Browser's back button problem

2007-07-20 Thread Zerg-Spirit
Just a little up cause I have the feeling not many people have seen it yet! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066049#4066049 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066049 __

[jboss-user] [JBoss Seam] - Browser's back button problem

2007-07-19 Thread Zerg-Spirit
Hello guys, I'm have troubling making the 'browser's back button' feature works, using JBoss 4.2 and Seam 2.0. I basically have a page, called Topic.xhtml, displaying some topic. Earch topic has some children, so when I click on a topic on that page, I change the value of the 'selectedTopic' ou

[jboss-user] [JBoss Seam] - Re: ResourceBundle in Database

2007-07-09 Thread Zerg-Spirit
Thanks for your message, I couldn't retrieve my EntityManager. Finally, I managed to get it working, and I think what I did if pretty much what you did, except I didn't change that much the component processes, such as the caching which I'm using. But your needsReload method seems very useful so

[jboss-user] [JBoss Seam] - Re: ResourceBundle in Database

2007-07-04 Thread Zerg-Spirit
Just one question though, I'm trying to retrieve the connection String to the Database (aswell as user and password) used by Hibernate (and set in the persistence-xml) dynamically, so that I just have to change it there later on (since I'll use plain java to access my db with my resource bundle)

[jboss-user] [JBoss Seam] - Re: ResourceBundle in Database

2007-07-03 Thread Zerg-Spirit
Ok thanks. I don't know if I did it the right way though, but it seems to be working, and I tryed to follow peter's steps (page1) as much as possible. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4060246#4060246 Reply to the post : http://www.jboss.com/ind

[jboss-user] [JBoss Seam] - Re: ResourceBundle in Database

2007-07-03 Thread Zerg-Spirit
Ok, sorry again for the multi posts, but I think I finally found out what was wrong. I think I simply can't retrieve my EntityManager by injection at all. Here's what I understood. First, seam load the overrided Seam.ResourceBundle: @Scope(SESSION) | @BypassInterceptors | @Name("org.jboss.s

[jboss-user] [JBoss Seam] - Re: ResourceBundle in Database

2007-07-03 Thread Zerg-Spirit
Sorry for the triple post, but I just found something strange to me.* I actually managed to call the @Create method by calling the bean on the jsf page (I simply put an outputText with a property of my Bean as value). Since I've done that, the @Create method is now called, apparently the bean is

[jboss-user] [JBoss Seam] - Re: s:fileUpload problem

2007-07-03 Thread Zerg-Spirit
Yep, worked for me too, thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059944#4059944 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059944 ___ jboss-user mailing list

[jboss-user] [JBoss Seam] - Re: ResourceBundle in Database

2007-07-03 Thread Zerg-Spirit
Still can't make it work. I changed my bean so that it's now a SFSB (in order to use @Create): @Stateful | @Name("dbResourceBundle") | @Scope(SESSION) | public class DBResourceBundle extends ResourceBundle implements iDBResourceBundle{ | ... Here's the @Create method: @Create | publ

[jboss-user] [JBoss Seam] - Re: ResourceBundle in Database

2007-07-03 Thread Zerg-Spirit
The class I pasted isn't the one extending Seam ResourceBundle, but java.util.ResourceBundle. I'll try with a @Create annotation then! Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059905#4059905 Reply to the post : http://www.jboss.com/index.html?

[jboss-user] [JBoss Seam] - Re: ResourceBundle in Database

2007-07-03 Thread Zerg-Spirit
Thanks, it helped me a lot! Now, I kinda understood how it's working, but my very last problem is pretty tough: I can't retrieve the EntityManager in my Session Bean extending ResourceBundle. @Stateless | @Scope(SESSION) | @Name("dbResourceBundle") | public class DBResourceBundle extends R

[jboss-user] [JBoss Seam] - Re: ResourceBundle in Database

2007-07-03 Thread Zerg-Spirit
I up the topic cause I still couldn't implements that DataBase Resource Bundle. I now have all the needed classes, following the steps described by pbrewer_uk, but I'm having trouble knowing what code to implements in what class. For example, I don't know what DBControl class is exactly supposed

[jboss-user] [JBoss Seam] - Re: s:fileUpload problem

2007-07-03 Thread Zerg-Spirit
Same here, everything worked perfectly with Seam 1.2 and Jboss 4.0.5. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059799#4059799 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059799 _

[jboss-user] [JBoss Seam] - s:fileUpload problem

2007-07-02 Thread Zerg-Spirit
Hello. I'm having a problem using the s:fileUpload component, or more exactly the backing bean related to it, since I updated my application to the 1.3 (and later 2.0) version of Seam. JSF: | | |

[jboss-user] [JBoss Seam] - Re: ResourceBundle in Database

2007-06-28 Thread Zerg-Spirit
Hi, I'm trying to have my resource bundles stored in a database aswell, and wanted to follow pete's post, but I don't really understand some part of it. What do you mean by: anonymous wrote : 3. Implement a DBContol (to control caching of the resource bundle) What's that? Is it supposed to be a

[jboss-user] [JBoss Seam] - Re: Problem with SortedMap and JSF

2007-05-02 Thread Zerg-Spirit
Just to add a detail, since apparently I'm not able to edit my post here, I know that I'm supposed to extract those children in a different way, but I really don't know how:/ View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042470#4042470 Reply to the post :

[jboss-user] [JBoss Seam] - Problem with SortedMap and JSF

2007-05-02 Thread Zerg-Spirit
Hello. I'm a beginner in the world of Seam, and I currently got a little problem. Actually, I'm not sure if it's Seam related or not, but since this forum already helped me a lot, I thought I could start by posting here anyway. So I basically have an entity bean, 'Topic', with a OneToMany relati