Re: Trouble upgrading from 1.1.2 to 1.1.7

2010-03-02 Thread s . pennec
Hello Jakob,

Here is the generated HTML of (a part of) a search form. It includes a 
Bigger than/smaller than field that was bound to an int in my Java code.

The binding was not working anymore, untill I modified the setter of the 
attribute to take a String and converted to an int afterwards (just as a 
quick way of testing if a String binding would work).

I then changed several other bindings similar to this one to use Strings, 
and the app seems to run way better now :-) but anyway further testing 
will be necessary.

HTML:

tr class=icePnlGrdRow2
td class=icePnlGrdCol editrQ id=searchForm:_id1068-1-0
label class=iceOutLbl bold 
for=searchForm:aValueToFilter id=searchForm:_id1075Label of the value 
to filter/label
/td

td class=icePnlGrdCol editrR id=searchForm:_id1068-1-1
div class=icePnlGrp id=searchForm:_id1076
select style= class=iceSelOneMnu 
id=searchForm:valueToFilterOperator 
name=searchForm:valueToFilterOperator 
onblur=setFocus(''); 
onfocus=setFocus(this.id); size=1
  option value=1Bigger than or equal 
to/option
  option value=-1Smaller than/option
/select

input style= class=iceInpTxt 
id=searchForm:aValueToFilter name=searchForm:aValueToFilter 
  onblur=setFocus(''); 
onfocus=setFocus(this.id); onkeypress=iceSubmit(form,this,event); 
onmousedown=this.focus(); 
  size=15 value= type=text
label class=iceOutLbl id=searchForm:_id1079 
unit of the value to filter/label
 
span id=searchForm:_id1080/span
/div
/td
/tr

Does it help?

Thanks a lot for your help...

Best regards,

Sébastien








Jakob Korherr jakob.korh...@gmail.com 
Sent by: sethfromaust...@gmail.com
 
 
01.03.2010 17:50
Please respond to
MyFaces Discussion users@myfaces.apache.org



To
MyFaces Discussion users@myfaces.apache.org
cc

Subject
Re: Trouble upgrading from 1.1.2 to 1.1.7






Can you provide some generated HTML (not JSP!!), which includes components
that do not work. This could be a great help!

Regards,
Jakob

2010/3/1 s.pen...@lombardodier.com

 Hello,

 My guess is that the problem is more general than just a javascript 
issue.

 In my previous message, I gave the form submit situation only as an
 example. The problem actually touches more than just this: I cannot sort
 my table content by clicking on one column header, I cannot switch from 
a
 StackPanel to another, etc...

 By searching a little bit further, I found out that the values that I 
used
 in combo boxes to show a greater or smaller choice (for example, age
 greater or smaller than 30) are not bound to their java counterpart
 anymore. For example:

 ice:selectOneMenu value=#{someController.filter.ageOperator} id=
 ageOperator
  f:selectItem itemValue=1 itemLabel=#{msg.search_filter_greater} /
  f:selectItem itemValue=-1 itemLabel=#{msg.search_filter_less} /
 /ice:selectOneMenu

 This menu was bound to a Java integer as follows:

 private int ageOperator;

 With 1.1.7, the value is not bound anymore. I needed to change the type 
of
 the attribute in my Java class to String for the binding to work again. 
Is
 there a special converter that I should add, which was not needed in 
1.1.2
 ? I can assure you that this runs fine with 1.1.2 :-)

 I am fairly new to MyFaces. Is there something I should do to make the
 upgrade easier?

 Thanks a lot for your help :-)

 Sébastien







 Jakob Korherr jakob.korh...@gmail.com
 Sent by: sethfromaust...@gmail.com


 01.03.2010 12:25
 Please respond to
 MyFaces Discussion users@myfaces.apache.org



 To
 MyFaces Discussion users@myfaces.apache.org
 cc

 Subject
 Re: Trouble upgrading from 1.1.2 to 1.1.7






 Hi,

 Maybe there's a problem with the javascript that submits the form. I saw
 However this is just a shot in the blue...

 Regards,
 Jakob

 2010/3/1 s.pen...@lombardodier.com

  Hello,
 
  I am experiencing quite a lot of trouble while upgrading from MyFaces
  1.1.2 to 1.1.7.
 
  My application uses IceFaces 1.8.2, Spring 2.5.2 and Hibernate 3.4.0.
 
  The only thing that I changed in my Maven 2 build is the version of
  MyFaces.
  This had an impact on the following jars:
 
  Added:
  myfaces-api-1.1.7.jar
  myfaces-impl-1.1.7.jar
  commons-digester-1.8.jar
  commons-beanutils-1.8.0.jar
 
  Removed:
  myfaces-api-1.1.2.jar
  myfaces-impl-1.1.2.jar
  commons-digester-1.6.jar
  commons-beanutils-1.7.0.jar
  commons-codec-1.3.jar
 
  When I build and deploy my application in Weblogic 9.2.3, the deploy
 goes
  fine, but the actions in the app do not work anymore.
  More precisely: as soon as I try to use  JSF components like if I 
submit
 a
  form, then nothing happens. This behaviour can be observed with 
several
  browsers.
 
  I tried to find some upgrading guide but didn't find 

Re: [Trinidad] resource not available (404) at popup of tr:inputDate

2010-03-02 Thread Joachim Schrod

Donn Aiken wrote:

Joachim --


On Mon, Mar 1, 2010 at 1:09 PM, Joachim Schrodjsch...@acm.org  wrote:


 Donn Aiken wrote:


 On Mon, Mar 1, 2010 at 11:11 AM, Joachim Schrodjsch...@acm.org   wrote:



 Donn, thanks, but that doesn't quite cover my situation.

   When one uses extension mapping and Facelets, the popup dialog of a basic

  tr:inputDate   does not work, it causes the error message The
 requested
  resource (/CONTEXT/__ADFv__) is not available.

  This is known since July 2007:
  https://issues.apache.org/jira/browse/TRINIDAD-119
  A patch exists since July 2008, revised in July 2009. (But I don't want
 to
  wait until July 2010 for the next activity. :-)

  I just did a servlet mapping like this:


   servlet-mapping
 servlet-nameFaces Servlet/servlet-name
 url-pattern/__ADFv__*/url-pattern
 url-pattern/faces/*/url-pattern
   /servlet-mapping

 Ugly, but it seems to work fine under Tomcat.



 As I wrote above, I use extension mapping, i.e., my URIs have an extension
 .jsf and not a prefix /faces/. And sadly

  servlet-mapping
servlet-nameFaces Servlet/servlet-name
url-pattern/__ADFv__*/url-pattern
url-pattern*.jsf/url-pattern
  /servlet-mapping

 doesn't work, the popup request still returns a 404 response.
 (It's an interesting question why not, as this request is passed to the
 MyFaces Servlet, but somehow Trinidad doesn't get a hold on it, while it
 succeeds when using the filter. Really strange.)



Is it a problem to have both *.jsf and /faces configured?  Another approach
I have used successfully is to fix it up with a servlet filter.  But I did
use a sendRedirect to  /faces/__ADFv__ url pattern rather than /__ADFv__


/faces URI requests don't ever happen in my configuration, also no 
/faces/__ADFv__. It is definitively the case that just 
/__ADFv__ (+ leading context + query string) URIs are requested 
-- I traced the network traffic to check them.


Fixing with a servlet filter is the patch in JIRA issue 
TRINIDAD-119 that I wrote of above. This works, maybe with minor 
adaptions.


It seems I wasn't clear enough: I have a workaround, it works for 
me. I don't look for a solution for my application, I want to know 
about the future of that workaround -- is it the solution, will it 
be an official workaround, or will it stay as a patch in JIRA 
that useres have to search for.


Thus, my question were/are:
 -- Is there a real fix upcoming?
Maybe all dev work is in 2.0 and nobody cares for 1.2
any more.
 -- Or shouldn't such a filter be folded in the distribution
meanwhile?
 -- Or at least be mentioned in the Wiki, to save others the time
to search for that problem's workaround?

Maybe that makes it clearer.

Joachim

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Joachim Schrod  Email: jsch...@acm.org
Roedermark, Germany



Query on casablanca skin

2010-03-02 Thread Venkat Ramanan Viswanathan
Hi





How do I extend Casablanca skin ? There is a casablancaskin.css part of
Trinidad-impl.jar.  In my trinidad-config.xml , I have given



skin-familycasablancaskin-family.



Can I create my css called casablanca_extension.css which will overwrite
some things in Casablanca skin ? IN that case how do I define my skin in
Trinidad-skins.xml. Is this a valid setting for Trinidad-skins.xml ?



skin

id

Casablanca.extn

/id

family

casablanca

/family

extends

casablanca.desktop

/extends

render-kit-id

org.apache.myfaces.trinidad.desktop

/render-kit-id

style-sheet-name

skins/casablanca_extn.css

/style-sheet-name

translation-source#{skinTranslationMap.resourceBundle}/
translation-source

/skin



Also in Trinidad-config.xml , what do I give ? will it be
skin-familycasablanca.extnskin-family









Thanks  Regards

Venkat

* *


Re: file upload using spring web flow

2010-03-02 Thread António Rodrigues
I am not familiar with Trinidad and I might be saying something stupid.
But I can see the inputFile does not have a value property mapped to your
bean.

AJCR


On 27 February 2010 17:34, jnl1 itsji...@yahoo.com wrote:


 hi all...

   I'm using spring web flow 2.0.8, trinidad 1.0.2.  The problem I'm having
 is my file upload is not working.  The page is rendering fine.   I select a
 file from the dialog, but the UploadedFile is never set in my backing bean.
 Page navigation is working fine as well.  The only thing that's an issue is
 the file not being set.

 Here's my xhtml:

tr:form usesUpload=true
fieldset
div class=field

tr:inputFile label=Upload:
 id=myFileId
 type=file

 valueChangeListener=#{searchCriteria.fileUploaded}/

/div

div class=buttonGroup
 h:commandButton
 id=uploadFile ajaxDisabled=true
 value=Process File action=uploadFile /
/div


 here's my web.xml

 ?xml version=1.0 encoding=ISO-8859-1?
 web-app xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
version=2.4

!-- The master configuration file for this Spring web application
 --
context-param
param-namecontextConfigLocation/param-name
param-value
/WEB-INF/config/web-application-config.xml
/param-value
/context-param

context-param
param-name
org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL
/param-name
param-valuetrue/param-value
/context-param

!-- Use JSF view templates saved as *.xhtml, for use with Facelets
 --
context-param
param-namejavax.faces.DEFAULT_SUFFIX/param-name
param-value.xhtml/param-value
/context-param

context-param
param-namefacelets.LIBRARIES/param-name
param-value
/WEB-INF/config/spring-security.taglib.xml
/param-value
/context-param

!-- Enables special Facelets debug output during development --
context-param
param-namefacelets.DEVELOPMENT/param-name
param-valuetrue/param-value
/context-param

!-- Causes Facelets to refresh templates during development --
context-param
param-namefacelets.REFRESH_PERIOD/param-name
param-value1/param-value
/context-param

!-- Enforce UTF-8 Character Encoding --
filter
filter-namecharEncodingFilter/filter-name
filter-class

  org.springframework.web.filter.CharacterEncodingFilter
/filter-class
init-param
param-nameencoding/param-name
param-valueUTF-8/param-value
/init-param
init-param
param-nameforceEncoding/param-name
param-valuetrue/param-value
/init-param
/filter

filter-mapping
filter-namecharEncodingFilter/filter-name
url-pattern/*/url-pattern
/filter-mapping

!-- Enables Spring Security --
filter
filter-namespringSecurityFilterChain/filter-name
filter-class
org.springframework.web.filter.DelegatingFilterProxy
/filter-class
/filter

filter-mapping
filter-namespringSecurityFilterChain/filter-name
url-pattern/*/url-pattern
/filter-mapping

context-param
param-name
org.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER
/param-name

  param-valuecom.sun.facelets.FaceletViewHandler/param-value
/context-param
context-param
param-namejavax.faces.STATE_SAVING_METHOD/param-name
param-valueserver/param-value
/context-param
context-param
param-name
org.apache.myfaces.trinidad.CHANGE_PERSISTENCE
/param-name
param-valuesession/param-value
/context-param
context-param
param-name
org.apache.myfaces.trinidad.ENABLE_QUIRKS_MODE
/param-name
param-valuefalse/param-value
/context-param
filter
filter-nameTrinidad 

Trinidad panelFormLayout align question

2010-03-02 Thread Dj Apal [GR]
Hello all.
I want to add two tr:inputDate fields (from, to) to a panelFormLayout tag
but i don't want to place them one below the other.
I used a panelhorizontal layout to do this, but it breaks the alignment with
the labels of other input texts that I have.
Is there a way to align them one at the right of the other? Thnx!

-- 


  __o
_\._
(_)/ (_)


Re: [GSOC] HTML5 Renderkit Start-up

2010-03-02 Thread Leonardo Uribe
Hi

I want to ask you some questions with the objective of have a better idea.
I'm on vacations but I feel it is important to make this clear from now. So,
what are you planning:

1. A HTML5 Renderkit of existing components
2. A new component set with target HTML5 and JSF 2.
3. Something different.

Based on on the previous question, you will need utility code that your
components will use it. So where will you take it:

1. A new api (there is myfaces commons utils project so it would be great to
do a clean and stable jsf utility api that other libraries could use it).
2. Just take myfaces shared code as tomahawk or orchestra or portlet bridge.
This means repackage and copy that stuff
3. Take from trinidad or tobago.
4. Something different.

If there is some component creation you will:

1. Only write html 5 components and do not replicate the basic ones.
2. Write all possible components, even if duplicates some existing
components.
3. Something different.

And

1. Use myfaces builder plugin
2. Use trinidad maven faces plugin
3. Use tobago apt plugin

I think in my personal opinion myfaces commons is the right place to put
this effort, but first we can handle this code outside and at the end
integrate it in myfaces svn if the community agrees to.

regards,

Leonardo Uribe

2010/3/1 Ali Ok al...@aliok.com.tr

 Hi,

 I've started working on HTML5 renderkit, which I will apply GSOC this year.
 I haven't done much, just created the project, configured the builder
 (modified Tomahawk's building procedure).
 Now I am trying to determine what to implement and how people will use it
 after we are done. So I am writing some example component codes to get your
 ideas.
 The project is hosted on Google Code:
 http://code.google.com/p/myfaces-html5-starter/

 I will appreciate some review on pages at:

 http://code.google.com/p/myfaces-html5-starter/source/browse/#svn/trunk/src/test/resources/tag-interface
 Please note that, components are not implemented yet. Code on xhtml pages
 are just trials.

 If anybody is interested, please feel free to send me your feedback :)

 Thanks,
 Ali

 Sorry for duplicate post :(

 --
 My Blog: http://blog.aliok.com.tr
 Twitter: http://twitter.com/aliok_tr



Re: Help with regular expression

2010-03-02 Thread laredotornado

Thanks but I don't want to do that because if validation fails for both cases
(regular expression and length vaildator) then two error messages will be
displayed and I just want to have a single error message (e.g. Email
address must be of the form ... and between 1 and x characters long.)


 - Dave


Richard Yee-3 wrote:
 
 Use a separate validator for length
 
 Richard
 
 Sent from my iPhone
 
 On Feb 26, 2010, at 9:29 AM, laredotornado laredotorn...@gmail.com  
 wrote:
 

 Hi,

 I'm using MyFaces 1.1.5 and Tomahawk 1.1.7.  I am using a regexp to  
 validate
 a text field and I was wondering how do I rewrite/add to it to  
 indicate that
 the total amount of characters should be between 1 and 320?  Here is  
 what I
 have now ...

 t:validateRegExpr
 pattern=[\w\-\+\\*]+(?:\.[\w\-\_\+\\*]+)*@(?:[\w-]+\.)+[a-zA-Z] 
 {2,7}$ /

 Thanks for any feedback, - Dave
 -- 
 View this message in context:
 http://old.nabble.com/Help-with-regular-expression-tp27721131p27721131.html
 Sent from the MyFaces - Users mailing list archive at Nabble.com.

 
 

-- 
View this message in context: 
http://old.nabble.com/Help-with-regular-expression-tp27721131p27761087.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: Trinidad panelFormLayout align question

2010-03-02 Thread mamallan . uthaman

May be you can try considering below:

 tr:panelLabelAndMessage label=Date Range
   tr:panelHorizontalLayout
 tr:inputDate simple=true shortDesc=Start date/
 tr:inputDate simple=true shortDesc=End date/
   /tr:panelHorizontalLayout
 /tr:panelLabelAndMessage


Or else you can try to fiddle with the alignment using CSS ( I don't 
recommend ;-) ). Example:


 tr:panelFormLayout fieldWidth=60% labelWidth=40%
 tr:panelLabelAndMessage label=Label 1:
 tr:outputText value=Val1/
 /tr:panelLabelAndMessage
 tr:panelLabelAndMessage label=Label 2:
  tr:outputText value=Val2/
 /tr:panelLabelAndMessage
 tr:panelHorizontalLayout i*nlineStyle=position: relative; left: 
-5.7%*

   tr:inputDate label=From:/
   tr:inputDate label=To:/
 /tr:panelHorizontalLayout
  /tr:panelFormLayout

Thanks
Mamallan

On 3/2/2010 6:21 AM, Dj Apal [GR] wrote:

Hello all.
I want to add two tr:inputDate fields (from, to) to a panelFormLayout tag
but i don't want to place them one below the other.
I used a panelhorizontal layout to do this, but it breaks the alignment with
the labels of other input texts that I have.
Is there a way to align them one at the right of the other? Thnx!

  


Re: Trouble upgrading from 1.1.2 to 1.1.7

2010-03-02 Thread Jakob Korherr
Hi,

You're welcome ;)

Hmm. Maybe the submitting via the javascript function iceSubmit() does not
function properly. It's really hard to say from this point of view...

Have you tried using some of the standard MyFaces components (without
ICEFaces)?

Regrads,
Jakob

2010/3/2 s.pen...@lombardodier.com

 Hello Jakob,

 Here is the generated HTML of (a part of) a search form. It includes a
 Bigger than/smaller than field that was bound to an int in my Java code.

 The binding was not working anymore, untill I modified the setter of the
 attribute to take a String and converted to an int afterwards (just as a
 quick way of testing if a String binding would work).

 I then changed several other bindings similar to this one to use Strings,
 and the app seems to run way better now :-) but anyway further testing
 will be necessary.

 HTML:

 tr class=icePnlGrdRow2
td class=icePnlGrdCol editrQ id=searchForm:_id1068-1-0
label class=iceOutLbl bold
 for=searchForm:aValueToFilter id=searchForm:_id1075Label of the value
 to filter/label
/td

td class=icePnlGrdCol editrR id=searchForm:_id1068-1-1
div class=icePnlGrp id=searchForm:_id1076
select style= class=iceSelOneMnu
 id=searchForm:valueToFilterOperator
 name=searchForm:valueToFilterOperator
onblur=setFocus('');
 onfocus=setFocus(this.id); size=1
  option value=1Bigger than or equal
 to/option
  option value=-1Smaller than/option
/select

input style= class=iceInpTxt
 id=searchForm:aValueToFilter name=searchForm:aValueToFilter
  onblur=setFocus('');
 onfocus=setFocus(this.id); onkeypress=iceSubmit(form,this,event);
 onmousedown=this.focus();
  size=15 value= type=text
label class=iceOutLbl id=searchForm:_id1079
 unit of the value to filter/label

span id=searchForm:_id1080/span
/div
/td
 /tr

 Does it help?

 Thanks a lot for your help...

 Best regards,

 Sébastien








 Jakob Korherr jakob.korh...@gmail.com
 Sent by: sethfromaust...@gmail.com


 01.03.2010 17:50
 Please respond to
 MyFaces Discussion users@myfaces.apache.org



 To
 MyFaces Discussion users@myfaces.apache.org
 cc

 Subject
 Re: Trouble upgrading from 1.1.2 to 1.1.7






 Can you provide some generated HTML (not JSP!!), which includes components
 that do not work. This could be a great help!

 Regards,
 Jakob

 2010/3/1 s.pen...@lombardodier.com

  Hello,
 
  My guess is that the problem is more general than just a javascript
 issue.
 
  In my previous message, I gave the form submit situation only as an
  example. The problem actually touches more than just this: I cannot sort
  my table content by clicking on one column header, I cannot switch from
 a
  StackPanel to another, etc...
 
  By searching a little bit further, I found out that the values that I
 used
  in combo boxes to show a greater or smaller choice (for example, age
  greater or smaller than 30) are not bound to their java counterpart
  anymore. For example:
 
  ice:selectOneMenu value=#{someController.filter.ageOperator} id=
  ageOperator
   f:selectItem itemValue=1 itemLabel=#{msg.search_filter_greater} /
   f:selectItem itemValue=-1 itemLabel=#{msg.search_filter_less} /
  /ice:selectOneMenu
 
  This menu was bound to a Java integer as follows:
 
  private int ageOperator;
 
  With 1.1.7, the value is not bound anymore. I needed to change the type
 of
  the attribute in my Java class to String for the binding to work again.
 Is
  there a special converter that I should add, which was not needed in
 1.1.2
  ? I can assure you that this runs fine with 1.1.2 :-)
 
  I am fairly new to MyFaces. Is there something I should do to make the
  upgrade easier?
 
  Thanks a lot for your help :-)
 
  Sébastien
 
 
 
 
 
 
 
  Jakob Korherr jakob.korh...@gmail.com
  Sent by: sethfromaust...@gmail.com
 
 
  01.03.2010 12:25
  Please respond to
  MyFaces Discussion users@myfaces.apache.org
 
 
 
  To
  MyFaces Discussion users@myfaces.apache.org
  cc
 
  Subject
  Re: Trouble upgrading from 1.1.2 to 1.1.7
 
 
 
 
 
 
  Hi,
 
  Maybe there's a problem with the javascript that submits the form. I saw
  However this is just a shot in the blue...
 
  Regards,
  Jakob
 
  2010/3/1 s.pen...@lombardodier.com
 
   Hello,
  
   I am experiencing quite a lot of trouble while upgrading from MyFaces
   1.1.2 to 1.1.7.
  
   My application uses IceFaces 1.8.2, Spring 2.5.2 and Hibernate 3.4.0.
  
   The only thing that I changed in my Maven 2 build is the version of
   MyFaces.
   This had an impact on the following jars:
  
   Added:
   myfaces-api-1.1.7.jar
   myfaces-impl-1.1.7.jar
   commons-digester-1.8.jar
   commons-beanutils-1.8.0.jar
  
   Removed:
   myfaces-api-1.1.2.jar
   myfaces-impl-1.1.2.jar
   

Re: [GSOC] HTML5 Renderkit Start-up

2010-03-02 Thread Ali Ok
Hi Leonardo,

First of all, I am not 100% sure about my answers.
The purpose of my current work is, to make my GSOC application better by
getting your idea.

On this mail 
threadhttp://old.nabble.com/-GSoc--Google-Summer-of-Code-Idea-td27040478.html,
we have talked about a new HTML5 renderkit. But I have a doubt which I saved
for myself till now:

   - If I implement a HTML5 renderkit for existing components, how to add
   the new features? For example, the input element has a new attribute
   placeholder, where you can provide an image if the input is empty. Spec of
   the h:inputText or t:inputText is defined and we need the placeholder
   attribute defined on them. Ok, we can change the Tomahawk components but,
   isn't this a problem since the current renderkit won't use it and
   placeholder attribute will never be used by it? How to solve this problem?

If we can clear the question above, my answers to your questions will be
changed, but here is my answers at the moment:

What are you planning:


I am planning A new component set with target HTML5 and JSF 2.. However,
for instance, I also want to implement hx:input extending h:input, for new
features of HTML5 input element (list,placeholder etc.).

Based on on the previous question, you will need utility code that your
 components will use it. So where will you take it:


I think myfaces commons utils is the correct place as you said.

If there is some component creation you will:


I want to implement completely new components (like hx:video) and extensions
of existing components (like hx:inputText); but not duplicate anything (if
possible).

but first we can handle this code outside and at the end
 integrate it in myfaces svn if the community agrees to.


That is how it's supposed to be :)

Thanks for your questions :)
Ali

On Tue, Mar 2, 2010 at 7:17 PM, Leonardo Uribe lu4...@gmail.com wrote:

 Hi

 I want to ask you some questions with the objective of have a better idea.
 I'm on vacations but I feel it is important to make this clear from now.
 So,
 what are you planning:

 1. A HTML5 Renderkit of existing components
 2. A new component set with target HTML5 and JSF 2.
 3. Something different.

 Based on on the previous question, you will need utility code that your
 components will use it. So where will you take it:

 1. A new api (there is myfaces commons utils project so it would be great
 to
 do a clean and stable jsf utility api that other libraries could use it).
 2. Just take myfaces shared code as tomahawk or orchestra or portlet
 bridge.
 This means repackage and copy that stuff
 3. Take from trinidad or tobago.
 4. Something different.

 If there is some component creation you will:

 1. Only write html 5 components and do not replicate the basic ones.
 2. Write all possible components, even if duplicates some existing
 components.
 3. Something different.

 And

 1. Use myfaces builder plugin
 2. Use trinidad maven faces plugin
 3. Use tobago apt plugin

 I think in my personal opinion myfaces commons is the right place to put
 this effort, but first we can handle this code outside and at the end
 integrate it in myfaces svn if the community agrees to.

 regards,

 Leonardo Uribe

 2010/3/1 Ali Ok al...@aliok.com.tr

  Hi,
 
  I've started working on HTML5 renderkit, which I will apply GSOC this
 year.
  I haven't done much, just created the project, configured the builder
  (modified Tomahawk's building procedure).
  Now I am trying to determine what to implement and how people will use it
  after we are done. So I am writing some example component codes to get
 your
  ideas.
  The project is hosted on Google Code:
  http://code.google.com/p/myfaces-html5-starter/
 
  I will appreciate some review on pages at:
 
 
 http://code.google.com/p/myfaces-html5-starter/source/browse/#svn/trunk/src/test/resources/tag-interface
  Please note that, components are not implemented yet. Code on xhtml pages
  are just trials.
 
  If anybody is interested, please feel free to send me your feedback :)
 
  Thanks,
  Ali
 
  Sorry for duplicate post :(
 
  --
  My Blog: http://blog.aliok.com.tr
  Twitter: http://twitter.com/aliok_tr
 




-- 
My Blog: http://blog.aliok.com.tr
Twitter: http://twitter.com/aliok_tr


Re: Help with regular expression

2010-03-02 Thread Richard Yee
there are several options for handling this.
1) If you use two validators and only want one message to be displayed, you
can use a phase listener to detect the condition and remove the extra
message
2) You can use a validator method in your backing bean to handle both
validations and display the appropriate error message.
3) You can write your own custom validator to do both validations. With this
approach, the validator could be used easily in multiple pages.

-R

On Tue, Mar 2, 2010 at 12:58 PM, laredotornado laredotorn...@gmail.comwrote:


 Thanks but I don't want to do that because if validation fails for both
 cases
 (regular expression and length vaildator) then two error messages will be
 displayed and I just want to have a single error message (e.g. Email
 address must be of the form ... and between 1 and x characters long.)


  - Dave


 Richard Yee-3 wrote:
 
  Use a separate validator for length
 
  Richard
 
  Sent from my iPhone
 
  On Feb 26, 2010, at 9:29 AM, laredotornado laredotorn...@gmail.com
  wrote:
 
 
  Hi,
 
  I'm using MyFaces 1.1.5 and Tomahawk 1.1.7.  I am using a regexp to
  validate
  a text field and I was wondering how do I rewrite/add to it to
  indicate that
  the total amount of characters should be between 1 and 320?  Here is
  what I
  have now ...
 
  t:validateRegExpr
  pattern=[\w\-\+\\*]+(?:\.[\w\-\_\+\\*]+)*@(?:[\w-]+\.)+[a-zA-Z]
  {2,7}$ /
 
  Thanks for any feedback, - Dave
  --
  View this message in context:
 
 http://old.nabble.com/Help-with-regular-expression-tp27721131p27721131.html
  Sent from the MyFaces - Users mailing list archive at Nabble.com.
 
 
 

 --
 View this message in context:
 http://old.nabble.com/Help-with-regular-expression-tp27721131p27761087.html
 Sent from the MyFaces - Users mailing list archive at Nabble.com.




Re: Help with regular expression

2010-03-02 Thread Richard Yee
Are you using h:message or h:messages to display the error message? If you
should use h:message I think only one message will be displayed.

_R

On Tue, Mar 2, 2010 at 8:04 PM, Richard Yee richard.k@gmail.com wrote:

 there are several options for handling this.
 1) If you use two validators and only want one message to be displayed, you
 can use a phase listener to detect the condition and remove the extra
 message
 2) You can use a validator method in your backing bean to handle both
 validations and display the appropriate error message.
 3) You can write your own custom validator to do both validations. With
 this approach, the validator could be used easily in multiple pages.

 -R


 On Tue, Mar 2, 2010 at 12:58 PM, laredotornado laredotorn...@gmail.comwrote:


 Thanks but I don't want to do that because if validation fails for both
 cases
 (regular expression and length vaildator) then two error messages will be
 displayed and I just want to have a single error message (e.g. Email
 address must be of the form ... and between 1 and x characters long.)


  - Dave


 Richard Yee-3 wrote:
 
  Use a separate validator for length
 
  Richard
 
  Sent from my iPhone
 
  On Feb 26, 2010, at 9:29 AM, laredotornado laredotorn...@gmail.com
  wrote:
 
 
  Hi,
 
  I'm using MyFaces 1.1.5 and Tomahawk 1.1.7.  I am using a regexp to
  validate
  a text field and I was wondering how do I rewrite/add to it to
  indicate that
  the total amount of characters should be between 1 and 320?  Here is
  what I
  have now ...
 
  t:validateRegExpr
  pattern=[\w\-\+\\*]+(?:\.[\w\-\_\+\\*]+)*@(?:[\w-]+\.)+[a-zA-Z]
  {2,7}$ /
 
  Thanks for any feedback, - Dave
  --
  View this message in context:
 
 http://old.nabble.com/Help-with-regular-expression-tp27721131p27721131.html
  Sent from the MyFaces - Users mailing list archive at Nabble.com.
 
 
 

 --
 View this message in context:
 http://old.nabble.com/Help-with-regular-expression-tp27721131p27761087.html
 Sent from the MyFaces - Users mailing list archive at Nabble.com.





Re: Trouble upgrading from 1.1.2 to 1.1.7

2010-03-02 Thread s . pennec
Hi Jakob,

I guess that the javascript in iceSubmit() might not the cause of the 
problem... The int binding that used to work doesn't work anymore, and 
this is what caused the interface to freeze. Correcting the java code to 
accept a String made the interface work correctly again 

I fail to understand how does the javascript iceSubmit() fits in this... 
but I certainly am not the most knowledgable person on the matter. Could 
you explain what makes you think that the javascript might be a good 
suspect?

Since I have a release planned in a quite short time, I won't be able to 
rewrite the whole form using only MyFaces components... sorry about 
that... :( But I might have the time to build a sample-app that shows that 
the binding that used to work doesn't work anymore. As I understood them, 
the release notes of MyFaces do not show anything related to this change 
of behavior. Do you think it might be a bug?

Regards,

Sébastien








Jakob Korherr jakob.korh...@gmail.com 
Sent by: sethfromaust...@gmail.com
 
 
02.03.2010 23:39
Please respond to
MyFaces Discussion users@myfaces.apache.org



To
MyFaces Discussion users@myfaces.apache.org
cc

Subject
Re: Trouble upgrading from 1.1.2 to 1.1.7






Hi,

You're welcome ;)

Hmm. Maybe the submitting via the javascript function iceSubmit() does not
function properly. It's really hard to say from this point of view...

Have you tried using some of the standard MyFaces components (without
ICEFaces)?

Regrads,
Jakob

2010/3/2 s.pen...@lombardodier.com

 Hello Jakob,

 Here is the generated HTML of (a part of) a search form. It includes a
 Bigger than/smaller than field that was bound to an int in my Java 
code.

 The binding was not working anymore, untill I modified the setter of the
 attribute to take a String and converted to an int afterwards (just as a
 quick way of testing if a String binding would work).

 I then changed several other bindings similar to this one to use 
Strings,
 and the app seems to run way better now :-) but anyway further testing
 will be necessary.

 HTML:

 tr class=icePnlGrdRow2
td class=icePnlGrdCol editrQ id=searchForm:_id1068-1-0
label class=iceOutLbl bold
 for=searchForm:aValueToFilter id=searchForm:_id1075Label of the 
value
 to filter/label
/td

td class=icePnlGrdCol editrR id=searchForm:_id1068-1-1
div class=icePnlGrp id=searchForm:_id1076
select style= class=iceSelOneMnu
 id=searchForm:valueToFilterOperator
 name=searchForm:valueToFilterOperator
onblur=setFocus('');
 onfocus=setFocus(this.id); size=1
  option value=1Bigger than or equal
 to/option
  option value=-1Smaller than/option
/select

input style= class=iceInpTxt
 id=searchForm:aValueToFilter name=searchForm:aValueToFilter
  onblur=setFocus('');
 onfocus=setFocus(this.id); onkeypress=iceSubmit(form,this,event);
 onmousedown=this.focus();
  size=15 value= type=text
label class=iceOutLbl id=searchForm:_id1079
 unit of the value to filter/label

span id=searchForm:_id1080/span
/div
/td
 /tr

 Does it help?

 Thanks a lot for your help...

 Best regards,

 Sébastien








 Jakob Korherr jakob.korh...@gmail.com
 Sent by: sethfromaust...@gmail.com


 01.03.2010 17:50
 Please respond to
 MyFaces Discussion users@myfaces.apache.org



 To
 MyFaces Discussion users@myfaces.apache.org
 cc

 Subject
 Re: Trouble upgrading from 1.1.2 to 1.1.7






 Can you provide some generated HTML (not JSP!!), which includes 
components
 that do not work. This could be a great help!

 Regards,
 Jakob

 2010/3/1 s.pen...@lombardodier.com

  Hello,
 
  My guess is that the problem is more general than just a javascript
 issue.
 
  In my previous message, I gave the form submit situation only as an
  example. The problem actually touches more than just this: I cannot 
sort
  my table content by clicking on one column header, I cannot switch 
from
 a
  StackPanel to another, etc...
 
  By searching a little bit further, I found out that the values that I
 used
  in combo boxes to show a greater or smaller choice (for example, age
  greater or smaller than 30) are not bound to their java counterpart
  anymore. For example:
 
  ice:selectOneMenu value=#{someController.filter.ageOperator} id=
  ageOperator
   f:selectItem itemValue=1 itemLabel=#{msg.search_filter_greater} 
/
   f:selectItem itemValue=-1 itemLabel=#{msg.search_filter_less} /
  /ice:selectOneMenu
 
  This menu was bound to a Java integer as follows:
 
  private int ageOperator;
 
  With 1.1.7, the value is not bound anymore. I needed to change the 
type
 of
  the attribute in my Java class to String for the binding to work 
again.
 Is
  there a special converter that I should add, which was not