[jboss-user] [JBoss Seam] - Can't set Character encoding for submitted form data

2007-04-19 Thread idylle
Hi, 

I've got a problem with character with accent in my forms.
I type a "é" in a inputtext field, I submit the form, and then the character 
appears like "é".
I've read in the documentation that I should put that line : 

 

in the file components.xml.

I've tried that but it doesn't work (I also don't see the 
character-encoding-filter tag in http://jboss.com/products/seam/web-1.2.xsd 
whereas I see the class  org.jboss.seam.CharacterEncodingFilter in my 
jboss-seam.jar).

I've also tried to put the following lines in web.xml but it doesn't work 
either :

  
  | 
  | EncodingFilter
  | org.jboss.seam.web.CharacterEncodingFilter
  | 
  | encoding
  | UTF-8
  | 
  | 
  | overrideClient
  | true
  | 
  | 
  | 
  | 
  | EncodingFilter
  | /*
  | 

(I'm using JBoss Seam 1.2.1 and JBoss Server 4.0.5)

Does somebody know what I'm doing wrong please?



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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Can't set Character encoding for submitted form data

2007-05-02 Thread idylle
Hi, 
no, sorry, no answers and I've found no work-around yet. It's a pity because I 
can't do without accent... I'll post a reply if I find something, hope you'll 
do it too if you find. :)

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

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


[jboss-user] [JBoss Seam] - Re: Can't set Character encoding for submitted form data

2007-05-02 Thread idylle
Thanks for your help,
the browser seems to detect the UTF-8, no problem. I've already the charset in 
the meta tag, I've tried to add the html lang="fr" but it changes nothing.

Is it normal that I don't see the character-encoding-filter tag in 
http://jboss.com/products/seam/web-1.2.xsd ? Can it be the reason for which it 
doesn't work?

Also, should the line in components.xml be sufficient to make it work or is it 
better to put the filter in web.xml? 


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

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


[jboss-user] [JBoss Seam] - Re: Can't set Character encoding for submitted form data

2007-05-02 Thread idylle
Yes, I've got the seam filter and I've added the encoding filter (the lines 
quoted in my first post). 
I've tried to remove the seam filter and let just the encoding filter to see 
what happens but it doesn't change anything.

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

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


[jboss-user] [JBoss Seam] - Navigating through results pages problem

2007-02-28 Thread idylle
Hi,

I'm using the Hibernate Tools Code Generation to generate a seam application. 
It's working fine but I've got a problem when navigating through the results of 
a research.

My case is : 
In the "Find page", I fill in criterias, then click on "Find". I get several 
answers and the button "next page" is activated. If I click about 10 or 15 
times on the "Next page" or the "Previous page" button, I get an error. It 
doesn't appear each time at the same moment and the error is different each 
time, of type :

anonymous wrote : javax.faces.FacesException: Cannot get value for expression 
'#{collectivitesSelector.createEnabled}'
or
anonymous wrote : 11:13:57,442 ERROR [[Faces Servlet]] Servlet.service() for 
servlet Faces Servlet threw exception
  | javax.faces.FacesException: Cannot get value for expression 
'#{collectivites.departements.dptidt}'
or
anonymous wrote : javax.servlet.ServletException: Cannot get value for 
expression '#{collectivites.coltlc}'
(My object name is "Collectivites")

I'm using :
Eclipse 3.2.1
Hibernate tools 3.2.0.beta9a
Seam 1.1.5
JBoss 4.0.5

Have you got any idea on how to solve this please? 

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

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


[jboss-user] [JBoss Seam] - Re: Navigating through results pages problem

2007-03-01 Thread idylle
Increasing the permgen works for me too, thanks a lot!

I'm not using seam-gen because Hibernate Tools allow me to choose which tables 
are included in the reverse-engineering. I think it's not the case now with 
seam-gen. 

I'll try to use seam-gen in Seam 1.2 again. Maybe I haven't seen some  options.



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

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


[jboss-user] [JBoss Seam] - Problem with length validator on inputtext

2007-03-14 Thread idylle
Hi,

I'm using seam 1.2.0PATCH1 with a PostgreSQL Base.
I've got a problem with Validator Length.

Here is my entity code :
@Column(name = "colaff", nullable = false, length = 1)
  | @NotNull
  | @Length(max = 1)
  | public char getColaff() {
  | return this.colaff;
  | }

Here is my page code :

  | colaff
  | *
  | 
  | 
  | 
  | 
  | 
  | 

The inputtext "colaff" has to be filled with one character. 
I fill it with one character but I can't validate my form, I have a message 
"colaff length should be between 0 and 1". If I put a javascript alert to 
verify the value and length of the input, I have just one character, no hidden 
character seams to be added to what I typed.

I really don't understand what's wrong, do you any idea for me please?


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

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


[jboss-user] [JBoss Seam] - bpchar conversion with PostgreSQL

2007-03-15 Thread idylle
Hi,

I've got a problem when reverse-engineering my PostgreSQL base with seam 
1.2.0PATCH1.
Entity beans are well generated but when I restart my server I got the 
following error :

--- MBeans waiting for other MBeans ---
  | ObjectName: persistence.units:ear=bourseEmploi.ear,unitName=bourseEmploi
  |   State: FAILED
  |   Reason: javax.persistence.PersistenceException: 
org.hibernate.HibernateException: Wrong column type: agtdna, expected: 
varchar(10)
  |   I Depend On:
  | jboss.jca:service=DataSourceBinding,name=bourseEmploiDatasource
  | 

It appears on all database fields that are of type character(X) where X is more 
than 1. No problem with varchar(X) types.

I've found a work around : for each field of that type, I modify manually the 
Column definition in the entity bean file :
Generated code is :
@Column(name = "agtdna", nullable = false, length = 10)
  | @NotNull
  | @Length(max = 10)
  | public String getAgtdna() {
  | return this.agtdna;
  | }

After my modification :
@Column(name = "agtdna", columnDefinition = "bpchar(10)", nullable = false, 
length = 10)
  | @NotNull
  | @Length(max = 10)
  | public String getAgtdna() {
  | return this.agtdna;
  | }

Is there a way to parameter the mapping-types before calling seam 
generate-entities so that I wouldn't have to modify manually all files? In the 
same idea, is there a way to parameter which fields are primary key or foreign 
keys for a table?




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

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


[jboss-user] [JBoss Seam] - Re: why conversation-timeout doesn't work properly?

2007-07-05 Thread idylle
Hi,

I've got a problem with conversation-timeout too :

I set :
   

in components.xml (I set the time-out very low for the test)

But I can't get a timeout message. If  I'm right, the timeout is in 
milliseconds. I wait a lot more than 60 ms (1or 2 minutes) without being 
stopped by any message.

The only way for me to get the timeout message is to go  further the session 
time-out (I tried to set it to 1 minute in the web.xml file and then I got the 
message of session time-out)

Do you know why the conversation-timeout is ignored? Has anyone got the same 
problem?
I'm using seam 1.2.1

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

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


[jboss-user] [JBoss Seam] - conversation-time-out ignored?

2007-07-06 Thread idylle
Hi,

I've got a problem with conversation-timeout : it seems that it never occurs.

I set :



in components.xml (I set the time-out very low for the test)

But I can't get a timeout message. If I'm right, the timeout is in 
milliseconds. I wait a lot more than 60 ms (1or 2 minutes) without rising any 
time-out message.

The only way for me to get the timeout message is to go further the session 
time-out (I tried to set it to 1 minute in the web.xml file and then I got the 
message of session time-out)

Do you know why the conversation-timeout is ignored? Has anyone got the same 
problem?
I'm using seam 1.2.1

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

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


[jboss-user] [JBoss Seam] - Re: Seam gen edit pages, update without press save button

2007-07-06 Thread idylle
Hi,

maybe you should put the following in your pages.xml :
   

I think the "flush-mode=manual" will help you. I found a post about this in 
this forum once but I haven't kept the url, sorry.

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

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


[jboss-user] [JBoss Seam] - Re: Seam gen edit pages, update without press save button

2007-07-06 Thread idylle
I've used a workaround for that problem. Not sure it's the right thing to do 
and I don't know if it can suit in your case :

I use "propagation="none" on my button :


  | 

With this, the page doesn't take the new value.


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

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


[jboss-user] [JBoss Seam] - Re: Seam gen edit pages, update without press save button

2007-07-06 Thread idylle
You're right, but I haven't find a way to do it clean...

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

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


[jboss-user] [JBoss Seam] - Re: Seam gen edit pages, update without press save button

2007-07-12 Thread idylle
Hi,
the Rollback didn't work in my case. 

I've kept the flush-mode="manual" but instead of the trick "propagation=none", 
I've enforced the refresh of my entity before displaying the page (with this in 
my EntityBean: getEntityManager().refresh(getInstance());)

It works and seems cleaner.



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

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


[jboss-user] [JBoss Seam] - Re: Can't set Character encoding for submitted form data

2007-06-15 Thread idylle
You're right Ramazan, adding  in my server.xml 
solved my problem.  

Thanks a lot!

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

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


[jboss-user] [JBoss Seam] - value of selectItems not posted in the form?

2007-06-21 Thread idylle
Hi,

I've got a problem with the h:selectOneMenu and s:selectItems elements.

If I use  h:selectOneMenu with f:selectItem ("id="colaff" " in the code below) 
, the value chosen in the select box is part of the values submitted with the 
form, no problem.
But if I use   h:selectOneMenu with s:selectItems ("id="tpcidt"  " in the code 
below), the value selected in the box is ignored when I submit the form. 



  | 
  | Ville
  | 
  | 
  | 
  | 
  | Type de collectivité
  | 
  | 
  | 
  | 
  |   
  | 
  | 
  | 
  | Affiliation
  | 
  | 
  | 
  | 
  | 
  | 
  |   
  | 
  |
  |
  | 
  | 

Should I add something in my pages.xml? (I tried to add the param "tpcidt" but 
with no effect) 

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: value of selectItems not posted in the form?

2007-06-21 Thread idylle
Here are my beans :

The entity bean (just the attributes) :

  | @Entity
  | @Table(name = "collectivites", schema = "public")
  | public class Collectivites implements java.io.Serializable {
  | 
  | private int colidt;
  | private Typcol typcol;
  | private Departements departements;
  | private String colnom;
  | private String coltel;
  | private String colfax;
  | private String coladr;
  | private String colcp;
  | private String colnmc;
  | private String coltlc;
  | private Integer colpop;
  | private String colaff;
  | private String colvil;
  | 
  | public Collectivites() {
  | }
  | 
  |  + getter and setter
  | ...
  | 

The query bean : 

  | @Name("collectivitesList")
  | public class CollectivitesList extends EntityQuery {
  | 
  | 
  | private static final String[] RESTRICTIONS = {
  | "lower(collectivites.colnom) like 
concat('%',lower(#{collectivitesList.collectivites.colnom}),'%')",
  | "lower(collectivites.coltel) like 
concat(lower(#{collectivitesList.collectivites.coltel}),'%')",
  | "lower(collectivites.colfax) like 
concat(lower(#{collectivitesList.collectivites.colfax}),'%')",
  | "lower(collectivites.coladr) like 
concat(lower(#{collectivitesList.collectivites.coladr}),'%')",
  | "lower(collectivites.colcp) like 
concat(lower(#{collectivitesList.collectivites.colcp}),'%')",
  | "lower(collectivites.colnmc) like 
concat(lower(#{collectivitesList.collectivites.colnmc}),'%')",
  | "lower(collectivites.coltlc) like 
concat(lower(#{collectivitesList.collectivites.coltlc}),'%')",
  | "lower(collectivites.colvil) like 
concat('%',lower(#{collectivitesList.collectivites.colvil}),'%')",
  | "collectivites.colaff like 
concat(#{collectivitesList.collectivites.colaff},'%')",
  | "collectivites.typcol like 
concat(#{collectivitesList.collectivites.typcol},'%')",};
  | 
  | private Collectivites collectivites = new Collectivites();
  | 
  | @Override
  | public String getEjbql() {
  | return "select collectivites from Collectivites collectivites";
  | }
  | 
  | @Override
  | public Integer getMaxResults() {
  | return 25;
  | }
  | 
  | public Collectivites getCollectivites() {
  | return collectivites;
  | }
  | 
  | @Override
  | public List getRestrictions() {
  | return Arrays.asList(RESTRICTIONS);
  | }
  | 
  | }

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

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


[jboss-user] [JBoss Seam] - Re: value of selectItems not posted in the form?

2007-06-21 Thread idylle
no, the page is just redisplayed with the whole list of results, ignoring the 
"tpcidt" and the select box is back to "Select..." instead of having my choice 
selected.

If I put this :

  | 
  | 
  |   | in my command button, it works but :
  |   | 1- I need the firstresult=0 param
  |   | 2- It won't work after if I try to use the next page link to navigate 
through results pages

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

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


[jboss-user] [JBoss Seam] - Re: value of selectItems not posted in the form?

2007-06-21 Thread idylle
But I don't understand why the other elements in the form are Ok and just this 
one is a problem. 

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

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