[JBoss-user] [JBoss Seam] - Re: RequestParameter problem

2006-05-22 Thread [EMAIL PROTECTED]
anonymous wrote : My logic atleast tells that null = value of 0

Um.

I have never met any programming language where null==0. Certainly not Java.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3945436


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: RequestParameter problem

2006-05-22 Thread mirko27
yeah, noticed it. Anyway thank you much. You should note it in manual I 
think... My logic atleast tells that null = value of 0 or smth.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3945427


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: RequestParameter problem

2006-05-22 Thread [EMAIL PROTECTED]
It is a String, so the value can be null. 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3945426


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: RequestParameter problem

2006-05-22 Thread mirko27
Oh my god, thank you. But how come does not entry.jsf on blog example does not 
break application if I make a request with not specifying blogEntryID parameter?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3945396


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: RequestParameter problem

2006-05-22 Thread [EMAIL PROTECTED]
A missing request parameter is a null value.  If you want to allow null values, 
you need to use a non-primitive type like Integer instead of int.  

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3945392


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: RequestParameter problem

2006-05-22 Thread mirko27
It gives me trouble every time when i call bean which has requestparameter, but 
request does not have that parameter.
Giving errors and not letting me work normally. There most definitely is 
something that im designing wrong...

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3945329


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: RequestParameter problem

2006-05-22 Thread mirko27
Sorry. I`ll try better.
I have this page:

  | 
  | 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:t="http://myfaces.apache.org/tomahawk";
  |   xmlns:s="http://jboss.com/products/seam/taglib";>
  | 
  | 
  | 
  | 
  | 
  | #{msgs.allCategories}
  | 
  | 
  | 
  | 
  | 
  | Grupi muutmine
  | 
  | 
  | 
  | 
  | 
  | Grupi loomine
  | 
  | 
  | 
  | 
  | 
  | 
  | ANDMED
  | 
  | 
  | 
  |  
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 

and this bean:


  | package ee.digizone.ejb;
  | 
  | import java.io.Serializable;
  | import java.util.List;
  | import java.util.Map;
  | import java.util.TreeMap;
  | 
  | import javax.ejb.Remove;
  | import javax.ejb.Stateful;
  | import javax.persistence.EntityManager;
  | 
  | import org.jboss.seam.ScopeType;
  | import org.jboss.seam.annotations.Begin;
  | import org.jboss.seam.annotations.Conversational;
  | import org.jboss.seam.annotations.Create;
  | import org.jboss.seam.annotations.Destroy;
  | import org.jboss.seam.annotations.End;
  | import org.jboss.seam.annotations.In;
  | import org.jboss.seam.annotations.Name;
  | import org.jboss.seam.annotations.Out;
  | import org.jboss.seam.annotations.RequestParameter;
  | import org.jboss.seam.annotations.Scope;
  | 
  | 
  | import ee.digizone.entity.Category;
  | import org.jboss.logging.Logger;
  | 
  | @Stateful
  | @Name("cateditor")
  | @Conversational(ifNotBegunOutcome="categorys")
  | public class CategoryEditorBean implements CategoryEditor,Serializable {
  | 
  | @In(create=true,value="digizoneDatabase")
  | EntityManager em;
  | 
  | @Out(required=false)
  | @In(required=false)
  | private Category category;
  | 
  | Logger logger = Logger.getLogger(CategoryEditorBean.class);
  | 
  | @RequestParameter
  | int catid;
  | 
  | Map categoryMap;   
  | List   categories;
  | 
  | @Create 
  | public void loadData() {
  | categories = em.createQuery("from Category c")
  |  .setHint("org.hibernate.cacheable", true)
  |  .getResultList();
  | Map results = new TreeMap();
  |
  | for (Category category: categories) {
  |results.put(category.getName(),category);
  | }
  |
  | categoryMap = results;
  | }
  | 
  | public void create() {
  | em.persist(category);
  | }
  | public void save() {
  | em.refresh(category);
  | }
  | @Begin(join=true)
  | public void selectCreate() {
  | category = new Category();
  | category.setHead(em.find(Category.class,catid));
  | }
  | @Begin(join=true)
  | public void selectModify() {
  | category = em.find(Category.class,catid);
  | }
  | 
  | @End
  | public String delete() {
  | category  = em.find(Category.class,catid);
  | em.remove(category);
  | return null;
  | }
  | 
  | public Map getCategories() {
  | return categoryMap;
  | }
  | public Category getCategory() {
  | return this.category;
  | }
  | 
  | @Destroy @Remove
  | public void destroy() {}
  | }
  | 

What I wan`t is that when user hits page ccategory.jsf when no conversation is 
active ,he would be directed to categorys page. Currently it just gaves me 
error: could not set cateditor.catid.

Hope this one is better, I know five languages, but english is not in them... 
so be merciful to me.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3945284


---
Using Tomcat but need to do more? Need 

[JBoss-user] [JBoss Seam] - Re: RequestParameter problem

2006-05-22 Thread [EMAIL PROTECTED]
Sorry, no-one can help because it's _your_ explanation which is insufficient.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3945251


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: RequestParameter problem

2006-05-22 Thread mirko27
any explanations?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3945249


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: RequestParameter problem

2006-05-21 Thread mirko27
I even can`t use a bean with requestparameter if url does not include 
requestparmeter. Am I doing smth wrong?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3945157


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user