Subform with InputText: InputText is not updated after a page submit

2009-02-26 Thread Stefan.Friedrich
Hi.

We are currently facing and "interesting" problem:

We have a page that contains one form element with a couple of input
elements and one subform element, the backing bean is session scoped:


  ...
   (--> sets backing bean property that
lets the subform be rendered with value=null)
  

 (To save the value
and unrender the subform)

(To cancel the editing and unrender the subform)
  
   (--> sets backing bean property that
lets the subform be rendered with value="current Value")
   (Finally saves the changes)


Now we have the following usecases:
A) OK
1. Form is started
2. "New" is clicked
3. subform is shown with empty inputText 

B) OK
1. Form is started
2. "Edit" is clicked
3. subform is shown with "current Value"

C) NOT OK
1. Form is started
2. "Edit" is clicked
3. "New" is clicked
4. subform is shown with "current Value"

D) NOT OK
1. Form is started
2. "New" is clicked
3. "Edit" is clicked
4. subform is shown with empty inputText


So what are we missing here? Why is the inputText not re-rendered (we
think because the events are not produced from within the subform)? Some
debugging in the backing bean shows that the "value" property is set
correctly - its just the subform that doesn't get updated


What we already tried (without success):
- set the subform as "default" -> no change
- remove the subform tags -> "New" or "Edit" is not clickable until the
text field is filled (required)
- set immediate="true" on all relevant links -> No update of the subform
content
- set an id and a binding on the subform element and call
requestContext.addPartialTarget(...) from the backing bean's "new" and
"edit" methods -> No update of the subform content


What we tried (with success):
- Programatically call resetValue() on all EditableComponents from the
backing bean
--> So this approach works but produces some overhead and is kind of a
"workaround"

Help is appreciated ;-)

Regards
Stefan Friedrich



AW: faces+mysql+tomcat and error in codification

2009-02-26 Thread Andrej Konkow
Hi Victor,

this is no special JSF issue. But anyway. I had the same problem. You have to 
set the correct encoding before the first character is read from the stream.
My solution was writing a filter which is put as the very first instance to 
handle the request. Example:

public class CharacterEncodingFilter implements Filter
{
private String   encoding;
private FilterConfig filterConfig;

/**
 * @see javax.servlet.Filter#init(javax.servlet.FilterConfig)
 */
public void init(FilterConfig fc) throws ServletException
{
this.filterConfig = fc;
this.encoding = filterConfig.getInitParameter("encoding");
}

/**
 * @see javax.servlet.Filter#doFilter(javax.servlet.ServletRequest, 
javax.servlet.ServletResponse, javax.servlet.FilterChain)
 */
public void doFilter(ServletRequest req, ServletResponse resp, 
FilterChain chain) throws IOException, ServletException
{
// Before reading the first information we have to set the 
encoding to
// utf-8. Otherwise the characterencoding is lost and special 
characters
// as for example "€" are misinterpreted.
req.setCharacterEncoding(encoding);

chain.doFilter(req, resp);
}

/**
 * @see javax.servlet.Filter#destroy()
 */
public void destroy()
{
}
}



In your web.xml:
   
  CharacterEncodingFilter
  com.bla.CharacterEncodingFilter
  
 encoding
 UTF-8
  
   

and the filtermapping as FIRST filtermapping:
   
   
  CharacterEncodingFilter
  /jsp/*
   

Hope it helps,

Andrej

-Ursprüngliche Nachricht-
Von: Victor H De la Luz [mailto:itz...@gmail.com]
Gesendet: Donnerstag, 26. Februar 2009 23:58
An: users@myfaces.apache.org
Betreff: faces+mysql+tomcat and error in codification

Hi!

I have a problem very funny:

I get my data from


I have in the header of my .xhtml like:


Now, I have Mysql 5.0.51a with

Server characterset:utf8
Db characterset:utf8
Client characterset:utf8
Conn.  characterset:utf8

and the collation of the table "blog" like
utf8_unicode_ci

I have the all the data into the database with utf8 codification.

The problem is:

When I get the data from the input text I get a wrong text
with special characters, for example ó is substituted for ó.

Then when I store the data in the database I write the ó character.

The funny is that before I had this configuration:
Server characterset:latin1
Db characterset:latin1
Client characterset:latin1
Conn.  characterset:latin1

with the codification latin1 for all the database
and utf-8 codification for the .xhtml.

Now, with this configuration, when I get the data from the inputText
the data is stored correctly in the String variable and in the
database but when I
get the data from the database this is displayed wrong
(the same problem: ó is replaced by ó and etc when I get the data
with title= rs.getString("title"); )

I tried to configure the connection to use explicit character encoding
but this method fail, then I tried of get the data like

byte[] stringValue = rs.getBytes("title");
String str = new String(stringValue,"utf-8");

but fail too, I changue the codification to latin1, ISO..., etc but
always fails.

In resume, the funny is that with utf8 codification in all the
aplication the data is corrupted
when I get the data from inputtext and if the codification is latin1
in the db and utf8
in the aplication then fails when I get the data from the database.

Im using: Linux Debian Lenny, mysql 5.0.51a-24-log (Debian),
myfaces-impl-1.2.5.jar
and mysql-connector-java-5.1.5-bin.jar.

Thanks in advanced!

--
ItZtLi


faces+mysql+tomcat and error in codification

2009-02-26 Thread Victor H De la Luz
Hi!

I have a problem very funny:

I get my data from


I have in the header of my .xhtml like:


Now, I have Mysql 5.0.51a with

Server characterset:utf8
Db characterset:utf8
Client characterset:utf8
Conn.  characterset:utf8

and the collation of the table "blog" like
utf8_unicode_ci

I have the all the data into the database with utf8 codification.

The problem is:

When I get the data from the input text I get a wrong text
with special characters, for example ó is substituted for ó.

Then when I store the data in the database I write the ó character.

The funny is that before I had this configuration:
Server characterset:latin1
Db characterset:latin1
Client characterset:latin1
Conn.  characterset:latin1

with the codification latin1 for all the database
and utf-8 codification for the .xhtml.

Now, with this configuration, when I get the data from the inputText
the data is stored correctly in the String variable and in the
database but when I
get the data from the database this is displayed wrong
(the same problem: ó is replaced by ó and etc when I get the data
with title= rs.getString("title"); )

I tried to configure the connection to use explicit character encoding
but this method fail, then I tried of get the data like

byte[] stringValue = rs.getBytes("title");
String str = new String(stringValue,"utf-8");

but fail too, I changue the codification to latin1, ISO..., etc but
always fails.

In resume, the funny is that with utf8 codification in all the
aplication the data is corrupted
when I get the data from inputtext and if the codification is latin1
in the db and utf8
in the aplication then fails when I get the data from the database.

Im using: Linux Debian Lenny, mysql 5.0.51a-24-log (Debian),
myfaces-impl-1.2.5.jar
and mysql-connector-java-5.1.5-bin.jar.

Thanks in advanced!

-- 
ItZtLi


Re: [COMMUNITY] MyFaces += Jan-Kees van Andel

2009-02-26 Thread Curtiss Howard
Hi JK,

Out of curiosity, what are your plans for implementing the annotation
configuration code (I assume you're talking about @ManagedBean and the
like)?  Mike Concini and I are both going to be doing a good bit of
work on MyFaces and one spot in particular that we'd like to (try to)
have input on is the annotation processing.  We have a couple ideas
related to how to architect annotation processing such that the
annotation scanning logic can be "pluggable".  We feel that this would
help open the door to possibly allowing implementors/extenders of
MyFaces to make performance improvements in that area.  Would you like
to start a discussion about this with us?

Thanks,


Curtiss Howard

On Thu, Feb 26, 2009 at 2:29 PM, Jan-Kees van Andel
 wrote:
> Thanks guys and also thanks to the rest of the MyFaces team for the trust.
> The first thing I'm gonna try to implement is the annotation based
> configuration code. I think that's a fair amount of work for now. We'll see
> what to do after that. I'm sure there's plenty of work when that's done
>
> /JK
>
>
>
> 2009/2/26 Grant Smith 
>>
>> Hi Jan-Kees,
>>
>> Congratulations and welcome !
>>
>> On Thu, Feb 26, 2009 at 8:14 AM, Simon Lessard 
>> wrote:
>>>
>>> Congratulations, welcome in!
>>>
>>> ~ Simon
>>>
>>> On Thu, Feb 26, 2009 at 5:49 AM, Hazem Saleh  wrote:

 Congratulations Jan-kees.

 On Thu, Feb 26, 2009 at 9:08 AM, Matthias Wessendorf 
 wrote:
>
> The Myfaces PMC is proud to announce a new addition to our community.
>
> Please welcome Jan-Kees van Andel as the newest MyFaces committer!
> Jan-Kees is an active member of the myfaces community, especially in
> the myfaces 2.0 section of the code
>
> @Jan-Kees: Please add yourself to the Master-POM at
>
> https://svn.apache.org/repos/asf/myfaces/myfaces-master-pom/trunk/pom.xml
>
> -Matthias
>
> --
> Matthias Wessendorf
>
> blog: http://matthiaswessendorf.wordpress.com/
> sessions: http://www.slideshare.net/mwessendorf
> twitter: http://twitter.com/mwessendorf



 --
 Hazem Ahmed Saleh Ahmed

 Author of (The Definitive Guide to Apache MyFaces and Facelets):

 http://www.amazon.com/Definitive-Guide-Apache-MyFaces-Facelets/dp/1590597370

 Web blog: http://www.jroller.com/page/HazemBlog

 [Web 2.0] Google Maps Integration with JSF:
 http://code.google.com/p/gmaps4jsf/

 http://www.theserverside.com/tt/articles/article.tss?l=IntroductiontoGMaps4JSF
>>>
>>
>>
>>
>> --
>> Grant Smith
>>
>
>


[Trinidad] What resets the pageFlowScope ?

2009-02-26 Thread Walter Mourão
Hi folks,
in a specific commandAction the pageFlowScope is reseting ( I see the change
in the "_afPfm" token ). What is the rule that makes the pageFlowScope
continue the same instance between pages ?

Thanks in advance,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br


Re: [COMMUNITY] MyFaces += Jan-Kees van Andel

2009-02-26 Thread Jan-Kees van Andel
Thanks guys and also thanks to the rest of the MyFaces team for the trust.
The first thing I'm gonna try to implement is the annotation based
configuration code. I think that's a fair amount of work for now. We'll see
what to do after that. I'm sure there's plenty of work when that's done

/JK



2009/2/26 Grant Smith 

> Hi Jan-Kees,
>
> Congratulations and welcome !
>
>
> On Thu, Feb 26, 2009 at 8:14 AM, Simon Lessard 
> wrote:
>
>> Congratulations, welcome in!
>>
>> ~ Simon
>>
>>
>> On Thu, Feb 26, 2009 at 5:49 AM, Hazem Saleh  wrote:
>>
>>> Congratulations Jan-kees.
>>>
>>>
>>> On Thu, Feb 26, 2009 at 9:08 AM, Matthias Wessendorf 
>>> wrote:
>>>
 The Myfaces PMC is proud to announce a new addition to our community.

 Please welcome Jan-Kees van Andel as the newest MyFaces committer!
 Jan-Kees is an active member of the myfaces community, especially in
 the myfaces 2.0 section of the code

 @Jan-Kees: Please add yourself to the Master-POM at

 https://svn.apache.org/repos/asf/myfaces/myfaces-master-pom/trunk/pom.xml

 -Matthias

 --
 Matthias Wessendorf

 blog: http://matthiaswessendorf.wordpress.com/
 sessions: http://www.slideshare.net/mwessendorf
 twitter: http://twitter.com/mwessendorf

>>>
>>>
>>>
>>> --
>>> Hazem Ahmed Saleh Ahmed
>>>
>>> Author of (The Definitive Guide to Apache MyFaces and Facelets):
>>>
>>> http://www.amazon.com/Definitive-Guide-Apache-MyFaces-Facelets/dp/1590597370
>>>
>>> Web blog: http://www.jroller.com/page/HazemBlog
>>>
>>> [Web 2.0] Google Maps Integration with JSF:
>>> http://code.google.com/p/gmaps4jsf/
>>>
>>> http://www.theserverside.com/tt/articles/article.tss?l=IntroductiontoGMaps4JSF
>>>
>>
>>
>
>
> --
> Grant Smith
>
>


[Announce] Release of Apache MyFaces Trinidad 1.2.11

2009-02-26 Thread Matthias Wessendorf
The Apache MyFaces Trinidad team is pleased to announce the release of
Apache MyFaces Trinidad Core 1.2.11.

Apache MyFaces Trinidad is a JavaServer(tm) Faces 1.2 component library.

Trinidad Core 1.2.11 is available in both binary and source distributions:

 * http://myfaces.apache.org/trinidad/download.html

Apache MyFaces Trinidad is available in the central Maven repository under
Group ID "org.apache.myfaces.trinidad".


Release Notes:
https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12310661&styleName=Html&version=12313510

Enjoy!
Matthias

-- 
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf


Re: [TRINIDAD] Problem moving from standard MyFaces to Trinidad

2009-02-26 Thread Steve Horne
I'm not sure, but I think I have read about problems using that servlet
mapping.  I am using trinidad and facelets, and I have the following servlet
mappings:

faces
/faces/*


resources
/adf/*


HTH

“Many men go fishing all of their lives without knowing it is not fish they
are after.”
- Henry David Thoreau


On Thu, Feb 26, 2009 at 11:03 AM, Steve Horne  wrote:

> Oh, sorry, I missed seeing that you already had that specified.  Everything
> seems OK to me.
>
> “Many men go fishing all of their lives without knowing it is not fish they
> are after.”
> - Henry David Thoreau
>
>
> On Thu, Feb 26, 2009 at 10:52 AM, Steve Horne wrote:
>
>> Add this context param:
>> 
>> javax.faces.DEFAULT_SUFFIX
>> .xhtml
>> 
>>
>> HTH
>>
>> “Many men go fishing all of their lives without knowing it is not fish
>> they are after.”
>> - Henry David Thoreau
>>
>>
>> On Thu, Feb 26, 2009 at 10:15 AM, Stefan Fassel  wrote:
>>
>>> Here my current web.xml:
>>>
>>> 
>>> 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">
>>>   myApp
>>>   
>>>   javax.faces.DEFAULT_SUFFIX
>>>   .xhtml
>>>   
>>>   
>>>   facelets.VIEW_MAPPINGS
>>>   *.xhtml
>>>   
>>>
>>> 
>>>   
>>>   javax.faces.STATE_SAVING_METHOD
>>>   client
>>>   
>>>   
>>>   facelets.SKIP_COMMENTS
>>>   true
>>>   
>>>
>>>   
>>>
>>> org.apache.myfaces.trinidad.DISABLE_CONTENT_COMPRESSION
>>>   true
>>>   
>>>   
>>>
>>> org.apache.myfaces.trinidad.USE_APPLICATION_VIEW_CACHE
>>>   false
>>>   
>>>   
>>>
>>> org.apache.myfaces.trinidad.CACHE_VIEW_ROOT
>>>   false
>>>   
>>>   
>>>
>>> org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION
>>>   true
>>>   
>>>   
>>>
>>> org.apache.myfaces.trinidad.CHANGE_PERSISTENCE
>>>   session
>>>   
>>>   
>>>
>>> org.apache.myfaces.trinidad.ENABLE_LIGHTWEIGHT_DIALOGS
>>>   true
>>>   
>>>   
>>>
>>> org.apache.myfaces.trinidad.UPLOAD_MAX_MEMORY
>>>   512000
>>>   
>>>   
>>>
>>> org.apache.myfaces.trinidad.UPLOAD_MAX_DISK_SPACE
>>>   512
>>>   
>>>   
>>>
>>> org.apache.myfaces.trinidad.UPLOAD_TEMP_DIR
>>>   /tmp
>>>   
>>>   
>>>   org.apache.myfaces.trinidad.resource.DEBUG
>>>   true
>>>   
>>>   
>>>
>>> org.apache.myfaces.trinidad.CLIENT_STATE_MAX_TOKENS
>>>   3
>>>   
>>>   
>>>
>>> org.apache.myfaces.trinidad.CLIENT_STATE_METHOD
>>>   all
>>>   
>>>   
>>>
>>> org.apache.myfaces.trinidad.DIALOG_NAVIGATION_PREFIX
>>>   userInputHere:
>>>   
>>>   
>>>
>>> org.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER
>>>   com.sun.facelets.FaceletViewHandler
>>>   
>>>   
>>>   trinidad
>>>
>>> org.apache.myfaces.trinidad.webapp.TrinidadFilter
>>>   
>>>   
>>>   trinidad
>>>   FacesServlet
>>>   
>>> 
>>>
>>>   
>>>
>>> org.apache.myfaces.webapp.StartupServletContextListener
>>>   
>>>   
>>>
>>> my.project.listener.ContextListener
>>>   
>>>   
>>>   FacesServlet
>>>   javax.faces.webapp.FacesServlet
>>>   1
>>>   
>>>   
>>>   resources
>>>
>>> org.apache.myfaces.trinidad.webapp.ResourceServlet
>>>   
>>>   
>>>   FacesServlet
>>>   *.jsf
>>>   
>>>   
>>>   resources
>>>   /adf/*
>>>   
>>>   
>>>   30
>>>   
>>>
>>>   
>>>   index.jsp
>>>   
>>> 
>>>
>>> Yours
>>>
>>> S.Fassel
>>>
>>>
>>> Steve Horne wrote:
>>>
 Please post your web.xml.

 “Many men go fishing all of their lives without knowing it is not fish
 they are after.”
 - Henry David Thoreau


 On Thu, Feb 26, 2009 at 3:51 AM, Stefan Fassel >>> d...@elfwyn.net>> wrote:

Hello again

I have decided to rephrace my Question from before

I have a running Application using:

JSF 1.1
Tomcat 5.5.23
Java 1.5
Facelets 1.1.14

Now I want to introduce the Trinidad 1.0.10 component framework.

There was a partial success since I got Trinidad to render the
first xhtml-file.

The problem here is, that when submitting the first page the same
page is reredered again and both
the Action Implements and Managed beans are never used.

This also happens when using an xhtml-file without Trinidad-Tags.

By removing Trinidad - replacing

  
 org.apache.myfaces.trinidad.core
by
com.sun.facelets.FaceletViewHandler
in faces-config.xml - the Actions and Managed Beans are again
working as they were meant to.

This effect can be seen with and without using navigation-rules.

Maybe someone knows this error pattern...

Yours

S. Fassel





>>>
>>
>


Re: [TRINIDAD] Problem moving from standard MyFaces to Trinidad

2009-02-26 Thread Steve Horne
Oh, sorry, I missed seeing that you already had that specified.  Everything
seems OK to me.

“Many men go fishing all of their lives without knowing it is not fish they
are after.”
- Henry David Thoreau


On Thu, Feb 26, 2009 at 10:52 AM, Steve Horne  wrote:

> Add this context param:
> 
> javax.faces.DEFAULT_SUFFIX
> .xhtml
> 
>
> HTH
>
> “Many men go fishing all of their lives without knowing it is not fish they
> are after.”
> - Henry David Thoreau
>
>
> On Thu, Feb 26, 2009 at 10:15 AM, Stefan Fassel  wrote:
>
>> Here my current web.xml:
>>
>> 
>> 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">
>>   myApp
>>   
>>   javax.faces.DEFAULT_SUFFIX
>>   .xhtml
>>   
>>   
>>   facelets.VIEW_MAPPINGS
>>   *.xhtml
>>   
>>
>> 
>>   
>>   javax.faces.STATE_SAVING_METHOD
>>   client
>>   
>>   
>>   facelets.SKIP_COMMENTS
>>   true
>>   
>>
>>   
>>
>> org.apache.myfaces.trinidad.DISABLE_CONTENT_COMPRESSION
>>   true
>>   
>>   
>>
>> org.apache.myfaces.trinidad.USE_APPLICATION_VIEW_CACHE
>>   false
>>   
>>   
>>   org.apache.myfaces.trinidad.CACHE_VIEW_ROOT
>>   false
>>   
>>   
>>
>> org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION
>>   true
>>   
>>   
>>
>> org.apache.myfaces.trinidad.CHANGE_PERSISTENCE
>>   session
>>   
>>   
>>
>> org.apache.myfaces.trinidad.ENABLE_LIGHTWEIGHT_DIALOGS
>>   true
>>   
>>   
>>
>> org.apache.myfaces.trinidad.UPLOAD_MAX_MEMORY
>>   512000
>>   
>>   
>>
>> org.apache.myfaces.trinidad.UPLOAD_MAX_DISK_SPACE
>>   512
>>   
>>   
>>   org.apache.myfaces.trinidad.UPLOAD_TEMP_DIR
>>   /tmp
>>   
>>   
>>   org.apache.myfaces.trinidad.resource.DEBUG
>>   true
>>   
>>   
>>
>> org.apache.myfaces.trinidad.CLIENT_STATE_MAX_TOKENS
>>   3
>>   
>>   
>>
>> org.apache.myfaces.trinidad.CLIENT_STATE_METHOD
>>   all
>>   
>>   
>>
>> org.apache.myfaces.trinidad.DIALOG_NAVIGATION_PREFIX
>>   userInputHere:
>>   
>>   
>>
>> org.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER
>>   com.sun.facelets.FaceletViewHandler
>>   
>>   
>>   trinidad
>>
>> org.apache.myfaces.trinidad.webapp.TrinidadFilter
>>   
>>   
>>   trinidad
>>   FacesServlet
>>   
>> 
>>
>>   
>>
>> org.apache.myfaces.webapp.StartupServletContextListener
>>   
>>   
>>   my.project.listener.ContextListener
>>   
>>   
>>   FacesServlet
>>   javax.faces.webapp.FacesServlet
>>   1
>>   
>>   
>>   resources
>>
>> org.apache.myfaces.trinidad.webapp.ResourceServlet
>>   
>>   
>>   FacesServlet
>>   *.jsf
>>   
>>   
>>   resources
>>   /adf/*
>>   
>>   
>>   30
>>   
>>
>>   
>>   index.jsp
>>   
>> 
>>
>> Yours
>>
>> S.Fassel
>>
>>
>> Steve Horne wrote:
>>
>>> Please post your web.xml.
>>>
>>> “Many men go fishing all of their lives without knowing it is not fish
>>> they are after.”
>>> - Henry David Thoreau
>>>
>>>
>>> On Thu, Feb 26, 2009 at 3:51 AM, Stefan Fassel >> d...@elfwyn.net>> wrote:
>>>
>>>Hello again
>>>
>>>I have decided to rephrace my Question from before
>>>
>>>I have a running Application using:
>>>
>>>JSF 1.1
>>>Tomcat 5.5.23
>>>Java 1.5
>>>Facelets 1.1.14
>>>
>>>Now I want to introduce the Trinidad 1.0.10 component framework.
>>>
>>>There was a partial success since I got Trinidad to render the
>>>first xhtml-file.
>>>
>>>The problem here is, that when submitting the first page the same
>>>page is reredered again and both
>>>the Action Implements and Managed beans are never used.
>>>
>>>This also happens when using an xhtml-file without Trinidad-Tags.
>>>
>>>By removing Trinidad - replacing
>>>
>>>  
>>> org.apache.myfaces.trinidad.core
>>>by
>>>com.sun.facelets.FaceletViewHandler
>>>in faces-config.xml - the Actions and Managed Beans are again
>>>working as they were meant to.
>>>
>>>This effect can be seen with and without using navigation-rules.
>>>
>>>Maybe someone knows this error pattern...
>>>
>>>Yours
>>>
>>>S. Fassel
>>>
>>>
>>>
>>>
>>>
>>
>


Re: Configuring panelTabbed component

2009-02-26 Thread Andrew Robinson
Have a look at the trinidad developer skinning guide on the myfaces website.

-Andrew

On Thu, Feb 26, 2009 at 8:28 AM, Harry van Rijn
wrote:

> Hi,
>
> I want the tr:panelTabbed component have my own style.
> The standard rendering is not what I want, I like for instance
> the tabs to be coloured blue, and the text be white within it.
>
> Trying to find out myself takes a lot of time.
> I tried the attributes inlineStyle/styleClass, but all I get is a coloured
> tab with a ugly textbox in it, still with default appearance.
> Is the tr:panelTabbed component completely configurable at all, I asked
> myself.
>
> Where can I find documentation/examples about this?
>
> With kind regards,
>
> Harry van Rijn
>
>
>
>
>
>
>


Re: [COMMUNITY] MyFaces += Jan-Kees van Andel

2009-02-26 Thread Grant Smith
Hi Jan-Kees,

Congratulations and welcome !

On Thu, Feb 26, 2009 at 8:14 AM, Simon Lessard wrote:

> Congratulations, welcome in!
>
> ~ Simon
>
>
> On Thu, Feb 26, 2009 at 5:49 AM, Hazem Saleh  wrote:
>
>> Congratulations Jan-kees.
>>
>>
>> On Thu, Feb 26, 2009 at 9:08 AM, Matthias Wessendorf 
>> wrote:
>>
>>> The Myfaces PMC is proud to announce a new addition to our community.
>>>
>>> Please welcome Jan-Kees van Andel as the newest MyFaces committer!
>>> Jan-Kees is an active member of the myfaces community, especially in
>>> the myfaces 2.0 section of the code
>>>
>>> @Jan-Kees: Please add yourself to the Master-POM at
>>> https://svn.apache.org/repos/asf/myfaces/myfaces-master-pom/trunk/pom.xml
>>>
>>> -Matthias
>>>
>>> --
>>> Matthias Wessendorf
>>>
>>> blog: http://matthiaswessendorf.wordpress.com/
>>> sessions: http://www.slideshare.net/mwessendorf
>>> twitter: http://twitter.com/mwessendorf
>>>
>>
>>
>>
>> --
>> Hazem Ahmed Saleh Ahmed
>>
>> Author of (The Definitive Guide to Apache MyFaces and Facelets):
>>
>> http://www.amazon.com/Definitive-Guide-Apache-MyFaces-Facelets/dp/1590597370
>>
>> Web blog: http://www.jroller.com/page/HazemBlog
>>
>> [Web 2.0] Google Maps Integration with JSF:
>> http://code.google.com/p/gmaps4jsf/
>>
>> http://www.theserverside.com/tt/articles/article.tss?l=IntroductiontoGMaps4JSF
>>
>
>


-- 
Grant Smith


Re: [TRINIDAD] Problem moving from standard MyFaces to Trinidad

2009-02-26 Thread Steve Horne
Add this context param:

javax.faces.DEFAULT_SUFFIX
.xhtml


HTH

“Many men go fishing all of their lives without knowing it is not fish they
are after.”
- Henry David Thoreau


On Thu, Feb 26, 2009 at 10:15 AM, Stefan Fassel  wrote:

> Here my current web.xml:
>
> 
> 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">
>   myApp
>   
>   javax.faces.DEFAULT_SUFFIX
>   .xhtml
>   
>   
>   facelets.VIEW_MAPPINGS
>   *.xhtml
>   
>
> 
>   
>   javax.faces.STATE_SAVING_METHOD
>   client
>   
>   
>   facelets.SKIP_COMMENTS
>   true
>   
>
>   
>
> org.apache.myfaces.trinidad.DISABLE_CONTENT_COMPRESSION
>   true
>   
>   
>
> org.apache.myfaces.trinidad.USE_APPLICATION_VIEW_CACHE
>   false
>   
>   
>   org.apache.myfaces.trinidad.CACHE_VIEW_ROOT
>   false
>   
>   
>
> org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION
>   true
>   
>   
>
> org.apache.myfaces.trinidad.CHANGE_PERSISTENCE
>   session
>   
>   
>
> org.apache.myfaces.trinidad.ENABLE_LIGHTWEIGHT_DIALOGS
>   true
>   
>   
>
> org.apache.myfaces.trinidad.UPLOAD_MAX_MEMORY
>   512000
>   
>   
>
> org.apache.myfaces.trinidad.UPLOAD_MAX_DISK_SPACE
>   512
>   
>   
>   org.apache.myfaces.trinidad.UPLOAD_TEMP_DIR
>   /tmp
>   
>   
>   org.apache.myfaces.trinidad.resource.DEBUG
>   true
>   
>   
>
> org.apache.myfaces.trinidad.CLIENT_STATE_MAX_TOKENS
>   3
>   
>   
>
> org.apache.myfaces.trinidad.CLIENT_STATE_METHOD
>   all
>   
>   
>
> org.apache.myfaces.trinidad.DIALOG_NAVIGATION_PREFIX
>   userInputHere:
>   
>   
>
> org.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER
>   com.sun.facelets.FaceletViewHandler
>   
>   
>   trinidad
>
> org.apache.myfaces.trinidad.webapp.TrinidadFilter
>   
>   
>   trinidad
>   FacesServlet
>   
> 
>
>   
>
> org.apache.myfaces.webapp.StartupServletContextListener
>   
>   
>   my.project.listener.ContextListener
>   
>   
>   FacesServlet
>   javax.faces.webapp.FacesServlet
>   1
>   
>   
>   resources
>
> org.apache.myfaces.trinidad.webapp.ResourceServlet
>   
>   
>   FacesServlet
>   *.jsf
>   
>   
>   resources
>   /adf/*
>   
>   
>   30
>   
>
>   
>   index.jsp
>   
> 
>
> Yours
>
> S.Fassel
>
>
> Steve Horne wrote:
>
>> Please post your web.xml.
>>
>> “Many men go fishing all of their lives without knowing it is not fish
>> they are after.”
>> - Henry David Thoreau
>>
>>
>> On Thu, Feb 26, 2009 at 3:51 AM, Stefan Fassel > d...@elfwyn.net>> wrote:
>>
>>Hello again
>>
>>I have decided to rephrace my Question from before
>>
>>I have a running Application using:
>>
>>JSF 1.1
>>Tomcat 5.5.23
>>Java 1.5
>>Facelets 1.1.14
>>
>>Now I want to introduce the Trinidad 1.0.10 component framework.
>>
>>There was a partial success since I got Trinidad to render the
>>first xhtml-file.
>>
>>The problem here is, that when submitting the first page the same
>>page is reredered again and both
>>the Action Implements and Managed beans are never used.
>>
>>This also happens when using an xhtml-file without Trinidad-Tags.
>>
>>By removing Trinidad - replacing
>>
>>  
>> org.apache.myfaces.trinidad.core
>>by
>>com.sun.facelets.FaceletViewHandler
>>in faces-config.xml - the Actions and Managed Beans are again
>>working as they were meant to.
>>
>>This effect can be seen with and without using navigation-rules.
>>
>>Maybe someone knows this error pattern...
>>
>>Yours
>>
>>S. Fassel
>>
>>
>>
>>
>>
>


MyFaces error handler can not turned off

2009-02-26 Thread harald . humml
Hi,

I want to use the servlet containers default  mechanism in 
web.xml. I turned off both, MyFaces and Facelets error handling.
When I simulate an uncatched exception from a backing bean, I always get 
the MyFaces error page and not my own. What goes wrong?

I'm using MyFaces 1.2.5 and Facelets 1.1.14

The web.xml looks like this:


org.apache.myfaces.ERROR_HANDLING
false

 

facelets.DEVELOPMENT
false

 

java.lang.Exception
/ErrorHandling/globalerror.jsf


TIA
Harald


This message and any attachment ("the Message") are confidential. If you have 
received the Message in error, please notify the sender immediately and delete 
the Message from your system, any use of the Message is forbidden.
Correspondence via e-mail is primarily for information purposes. RZB neither 
makes nor accepts legally binding statements via e-mail unless otherwise agreed 
to the contrary.
Information pursuant to § 14 Austrian Companies Code: Raiffeisen Zentralbank 
Oesterreich AG; Registered Office: Am Stadtpark 9, A-1030 Vienna; Company 
Register Number: FN 58882t at the Commercial Court of Vienna.

Re: [TRINIDAD] Problem moving from standard MyFaces to Trinidad

2009-02-26 Thread Stefan Fassel

Here my current web.xml:


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">
   myApp
   
   javax.faces.DEFAULT_SUFFIX
   .xhtml
   
   
   facelets.VIEW_MAPPINGS
   *.xhtml
   



   
   javax.faces.STATE_SAVING_METHOD
   client
   
   
   facelets.SKIP_COMMENTS
   true
   

   
   
org.apache.myfaces.trinidad.DISABLE_CONTENT_COMPRESSION

   true
   
   
   
org.apache.myfaces.trinidad.USE_APPLICATION_VIEW_CACHE

   false
   
   
   org.apache.myfaces.trinidad.CACHE_VIEW_ROOT
   false
   
   
   
org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION

   true
   
   
   
org.apache.myfaces.trinidad.CHANGE_PERSISTENCE

   session
   
   
   
org.apache.myfaces.trinidad.ENABLE_LIGHTWEIGHT_DIALOGS

   true
   
   
   
org.apache.myfaces.trinidad.UPLOAD_MAX_MEMORY

   512000
   
   
   
org.apache.myfaces.trinidad.UPLOAD_MAX_DISK_SPACE

   512
   
   
   org.apache.myfaces.trinidad.UPLOAD_TEMP_DIR
   /tmp
   
   
   org.apache.myfaces.trinidad.resource.DEBUG
   true
   
   
   
org.apache.myfaces.trinidad.CLIENT_STATE_MAX_TOKENS

   3
   
   
   
org.apache.myfaces.trinidad.CLIENT_STATE_METHOD

   all
   
   
   
org.apache.myfaces.trinidad.DIALOG_NAVIGATION_PREFIX

   userInputHere:
   
   
   
org.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER

   com.sun.facelets.FaceletViewHandler
   
   
   trinidad
   
org.apache.myfaces.trinidad.webapp.TrinidadFilter

   
   
   trinidad
   FacesServlet
   



   
   
org.apache.myfaces.webapp.StartupServletContextListener

   
   
   my.project.listener.ContextListener
   
   
   FacesServlet
   javax.faces.webapp.FacesServlet
   1
   
   
   resources
   
org.apache.myfaces.trinidad.webapp.ResourceServlet

   
   
   FacesServlet
   *.jsf
   
   
   resources
   /adf/*
   
   
   30
   

   
   index.jsp
   


Yours

S.Fassel


Steve Horne wrote:

Please post your web.xml.

“Many men go fishing all of their lives without knowing it is not fish 
they are after.”

- Henry David Thoreau


On Thu, Feb 26, 2009 at 3:51 AM, Stefan Fassel > wrote:


Hello again

I have decided to rephrace my Question from before

I have a running Application using:

JSF 1.1
Tomcat 5.5.23
Java 1.5
Facelets 1.1.14

Now I want to introduce the Trinidad 1.0.10 component framework.

There was a partial success since I got Trinidad to render the
first xhtml-file.

The problem here is, that when submitting the first page the same
page is reredered again and both
the Action Implements and Managed beans are never used.

This also happens when using an xhtml-file without Trinidad-Tags.

By removing Trinidad - replacing

org.apache.myfaces.trinidad.core
by
com.sun.facelets.FaceletViewHandler
in faces-config.xml - the Actions and Managed Beans are again
working as they were meant to.

This effect can be seen with and without using navigation-rules.

Maybe someone knows this error pattern...

Yours

S. Fassel








Re: [COMMUNITY] MyFaces += Jan-Kees van Andel

2009-02-26 Thread Simon Lessard
Congratulations, welcome in!

~ Simon

On Thu, Feb 26, 2009 at 5:49 AM, Hazem Saleh  wrote:

> Congratulations Jan-kees.
>
>
> On Thu, Feb 26, 2009 at 9:08 AM, Matthias Wessendorf wrote:
>
>> The Myfaces PMC is proud to announce a new addition to our community.
>>
>> Please welcome Jan-Kees van Andel as the newest MyFaces committer!
>> Jan-Kees is an active member of the myfaces community, especially in
>> the myfaces 2.0 section of the code
>>
>> @Jan-Kees: Please add yourself to the Master-POM at
>> https://svn.apache.org/repos/asf/myfaces/myfaces-master-pom/trunk/pom.xml
>>
>> -Matthias
>>
>> --
>> Matthias Wessendorf
>>
>> blog: http://matthiaswessendorf.wordpress.com/
>> sessions: http://www.slideshare.net/mwessendorf
>> twitter: http://twitter.com/mwessendorf
>>
>
>
>
> --
> Hazem Ahmed Saleh Ahmed
>
> Author of (The Definitive Guide to Apache MyFaces and Facelets):
>
> http://www.amazon.com/Definitive-Guide-Apache-MyFaces-Facelets/dp/1590597370
>
> Web blog: http://www.jroller.com/page/HazemBlog
>
> [Web 2.0] Google Maps Integration with JSF:
> http://code.google.com/p/gmaps4jsf/
>
> http://www.theserverside.com/tt/articles/article.tss?l=IntroductiontoGMaps4JSF
>


Re: [TRINIDAD] Problem moving from standard MyFaces to Trinidad

2009-02-26 Thread Steve Horne
Please post your web.xml.

“Many men go fishing all of their lives without knowing it is not fish they
are after.”
- Henry David Thoreau


On Thu, Feb 26, 2009 at 3:51 AM, Stefan Fassel  wrote:

> Hello again
>
> I have decided to rephrace my Question from before
>
> I have a running Application using:
>
> JSF 1.1
> Tomcat 5.5.23
> Java 1.5
> Facelets 1.1.14
>
> Now I want to introduce the Trinidad 1.0.10 component framework.
>
> There was a partial success since I got Trinidad to render the first
> xhtml-file.
>
> The problem here is, that when submitting the first page the same page is
> reredered again and both
> the Action Implements and Managed beans are never used.
>
> This also happens when using an xhtml-file without Trinidad-Tags.
>
> By removing Trinidad - replacing
> org.apache.myfaces.trinidad.core
> by
> com.sun.facelets.FaceletViewHandler
> in faces-config.xml - the Actions and Managed Beans are again working as
> they were meant to.
>
> This effect can be seen with and without using navigation-rules.
>
> Maybe someone knows this error pattern...
>
> Yours
>
> S. Fassel
>
>
>
>


Configuring panelTabbed component

2009-02-26 Thread Harry van Rijn
Hi,

I want the tr:panelTabbed component have my own style.
The standard rendering is not what I want, I like for instance
the tabs to be coloured blue, and the text be white within it.

Trying to find out myself takes a lot of time.
I tried the attributes inlineStyle/styleClass, but all I get is a coloured
tab with a ugly textbox in it, still with default appearance.
Is the tr:panelTabbed component completely configurable at all, I asked myself.

Where can I find documentation/examples about this?

With kind regards,

Harry van Rijn








selectOneRow component issue

2009-02-26 Thread Madhav Bhargava
Hi All,

I am using selectOneRow component in a t:datatable. On some occasions I need to 
disable the group of radio buttons not allowing the user to toggle to any other 
row in the table.
There is a disabled attribute for this component but even if I explicitly set 
disabled="true" for this component then also it receives focus.

I found a similar issue being logged sometime back: 
http://mail-archives.apache.org/mod_mbox/myfaces-dev/200705.mbox/%3c29164240.1178678115593.javamail.j...@brutus%3e
I see the attribute now but it does not disable the component. I guess this is 
a basic flaw with the component.

I am using tomahawk 1.1.7 & tomahawk sandbox 1.1.7 along with Sun JSF RI 1.1_02

Any help would be appreciated.

Thanks & Regards,
Madhav

 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are 
not 
to copy, disclose, or distribute this e-mail or its contents to any other 
person and 
any such actions are unlawful. This e-mail may contain viruses. Infosys has 
taken 
every reasonable precaution to minimize this risk, but is not liable for any 
damage 
you may sustain as a result of any virus in this e-mail. You should carry out 
your 
own virus checks before opening the e-mail or attachment. Infosys reserves the 
right to monitor and review the content of all messages sent to or from this 
e-mail 
address. Messages sent to or from this e-mail address may be stored on the 
Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***


[TRINIDAD] panelTabbed, complete bar(s) as link

2009-02-26 Thread Elian

Hi,

i use a panelTabbed-layout with relative large tab-bars. Unfortunately only
the text in the bars is used as navigation-link, not the bar(s) by itself.
Is there a way, the complete bar(s) are used for navigation?

thanks for the help

Elian
-- 
View this message in context: 
http://www.nabble.com/-TRINIDAD--panelTabbed%2C-complete-bar%28s%29-as-link-tp4577p4577.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



[TRINIDAD] Problem moving from standard MyFaces to Trinidad (Addition)

2009-02-26 Thread Stefan Fassel

Here is some addition to my recent posting.

org.apache.myfaces.lifecycle.LifecycleImpl

logs the following

"exiting from lifecycle.execute in RESTORE_VIEW(1) because getRenderResponse is true 
from one of the after listeners"

although xhtml-file is set to immediate="true".

Could this be the core of my problem described in the below posting?

Please respond.

Getting this costellation to run is somewhat time critical at the moment.

Yours

S.Fassel


--

Hello again

I have decided to rephrace my Question from before

I have a running Application using:

JSF 1.1
Tomcat 5.5.23
Java 1.5
Facelets 1.1.14

Now I want to introduce the Trinidad 1.0.10 component framework.

There was a partial success since I got Trinidad to render the first xhtml-file.

The problem here is, that when submitting the first page the same page is 
reredered again and both
the Action Implements and Managed beans are never used.

This also happens when using an xhtml-file without Trinidad-Tags.

By removing Trinidad - replacing 
org.apache.myfaces.trinidad.core

by
com.sun.facelets.FaceletViewHandler
in faces-config.xml - the Actions and Managed Beans are again working as they 
were meant to.

This effect can be seen with and without using navigation-rules.

Maybe someone knows this error pattern...

Yours

S. Fassel







Re: [COMMUNITY] MyFaces += Jan-Kees van Andel

2009-02-26 Thread Hazem Saleh
Congratulations Jan-kees.

On Thu, Feb 26, 2009 at 9:08 AM, Matthias Wessendorf wrote:

> The Myfaces PMC is proud to announce a new addition to our community.
>
> Please welcome Jan-Kees van Andel as the newest MyFaces committer!
> Jan-Kees is an active member of the myfaces community, especially in
> the myfaces 2.0 section of the code
>
> @Jan-Kees: Please add yourself to the Master-POM at
> https://svn.apache.org/repos/asf/myfaces/myfaces-master-pom/trunk/pom.xml
>
> -Matthias
>
> --
> Matthias Wessendorf
>
> blog: http://matthiaswessendorf.wordpress.com/
> sessions: http://www.slideshare.net/mwessendorf
> twitter: http://twitter.com/mwessendorf
>



-- 
Hazem Ahmed Saleh Ahmed

Author of (The Definitive Guide to Apache MyFaces and Facelets):
http://www.amazon.com/Definitive-Guide-Apache-MyFaces-Facelets/dp/1590597370

Web blog: http://www.jroller.com/page/HazemBlog

[Web 2.0] Google Maps Integration with JSF:
http://code.google.com/p/gmaps4jsf/
http://www.theserverside.com/tt/articles/article.tss?l=IntroductiontoGMaps4JSF


[TRINIDAD] Problem moving from standard MyFaces to Trinidad

2009-02-26 Thread Stefan Fassel

Hello again

I have decided to rephrace my Question from before

I have a running Application using:

JSF 1.1
Tomcat 5.5.23
Java 1.5
Facelets 1.1.14

Now I want to introduce the Trinidad 1.0.10 component framework.

There was a partial success since I got Trinidad to render the first xhtml-file.

The problem here is, that when submitting the first page the same page is 
reredered again and both
the Action Implements and Managed beans are never used.

This also happens when using an xhtml-file without Trinidad-Tags.

By removing Trinidad - replacing 
org.apache.myfaces.trinidad.core

by
com.sun.facelets.FaceletViewHandler
in faces-config.xml - the Actions and Managed Beans are again working as they 
were meant to.

This effect can be seen with and without using navigation-rules.

Maybe someone knows this error pattern...

Yours

S. Fassel





[Trinidad] Problem in PageflowScope - attribute's value available even after it is removed.

2009-02-26 Thread dushyant agarwal
Hi,
(In the following text, I am abbreviating Baccking Bean as BB)

 A JSF- Trinidad page (Page1.jsp, BB = Page1BB.java) has to be opened in a 
dialog. The page contains of a tr:outputText- id="txt", BB binding="txt". In 
its getter method  we have to set the value of the component  from an 
attribute-"ConfirmMsg" from the PageFlowScope.
 
If attribute's  value is found not null, then it is set on the component 
txt(say - msg1), otherwise a default value (say- msg2) is set on the 
component-txt.

After the value has been set, the attribute-"ConfirmMsg" is removed from the 
pageFlowScope as following:
RequestContext.getCurrentInstance().getPageFlowScope.remove("ConfirmMsg");

Within the same BB  (Page1BB) there is a static method which contains the code 
for programmatically
 launching the dialog of the same page whose BB it is.

Now another jsp page has two command buttons - submit and cancel , whose action 
methods are submitAction and cancelAction respectively.

In cancelAction I am calling the static method of Page1BB to launch a dialog 
containing Page1.jsp. As well as I am setting an attribute -"ConfirmMsg", in 
the PageFlowScope as following:
RequestContext.getCurrentInstance().getPageFlowScope.put("ConfirmMsg",msg1);

In submitAction, I am calling the static method of Page1BB to launch a dialog 
containing Page1.jsp. But I am not setting any attribute on PageFlowScope.

Step 1. Initially on clicking on "submit" a dialog is launched, which contains 
the default message-msg2. On returning from the dialog and Then on clicking on 
"cancel" again a dialog is launched with the message provided in 
PageFlowScope(msg1). 
Now in Page1BB, this attribute had been removed after its value was set on the 
component in
 the dialog.
Step 2. After returning again if we click on "submit" (not sending any params 
this time) the content in the dialog should be the default message (msg2) But 
it is coming as msg1- the value of the attribute that was removed.

However, if we clear the PageFlowScope inside the action method of the return 
button in the dialog page(by which we are returning from the dialog) then 
repeat steps 1 and 2 we get msg2 as desired in the dialog.

What might be the reason for this? Help please.

Thanks,
Dushyant
Then on clicking  on 




  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/