Re: Dynamic DataTables

2009-02-27 Thread Simon Kitching
On Fri, 2009-02-27 at 16:17 -0500, Vinaya Tirikkovalluru wrote:
> Hi,
> 
>  
> 
> I hope some of you might have already got the code to generate the
> Dynamic DataTables.

If you want help on emailing lists, you really need to write more
descriptive emails than this. "Dynamic DataTables" could mean many
different things...

Perhaps the tomahawk t:columns component is what you are looking for?
http://myfaces.apache.org/tomahawk-project/tomahawk12/tagdoc/t_columns.html

Regards, Simon



Dynamic DataTables

2009-02-27 Thread Vinaya Tirikkovalluru
Hi,

 

I hope some of you might have already got the code to generate the
Dynamic DataTables.

 

I appreciate if you could share.

 

Thanks

Vinaya



This electronic message is intended only for the use of the individual(s) or 
entity(ies) named above and may contain information which is privileged and/or 
confidential.  If you are not the intended recipient, be aware that any 
disclosure, copying, distribution, dissemination or use of the contents of this 
message is prohibited.  If you received this message in error, please notify 
the sender immediately.


Re: faces+mysql+tomcat and error in codification

2009-02-27 Thread Victor H De la Luz
On Fri, Feb 27, 2009 at 12:01 PM, Victor H De la Luz  wrote:
> On Fri, Feb 27, 2009 at 4:32 AM, Andrej Konkow
>  wrote:
>> 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
>>
>
>
> Thanks!
>
> But, if the utf8 is the explicit encoding in the .xhtml,
> ¿Why we need set the encoding again in the request in the server side?
> and the most important question:
> ¿Why the DB configuration influences in the codification of the stream
> from inputText?
>
>
> --
> ItZtLi
>

Now I understand!

The problem is in the POST encoding, I get the data always in latin1
codification.
When I get the data in the String variable in Java, the translation is
wrong because the request
have wrong codification (latin1) and I have the configuration for UTF8.

So, the variable have wrongs characters.

When I have the latin1 codification in the db, Tomcat makes the right
transl

Re: Configuring panelTabbed component

2009-02-27 Thread Elian

Hi

you could use the skinning selectors, like 

af|panelTabbed::tab {
background-color: #0099FF;
}

Skinning Selectors can be found on the MyFaces Webpage:
http://myfaces.apache.org/trinidad/skin-selectors.html


-- 
View this message in context: 
http://www.nabble.com/Configuring-panelTabbed-component-tp6510p22249019.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



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

2009-02-27 Thread Andrew Robinson
Input controls will remember their submitted values until they are cleared.
Have you made sure that the input text has never posted a value back? If so,
calling resetValue() is the correct solution, and not a work-around.

-Andrew

On Fri, Feb 27, 2009 at 12:51 AM,  wrote:

>  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
>


Re: faces+mysql+tomcat and error in codification

2009-02-27 Thread Victor H De la Luz
On Fri, Feb 27, 2009 at 4:32 AM, Andrej Konkow
 wrote:
> 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
>


Thanks!

But, if the utf8 is the explicit encoding in the .xhtml,
¿Why we need set the encoding again in the request in the server side?
and the most important question:
¿Why the DB configuration influences in the codification of the stream
from inputText?


-- 
ItZtLi


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

2009-02-27 Thread dev
Hello

I have allready been aware of this demo.
The configuration is not too different from my own, appart
from the demo using Spring.

Maybe the strange behaviour has something to do with validation?

Thanks for the answer

S.Fassel


there is a demo, facesgoodies (code.google.com/p/facesgoodies)
that runs on JSF 1.1 and Trinida 1.0.x and Facelets. Can you give
that a shot and compare it to your env ?

-M

On Fri, Feb 27, 2009 at 11:49 AM,   wrote:
> Adding these Servlet mappings did not solve my problem.
>
> Here is a description of the faulty application
>
> faces-config.xml:
>
> 
>
> 
org.apache.myfaces.trinidad.core

>
> 
> 
>
> MyFaces Core xhtml File:
>
> 
>  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> http://www.w3.org/1999/xhtml";
> xmlns:ui="http://java.sun.com/jsf/facelets";
> xmlns:h="http://java.sun.com/jsf/html";
> xmlns:f="http://java.sun.com/jsf/core";>
> 
> 
> Anfrage
> 
> 
> 
> 
> 
> Vorname  value="#{anfragePerson.vorname}"/>
> Nachname  value="#{anfragePerson.nachname}"/>
>  type="myapp.listener.ChangeActionListener"/>
> 
> 
> 
> 
>
> The same beaviour can be seen when using a Trinidad based page:
>
> xmlns:ui="http://java.sun.com/jsf/facelets";
>xmlns:h="http://java.sun.com/jsf/html";
>xmlns:f="http://java.sun.com/jsf/core";
>xmlns:tr="http://myfaces.apache.org/trinidad";
>title="Facelets">
>   
>value="#{anfragePerson.vorname}" />
>value="#{anfragePerson.nachname}" />
>   
>type="de.bund.bka.dad.bsp.listener.ChangeActionListener"/>
>   
>
> 
>
>
>
> Listener Action:
>
> public class ChangeActionListener implements ActionListener {
> public void processAction(ActionEvent arg0) throws
> AbortProcessingException {
> FacesContext facesContext = FacesContext.getCurrentInstance();
> Application application = facesContext.getApplication();
> ValueBinding valueBinding =
> application.createValueBinding("#{anfragePerson}");
> AnfragePerson anfragePerson = (AnfragePerson)
> valueBinding.getValue(facesContext);
> String vorname = anfragePerson.getVorname();
> anfragePerson.setVorname(anfragePerson.getNachname());
> anfragePerson.setNachname(vorname);
> }
> }
>
> 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">
> PT3
>
> 
> 
> javax.faces.DEFAULT_SUFFIX
> .xhtml
> 
> 
> javax.faces.STATE_SAVING_METHOD
> client
> 
>
> 
> 
> facelets.VIEW_MAPPINGS
> *.xhtml
> 
> 
> 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
> 
> 
> myapp.listener.ContextListener
> 
> 
> 
> FacesServlet
> javax.faces.webapp.FacesServlet
> 2
> 
> 
> FacesServlet
> *.jsf
> 
> 
> FacesServlet
> /faces/*
> 
> 
> 
> ResourcesServlet
>
> 
org.apache.myfaces.trinidad.webapp.ResourceServlet
> 1
> 
> 
> ResourcesServlet
> /adf/*
> 
> 
> 
> 30
> 
> 
> index.jsp
> 
> 
>
> I have been working on this problem for several days now and
> can't seem to find a sollution for it by myself.
>
> Please help.
>
> Yours
>
> S.Fassel
>
>
>
>
> I'm not sure, but I think I have read about problems u

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

2009-02-27 Thread Matthias Wessendorf
there is a demo, facesgoodies (code.google.com/p/facesgoodies)
that runs on JSF 1.1 and Trinida 1.0.x and Facelets. Can you give
that a shot and compare it to your env ?

-M

On Fri, Feb 27, 2009 at 11:49 AM,   wrote:
> Adding these Servlet mappings did not solve my problem.
>
> Here is a description of the faulty application
>
> faces-config.xml:
>
>     
>
> org.apache.myfaces.trinidad.core
>
> 
>     
>
> MyFaces Core xhtml File:
>
> 
>  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> http://www.w3.org/1999/xhtml";
> xmlns:ui="http://java.sun.com/jsf/facelets";
> xmlns:h="http://java.sun.com/jsf/html";
> xmlns:f="http://java.sun.com/jsf/core";>
> 
> 
> Anfrage
> 
> 
> 
> 
> 
> Vorname  value="#{anfragePerson.vorname}"/>
> Nachname  value="#{anfragePerson.nachname}"/>
>  type="myapp.listener.ChangeActionListener"/>
> 
> 
> 
> 
>
> The same beaviour can be seen when using a Trinidad based page:
>
>     xmlns:ui="http://java.sun.com/jsf/facelets";
>    xmlns:h="http://java.sun.com/jsf/html";
>    xmlns:f="http://java.sun.com/jsf/core";
>    xmlns:tr="http://myfaces.apache.org/trinidad";
>    title="Facelets">
>   
>    value="#{anfragePerson.vorname}" />
>    value="#{anfragePerson.nachname}" />
>   
>    type="de.bund.bka.dad.bsp.listener.ChangeActionListener"/>
>   
>    
> 
>
>
>
> Listener Action:
>
> public class ChangeActionListener implements ActionListener {
>     public void processAction(ActionEvent arg0) throws
> AbortProcessingException {
>         FacesContext facesContext = FacesContext.getCurrentInstance();
>         Application application = facesContext.getApplication();
>         ValueBinding valueBinding =
> application.createValueBinding("#{anfragePerson}");
>         AnfragePerson anfragePerson = (AnfragePerson)
> valueBinding.getValue(facesContext);
>         String vorname = anfragePerson.getVorname();
>         anfragePerson.setVorname(anfragePerson.getNachname());
>         anfragePerson.setNachname(vorname);
>     }
> }
>
> 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">
>     PT3
>
>     
>     
>         javax.faces.DEFAULT_SUFFIX
>         .xhtml
>     
>     
>         javax.faces.STATE_SAVING_METHOD
>         client
>     
>
>     
>     
>         facelets.VIEW_MAPPINGS
>         *.xhtml
>     
>     
>         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
>     
>     
>         myapp.listener.ContextListener
>     
>     
>     
>         FacesServlet
>         javax.faces.webapp.FacesServlet
>         2
>     
>     
>         FacesServlet
>         *.jsf
>     
>     
>         FacesServlet
>         /faces/*
>     
>     
>     
>         ResourcesServlet
>
> org.apache.myfaces.trinidad.webapp.ResourceServlet
>         1
>     
>     
>         ResourcesServlet
>         /adf/*
>     
>     
>     
>         30
>     
>     
>         index.jsp
>     
> 
>
> I have been working on this problem for several days now and
> can't seem to find a sollution for it by myself.
>
> Please help.
>
> Yours
>
> S.Fassel
>
>
>
>
> 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 i

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

2009-02-27 Thread dev
Adding these Servlet mappings did not solve my problem.

Here is a description of the faulty application

faces-config.xml:

    
        
org.apache.myfaces.trinidad.core
        
    

MyFaces Core xhtml File:


http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
http://www.w3.org/1999/xhtml";
xmlns:ui="http://java.sun.com/jsf/facelets";
xmlns:h="http://java.sun.com/jsf/html";
xmlns:f="http://java.sun.com/jsf/core";>


Anfrage





Vorname 
Nachname 






The same beaviour can be seen when using a Trinidad based page:

http://java.sun.com/jsf/facelets";
   xmlns:h="http://java.sun.com/jsf/html";
   xmlns:f="http://java.sun.com/jsf/core";
   xmlns:tr="http://myfaces.apache.org/trinidad";
   title="Facelets">
  
  
  
  
  
  
   




Listener Action:

public class ChangeActionListener implements ActionListener {
    public void processAction(ActionEvent arg0) throws AbortProcessingException 
{
        FacesContext facesContext = FacesContext.getCurrentInstance();
        Application application = facesContext.getApplication();
        ValueBinding valueBinding = 
application.createValueBinding("#{anfragePerson}");
        AnfragePerson anfragePerson = (AnfragePerson)    
valueBinding.getValue(facesContext);
        String vorname = anfragePerson.getVorname();
        anfragePerson.setVorname(anfragePerson.getNachname());
        anfragePerson.setNachname(vorname);
    }
}

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">
    PT3

    
    
        javax.faces.DEFAULT_SUFFIX
        .xhtml
    
    
        javax.faces.STATE_SAVING_METHOD
        client
    

    
    
        facelets.VIEW_MAPPINGS
        *.xhtml
    
    
        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
    
    
        myapp.listener.ContextListener
    
    
    
        FacesServlet
        javax.faces.webapp.FacesServlet
        2
    
    
        FacesServlet
        *.jsf
    
    
        FacesServlet
        /faces/*
    
    
    
        ResourcesServlet
        
org.apache.myfaces.trinidad.webapp.ResourceServlet
        1
    
    
        ResourcesServlet
        /adf/*
    
    
    
        30
    
    
        index.jsp
    


I have been working on this problem for several days now and
can't seem to find a sollution for it by myself.

Please help.

Yours

S.Fassel


 
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

Re: Microsoft windows look and feel for JSF

2009-02-27 Thread Matthias Wessendorf
Perhaps ADF Faces is something for you ?

Like:
http://jdevadf.oracle.com/dvtdemo-dvt-faces-demo-context-root/faces/dvtTagGuide/projectGantt.jspx

or:
http://jdevadf.oracle.com/adf-richclient-demo/faces/fileExplorer/index.jspx

see here for more:
http://www.oracle.com/technology/products/adf/adffaces/index.html

-Matthias

On Fri, Feb 27, 2009 at 10:53 AM,   wrote:
> Hi all,
>
> I am looking for an JSF library with a skin / theme / render kit, which 
> provides the look and feel of Microsoft windows / office and supports IE and 
> Firefox browsers.
>
> Thx for suggestions.
>
>
> Best regards,
> Tobias
>
>
> --
> Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: 
> http://www.gmx.net/de/go/multimessenger01
>



-- 
Matthias Wessendorf

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


[tableSuggestAjax] add graphicImage to columns ?

2009-02-27 Thread Jean-Paul DZISIAK

Hello,

is it possible to add graphicImage to a "tableSuggestAjax" ? When I add a 
"instead of "

Thanks
JEAN-PAUL DZISIAK

betweenKeyUp="300"

   
suggestedItemsMethod="#{searchKeywordBean.getSuggestedKeywordItems}"
   var="keywordItem"
   value="#{searchKeywordBean.userKeyword}">
   
   
   
   
 ==>
   









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

2009-02-27 Thread Bruno Aranda
Congratulations JK! And welcome to the team :-) There is always things to do
in the MyFaces world. Just keep the ideas coming :-)

Cheers,

Bruno

2009/2/26 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
>>
>>
>


Microsoft windows look and feel for JSF

2009-02-27 Thread menof
Hi all,

I am looking for an JSF library with a skin / theme / render kit, which 
provides the look and feel of Microsoft windows / office and supports IE and 
Firefox browsers.

Thx for suggestions.


Best regards,
Tobias


-- 
Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: 
http://www.gmx.net/de/go/multimessenger01


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

2009-02-27 Thread jankeesvanandel

Hi,

Some thoughts:
- I've already created a Jira ticket for the annotation processing stuff  
and submitted an initial patch with a quick and dirty implementation. I  
didn't want to implement the feature and refactor in the same patch.
- Currently, I'm using the xbean-finder library from Geronimo for the  
processing stuff. This library uses ASM under the hood which worries me,  
since ASM is a widely used library and it has lead to many classloading  
issues because of other frameworks packaging different versions of ASM.
- I have also created an annotation scanner of my own, which is actually  
quite fast and doesn't have a dependency on any library, except Java.
- The class which is responsible for configuring myfaces is  
FacesConfigurator. I've inserted my annotation scanning code into this  
class, which will become quite cumbersome if I continue this way.
- My current plan is to use a Strategy implementation. The  
FacesConfigurator contains a list of Configurator instances. This list can  
be extended by the application developer by providing a configuration  
parameter or something like that. This will enable developers to create  
Spring or Guice Configurators. However, I think there are not many vendors  
who will use this, since it is specific to MyFaces. But providing extension  
hooks is always a good idea IMHO. I don't think that making the annotation  
scanning code pluggable is very useful since the xbean-finder library is  
already very easy to use.


I'm interested in your plans. Please compose a new message and link back to  
this one to keep things clear.


/JK

On Feb 26, 2009 9:31pm, Curtiss Howard  wrote:

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



jankeesvanan...@gmail.com> 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 work.gr...@gmail.com>



>>



>> Hi Jan-Kees,



>>



>> Congratulations and welcome !



>>


>> On Thu, Feb 26, 2009 at 8:14 AM, Simon Lessard  
simon.lessar...@gmail.com>



>> wrote:



>>>



>>> Congratulations, welcome in!



>>>



>>> ~ Simon



>>>



>>> On Thu, Feb 26, 2009 at 5:49 AM, Hazem Saleh haz...@apache.org> wrote:







 Congratulations Jan-kees.






 On Thu, Feb 26, 2009 at 9:08 AM, Matthias Wessendorf  
mat...@apache.org>



 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



>>



>



>