[jboss-user] [JBoss Seam] - Test problem with EntityController, waiting online for answe
The register component injected a DAO. When the DAO extends EntityController, when only one test exists, it runs normal;when two tests or above the second test will throw exception that entityManager is closed.When the DAO injects the EntityManager directly, doesn't extend the EntityController which encapsulate a EntityManager, no matter how many tests exist, it runs normal. Why? | package com.kdccn.test; | | import static org.testng.Assert.*; | | import java.util.*; | | import org.testng.annotations.*; | | import org.jboss.seam.mock.*; | | import com.kdccn.util.*; | | public class UserTest extends SeamTest { | | @Test | public void testLogin() throws Exception { | new FacesRequest("/user/login.xhtml") { | @Override | protected void updateModelValues() { | setValue("#{identity.username}", "admin"); | setValue("#{identity.password}", "secret"); | } | | @Override | protected void invokeApplication() { | invokeAction("#{identity.login}"); | } | }.run(); | } | | @Test | public void testRegister() throws Exception { | new FacesRequest("/user/register.xhtml") { | @Override | protected void updateModelValues() { | setValue("#{newUser.email}", "[EMAIL PROTECTED]"); | setValue("#{newUser.qq}", 61304189L); | setValue("#{newUser.icq}", 259833852L); | setValue("#{newUser.kugoo}", 318921L); | setValue("#{newUser.msn}", "[EMAIL PROTECTED]"); | setValue("#{newUser.yahoo}", "[EMAIL PROTECTED]"); | setValue("#{newUser.google}", "[EMAIL PROTECTED]"); | setValue("#{newUser.alipay}", "[EMAIL PROTECTED]"); | setValue("#{newUser.wangwang}", "setokaiba"); | setValue("#{newUser.website}", "www.kdccn.com"); | setValue("#{newUser.question}", "secret"); | setValue("#{newUser.answer}", "secret"); | setValue("#{newUser.place}", "China"); | setValue("#{newUser.phone}", "+8613763335987"); | Calendar calendar = Calendar.getInstance(); | calendar.set(1987, Calendar.DECEMBER, 30); | setValue("#{newUser.birthday}", calendar.getTime()); | setValue("#{newUser.description}", "Nothing"); | setValue("#{newUser.firstname}", "Seto"); | setValue("#{newUser.lastname}", "Kaiba"); | setValue("#{newUser.nickname}", "Seto"); | setValue("#{newUser.username}", "SetoKaiba"); | setValue("#{register.password}", "secret"); | setValue("#{register.confirm}", "secret"); | setValue("#{register.gender}", "Male"); | } | | @Override | protected void invokeApplication() { | invokeAction("#{register.register}"); | } | | @Override | protected void renderResponse() { | assertNotNull(getValue("#{newUser.id}")); | assertEquals(getValue("#{newUser.hashedPassword}"), Hash | .instance().hash("secret")); | assertTrue((Boolean) getValue("#{s:hasRole('user')}")); | } | }.run(); | } | } | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101583#4101583 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101583 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Entity Converter not support hibernate
why no setSesssion but only setEntityManager View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100074#4100074 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100074 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Bug?(CR2)
Use the seam-gen to generate the project, and the pesistence-test is set to be with MySQLDialect. But it's used to test with DefaultDS, I want to know if it should be the HSQLDialect, otherwise it will cause problems for the dialect. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095203#4095203 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095203 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - User guide link not available without proxy.
http://jbws.dyndns.org/mediawiki/index.php/Main_Page http://jbws.dyndns.org/mediawiki/index.php/Quick_Start http://jbws.dyndns.org/mediawiki/index.php/JAX-WS_User_Guide These wiki pages are not available without proxy. Could it be moved to the original wiki of jboss? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049486#4049486 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049486 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problem with s:convertEntity
Thanks. I make it into long-running conversation and it runs. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043461#4043461 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043461 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problem with s:convertEntity
No View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043456#4043456 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043456 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problem with s:convertEntity
The field is annotated as below. I forgot to show here. | @SuppressWarnings("unused") | @DataModel | private List categoryList; | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043453#4043453 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043453 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problem with s:convertEntity
I thought I'm misunderstanding it. It isn't caused by datamodel. I use the @Out error again. I'm confused. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043452#4043452 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043452 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problem with s:convertEntity
1.2.1 GA. The reason is 'Error: "_id19": .', translating into English as 'Error:"_id19":invalid option. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043451#4043451 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043451 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problem with s:convertEntity
Oh, I see. The @DataModel outjected the List as DataModel, so the entityConverter can't judge the type. Should I add an issue for s:convertEntity DataModel not supported? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043423#4043423 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043423 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problem with s:convertEntity
I don't want to use the entity-query because of the limitation of it. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043422#4043422 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043422 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problem with s:convertEntity
I've tried the entity-query to be running sucessful. So it seem that it is caused by the type. The converter seems to have the problem of judge the type of the object. What should I do to make it run? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043421#4043421 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043421 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Problem with s:convertEntity
When I choose one of the category, nothing happen. But when i choose the no selection label, the form is submitted normally. Anyone could help me? Please, I'm waiting anxiously online now. | | | | | | | | | | | | | | | | | | | | | @SuppressWarnings("unchecked") | @Factory | public void getCategoryList() { | entityManager.clear(); | categoryList = entityManager.createQuery("from Category category") | .getResultList(); | Contexts.getSessionContext().flush(); | } | | | | | @ManyToOne | @JoinColumn(name = "category") | private Category category = new Category(); | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043407#4043407 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043407 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Which aproach is recommended?
Thanks. I have my answer now. With the issue of extending the framework, I think I should choose the pojo aproach. Maybe in the future I migrating my project to EJB3 will be better. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024243#4024243 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024243 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Which aproach is recommended?
It seems that Seam has 3 aproaches to use. POJO+HEM POJO+JPA EJB3 I'm coufused about choosing the aproaches. It seems that the EJB3 is recommended by the official. But the framework extending isn't support by now. And also various platform doesn't support. The POJO+HEM/JPA is much platform-independent. And it can also run on EE Server. Comparing to HEM, JPA is less powerful. Many features must be implemented by delegate. Can some one give me a recommendation or advice? Thanks, Seto View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024157#4024157 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024157 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Readers Choice - Vote...
Where is Seam? It should be one choice in Best Java EE App Dev. Framework View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023930#4023930 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023930 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: About the new chapter Caching in documentation.
OK, thanks. I finally understand your words "JBossCache has automagic dirty checking". View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023166#4023166 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023166 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: About the new chapter Caching in documentation.
If it is the later time, just get the userList as the try scope varible, and do nothing? So I suppose it as below. if (userList==null) { userList = new HashSet(); } userList.add(username); pojoCache.put("chatroom", "userList", userList); View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023157#4023157 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023157 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: About the new chapter Caching in documentation.
AND is the join method to add user in the userList? Why "pojoCache.put("chatroom", "users", username)"? Why not add the username to the set? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023143#4023143 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023143 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: About the new chapter Caching in documentation.
I means the users field and the userList filed. The users field isn't defined. Do the userList and users represent different? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023123#4023123 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023123 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: About the new chapter Caching in documentation.
My misunderstanding or the mistake of the doc? It's like below before: @Name("chatroom") public class Chatroom { @In PojoCache pojoCache; public void join(String username) { try { Set userList = (Set) pojoCache.get("chatroom", "userList"); if (users==null) { userList = new HashSet(); pojoCache.put("chatroom", "users", username); } } catch (CacheException ce) { throw new RuntimeException(ce); } } } View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023036#4023036 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023036 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - About the new chapter Caching in documentation.
I read the 18.1 chapter . And I don't understand. I think the example maybe should be changed as below. @Name("chatroom") public class Chatroom { @In PojoCache pojoCache; public void join(String username) { try { Set userList = (Set) pojoCache.get("chatroom", "userList"); if (userList==null) { userList = new HashSet(); } userList.add(username); pojoCache.put("chatroom", "userList", userList); } catch (CacheException ce) { throw new RuntimeException(ce); } } } View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4022921#4022921 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4022921 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Eclipse IDE (users)] - This IDE won't update?
Viewing the roadmap in JIRA, the dates of upcoming realease are all passed. Will it update in the future. This IDE is really appreciative. I really love it. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4022490#4022490 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4022490 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Rich Text Editor
http://wiki.fckeditor.net/Developer%27s_Guide/Integration/Java here is the article, just refer to it to set the servlet supporting upload and browse files, and use the fck-faces in sourceforge to use with jsf. BTW, the fck-faces has the bug of not supporting width and height. You should follow the thread in forum to fix it. I have it correctly working. And I'm writing code to support automatic upload, when I paste it from local. Use the regex to check the url if it's with a refernce to local. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4021419#4021419 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4021419 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Rich Text Editor
FCKEditor, it's so powerful and easy to integrate. Follow the Simone's article to set the servlet and use the fck-faces project in the sourceforge to support jsf. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4021211#4021211 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4021211 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: LocaleSelector
What do mean with "nothing happens"? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4019917#4019917 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4019917 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Who uses EntityHome objects?
>From the documents, you can see that the right way is to override the getId(). >But it isn't correct to setId for the update() or remove() View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4019152#4019152 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4019152 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Help, who uses EntityHome with SFSB? I don't know how to
Thanks, that's the problem of remove(). It cause the exception that void and String method return. I will wait for it. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018850#4018850 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018850 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Help, who uses EntityHome with SFSB? I don't know how to
No one knows it? help me please. Waiting urgently. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018846#4018846 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018846 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Help, who uses EntityHome with SFSB? I don't know how to
What methods should I define in the interface, please help me. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018699#4018699 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018699 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Help, who uses EntityHome with SFSB? I don't know how to
Because the example seam-pay and the document uses pojo, so I can't find any examples View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018434#4018434 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018434 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problems Nesting
@DataModel can be used in entity? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018429#4018429 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018429 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Help, who uses EntityHome with SFSB? I don't know how to def
I used the EntityHome with the settings in components.xml, and it works well. When I turn to SFSB, I'm confused. I don't know how to define the interface. I define it in a few forms. And none works. Could someone give me an example? Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018421#4018421 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018421 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Needing help for the lazy initialize
lawrieg, thanks. Youre advice helps. I just use the session to implement the part initialize of the collection. Thank you. Also thanks to gavin. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018234#4018234 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018234 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Needing help for the lazy initialize
for example | | | #{category.name} | | | #{position.name} | | | #{article} | | | | | | | Refering to the blog example, I used the #{position.recentArticles} instead. | public List getRecentArticles(){ | return articles.sublist(0, 10);//just a example so ignore the length problem | } | But it also initilized the other articles. And it cause the performance leak. And I want to limit the initialization of the articles. I want it just initilize the recent 10 articles. How can I do that? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018207#4018207 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018207 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Needing help for the lazy initialize
Can someone help me? I learn from the blog use the sublist, I'm in trouble with rows up to 1000. It cost seconds to finish the loading. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018201#4018201 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018201 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Needing help for the lazy initialize
I just have a three level relationship. Category 1...* Position 1...* Article My home page is listing the categories with the position below and articles below. I want to limit the size initilize size of the articles. I'm using the sublist to get the recent 10 articles. But it can't limit the initilize and the performance is so bad. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018103#4018103 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018103 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Needing help for the lazy initialize
In hibernate, we can use below code to limit the collection's size. | s.createFilter( lazyCollection, "").setFirstResult(0).setMaxResults(10).list(); | How can I do such thing in JBoss Seam, or in the other words, EJB3. Maybe I posted in the wrong forum, but I'm using Seam, so I post it here. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018101#4018101 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018101 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: tomahawk extension filter and seam fileUpload
Sorry for my impolite reply. I just get caught by the feature my project needed. It's the newspaper table component. Absoulutely I love Seam and I'm trying my best to make surroundings use Seam while many of Chinese use Spring. I just want the Seam to be perfect to support various feature. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4014948#4014948 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4014948 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: tomahawk extension filter and seam fileUpload
So to use the newspaper table, I have to change the newspaper table tag to seam to use? It's so unreasonable. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4014793#4014793 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4014793 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: tomahawk extension filter and seam fileUpload
I'm trouble in it, because of the extended datatable providing the newspaper table format. Exploring the ADF and ICEFACES, I found no replacement of the extended datatable. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4014533#4014533 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4014533 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Please help me, urgent, waiting online
No, I means that the datatable wouldn't help either. Because the parameter to pass is the sub-objects in the datamodel ProductCCList. It isn't a datamodel, so the parameter passing not work. Just as christian.bauer said, the parameter should be the varible in the scope, so the product list don't work. So what else can be used except pull style? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4004863#4004863 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4004863 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Please help me, urgent, waiting online
Some one help me? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4004728#4004728 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4004728 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Please help me, urgent, waiting online
Thanks for shane.bryzak's and christian.bauer's help, I realize the problem now. To solve the problem, I have to use the pull style programming? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4004552#4004552 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4004552 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Please help me, urgent, waiting online
Thanks for shane.bryzak, I realize the problem now. But I don't know how to solve it. To solve the problem I have to use the pull style restful method? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4004545#4004545 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4004545 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Please help me, urgent, waiting online
I used the dataTable making no effect either. It seems that it isn't the problem of the tag. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4004452#4004452 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4004452 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Please help me, urgent, waiting online
el extension? the el-api.jar and el-ri.jar? I set up it just as the booking example | | HongYang | | | | hongyang.war | /hongyang | | | | hongyang.jar | | | jboss-seam.jar | | | el-api.jar | | | el-ri.jar | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4004427#4004427 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4004427 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Please help me, urgent, waiting online
Or tell me how I could set up the extensions correctly. I don't use the parameter elsewhere View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4004429#4004429 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4004429 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Please help me, urgent, waiting online
If you means the configuration mentioned in the documentation, I just set up as the booking example. | | org.ajax4jsf.VIEW_HANDLERS | org.jboss.seam.ui.facelet.SeamFaceletViewHandler | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4004434#4004434 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4004434 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Please help me, urgent, waiting online
If the product is null and the product.name won't display correctly, right? I admit that it should be some mistake I haven't notice, but I can't find it. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4004417#4004417 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4004417 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Please help me, urgent, waiting online
Click the s:link and report Exception during INVOKE_APPLICATION(5): java.lang.IllegalArgumentException: attempt to create merge event with null entity. But the data of product.name is displayed normal. And it seems that the problem is the passing parameter of s:link. | | | | | | | #{productCC.name} | | | | | | | | | | #{productC.name} | | | | | | | | | | | | | @Stateful | @Name("hongyangManager") | public class HongyangManagerAction implements HongyangManager { | | @PersistenceContext(type = PersistenceContextType.EXTENDED) | EntityManager em; | | @DataModel | List productCCList; | | Product currentProduct; | | XD currentXD; | | YD currentYD; | | @Factory | public void getProductCCList() { | productCCList = em.createQuery("from ProductCC productCC") | .getResultList(); | } | | public String selectProduct(Product selectedProduct) { | currentProduct = em.merge(selectedProduct); | return "product"; | } | | public String selectXD(XD selectedXD) { | currentXD = em.merge(selectedXD); | return "xd"; | } | | public String selectYD(YD selectedYD) { | currentYD = em.merge(selectedYD); | return "yd"; | } | | @Destroy | @Remove | public void destroy() { | } | } | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4004406#4004406 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4004406 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Bug of i18n with the file name of upper or lower charate
Solved it. My mistake of reading documents. Change to . Thanks petemuir. You're the only one helps me unlike the others. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992228#3992228 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992228 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Bug of i18n with the file name of upper or lower charate
The delegate works absolutely. But I mean that it doesn't meet the standard the country code should be upper charater. And it just load the file with country code in the lower charater. You know that java is case-sensive. So I means that loading code is set to only load the country code in lower charater file name. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992217#3992217 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992217 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Bug of i18n with the file name of upper or lower charate
Please help me with this problem. At least let me know that it is a bug or a mistake with my code. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992112#3992112 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992112 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Bug of i18n with the file name of upper or lower charate
I means that if the file name use the capital letter, i will load the wrong resource bundle. Hoping for your help View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991931#3991931 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991931 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Bug of i18n with the file name of upper or lower charate
the code in the template.xhtml #{localeSelector.language} code in faces-config.xml zh_CN zh_CN zh_TW en View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991869#3991869 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991869 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Bug of i18n with the file name of upper or lower charate
I use the version of 1.1 CR2 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991868#3991868 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991868 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Bug of i18n with the file name of upper or lower charaters ?
When I used the properties with a name messages_zh_cn.properties, messages_zh_tw.properties, it works correctly. One is Simpliflied Chinese, the other one is Traditional Chinese. When I used the properties with a name messages_zh_CN.properties, messages_zh_TW.properties, it works incorrectly. Both choise display with Simplified Chinese. So is it with a bug of upper or lower charaters? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991867#3991867 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991867 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problems with i18n in Chinese
I want to just type it as usual. I think that it should be the problem of encoding. But methods I tried , none works. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991712#3991712 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991712 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problems with i18n in Chinese
I have found the problem that I must type as \u in the properties. If I look up all the charaters must cost me a lot of time. Any better sollutions? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991706#3991706 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991706 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problems with i18n in Chinese
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml"; xmlns:ui="http://java.sun.com/jsf/facelets"; xmlns:h="http://java.sun.com/jsf/html"; xmlns:f="http://java.sun.com/jsf/core"; xmlns:a="https://ajax4jsf.dev.java.net/ajax";> #{messages['SiteTitle']} ??? | | | | ? | | | | | [EMAIL PROTECTED] IE6? SiteTitle = ??mm ChangeLanguage = View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991703#3991703 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991703 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problems with i18n in Chinese
| | http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> | http://www.w3.org/1999/xhtml"; | xmlns:ui="http://java.sun.com/jsf/facelets"; | xmlns:h="http://java.sun.com/jsf/html"; | xmlns:f="http://java.sun.com/jsf/core"; | xmlns:a="https://ajax4jsf.dev.java.net/ajax";> | | | | #{messages['SiteTitle']} | | | | | | | | | | | | | | | | | | ??? | | | | | | | | | | | | | | | | | | | | | | | | | | | ? | | | | | | | | [EMAIL PROTECTED] | | IE6? | | | | | | | SiteTitle = ??mm | ChangeLanguage = | The problem is the Chinese display incorrectly. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991700#3991700 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991700 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Problems with i18n in Chinese
I used the method written in the reference with properties. I saved the properties in UTF8 encoding. Yet I can't display it correctly. The words inputed in the html or from the database all display correctly. Can someone help me? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991678#3991678 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991678 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Bug of Persistence API?
OK, the result is normal, thanks a lot. But I also have a problem, I change the type to Integer, result is normal. When I change it back, it reports exception, but it doesn't before. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982959#3982959 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982959 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Bug of Persistence API?
oh, thanks I try it. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982955#3982955 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982955 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Bug of Persistence API?
here is the code of the Article | /** | * | */ | package cn.net.kdc.domain.cms; | | import java.util.*; | | import javax.persistence.*; | | import org.hibernate.validator.*; | | import cn.net.kdc.domain.global.*; | | /** | * @author Seto | * | */ | @Entity | @Table(name = "cms_article") | public class Article { | @Id | @GeneratedValue | @Column(name = "id") | private int id; | | @Column(name = "tag") | @NotNull | @Length(min = 2, max = 8) | private String tag; | | @Column(name = "title") | @NotNull | @Length(min = 4, max = 32) | private String title; | | @Column(name = "short_title") | @NotNull | @Length(min = 4, max = 32) | private String short_title; | | @Column(name = "long_title") | @NotNull | @Length(min = 4, max = 32) | private String long_title; | | @Column(name = "author") | @Length(min = 4, max = 64) | private String author; | | @Column(name = "click_count") | private int click_count; | | @Column(name = "insert_date") | @NotNull | @Temporal(TemporalType.TIME) | private Date insert_date = new Date(); | | @Column(name = "update_date") | @NotNull | @Temporal(TemporalType.TIME) | private Date update_date = new Date(); | | @Column(name = "intro") | private String intro; | | @Column(name = "content") | @NotNull | private String content; | | @ManyToOne | @JoinColumn(name = "photo") | private Resource photo = new Resource(); | | @ManyToOne | @JoinColumn(name = "position") | private Position position = new Position(); | | @ManyToOne | @JoinColumn(name = "category") | private Category category = new Category(); | | @ManyToMany | @JoinTable(name = "cms_area_article", joinColumns = { @JoinColumn(name = "article") }, inverseJoinColumns = { @JoinColumn(name = "area") }) | private List areas = new ArrayList(); | | @OneToMany(mappedBy = "article") | private List comments = new ArrayList(); | | /** | * default constuctor | */ | public Article() { | super(); | } | | /** | * minimal constructor | * | * @param id | * @param tag | * @param title | * @param short_title | * @param long_title | * @param insert_date | * @param update_date | * @param content | * @param position | * @param category | */ | public Article(int id, String tag, String title, String short_title, | String long_title, Date insert_date, Date update_date, | String content, Position position, Category category) { | super(); | this.id = id; | this.tag = tag; | this.title = title; | this.short_title = short_title; | this.long_title = long_title; | this.insert_date = insert_date; | this.update_date = update_date; | this.content = content; | this.position = position; | this.category = category; | } | | /** | * full constructor | * | * @param id | * @param tag | * @param title | * @param short_title | * @param long_title | * @param author | * @param click_count | * @param insert_date | * @param update_date | * @param intro | * @param content | * @param photo | * @param position | * @param category | * @param areas | * @param comments | */ | public Article(int id, String tag, String title, String short_title, | String long_title, String author, int click_count, | Date insert_date, Date update_date, String intro, String content, | Resource photo, Position position, Category category, | List areas, List comments) { | super(); | this.id = id; | this.tag = tag; | this.title = title; | this.short_title = short_title; | this.long_title = long_title; | this.author = author; | this.click_count = click_count; | this.insert_date = insert_date; | this.update_date = update_date; | this.intro = intro; | this.content = content; | this.photo = photo; | this.position = position; | thi
[jboss-user] [JBoss Seam] - Re: BUG?
here is the code of the Article | /** | * | */ | package cn.net.kdc.domain.cms; | | import java.util.*; | | import javax.persistence.*; | | import org.hibernate.validator.*; | | import cn.net.kdc.domain.global.*; | | /** | * @author Seto | * | */ | @Entity | @Table(name = "cms_article") | public class Article { | @Id | @GeneratedValue | @Column(name = "id") | private int id; | | @Column(name = "tag") | @NotNull | @Length(min = 2, max = 8) | private String tag; | | @Column(name = "title") | @NotNull | @Length(min = 4, max = 32) | private String title; | | @Column(name = "short_title") | @NotNull | @Length(min = 4, max = 32) | private String short_title; | | @Column(name = "long_title") | @NotNull | @Length(min = 4, max = 32) | private String long_title; | | @Column(name = "author") | @Length(min = 4, max = 64) | private String author; | | @Column(name = "click_count") | private int click_count; | | @Column(name = "insert_date") | @NotNull | @Temporal(TemporalType.TIME) | private Date insert_date = new Date(); | | @Column(name = "update_date") | @NotNull | @Temporal(TemporalType.TIME) | private Date update_date = new Date(); | | @Column(name = "intro") | private String intro; | | @Column(name = "content") | @NotNull | private String content; | | @ManyToOne | @JoinColumn(name = "photo") | private Resource photo = new Resource(); | | @ManyToOne | @JoinColumn(name = "position") | private Position position = new Position(); | | @ManyToOne | @JoinColumn(name = "category") | private Category category = new Category(); | | @ManyToMany | @JoinTable(name = "cms_area_article", joinColumns = { @JoinColumn(name = "article") }, inverseJoinColumns = { @JoinColumn(name = "area") }) | private List areas = new ArrayList(); | | @OneToMany(mappedBy = "article") | private List comments = new ArrayList(); | | /** | * default constuctor | */ | public Article() { | super(); | } | | /** | * minimal constructor | * | * @param id | * @param tag | * @param title | * @param short_title | * @param long_title | * @param insert_date | * @param update_date | * @param content | * @param position | * @param category | */ | public Article(int id, String tag, String title, String short_title, | String long_title, Date insert_date, Date update_date, | String content, Position position, Category category) { | super(); | this.id = id; | this.tag = tag; | this.title = title; | this.short_title = short_title; | this.long_title = long_title; | this.insert_date = insert_date; | this.update_date = update_date; | this.content = content; | this.position = position; | this.category = category; | } | | /** | * full constructor | * | * @param id | * @param tag | * @param title | * @param short_title | * @param long_title | * @param author | * @param click_count | * @param insert_date | * @param update_date | * @param intro | * @param content | * @param photo | * @param position | * @param category | * @param areas | * @param comments | */ | public Article(int id, String tag, String title, String short_title, | String long_title, String author, int click_count, | Date insert_date, Date update_date, String intro, String content, | Resource photo, Position position, Category category, | List areas, List comments) { | super(); | this.id = id; | this.tag = tag; | this.title = title; | this.short_title = short_title; | this.long_title = long_title; | this.author = author; | this.click_count = click_count; | this.insert_date = insert_date; | this.update_date = update_date; | this.intro = intro; | this.content = content; | this.photo = photo; | this.position = position; | thi
[jboss-user] [EJB 3.0] - Bug of Persistence API?
In Article.java | @Column(name = "click_count") | private int click_count; | And the SQL is just "from Article article" When the click_count is null in the database, the resultlist return null. When the click_count is 0 in the databse, the resultlist is normal. I mean that the whole resultlist return null when the click_count is null. So I judged it the problem of null int field. I'm in trouble with the problem for long. Appreciate your answers. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982282#3982282 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982282 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: BUG?
In Article.java @Column(name = "click_count") private int click_count; And the SQL is just "from Article article" When the click_count is null in the database, the resultlist return null. When the click+count is 0 in the databse, the resultlist is normal. So I judged it the problem of null int filed. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982279#3982279 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982279 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: BUG?
No one can answer me? I'm in trouble with this problem for long. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982242#3982242 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982242 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: BUG?
You can have a test in your enviroment. I have tried it for times. I finally catch this problem View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982087#3982087 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982087 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: BUG?
Yes, I mean that. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982066#3982066 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982066 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: BUG?
No, I means that the resultlist return null, but not the field View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982054#3982054 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982054 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - BUG?
When a table an integer field and it is null, result of the query of the table will return null. Is is a bug? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982050#3982050 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982050 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Can't load the data from the view
thank you, i have solve it. it's my ignorance of the interceptors View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981637#3981637 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981637 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Can't load the data from the view
Can somebody help me? I have been in this problem for long. Hope to see someone help me View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981589#3981589 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981589 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Can't load the data from the view
>From the debug page I find the mm property is normal. So the rs property can't >be null. So I judged it's the problem loading the data from the view View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981572#3981572 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981572 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Can't load the data from the view
I just coded as the example dvdstore, I'm cofused about loading the data from the view. In the view #{rs==null} return true. Does it need some other codes or settings to load the data ignored in the example? | /** | * | */ | package cn.net.kdc.action.cms; | | import java.util.*; | import javax.ejb.*; | import javax.persistence.*; | | import org.jboss.seam.*; | import org.jboss.seam.annotations.*; | import org.jboss.seam.annotations.datamodel.*; | | import cn.net.kdc.domain.global.*; | | /** | * @author Seto | * | */ | @Stateful | @Name("haha") | @Scope(ScopeType.SESSION) | public class Haha implements IHaha { | @PersistenceContext | private EntityManager entityManager; | | @DataModel | List rs; | | public String getTest() { | return entityManager.find(Resource.class, 1).getTag(); | } | | public String getMm(){ | return ((Resource)rs.get(0)).getTag(); | } | | @Factory("rs") | public void gets(){ | rs = entityManager.createQuery("from Resource resource").getResultList(); | } | | @Destroy | @Remove | public void destroy() { | | } | } | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981571#3981571 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981571 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: JBoss Seam is just a toy in front of the user using Spri
Thanks for all your opinion. I will insist my will of learning JBoss Seam. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957197#3957197 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3957197 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Problems about EJB3
No. The em.create() method appeared in the latter chapter. So I don't think it a mistake View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957196#3957196 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3957196 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Problems about EJB3
While I'm reading Enterprise JavaBeans 3.0, 5th Edition, Oreilly, I found the code that entityManager.create(cust). But I can't find the create method in the javadoc. Can someone explain it for me? Is it the difference in versions? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956913#3956913 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956913 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - JBoss Seam is just a toy in front of the user using Spring+H
I'm told that the JBoss Seam sollution simplified the develop. But at the same time, it reduce the funtionality of the Spring+Hibernate. I'm just told that it's unnecessary to learn JBoss Seam. Can someone list some advantage of JBoss Seam? I'm just confused. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956924#3956924 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956924 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user