s:fishEyeNavigationMenu + facelets

2008-08-26 Thread Angel Miralles Arevalo
Hi everybody, anyone working with facelets? I'm trying to integrate the sandbox 
component  s:FishEyeNavigationMenu but I get the following 
error:javax.faces.FacesException
at org.apache.myfaces.application.ApplicationImpl.createComponent(
at com.sun.facelets.tag.jsf.ComponentHandler.createComponent(
at com.sun.facelets.tag.jsf.ComponentHandler.apply(
at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(
at com.sun.facelets.tag.jsf.ComponentHandler.apply(
at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(
at com.sun.facelets.tag.jsf.ComponentHandler.apply(
at com.sun.facelets.tag.ui.CompositionHandler.apply(
I have defined the tag in the configuration tag file 
sandbox.taglib.xml:tag    tag-namefishEyeNavigationMenu /tag-name    
component        
component-typeorg.apache.myfaces.FishEyeNavigationMenu/component-type       
 renderer-typeorg.apache.myfaces.FishEyeNavigationMenu/renderer-type    
/componentI'm using the libraries:
        
tomahawk-sandbox-1.1.6.jar
tomahawk-1.1.6.jar
myfaces-api-1.2.2.jar
myfaces-impl-1.2.2.jar
Thanks in advanced, ;)/tag: Undefined component type 
org.apache.myfaces.FishEyeNavigationMenuApplicationImpl.java:632)ComponentHandler.java:243)ComponentHandler.java:139)ComponentHandler.java:314)ComponentHandler.java:169)ComponentHandler.java:314)ComponentHandler.java:169)CompositionHandler.java:119)

__
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
Regístrate ya - http://correo.yahoo.es 

sandbox + facelets

2008-06-30 Thread Angel Miralles Arevalo
Hi everybody, someone using both of them? Sandbox and facelets? I'd like to 
check if is there anyone getting started all the sandbox components. I can't 
use modalDialog correctly.
Thanks in advanced.


  __ 
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.

Re: sandbox + facelets

2008-06-30 Thread Angel Miralles Arevalo
Hi Simon, could you please send me an example of s:modalDialog? I got started 
almost all the sandbox components but modal dialog doesn't work correctly, for 
example, it is display on screen always. I have the same configuration you 
have. This is my code:
1. Create sandbox.taglib.xml
2. Define it on web.xml:
    
context-paramparam-namefacelets.LIBRARIES/param-nameparam-value/WEB-INF/tomahawk.taglib.xml;/WEB-INF/sandbox.taglib.xml/param-value 
3. Specify tags:
 tag    tag-namemodalDialog/tag-name    component        
component-typeorg.apache.myfaces.ModalDialog/component-type        
renderer-typeorg.apache.myfaces.ModalDialog/renderer-type    /component 
4. Use tag:
 
 ui:composition    s:modalDialog dialogId=FormUsuario 
dialogVar=dojoDialogUsuario    
dialogAttr=bgColor='white' bgOpacity='0.5' toggle='fade' 
toggleDuration='250'   hiderIds=guardar 
styleClass=    h:form id=AutorizacionUsuarioForm        h:panelGrid 
cellpadding=0 cellspacing=0 border=0 columns=1 
styleClass=porcen60            h:panelGroup                t:outputText 
value=#{msg.autorizacion_usuario_usuario}/t:outputText                
t:inputText value=#{autorizacionUsuarioBean.strUsuario} size=25/          
  /h:panelGroup            h:panelGroup                t:commandButton 
id=guardar forceId=true value=#{msg.boton_guardar} 
onclick=dojo.widget.byId('FormUsuario').hide();/           
 /h:panelGroup/h:panelGrid    /h:form 
    h:form id=AutorizacionForm
    
            ...
    t:commandLink onclick=dojoDialogUsuario.show();                 
   h:graphicImage value=/img/detalles/candado.gif styleClass=mano/        
    .    /h:form//ui:compositionjsp:root            
/t:commandLink    /s:modalDialogjsp:root 
xmlns:jsp=http://java.sun.com/JSP/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:t=http://myfaces.apache.org/tomahawk    
xmlns:s=http://myfaces.apache.org/sandbox    xmlns:xxx=/WEB-INF/xxx.tld    
version=2.0/tag/context-param
!-- Tomahwak/Sandbox con facelets --



- Mensaje original 
De: [EMAIL PROTECTED] [EMAIL PROTECTED]
Para: MyFaces Discussion users@myfaces.apache.org
Enviado: lunes, 30 de junio, 2008 17:18:32
Asunto: Re: sandbox + facelets

Angel Miralles Arevalo schrieb:
 Hi everybody, someone using both of them? Sandbox and facelets? I'd 
 like to check if is there anyone getting started all the sandbox 
 components. I can't use modalDialog correctly.
Yes, we are using these together:
* myfaces-1.2.x
* tomahawk 1.1.x
* sandbox
* s:modalDialog
* facelets
and it all works ok.

Regards,
Simon


  __ 
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.

s:modalDialog + facelets

2008-06-26 Thread Angel Miralles Arevalo
Hey everybody, I'm trying to integrate tomahawk with facelets, following the 
steps:
 
1. Create sandbox.taglib.xml
2. Define it on web.xml:
    
context-paramparam-namefacelets.LIBRARIES/param-nameparam-value/WEB-INF/tomahawk.taglib.xml;/WEB-INF/sandbox.taglib.xml/param-value 
3. Specify tags:
 tag    tag-namemodalDialog/tag-name    component        
component-typeorg.apache.myfaces.ModalDialog/component-type        
renderer-typeorg.apache.myfaces.ModalDialog/renderer-type    /component 
4. Use tag:
 
 ui:composition    s:modalDialog dialogId=FormUsuario 
dialogVar=dojoDialogUsuario    
dialogAttr=bgColor='white' bgOpacity='0.5' toggle='fade' 
toggleDuration='250'   hiderIds=guardar 
styleClass=    h:form id=AutorizacionUsuarioForm        h:panelGrid 
cellpadding=0 cellspacing=0 border=0 columns=1 
styleClass=porcen60            h:panelGroup                t:outputText 
value=#{msg.autorizacion_usuario_usuario}/t:outputText                
t:inputText value=#{autorizacionUsuarioBean.strUsuario} size=25/          
  /h:panelGroup            h:panelGroup                t:commandButton 
id=guardar forceId=true value=#{msg.boton_guardar} 
onclick=dojo.widget.byId('FormUsuario').hide();/           
 /h:panelGroup/h:panelGrid    /h:form 
    h:form id=AutorizacionForm
    
            ...
    t:commandLink onclick=dojoDialogUsuario.show();                 
   h:graphicImage value=/img/detalles/candado.gif styleClass=mano/        
    .    /h:form/
 
 
 
 
 /ui:compositionjsp:root            /t:commandLink    
/s:modalDialogjsp:root xmlns:jsp=http://java.sun.com/JSP/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:t=http://myfaces.apache.org/tomahawk    
xmlns:s=http://myfaces.apache.org/sandbox    xmlns:xxx=/WEB-INF/xxx.tld    
version=2.0/tag/context-param
!-- Tomahwak/Sandbox con facelets --


  __ 
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.

Re: s:modalDialog + facelets

2008-06-17 Thread Angel Miralles Arevalo
Hi James, I have used modalDialog several times. It's since I updated to 
myfaces 1.2 and faceletes when it doesn´t works.
Thanks for your help.


- Mensaje original 
De: James Clinton [EMAIL PROTECTED]
Para: MyFaces Discussion users@myfaces.apache.org
Enviado: lunes, 16 de junio, 2008 19:26:58
Asunto: RE: s:modalDialog + facelets


I don’t have any now because I use modal from RichFaces.  
 
I assume you have seen the examples here (which seem to be broken)
http://example.irian.at/example-sandbox-20080616/home.jsf
 



From:Angel Miralles Arevalo [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 16, 2008 2:56 PM
To: MyFaces Discussion
Subject: Re: s:modalDialog + facelets
 
I proved both of them FF and IE, and it doesn't work in any. It is strange 
because the content of the modalDialog is painted on the screen although it 
must be hide (see point 4 in the previous mail).
 
Can you send me some example please, of working code. Thanks in advanced! ;)
- Mensaje original 
De: James Clinton [EMAIL PROTECTED]
Para : MyFaces Discussion users@myfaces.apache.org
Enviado: lunes, 16 de junio, 2008 15:08:27
Asunto: RE: s:modalDialog + facelets
This only works in FF as far as I know.  Are you using IE?
 
RichFaces has a modal which works in both browsers, this sits well with 
Tomahawk too...
 
 



From:Angel Miralles Arevalo [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 16, 2008 12:54 PM
To: MyFaces Discussion
Subject: Re: s:modalDialog + facelets
 
Hi James, could you please send the message again? It seems like an internal 
error on the server and I can't read your response.
 
Thanks in advanced.
 
- Mensaje original 
De: Angel Miralles Arevalo [EMAIL PROTECTED]
Para : users@myfaces.apache.org
Enviado: viernes, 13 de junio, 2008 12:07:00
Asunto: s:modalDialog + facelets
Hey everybody, I'm trying to integrate tomahawk with facelets, following the 
steps:
 
1. Create sandbox.taglib.xml
2. Define it on web.xml:
    
!-- Tomahwak/Sandbox con facelets --
context-param
param-namefacelets.LIBRARIES/param-name
param-value/WEB-INF/tomahawk.taglib.xml;/WEB-INF/sandbox.taglib.xml/param-value
/context-param
 
3. Specify tags:
 
tag
    tag-namemodalDialog/tag-name
    component
        component-typeorg.apache.myfaces.ModalDialog/component-type
        renderer-typeorg.apache.myfaces.ModalDialog/renderer-type
    /component
/tag
 
4. Use tag:
 
jsp:root xmlns:jsp=http://java.sun.com/JSP/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:t=http://myfaces.apache.org/tomahawk;
    xmlns:s=http://myfaces.apache.org/sandbox;
    xmlns:xxx=/WEB-INF/xxx.tld
    version=2.0
 
ui:composition
    s:modalDialog dialogId=FormUsuario dialogVar=dojoDialogUsuario 
   dialogAttr=bgColor='white' bgOpacity='0.5' 
toggle='fade' toggleDuration='250'
   hiderIds=guardar styleClass=
    h:form id=AutorizacionUsuarioForm
        h:panelGrid cellpadding=0 cellspacing=0 border=0 columns=1 
styleClass=porcen60
            h:panelGroup
                t:outputText 
value=#{msg.autorizacion_usuario_usuario}/t:outputText 
                t:inputText value=#{autorizacionUsuarioBean.strUsuario} 
size=25/
            /h:panelGroup
            h:panelGroup
                t:commandButton id=guardar forceId=true 
value=#{msg.boton_guardar} onclick=dojo.widget.byId('FormUsuario').hide();/
            /h:panelGroup
/h:panelGrid
    /h:form
    /s:modalDialog
 
    
    h:form id=AutorizacionForm
            ...
    t:commandLink onclick=dojoDialogUsuario.show();
                    h:graphicImage value=/img/detalles/candado.gif 
styleClass=mano/
            /t:commandLink
            .
    /h:form
/ui:composition
/jsp:root
 
 
 
 
But I don´t get it working, always javascript problem: dojoDialogUsuario 
doesn't exists. Moreover when I display the view the modal dialog is on the 
screen, it isn't hide.
I use other sandbox components like s:pprPanelGroup and it works perfectly.
 
Any idea what's happening?
 
Thanks in advanced.
 
 




Enviado desde Correo Yahoo!
La bandeja de entrada más inteligente.
 




Enviado desde Correo Yahoo!
La bandeja de entrada más inteligente.
DISCLAIMER: This e-mail is confidential and may also be legally privileged. If 
you are not the intended recipient, use of the information contained in this 
e-mail (including disclosure, copying or distribution) is prohibited and may be 
unlawful. Please inform the sender and delete the message immediately from your 
system.  This e-mail is attributed to the sender and may not necessarily 
reflect the views of the Patsystems Group and no member of the Patsystems Group 
accepts any liability for any action taken
 in reliance on the contents of this e-mail (other than where it has

Re: s:modalDialog + facelets

2008-06-16 Thread Angel Miralles Arevalo
Hi James, could you please send the message again? It seems like an internal 
error on the server and I can't read your response.
 
Thanks in advanced.



- Mensaje original 
De: Angel Miralles Arevalo [EMAIL PROTECTED]
Para: users@myfaces.apache.org
Enviado: viernes, 13 de junio, 2008 12:07:00
Asunto: s:modalDialog + facelets


Hey everybody, I'm trying to integrate tomahawk with facelets, following the 
steps:
 
1. Create sandbox.taglib.xml
2. Define it on web.xml:
    
context-paramparam-namefacelets.LIBRARIES/param-nameparam-value/WEB-INF/tomahawk.taglib.xml;/WEB-INF/sandbox.taglib.xml/param-value 
3. Specify tags:
 tag    tag-namemodalDialog/tag-name    component        
component-typeorg.apache.myfaces.ModalDialog/component-type        
renderer-typeorg.apache.myfaces.ModalDialog/renderer-type    /component 
4. Use tag:
 
 ui:composition    s:modalDialog dialogId=FormUsuario 
dialogVar=dojoDialogUsuario    
dialogAttr=bgColor='white' bgOpacity='0.5' toggle='fade' 
toggleDuration='250'   hiderIds=guardar 
styleClass=    h:form id=AutorizacionUsuarioForm        h:panelGrid 
cellpadding=0 cellspacing=0 border=0 columns=1 
styleClass=porcen60            h:panelGroup                t:outputText 
value=#{msg.autorizacion_usuario_usuario}/t:outputText                
t:inputText value=#{autorizacionUsuarioBean.strUsuario} size=25/          
  /h:panelGroup            h:panelGroup                t:commandButton 
id=guardar forceId=true value=#{msg.boton_guardar} 
onclick=dojo.widget.byId('FormUsuario').hide();/           
 /h:panelGroup/h:panelGrid    /h:form 
    h:form id=AutorizacionForm
    
            ...
    t:commandLink onclick=dojoDialogUsuario.show();                 
   h:graphicImage value=/img/detalles/candado.gif styleClass=mano/        
    .    /h:form/
 
 
 
 
 
But I don´t get it working, always javascript problem: dojoDialogUsuario 
doesn't exists. Moreover when I display the view the modal dialog is on the 
screen, it isn't hide.
I use other sandbox components like s:pprPanelGroup and it works perfectly.
 
Any idea what's happening?
 
Thanks in advanced./ui:compositionjsp:root            /t:commandLink    
/s:modalDialogjsp:root xmlns:jsp=http://java.sun.com/JSP/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:t=http://myfaces.apache.org/tomahawk    
xmlns:s=http://myfaces.apache.org/sandbox    xmlns:xxx=/WEB-INF/xxx.tld    
version=2.0/tag/context-param
!-- Tomahwak/Sandbox con facelets --


Enviado desde Correo Yahoo!
La bandeja de entrada más inteligente.



  __ 
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.

Re: s:modalDialog + facelets

2008-06-16 Thread Angel Miralles Arevalo
I proved both of them FF and IE, and it doesn't work in any. It is strange 
because the content of the modalDialog is painted on the screen although it 
must be hide (see point 4 in the previous mail).
Can you send me some example please, of working code. Thanks in advanced! ;)


- Mensaje original 
De: James Clinton [EMAIL PROTECTED]
Para: MyFaces Discussion users@myfaces.apache.org
Enviado: lunes, 16 de junio, 2008 15:08:27
Asunto: RE: s:modalDialog + facelets


This only works in FF as far as I know.  Are you using IE?
 
RichFaces has a modal which works in both browsers, this sits well with 
Tomahawk too...
 
 



From:Angel Miralles Arevalo [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 16, 2008 12:54 PM
To: MyFaces Discussion
Subject: Re: s:modalDialog + facelets
 
Hi James, could you please send the message again? It seems like an internal 
error on the server and I can't read your response.
 
Thanks in advanced.
 
- Mensaje original 
De: Angel Miralles Arevalo [EMAIL PROTECTED]
Para : users@myfaces.apache.org
Enviado: viernes, 13 de junio, 2008 12:07:00
Asunto: s:modalDialog + facelets
Hey everybody, I'm trying to integrate tomahawk with facelets, following the 
steps:
 
1. Create sandbox.taglib.xml
2. Define it on web.xml:
    
!-- Tomahwak/Sandbox con facelets --
context-param
param-namefacelets.LIBRARIES/param-name
param-value/WEB-INF/tomahawk.taglib.xml;/WEB-INF/sandbox.taglib.xml/param-value
/context-param
 
3. Specify tags:
 
tag
    tag-namemodalDialog/tag-name
    component
        component-typeorg.apache.myfaces.ModalDialog/component-type
        renderer-typeorg.apache.myfaces.ModalDialog/renderer-type
    /component
/tag
 
4. Use tag:
 
jsp:root xmlns:jsp=http://java.sun.com/JSP/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:t=http://myfaces.apache.org/tomahawk;
    xmlns:s=http://myfaces.apache.org/sandbox;
    xmlns:xxx=/WEB-INF/xxx.tld
    version=2.0
 
ui:composition
    s:modalDialog dialogId=FormUsuario dialogVar=dojoDialogUsuario 
   dialogAttr=bgColor='white' bgOpacity='0.5' 
toggle='fade' toggleDuration='250'
   hiderIds=guardar styleClass=
    h:form id=AutorizacionUsuarioForm
        h:panelGrid cellpadding=0 cellspacing=0 border=0 columns=1 
styleClass=porcen60
            h:panelGroup
                t:outputText 
value=#{msg.autorizacion_usuario_usuario}/t:outputText 
                t:inputText value=#{autorizacionUsuarioBean.strUsuario} 
size=25/
            /h:panelGroup
            h:panelGroup
                t:commandButton id=guardar forceId=true 
value=#{msg.boton_guardar} onclick=dojo.widget.byId('FormUsuario').hide();/
            /h:panelGroup
/h:panelGrid
    /h:form
    /s:modalDialog
 
    
    h:form id=AutorizacionForm
            ...
    t:commandLink onclick=dojoDialogUsuario.show();
                    h:graphicImage value=/img/detalles/candado.gif 
styleClass=mano/
            /t:commandLink
            .
    /h:form
/ui:composition
/jsp:root
 
 
 
 
But I don´t get it working, always javascript problem: dojoDialogUsuario 
doesn't exists. Moreover when I display the view the modal dialog is on the 
screen, it isn't hide.
I use other sandbox components like s:pprPanelGroup and it works perfectly.
 
Any idea what's happening?
 
Thanks in advanced.
 
 




Enviado desde Correo Yahoo!
La bandeja de entrada más inteligente.
 




Enviado desde Correo Yahoo!
La bandeja de entrada más inteligente.
DISCLAIMER: This e-mail is confidential and may also be legally privileged. If 
you are not the intended recipient, use of the information contained in this 
e-mail (including disclosure, copying or distribution) is prohibited and may be 
unlawful. Please inform the sender and delete the message immediately from your 
system.  This e-mail is attributed to the sender and may not necessarily 
reflect the views of the Patsystems Group and no member of the Patsystems Group 
accepts any liability for any action taken in reliance on the contents of this 
e-mail (other than where it has a legal or regulatory obligation to do so) or 
for the consequences of any computer viruses which may have been transmitted by 
this e-mail. The Patsystems Group comprises Patsystems plc and its subsidiary 
group of companies.



  __ 
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.

s:modalDialog + facelets

2008-06-13 Thread Angel Miralles Arevalo
Hey everybody, I'm trying to integrate tomahawk with facelets, following the 
steps:
1. Create sandbox.taglib.xml
2. Define it on web.xml:
    
context-paramparam-namefacelets.LIBRARIES/param-nameparam-value/WEB-INF/tomahawk.taglib.xml;/WEB-INF/sandbox.taglib.xml/param-value3.
 Specify tags:tag    tag-namemodalDialog/tag-name    component        
component-typeorg.apache.myfaces.ModalDialog/component-type        
renderer-typeorg.apache.myfaces.ModalDialog/renderer-type    /component4. 
Use tag:ui:composition    s:modalDialog dialogId=FormUsuario 
dialogVar=dojoDialogUsuario    
dialogAttr=bgColor='white' bgOpacity='0.5' toggle='fade' 
toggleDuration='250'   hiderIds=guardar 
styleClass=    h:form id=AutorizacionUsuarioForm        h:panelGrid 
cellpadding=0 cellspacing=0 border=0 columns=1 
styleClass=porcen60            h:panelGroup                t:outputText
 value=#{msg.autorizacion_usuario_usuario}/t:outputText                
t:inputText value=#{autorizacionUsuarioBean.strUsuario} size=25/          
  /h:panelGroup            h:panelGroup                t:commandButton 
id=guardar forceId=true value=#{msg.boton_guardar} 
onclick=dojo.widget.byId('FormUsuario').hide();/            
/h:panelGroup/h:panelGrid    /h:form    h:form 
id=AutorizacionForm
    
            ...
    t:commandLink onclick=dojoDialogUsuario.show();                 
   h:graphicImage value=/img/detalles/candado.gif styleClass=mano/        
    .    /h:form/
 
But I don´t get it working, always javascript problem: dojoDialogUsuario 
doesn't exists. Moreover when I display the view the modal dialog is on the 
screen, it isn't hide.
I use other sandbox components like s:pprPanelGroup and it works perfectly.
Any idea what's happening?
Thanks in advanced./ui:compositionjsp:root            /t:commandLink    
/s:modalDialogjsp:root xmlns:jsp=http://java.sun.com/JSP/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:t=http://myfaces.apache.org/tomahawk    
xmlns:s=http://myfaces.apache.org/sandbox    xmlns:xxx=/WEB-INF/xxx.tld    
version=2.0/tag/context-param
!-- Tomahwak/Sandbox con facelets --


  __ 
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.

MyFaces and the RI

2008-04-27 Thread Angel Miralles Arevalo
Hi everybody, I'm updating to jboss 4.2.2 but I have some problems with the 
internal jsf implementation. Is there any way of eliminate the RI 
jsf-implementation? I have tried:

1. delete the jsf-lib:
jboss-4.2.2.GA\server\default\deploy\jboss-web.deployer\jsf-libs

2. change the implementation for myfaces and tomahawk:  
jboss-4.2.2.GA\server\default\deploy\jboss-web.deployer\conf\web.xml

init-param
   descriptionJSF standard tlds/description
   param-nametagLibJar0/param-name
   param-valuejsf-libs/jsf-impl.jar/param-value
/init-param


---

init-param
   descriptionJSF standard tlds/description
   param-nametagLibJar0/param-name
   param-valuejsf-libs/myfaces-impl-1.2.2.jar/param-value
/init-param
init-param
   descriptionJSF standard tlds/description
   param-nametagLibJar1/param-name
   param-valuejsf-libs/tomahawk-1.1.6.jar/param-value
/init-param

3. Disabling the implementation through: (my app) web.xml

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

I always get the following when enter at welcome page:

ERROR [MyfacesConfig] Both MyFaces and the RI are on your classpath. Please 
make sure to use only one of the two JSF-implementations.


I'm using the following distributions:

myfaces-impl-1.2.2
tomahawk-1.1.6

Thanks in advanced!!!


  __ 
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.

FacesContext not found

2008-04-23 Thread Angel Miralles Arevalo
Hi everybody, I'm trying to migrate to jboss 4.2.2. I'm using distributions for 
Faces:

myfaces-api-1.2.2.jar
myfaces-impl-1.2.2.jar
tomahawk-1.1.6.jar
tomahawk-sandbox-1.1.6.jar

I get the fllowing error:

11:14:20,468 ERROR [[jsp]] El Servlet.service() para servlet jsp lanzó una 
excepción
java.lang.RuntimeException: FacesContext not found
at 
javax.faces.webapp.UIComponentClassicTagBase.getFacesContext(UIComponentClassicTagBase.java:238)
at 
javax.faces.webapp.UIComponentClassicTagBase.getPreviousJspIdsSet(UIComponentClassicTagBase.java:1219)
at 
javax.faces.webapp.UIComponentClassicTagBase.checkIfItIsInAnIterator(UIComponentClassicTagBase.java:1204)
at 
javax.faces.webapp.UIComponentClassicTagBase.setJspId(UIComponentClassicTagBase.java:165)
   ...

My web.xml configuration:

!-- Definicion de ficheros de configuracion Faces --
  context-param
 param-namejavax.faces.CONFIG_FILES/param-name
 param-value/WEB-INF/faces-config-beans.xml, 
/WEB-INF/faces-config-navigations.xml/param-value
 /context-param
  
  !-- Definicion de tiles --
  context-param
descriptionDefinicion de los Tiles/description
param-nametiles-definitions/param-name
param-value/WEB-INF/tiles-defs.xml/param-value
  /context-param
  
  !-- Contexto para desactivar ls imaplementacion jsf de Jboss --
  context-param
 param-nameorg.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL/param-name
 param-valuetrue/param-value
 /context-param
 
  !-- Definicion de contexto de Spring --
  listener

listener-classorg.springframework.web.context.ContextLoaderListener/listener-class
  /listener
  
  listener
  
listener-classorg.apache.myfaces.webapp.StartupServletContextListener/listener-class
  /listener
  
  !-- Faces Servlet --
  servlet
servlet-nameFaces Servlet/servlet-name
servlet-classjavax.faces.webapp.FacesServlet/servlet-class
load-on-startup0/load-on-startup
  /servlet
  servlet-mapping
servlet-nameFaces Servlet/servlet-name
url-pattern/faces/*/url-pattern
  /servlet-mapping
  
  !-- Pagina de bienvenida --
  welcome-file-list
welcome-fileindex.jsp/welcome-file
  /welcome-file-list

Notice that I have already disabled the built-in jsf implementation for jboss. 
Any idea why is this happening? Any problem of compatibility? 

Thanks in advanced!!! ;)


  __ 
Yahoo! Solidario. Intercambia los objetos que ya no necesitas y ayuda a 
mantener un entorno más ecológico.

Re: FacesContext not found

2008-04-23 Thread Angel Miralles Arevalo
You were right, it is a problem accesing, but I get another exception.

I'm accessing through tiles. Well, welcome page is index.jsp, its content is:

[EMAIL PROTECTED] uri=http://jakarta.apache.org/struts/tags-tiles; 
prefix=tiles%
tiles:insert definition=autorizacion.tiles flush=true/

The tiles-defs.xml have the configuration:

tiles-definitions
definition name=.arbol path=/WEB-INF/plantillas/arbol.tpl.jsp
put name=head value=/WEB-INF/comun/head.jsp /
put name=cabecera value=/WEB-INF/comun/cabecera.jsp /
put name=arbol value= /
put name=detalle value= /
put name=pie value=/WEB-INF/comun/pie.jsp /
/definition

!-- *** PAGINAS * --
definition name=autorizacion.tiles extends=.arbol
put name=arbol 
value=/WEB-INF/modulos/autorizacion/autorizacion_arbol.jsp /
put name=detalle 
value=/WEB-INF/modulos/autorizacion/autorizacion_detalle.jsp /
/definition
/tiles-definitions

When I invoke welcome page from web.xml index.jsp. I get the exception:

   javax.servlet.jsp.JspException: Can't get definitions factory from context.
at 
org.apache.struts.taglib.tiles.InsertTag.processDefinitionName(InsertTag.java:577)
at 
org.apache.struts.taglib.tiles.InsertTag.createTagHandler(InsertTag.java:476)
at org.apache.struts.taglib.tiles.InsertTag.doStartTag(InsertTag.java:438)

Thanks in advanced!!



 

- Mensaje original 
De: Cagatay Civici [EMAIL PROTECTED]
Para: MyFaces Discussion users@myfaces.apache.org
Enviado: miércoles, 23 de abril, 2008 12:56:24
Asunto: Re: FacesContext not found

 How do you access your JSF pages?

/faces/sth.jsp

Angel Miralles Arevalo wrote: 
Hi
everybody, I'm trying to migrate to jboss 4.2.2. I'm using
distributions for Faces:

myfaces-api-1.2.2.jar
myfaces-impl-1.2.2.jar
tomahawk-1.1.6.jar
tomahawk-sandbox-1.1.6.jar

I get the fllowing error:

11:14:20,468 ERROR [[jsp]] El
Servlet.service() para servlet jsp lanzó una excepción
java.lang.RuntimeException:
FacesContext not found
at
javax.faces.webapp.UIComponentClassicTagBase.getFacesContext(UIComponentClassicTagBase.java:238)
at
javax.faces.webapp.UIComponentClassicTagBase.getPreviousJspIdsSet(UIComponentClassicTagBase.java:1219)
at
javax.faces.webapp.UIComponentClassicTagBase.checkIfItIsInAnIterator(UIComponentClassicTagBase.java:1204)
at
javax.faces.webapp.UIComponentClassicTagBase.setJspId(UIComponentClassicTagBase.java:165)
   ...

My web.xml configuration:

!-- Definicion de ficheros de configuracion Faces --
  context-param
 param-namejavax.faces.CONFIG_FILES/param-name
 param-value/WEB-INF/faces-config-beans.xml,
/WEB-INF/faces-config-navigations.xml/param-value
 /context-param
  
  !-- Definicion de tiles --
  context-param
descriptionDefinicion de los Tiles/description
param-nametiles-definitions/param-name
param-value/WEB-INF/tiles-defs.xml/param-value
  /context-param
  
  !-- Contexto para desactivar ls imaplementacion jsf de Jboss
--
  context-param

param-nameorg.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL/param-name
 param-valuetrue/param-value
 /context-param
 
  !-- Definicion de contexto de Spring --
  listener
   
listener-classorg.springframework.web.context.ContextLoaderListener/listener-class
  /listener
  
  listener
 
listener-classorg.apache.myfaces.webapp.StartupServletContextListener/listener-class
  /listener
  
  !-- Faces Servlet --
  servlet
servlet-nameFaces Servlet/servlet-name
   
servlet-classjavax.faces.webapp.FacesServlet/servlet-class
load-on-startup0/load-on-startup
  /servlet
  servlet-mapping
servlet-nameFaces Servlet/servlet-name
url-pattern/faces/*/url-pattern
  /servlet-mapping
  
  !-- Pagina de bienvenida --
  welcome-file-list
welcome-fileindex.jsp/welcome-file
  /welcome-file-list

Notice that I have already disabled the built-in jsf implementation for
jboss. Any idea why is this happening? Any problem of compatibility? 

Thanks in advanced!!! ;)




Enviado desde Correo
Yahoo!
La bandeja de entrada más inteligente.


  __ 
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.

problem with tree2

2007-11-02 Thread Angel Miralles Arevalo
Hi all!

I hava a problem when i do click several times in the tree. I lose the request 
and i am sent to the login.  I do click several times without waiting to load 
the page. Do you have this behaviour?

Thanks!





   
__ 
Pregunta, Responde, Descubre. 
Comparte tus consejos y opiniones con los usuarios de Yahoo! Respuestas 
http://es.answers.yahoo.com/info/welcome

Perfomance Testing with Jmeter

2007-10-31 Thread Angel Miralles Arevalo
Hi everyone, anybody who made Jmeter testing with success? I have read about it 
in wiki, all seem to be all right but when I try to launch 15 threads jboss get 
down...When it begins to execute I get the following messages:

09:24:40,033 INFO  [RedirectTrackerManager] No context init parameter 
'org.apache.myfaces.redirectTracker.POLICY' found, using default value 
org.apache.myfaces.custom.redirectTracker.policy.NoopRedirectTrackPolicy

09:05:30,055 INFO  [RedirectTrackerManager] No context init parameter 
'org.apache.myfaces.redirectTracker.MAX_REDIRECTS' found, using default value 20

But it continues executing normally. Finally it gets breakdown without errors...

I have added a JMeter RegEx Extractor just like myfaces wiki pointsbut I 
don't understand very well why it is necesary.


   
__ 
Pregunta, Responde, Descubre. 
Comparte tus consejos y opiniones con los usuarios de Yahoo! Respuestas 
http://es.answers.yahoo.com/info/welcome

Re: Messages on JSF Site are shown twice

2007-10-02 Thread Angel Miralles Arevalo
Try with this:

jsp code:
   
h:messages globalOnly=true showDetail=true showSummary=false 
styleClass=hcenter mensaje_alerta /

Bean code:

// Add message in case of error
ResourceBundle resource = 
ResourceBundle.getBundle(servidesk.messages.MessageResources);
FacesMessage message = MessageUtils.getMessage(resource, 
info.ko.grabar.grupo, null);
getFacesContext().addMessage(null, message);

Note than I read from a properties file: servidesk.messages.MessageResources


- Mensaje original 
De: Andreas Heidrich [EMAIL PROTECTED]
Para: MyFaces Discussion users@myfaces.apache.org
Enviado: martes, 2 de octubre, 2007 11:43:51
Asunto: Messages on JSF Site are shown twice


Hello,
we are working on our first JSF Implementation at the moment. So forgive me
if this is a stupid question ;-)

We show all error messages in a single area on the page like this:

t:div styleClass=errors
  rendered=#{customerWebController.notValid}
  f:verbatim
h5Folgende Fehler sind aufgetreten:/h5
  /f:verbatim
  t:messages showDetail=true /
/t:div

In the code, we add some messages with the FacesContext addMessage
mechanism like this:

FacesContext.getCurrentInstance().addMessage(null,

MessageUtils.getMessage(FacesMessage.SEVERITY_ERROR, zipCodeNotValid,
null));
return error;

however, at runtime, the givem error mesage is always displayed twice.

Any idea ?

Thanx
Andreas



Andreas Heidrich (Embedded
Organisationsprogrammierer/EDV Orga  image moved
Toyota Kreditbank GmbH   to file:
Tel: +49-2234-102-1963|Fax:  pic06224.gif)
+49-2234-102-99-1963
Email: [EMAIL PROTECTED]




---
Toyota Financial Services ist eine Marke der TOYOTA Kreditbank GmbH
Lexus Financial Services ist eine Marke der TOYOTA Kreditbank GmbH
TOYOTA Kreditbank GmbH
Toyota-Allee 5, Köln-Marsdorf
www.toyota-bank.de www.lexus-finance.de
Sitz der Gesellschaft: Köln - Amtsgericht Köln - HRB 18068
Ust-IdNr.: DE 811425043 - Steuernummer: 223/5819/0038
Vorsitzender des Beirates: Keji Sudo
Geschäftsführer: Peter Pollhammer - Andreas Bullock - Christian Ruben
WestLB - Konto 1846 - BLZ 300 500 00
---
Toyota Financial Services ist eine Marke der TOYOTA Leasing GmbH
Lexus Financial Services ist eine Marke der TOYOTA Leasing GmbH
TOYOTA Leasing GmbH
Toyota-Allee 5, Köln-Marsdorf
www.toyota-bank.de www.lexus-finance.de
Sitz der Gesellschaft: Köln - Amtsgericht Köln - HRB 20031
Ust-IdNr.: DE 811425051 - Steuernummer: 223/5819/0038
Vorsitzender des Beirates: Keji Sudo
Geschäftsführer: Peter Pollhammer - Tadashi Ueda - Christian Ruben
WestLB - Konto 4667663 - BLZ 300 500 00
---

Toyota Financial Services (UK) PLC, Company Registration Number
02299961, Great Burgh, Burgh Heath, Epsom, Surrey, KT18 5UZ,
registered in England.

Lexus Financial Services and Redline Finance are trading styles
of Toyota Financial Services (UK) PLC.

Authorised and regulated by the Financial Services Authority.
This correspondence is for the intended recipient only. It may
contain confidential or legally privileged information or both.
No confidentiality or privilege is waived or lost by any
mistransmission or unauthorised alteration during transmission.
If you are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in
reliance on it, is prohibited and may be unlawful. If you receive
this correspondence in error, please immediately delete it from
your system and notify the sender. Any views expressed in this
message are those of the individual sender, except where the
sender expressly, and with authority, states them to be the views
of Toyota. This message has been checked for viruses but the
recipient is strongly advised to rescan the message before
opening any attachments or attached executable files.


   

Sé un Mejor Amante del Cine 
¿Quieres saber cómo? ¡Deja que otras personas te ayuden!
http://advision.webevents.yahoo.com/reto/entretenimiento.html

Java heap space

2007-09-28 Thread Angel Miralles Arevalo
hi everybody, can some tell me why you get a java heap space if you are using 
myeclipse?

11:50:28,274 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces 
Servlet threw exception
java.lang.OutOfMemoryError: Java heap space

If I start up jBoss without Myeclipse there aren't errors. Page get charge 
without problems. The page has a large amount of data: tree2, tabbedPane, 
several dataTables inside and all is showing at the same time...

I'm using myfaces1.1.5, tomahawk1.1.5.

Thanks in advanced!!!


   

Sé un Mejor Amante del Cine 
¿Quieres saber cómo? ¡Deja que otras personas te ayuden!
http://advision.webevents.yahoo.com/reto/entretenimiento.html

Re: Java heap space

2007-09-28 Thread Angel Miralles Arevalo
It's done. Moreover, I have a memory in use indicator (Myeclipse). Although 
there is a lot of memory without used, i get a java heap space.


- Mensaje original 
De: David Uebelacker [EMAIL PROTECTED]
Para: MyFaces Discussion users@myfaces.apache.org
Enviado: viernes, 28 de septiembre, 2007 12:31:01
Asunto: Re: Java heap space


Hi,

i think you can add a VM Argument like -Xmx512m to the jboss debug
configuration in eclipse, where 512 is the amount ob mb the vm should use
as maximum memory. In Addition you can give eclipse more memory, by
starting it with the this Argument: -vmargs -Xmx512m.

I think your default JBoss startup configuration is configured with more
memory than your start up configuration in your eclipse environment.

Regards,

David

 hi everybody, can some tell me why you get a java heap space if you are
 using myeclipse?

 11:50:28,274 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces
 Servlet threw exception
 java.lang.OutOfMemoryError: Java heap space

 If I start up jBoss without Myeclipse there aren't errors. Page get charge
 without problems. The page has a large amount of data: tree2, tabbedPane,
 several dataTables inside and all is showing at the same time...

 I'm using myfaces1.1.5, tomahawk1.1.5.

 Thanks in advanced!!!



 
 Sé un Mejor Amante del Cine
 ¿Quieres saber cómo? ¡Deja que otras personas te ayuden!
 http://advision.webevents.yahoo.com/reto/entretenimiento.html


-- 
David Uebelacker
mailto:[EMAIL PROTECTED]
http://david.uebelacker.eu/


   

Sé un Mejor Amante del Cine 
¿Quieres saber cómo? ¡Deja que otras personas te ayuden!
http://advision.webevents.yahoo.com/reto/entretenimiento.html

Perfomance problem with JSF

2007-09-27 Thread Angel Miralles Arevalo
Hi everybody, I have a perfomance problem with JSF. I have a java arraList 
attribute. This attribute have getter and setter methods. It is used to store 
LDAP users, so I have to access LDAP in getter method.

Because of the lifecycle the getter is invoked twice, so LDAP access is twice 
too. The problem is my LDAP has around 15000 users. My web application is 
getting very slow.

How can I customize this behaviour??

Thanks in advanced.


   

Sé un Mejor Amante del Cine 
¿Quieres saber cómo? ¡Deja que otras personas te ayuden!
http://advision.webevents.yahoo.com/reto/entretenimiento.html

Re: Perfomance problem with JSF

2007-09-27 Thread Angel Miralles Arevalo
I forget about  t:dataTable datascroller. I know during request lyfecycle 
first time getter method is invoked, some internal datascroller variables are 
calculated, for example: pageIndex, pageCount, in order to paginate. 

So , I wonder if it is possible to alter request lyfecycle. I tried it once but 
it didn't work. Pagination brokedown. 


- Mensaje original 
De: Richard Yee [EMAIL PROTECTED]
Para: MyFaces Discussion users@myfaces.apache.org
Enviado: jueves, 27 de septiembre, 2007 14:14:07
Asunto: Re: Perfomance problem with JSF


How are you using your LDAP ArrayList? Should you be using a Map 
instead? Is the getter/setter in a ManagedBean or somewhere else? Are 
you doing more in your getter than just returning an instance variable?

Angel Miralles Arevalo wrote:
 Hi everybody, I have a perfomance problem with JSF. I have a 
 java arraList attribute. This attribute have getter and setter 
 methods. It is used to store LDAP users, so I have to access LDAP in 
 getter method.
  
 Because of the lifecycle the getter is invoked twice, so LDAP access 
 is twice too. The problem is my LDAP has around 15000 users. My web 
 application is getting very slow.
  
 How can I customize this behaviour??
  
 Thanks in advanced.

 

 Sé un Mejor Amante del Cine
 ¿Quieres saber cómo? ¡Deja que otras personas te ayuden! 
 http://us.rd.yahoo.com/mail/es/tagline/beabetter/*http://advision.webevents.yahoo.com/reto/entretenimiento.html.


   

Sé un Mejor Amante del Cine 
¿Quieres saber cómo? ¡Deja que otras personas te ayuden!
http://advision.webevents.yahoo.com/reto/entretenimiento.html

Re: Perfomance problem with JSF

2007-09-27 Thread Angel Miralles Arevalo
Well I'm using an arrayList to charge a t:dataTable uicomponet. Here is my 
code, sorry about not sending it before:

Here es the managed-bean:

public List getUserList() {
  // Service Locator instance
  IServiceLocator iSL = ServiceLocator.getInstance().getIServiceLocator();
  
  try {
   // Search result list. Access to LDAP
   list = iSL.getAuthorizationService().searchUsers(usc);
   
   this.userList = list;
  } catch (TimeOutConnectorException tex) {
   tex.printStackTrace();
   this.message = Se excedió el tiempo máximo de respuesta.Inténtelo 
de nuevo.;
  } catch (Exception ex) {
   ex.printStackTrace();
}
  return userList;
 }

The red code is where LDAP access is made.

And the JSF code is:

t:dataTable styleClass=porcen100 left id=users_tab_PPR
border=0 bgcolor=#AEB8D4 cellspacing=1 cellpadding=0
headerClass=list-header
rowClasses=datos_impar_off,datos_par_off var=usersListPPR
value=#{authorizationUsersListBean.usersList}
binding=#{authorizationUsersListBean.UITable}
preserveDataModel=false
sortColumn=#{authorizationUsersListBean.column}
sortAscending=#{authorizationUsersListBean.ascending}
preserveSort=true renderedIfEmpty=false
rowOnMouseOver=mouseOverTable(this,'#9dcbe3')
rowOnMouseOut=mouseOutTable(this)
columnClasses=hleft porcen20, hleft porcen35,hleft porcen35, 
hcenter porcen10



Thank you very much!!

- Mensaje original 
De: Richard Yee [EMAIL PROTECTED]
Para: MyFaces Discussion users@myfaces.apache.org
Enviado: jueves, 27 de septiembre, 2007 14:14:07
Asunto: Re: Perfomance problem with JSF


How are you using your LDAP ArrayList? Should you be using a Map 
instead? Is the getter/setter in a ManagedBean or somewhere else? Are 
you doing more in your getter than just returning an instance variable?

Angel Miralles Arevalo wrote:
 Hi everybody, I have a perfomance problem with JSF. I have a 
 java arraList attribute. This attribute have getter and setter 
 methods. It is used to store LDAP users, so I have to access LDAP in 
 getter method.
  
 Because of the lifecycle the getter is invoked twice, so LDAP access 
 is twice too. The problem is my LDAP has around 15000 users. My web 
 application is getting very slow.
  
 How can I customize this behaviour??
  
 Thanks in advanced.

 

 Sé un Mejor Amante del Cine
 ¿Quieres saber cómo? ¡Deja que otras personas te ayuden! 
 http://us.rd.yahoo.com/mail/es/tagline/beabetter/*http://advision.webevents.yahoo.com/reto/entretenimiento.html.


   

Sé un Mejor Amante del Cine 
¿Quieres saber cómo? ¡Deja que otras personas te ayuden!
http://advision.webevents.yahoo.com/reto/entretenimiento.html

Re: pls help with exception

2007-09-24 Thread Angel Miralles Arevalo
Please, send your bean code #{yellProxy.encuentra}. 


- Mensaje original 
De: Alonso Isidoro Roman [EMAIL PROTECTED]
Para: users@myfaces.apache.org
Enviado: lunes, 24 de septiembre, 2007 12:08:21
Asunto: pls help with exception

hi everybody, i`m newbee with jsf first at all! 


it takes me this exception when i submit the form:

javax.servlet.ServletException: Error calling action method of component with 
id formulario:boton   javax.faces.webapp.FacesServlet.service
(FacesServlet.java:152) 
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
causa raíz 
javax.faces.FacesException: Error calling action method of component with id 
formulario:boton

org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:74)
 
de.mindmatters.faces.application.DelegatingActionListener.processAction(DelegatingActionListener.java:106)
  javax.faces.component.UICommand.broadcast
(UICommand.java:106)
org.ajax4jsf.framework.ajax.AjaxViewRoot.processEvents(AjaxViewRoot.java:274)   
org.ajax4jsf.framework.ajax.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:250) 
org.ajax4jsf.framework.ajax.AjaxViewRoot.processApplication
(AjaxViewRoot.java:405) 
de.mindmatters.faces.lifecycle.InvokeApplicationPhase.executePhase(InvokeApplicationPhase.java:43)
  
de.mindmatters.faces.lifecycle.AbstractPhase.execute(AbstractPhase.java:37) 
de.mindmatters.faces.lifecycle.LifecycleImpl.executePhase
(LifecycleImpl.java:166)
de.mindmatters.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:211)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)  
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter
(MonitorFilter.java:368)


my faces page is 

%@ taglib uri=http://java.sun.com/jsf/html; prefix=h %
%@ taglib uri= http://java.sun.com/jsf/core; prefix=f %
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN

html
f:view 
f:loadBundle basename=MessageResources var=msg/
head
title
${msg.titulo}
/title
/head

body
h:form id=formulario
h:inputText id=campoQue value=#{yellProxy.campoQue} /
h:inputText id=campoDonde value=#{yellProxy.campoDonde } /
h:commandButton id=boton value=#{msg.boton} 
action=#{yellProxy.encuentra}/
/h:form
/f:view
/body
/html

my faces-config is:

?xml version='1.0' encoding='UTF-8'?


!DOCTYPE faces-config PUBLIC
  -//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN
   http://java.sun.com/dtd/web-facesconfig_1_1.dtd;

!-- === FULL CONFIGURATION FILE == --

faces-config 
!-- El mantenimiento del bean proxy se delega al contenedor de spring--

 application  
 variable-resolver  
 org.springframework.web.jsf.DelegatingVariableResolver 
 /variable-resolver  
 /application 
 
 !-- el unico idioma permitido es el español.--
 application
locale-config
default-localees/default-locale 
/locale-config
 /application

 !--
  - navigation rules
  --
navigation-rule
from-view-id/index.jsp/from-view-id 
navigation-case
from-outcomesuccesJS/from-outcome
to-view-id/jsActivado.jsp/to-view-id
/navigation-case
navigation-case 
from-outcomesuccesNoJS/from-outcome
to-view-id/jsDesactivado.jsp/to-view-id
/navigation-case
/navigation-rule
/faces-config 

my applicationContext.xml is

?xml version=1.0 encoding=UTF-8?
!DOCTYPE beans PUBLIC -//SPRING//DTD BEAN 2.0//EN
   http://www.springframework.org/dtd/spring-beans-2.0.dtd;
beans

bean id=ParserSAX 
class=es.yell.frontlite.parser.ParserPrincipalHandler scope=singleton/ 

bean id=Controller class=es.yell.frontlite.servlets.Controller 
scope=singleton/

bean id=srvBusquedaNoxtrumService 
class=es.yell.frontlite.service.impl.SrvBusquedaNoxtrumServiceImpl  
scope=singleton
property name=parserSAXref bean=ParserSAX//property
property name=controladorref bean=Controller//property 
/bean

bean id=yellProxy class=es.yell.frontlite.servlets.YellProxy 
scope=singleton
property name=servicio
ref bean=srvBusquedaNoxtrumService/
/property
/bean
/beans

another question: 

why do i have to put the url http: // localhost:8084/index.faces i browser 
instead of  
Http: // localhost:8084/index.jsp 
Or  
Http: // localhost:8084/index.jsf?

pls help
-- 
Alonso Isidoro Roman.


   

Sé un Mejor Amante del Cine 
¿Quieres saber cómo? ¡Deja que otras personas te ayuden!
http://advision.webevents.yahoo.com/reto/entretenimiento.html

Re: pls help with exception

2007-09-24 Thread Angel Miralles Arevalo
;
 }

 public void setColeccion(Collection coleccion) {
 this.coleccion = coleccion;
 }

 public SrvBusquedaNoxtrumServiceImpl getServicio() {
 return servicio; 
 }

 public void setServicio(SrvBusquedaNoxtrumServiceImpl
 servicio) {
 this.servicio = servicio;
 }

 }



 2007/9/24, Angel Miralles Arevalo  [EMAIL PROTECTED]:
 
 
 
 
  Please, send your bean code #{yellProxy.encuentra}.
 
 
  - Mensaje original  
  De: Alonso Isidoro Roman  [EMAIL PROTECTED]
  Para: users@myfaces.apache.org
  Enviado: lunes, 24 de septiembre, 2007 12:08:21 
  Asunto: pls help with exception
 
 
  hi everybody, i`m newbee with jsf first at all!
 
 
  it takes me this exception when i submit the form: 
  javax.servlet.ServletException
  : Error calling action method of component with id formulario:boton
  javax.faces.webapp.FacesServlet.service
  (FacesServlet.java:152)
  
 org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java
  :368)
 
 
 
  causa raíz javax.faces.FacesException: Error calling action method of 
 component with id formulario:boton
 
 
 org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:74)
 
 
 de.mindmatters.faces.application.DelegatingActionListener.processAction 
 (DelegatingActionListener.java:106)
  javax.faces.component.UICommand.broadcast
  (UICommand.java:106)
  org.ajax4jsf.framework.ajax.AjaxViewRoot.processEvents
  (AjaxViewRoot.java :274)
 
 org.ajax4jsf.framework.ajax.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:250)
 
 org.ajax4jsf.framework.ajax.AjaxViewRoot.processApplication
  (AjaxViewRoot.java:405) 
 
 de.mindmatters.faces.lifecycle.InvokeApplicationPhase.executePhase
  (InvokeApplicationPhase.java:43)
 
 de.mindmatters.faces.lifecycle.AbstractPhase.execute(AbstractPhase.java :37)
  de.mindmatters.faces.lifecycle.LifecycleImpl.executePhase
  (LifecycleImpl.java:166)
  de.mindmatters.faces.lifecycle.LifecycleImpl.execute
  (LifecycleImpl.java:211)
 
 javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
 
 org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter
  (MonitorFilter.java:368)
 
  
 
  my faces page is
 
  %@ taglib uri=http://java.sun.com/jsf/html; prefix=h %
  %@ taglib uri= http://java.sun.com/jsf/core; prefix=f %
  !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
 
  html 
  f:view
  f:loadBundle basename=MessageResources var=msg/
  head
  title
  ${msg.titulo }
  /title
  /head
 
  body
  h:form id=formulario
  h:inputText id=campoQue value=#{ yellProxy.campoQue} /
  h:inputText id=campoDonde value=#{yellProxy.campoDonde } /
  h:commandButton id=boton value=#{msg.boton }
 action=#{yellProxy.encuentra }/
  /h:form
  /f:view
  /body
  /html
 
  my faces-config is: 
 
  ?xml version='1.0' encoding='UTF-8'?
 
 
  !DOCTYPE faces-config PUBLIC
-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN
 http://java.sun.com/dtd/web-facesconfig_1_1.dtd;
 
  !-- === FULL CONFIGURATION FILE 
 == --
 
  faces-config
  !-- El mantenimiento del bean proxy se delega al contenedor de
 spring--
 
   application 
   variable-resolver
 
 org.springframework.web.jsf.DelegatingVariableResolver
   /variable-resolver
   /application
  
   !-- el unico idioma permitido es el español.--
   application
  locale-config
  default-localees/default-locale 
  /locale-config
   /application
 
   !--
- navigation rules
--
  navigation-rule 
  from-view-id/index.jsp/from-view-id
  navigation-case
  from-outcomesuccesJS/from-outcome
  to-view-id/jsActivado.jsp/to-view-id 
  /navigation-case
  navigation-case
  from-outcomesuccesNoJS/from-outcome
  to-view-id/jsDesactivado.jsp/to-view-id 
  /navigation-case
  /navigation-rule
  /faces-config
 
  my applicationContext.xml is
 
  ?xml version= 1.0 encoding=UTF-8?
  !DOCTYPE beans PUBLIC -//SPRING//DTD BEAN 2.0//EN

 http://www.springframework.org/dtd/spring-beans-2.0.dtd 
  beans
 
  bean id=ParserSAX
 class=es.yell.frontlite.parser.ParserPrincipalHandler 
 scope=singleton/
 
  bean id=Controller class=
 es.yell.frontlite.servlets.Controller scope=singleton/
  
  bean id=srvBusquedaNoxtrumService
 class=es.yell.frontlite.service.impl.SrvBusquedaNoxtrumServiceImpl
  scope=singleton
  property name=parserSAXref bean=ParserSAX//property 
  property name=controladorref bean=Controller//property
  /bean
 
  bean id=yellProxy
 class=es.yell.frontlite.servlets.YellProxy
 scope=singleton
  property name=servicio
  ref bean=srvBusquedaNoxtrumService/ 
  /property
  /bean
  /beans
 
  another question:
 
  why do i have to put the url http: // localhost:8084

Security role question

2007-09-03 Thread Angel Miralles Arevalo
Hi everyone, I'm trying to implement passive security on my application. Let me 
explain, although a user has logged in the application there are many pages 
where he couldn't enter (url navigation).
 
I have worked with Struts and the way to manage the problem is setting a role 
in action definition. Then when you invoke this action, ControllerManager 
(method call previous to every action) checks if logged user can access to this 
specific page (DB relations user/role/page).
 
What I want is to prevent logged user to url navigation. Is there any way to 
implements this behaviour with JSF tech? 
 
I think it is a basic functionality. Thanks so much!!!
 
 




Sé un Mejor Amante del Cine
¿Quieres saber cómo? ¡Deja que otras personas te ayuden! .


   

Sé un Mejor Amante del Cine 
¿Quieres saber cómo? ¡Deja que otras personas te ayuden!
http://advision.webevents.yahoo.com/reto/entretenimiento.html

Security role question

2007-08-28 Thread Angel Miralles Arevalo
Hi everyone, I'm trying to implement passive security on my application. Let me 
explain, although a user has logged in the application there are many pages 
where he couldn't enter (url navigation).

I have worked with Struts and the way to manage the problem is setting a role 
in action definition. Then when you invoke this action, ControllerManager 
(method call previous to every action) checks if logged user can access to this 
specific page (DB relations user/role/page).

What I want is to prevent logged user to url navigation. Is there any way to 
implements this behaviour with JSF tech? 

I think it is a basic functionality. Thanks so much!!!


   

Sé un Mejor Amante del Cine 
¿Quieres saber cómo? ¡Deja que otras personas te ayuden!
http://advision.webevents.yahoo.com/reto/entretenimiento.html

Re: commandButton

2007-08-09 Thread Angel Miralles Arevalo
I don't undestand very well what you want to do but try with:

t:commandLink id=save1_buttom forceId=true value=save1
f:param name=operation value=1 /
/t:commandLink
 
t:commandLink id=save2_buttom forceId=true value=save2
f:param name=operation value=2 /
/t:commandLink


Then in backing bean you can get param value like this:

this.operation = 
(String)getApplication().createValueBinding(#{param.operation}).getValue(facesContext);

I hope it will help you.



- Mensaje original 
De: ignicolist [EMAIL PROTECTED]
Para: users@myfaces.apache.org
Enviado: jueves, 9 de agosto, 2007 14:05:34
Asunto: commandButton


Hi, i have this code: 

h:selectOneRadio id=mode value=#{scheduleSettings2.mode}
f:selectItem itemValue=0 itemLabel=day/
f:selectItem itemValue=1 itemLabel=workweek/
f:selectItem itemValue=2 itemLabel=week /
f:selectItem itemValue=3 itemLabel=month /
/h:selectOneRadio
h:commandButton action=#{scheduleSettings2.save} value=save /

when i do save just pass the value that is selected in selectItem (0,1,2, or
3)

So what i want its something like having 4 commandButton or 4 commandLink
that each one have the value 0,1,2 and 3, for when a click in each one make
the save and send the respective value. 

Its thar possible? how?

Tks

-- 
View this message in context: 
http://www.nabble.com/commandButton-tf4242215.html#a12071201
Sent from the MyFaces - Users mailing list archive at Nabble.com.


   

Sé un Mejor Amante del Cine 
¿Quieres saber cómo? ¡Deja que otras personas te ayuden!
http://advision.webevents.yahoo.com/reto/entretenimiento.html

Re: How to skin inputDate icon?

2007-08-09 Thread Angel Miralles Arevalo
I don't Know which component you are using but try with:

t:inputCalendar id=initialDate styleClass=porcen90 
monthYearRowClass=yearMonthHeader 
weekRowClass=weekHeader 
currentDayCellClass=currentDayCell 

value=#{automaticImpactByPkBean.initialDate} 
renderAsPopup=true
renderPopupButtonAsImage=true
popupTodayString=#{msg.fecha_hoy}
popupDateFormat=dd/MM/ 
forceId=true 

popupButtonImageUrl=/imagenes/calendario.png
onchange=submit(this);/


It has the attribute popupButtonImageUrl to load an image...


- Mensaje original 
De: Chris Hane [EMAIL PROTECTED]
Para: users@myfaces.apache.org
Enviado: jueves, 9 de agosto, 2007 16:01:05
Asunto: How to skin inputDate icon?


How can I skin the inputDate launch icon?

I have tried variations of this:

af|inputDate:launch-icon {
content:url(../ires/chris/images/dfb.gif);
}

When I use firebug it shows the icon being generated from:

  adf/images/dfb.gif

and not my icon defined in the skin file.


Is there anything obviously wrong with what I'm doing?

Thanks,
Chris


   

Sé un Mejor Amante del Cine 
¿Quieres saber cómo? ¡Deja que otras personas te ayuden!
http://advision.webevents.yahoo.com/reto/entretenimiento.html

Security question

2007-08-06 Thread Angel Miralles Arevalo
Hi everybody, I'm trying to implement security in my application. I've been 
reading myfaces wiki documentation (SecurityContext) about this theme but I 
have some doubts.

I'm interested in using the feature:

#{securityContext.ifAnyGranted['rolename1,rolename2']}

By the way you are always using the follwong method:  ifGranted(role)

boolean ifAnyGranted() {
boolean isAuthorized = false;
for (int i = 0; i  roles.length; i++) {
String role = roles[i];
if(ifGranted(role)) {
isAuthorized =  true;
break;
}
}
return isAuthorized;
}


And its implementation is:
public boolean ifGranted(String role) {
return FacesContext.getCurrentInstance().getExternalContext().
isUserInRole(role);}
My question is, how FacesContext has knowlegde of the role's list, how can I 
charge my application's roles?

Thanks in advanced...


   

Sé un Mejor Amante del Cine 
¿Quieres saber cómo? ¡Deja que otras personas te ayuden!
http://advision.webevents.yahoo.com/reto/entretenimiento.html

J2EE container security

2007-08-06 Thread Angel Miralles Arevalo
Hi everybody, I'm trying to implement security in my application. I've been 
reading myfaces wiki documentation (SecurityContext) about this theme but I 
have some doubts.
 
I'm interested in using the feature:
 
#{securityContext.ifAnyGranted['rolename1,rolename2']}
 
By the way you are always using the follwong method:  ifGranted(role)
 
boolean ifAnyGranted() {
 boolean isAuthorized = false;
for (int i = 0; i  roles.length; i++) {
String role = roles[i];
if(ifGranted(role)) {
isAuthorized =  true;
break;
}
}
return isAuthorized;
}
 
 
And its implementation is:
public boolean ifGranted(String role) {
return FacesContext.getCurrentInstance().getExternalContext().
isUserInRole(role);}
My question is, how FacesContext has knowlegde of the role's list, how can I 
charge my application's roles?
 
Thanks in advanced...


   

Sé un Mejor Amante del Cine 
¿Quieres saber cómo? ¡Deja que otras personas te ayuden!
http://advision.webevents.yahoo.com/reto/entretenimiento.html

Re: Instantiate a backing bean from other

2007-07-26 Thread Angel Miralles Arevalo
It isn't necesary managed bean in session scope, for example:

AuthorizationMembersGroupBean menGroup = (AuthorizationMembersGroupBean) 
getApplication().createValueBinding(#{requestScope.authorizationMembersGroupBean}).getValue(facesContext);

getApplication().createValueBinding(#{requestScope.authorizationMembersGroupBean}).setValue(facesContext,menGroup);

What you need to know is than you obtain the managed bean, alter it and you 
have to update it in facesContext...the second line...

- Mensaje original 
De: daniel ccss [EMAIL PROTECTED]
Para: MyFaces Discussion users@myfaces.apache.org
Enviado: jueves, 26 de julio, 2007 15:56:25
Asunto: Instantiate a backing bean from other


Is there a way to use a BackingBean from another BackingBean o another class, 
the scope of the backing bean is session.
 
For example I need to call the get method of a variable of a BackingBean on 
another Backing Bean
 
It is possible or I´m to crazy?


   

Sé un Mejor Amante del Cine 
¿Quieres saber cómo? ¡Deja que otras personas te ayuden!
http://advision.webevents.yahoo.com/reto/entretenimiento.html

Re: buttons doesn't show in t:datascroller

2007-07-11 Thread Angel Miralles Arevalo
You can't change facet's names because they are managed internally by jsf. I 
thought that's why you didn't get the buttoms showing. 

If you get duplicate id error, try to eliminate useless ids, for example, 
datatable id is necesary because t:datascroller make reference to this id, but 
delete input's id, image's id, popup's id, . 

Have you try to copy irian datatable example directly? 


- Mensaje original 
De: Brummeline Braaten [EMAIL PROTECTED]
Para: users@myfaces.apache.org
Enviado: miércoles, 11 de julio, 2007 9:28:15
Asunto: Re: buttons doesn't show in t:datascroller


I've tried to use your code, but it still doesnt work. When I changed the facet
names I got duplicated id-error. I find it very strange that I dont get any
error message when the buttons are not showing. I dont get any message at all,
but I can navigate from table page to table page with the numbers that get
rendered by the datascroller.



__ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com

Re: buttons doesn't show in t:datascroller

2007-07-11 Thread Angel Miralles Arevalo
Send me your code, I'll probe it. .jsp and .java please. In order to check 
you haven't got anything bad configured


- Mensaje original 
De: Brummeline Braaten [EMAIL PROTECTED]
Para: users@myfaces.apache.org
Enviado: miércoles, 11 de julio, 2007 9:28:15
Asunto: Re: buttons doesn't show in t:datascroller


I've tried to use your code, but it still doesnt work. When I changed the facet
names I got duplicated id-error. I find it very strange that I dont get any
error message when the buttons are not showing. I dont get any message at all,
but I can navigate from table page to table page with the numbers that get
rendered by the datascroller.


   

Sé un Mejor Amante del Cine 
¿Quieres saber cómo? ¡Deja que otras personas te ayuden!
http://advision.webevents.yahoo.com/reto/entretenimiento.html

Re: buttons doesn't show in t:datascroller

2007-07-09 Thread Angel Miralles Arevalo
Here is my code, cut and modify it with your managed bean properties, it should 
work!

t:dataTable styleClass=porcen100 vtop id=users_tab_PPR
border=0 bgcolor=#AEB8D4 cellspacing=1 cellpadding=0
headerClass=list-header
rowClasses=datos_impar_off,datos_par_off var=usersListPPR
value=#{authorizationUsersListBean.usersListPPR}
binding=#{authorizationUsersListBean.UITablePPR}
preserveDataModel=false rows=5
sortColumn=#{authorizationUsersListBean.column}
sortAscending=#{authorizationUsersListBean.ascending}
preserveSort=true
columnClasses=hleft porcen30, hleft porcen60, hcenter porcen10
%-- Columna Nombre del Usuario --%
h:column
f:facet name=header
t:commandSortHeader columnName=name arrow=true
immediate=false
h:outputText value=Nombre styleClass=tab3_on /
/t:commandSortHeader
/f:facet
t:popup id=a styleClass=popup_miembros
closePopupOnExitingElement=true
closePopupOnExitingPopup=true displayAtDistanceX=10
displayAtDistanceY=10
t:outputText styleClass=datoTabla id=namePPR
value=#{usersListPPR.name} escape=false
xxx:truncateOutput truncateAt=25 continuationMark=... /
/t:outputText
f:facet name=popup
h:panelGroup
h:panelGrid columns=1
h:outputText value=#{usersListPPR.name}
styleClass=text_popup_miembros /
/h:panelGrid
/h:panelGroup
/f:facet
/t:popup
/h:column
%-- Columna Apellidos --%
h:column
f:facet name=header
t:commandSortHeader columnName=surnames arrow=true
immediate=false
h:outputText value=Apellidos styleClass=tab3_on /
/t:commandSortHeader
/f:facet
t:popup id=b styleClass=popup_miembros
closePopupOnExitingElement=true
closePopupOnExitingPopup=true displayAtDistanceX=10
displayAtDistanceY=10
t:outputText id=surnamesPPR value=#{usersListPPR.surname2}
escape=false
xxx:truncateOutput truncateAt=45 continuationMark=... /
/t:outputText
f:facet name=popup
h:panelGroup
h:panelGrid columns=1
h:outputText value=#{usersListPPR.surname2}
styleClass=text_popup_miembros /
/h:panelGrid
/h:panelGroup
/f:facet
/t:popup
/h:column
%-- Columna Eliminar Grupo --%
h:column
h:selectBooleanCheckbox id=selected
value=#{usersListPPR.selected}/h:selectBooleanCheckbox
h:inputHidden id=userId value=#{usersListPPR.userId}/h:inputHidden
/h:column
/t:dataTable
%-- Paginacion --%
t:div styleClass=porcen100 hcenter
t:dataScroller for=users_tab_PPR pageCountVar=pageCount
pageIndexVar=pageIndex styleClass=centrado paginator=false
paginatorTableClass=tit_tab porcen100
paginatorActiveColumnStyle=font-weight:bold;
rowsCountVar=rowsCount
f:facet name=first
t:popup styleClass=popup_miembros
closePopupOnExitingElement=true
closePopupOnExitingPopup=true displayAtDistanceX=10
displayAtDistanceY=10
t:graphicImage url=/imagenes/btn_ini_pag.gif border=0 /
f:facet name=popup
h:panelGroup
h:panelGrid columns=1
h:outputText value=#{msg.primera}
styleClass=text_popup_miembros /
/h:panelGrid
/h:panelGroup
/f:facet
/t:popup
/f:facet
f:facet name=last
t:popup styleClass=popup_miembros
closePopupOnExitingElement=true
closePopupOnExitingPopup=true displayAtDistanceX=10
displayAtDistanceY=10
t:graphicImage url=/imagenes/btn_fin_pag.gif border=0 /
f:facet name=popup
h:panelGroup
h:panelGrid columns=1
h:outputText value=#{msg.ultima}
styleClass=text_popup_miembros /
/h:panelGrid
/h:panelGroup
/f:facet
/t:popup
/f:facet
f:facet name=previous
t:popup styleClass=popup_miembros
closePopupOnExitingElement=true
closePopupOnExitingPopup=true displayAtDistanceX=10
displayAtDistanceY=10
t:graphicImage url=/imagenes/btn_ant_pag.gif border=0 /
f:facet name=popup
h:panelGroup
h:panelGrid columns=1
h:outputText value=#{msg.anterior}
styleClass=text_popup_miembros /
/h:panelGrid
/h:panelGroup
/f:facet
/t:popup
/f:facet
f:facet name=next
t:popup styleClass=popup_miembros
closePopupOnExitingElement=true
closePopupOnExitingPopup=true displayAtDistanceX=5
displayAtDistanceY=5
t:graphicImage url=/imagenes/btn_prox_pag.gif border=0 /
f:facet name=popup
h:panelGroup
h:panelGrid columns=1
h:outputText value=#{msg.siguiente}
styleClass=text_popup_miembros /
/h:panelGrid
/h:panelGroup
/f:facet
/t:popup
/f:facet
h:outputFormat value=Pag. {0} de {1} ({2} registros)
styleClass=tit_tab
f:param value=#{pageIndex} /
f:param value=#{pageCount} /
f:param value=#{rowsCount} /
/h:outputFormat
/t:dataScroller



- Mensaje original 
De: Brummeline Braaten [EMAIL PROTECTED]
Para: users@myfaces.apache.org
Enviado: lunes, 9 de julio, 2007 9:01:47
Asunto: Re: buttons doesn't show in t:datascroller


I've tried that, but then I get this error instead: 

Servlet.service() for servlet jsp threw exception
java.lang.IllegalStateException: Client-id : bilde1 is duplicated in the faces 
tree. Component : innhold:_idJsp0:bilde1, path: {Component-Path : [Class: 
javax.faces.component.UIViewRoot,ViewId: /innhold/test.jsp][Class: 
javax.faces.component.UINamingContainer,Id: innhold][Class: 
javax.faces.component.html.HtmlForm,Id: _idJsp0][Class: 
javax.faces.component.html.HtmlPanelGroup,Id: panel][Class: 
javax.faces.component.html.HtmlPanelGrid,Id: panel2][Class: 

Render attribute

2007-07-06 Thread Angel Miralles Arevalo
Hi everybody, I have the following code:

h:panelGrid rendered=#{bean.booleanProperty}
h:inputText value=#{bean.property}/
/h:panelGrid

I can't send property by request. Alway is null because of the panelGrid 
rendered attribute. Anybody can explain me why is this happening and how can I 
solve this?

I'm using this scenario in order to show/hide a list's detail.

Thank you very much.


   

Sé un Mejor Amante del Cine 
¿Quieres saber cómo? ¡Deja que otras personas te ayuden!
http://advision.webevents.yahoo.com/reto/entretenimiento.html

Re: Render attribute

2007-07-06 Thread Angel Miralles Arevalo
And how can I set rendered attribute true at these phases (validation and 
apply request)?

I have a h:inputHidden value=#{bean.booleanProperty} outside panelGrid. I 
think it solve the second question (apply request phase). 

Thank you for your answer.


- Mensaje original 
De: David Delbecq [EMAIL PROTECTED]
Para: MyFaces Discussion users@myfaces.apache.org
Enviado: viernes, 6 de julio, 2007 11:17:30
Asunto: Re: Render attribute


Hi,

upon submit, during validation phase (the phase that transmit from
component internal state to backing bean) the 'rendered' attribute of
panelGrid is evaluated. If at that time it's 'rendered' attribute is
false, none of it's child participate in the validation phase. The value
of rendered must be true at validation phase for it's submitted value to
be transmitted from inputtext to backingbean.
The same rule applies to the apply request value phase, where browser
submitted value are transfered from http request to component internal
state.

En l'instant précis du 06/07/07 10:55, Angel Miralles Arevalo
s'exprimait en ces termes:
 Hi everybody, I have the following code:
  
 h:panelGrid rendered=#{bean.booleanProperty}
 h:inputText value=#{bean.property}/
 /h:panelGrid
  
 I can't send property by request. Alway is null because of the
 panelGrid rendered attribute. Anybody can explain me why is this
 happening and how can I solve this?
  
 I'm using this scenario in order to show/hide a list's detail.
  
 Thank you very much. 

 

 Sé un Mejor Amante del Cine
 ¿Quieres saber cómo? ¡Deja que otras personas te ayuden!
 http://us.rd.yahoo.com/mail/es/tagline/beabetter/*http://advision.webevents.yahoo.com/reto/entretenimiento.html.


   

Sé un Mejor Amante del Cine 
¿Quieres saber cómo? ¡Deja que otras personas te ayuden!
http://advision.webevents.yahoo.com/reto/entretenimiento.html

Re: Render attribute

2007-07-06 Thread Angel Miralles Arevalo
You are right, my managed bean has request scope. 

It doesn't work, inputHidden is before panelGrid in view - booleanProperty = 
true when I make a debug but property is still null. 

I don't undestand it very well... all components have rendered attribute but 
you can't use it because you won't have request parameters, so it seems to be 
useless. 

Thanks anyway, I'll have to show the detail at first although it will be empty.


- Mensaje original 
De: David Delbecq [EMAIL PROTECTED]
Para: MyFaces Discussion users@myfaces.apache.org
Enviado: viernes, 6 de julio, 2007 12:00:49
Asunto: Re: Render attribute


If your #{bean} is request scoped, that can indeed be a problem (value
reset to false at begin of request). Try to set
h:inputHidden value=#{bean.booleanProperty} immediate=true
This will normally validate and transfert the value of field to backing
bean during it's apply request value phase.
Ensure inputHidden is before panelGrid in view so that, during the grid
apply request value phase, value is correctly set.

Or store datas about hidden / visible state of panels in a session
scoped bean.
En l'instant précis du 06/07/07 11:36, Angel Miralles Arevalo
s'exprimait en ces termes:
 And how can I set rendered attribute true at these phases
 (validation and apply request)?
  
 I have a h:inputHidden value=#{bean.booleanProperty} outside
 panelGrid. I think it solve the second question (apply request phase). 
  
 Thank you for your answer.

 - Mensaje original 
 De: David Delbecq [EMAIL PROTECTED]
 Para: MyFaces Discussion users@myfaces.apache.org
 Enviado: viernes, 6 de julio, 2007 11:17:30
 Asunto: Re: Render attribute

 Hi,

 upon submit, during validation phase (the phase that transmit from
 component internal state to backing bean) the 'rendered' attribute of
 panelGrid is evaluated. If at that time it's 'rendered' attribute is
 false, none of it's child participate in the validation phase. The value
 of rendered must be true at validation phase for it's submitted value to
 be transmitted from inputtext to backingbean.
 The same rule applies to the apply request value phase, where browser
 submitted value are transfered from http request to component internal
 state.

 En l'instant précis du 06/07/07 10:55, Angel Miralles Arevalo
 s'exprimait en ces termes:
  Hi everybody, I have the following code:
   
  h:panelGrid rendered=#{bean.booleanProperty}
  h:inputText value=#{bean.property}/
  /h:panelGrid
   
  I can't send property by request. Alway is null because of the
  panelGrid rendered attribute Anybody can explain me why is this
  happening and how can I solve this?
   
  I'm using this scenario in order to show/hide a list's detail.
   
  Thank you very much.
 
  
 
  Sé un Mejor Amante del Cine
  ¿Quieres saber cómo? ¡Deja que otras personas te ayuden!
 
 http://us.rd.yahoo.com/mail/es/tagline/beabetter/*http://advision.webevents.yahoo.com/reto/entretenimiento.html.


 

 Sé un Mejor Amante del Cine
 ¿Quieres saber cómo? ¡Deja que otras personas te ayuden!
 http://us.rd.yahoo.com/mail/es/tagline/beabetter/*http://advision.webevents.yahoo.com/reto/entretenimiento.html.





__ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com

Re: buttons doesn't show in t:datascroller

2007-07-05 Thread Angel Miralles Arevalo
Try to change facet's names:

f:facet name=firstfacet -- f:facet name=first

I think that is the problem.

- Mensaje original 
De: Brummeline Braaten [EMAIL PROTECTED]
Para: users@myfaces.apache.org
Enviado: jueves, 5 de julio, 2007 14:52:50
Asunto: Re: buttons doesn't show in t:datascroller


Brummeline Braaten brummeline at gmail.com writes:

 
 I use a t:datascroller to scroll between pages in a t:datatable. 
 The problem is that the buttons for fast forward, next, back etc 
 isn't rendered in my page. I have the pictures for the buttons in my 
 project and the path is correct. I do not get any error messages. 
 The datascroller work because I get the pagenumbers and I can change page by 
 clicking on them. How can I get the buttons to show on my page?
 
 

My code is like this:

h:form
h:panelGroup id=panel
t:dataTable var=notices id=adminliste 
binding=#{notice.noticeTable} rows=#{notice.numNoticePage} 
styleClass=metodevarselliste
  h:column id=idkolonne
   f:facet name=header
h:outputText id=idheader 
value=#{msg.varsel_id}/h:outputText
   /f:facet 
   h:commandLink id=noteclink binding=#{notice.noticeLink}
action=#{notice.getNoticeDetail} 
   h:outputText id=adminident 
value=#{notices.noticeId}/h:outputText
  /h:commandLink
/h:column
h:column id=tittelkolonne 
  f:facet name=header
   h:outputText id=tittelheader 
value=#{msg.varsel_tittel}/h:outputText
  /f:facet 
  h:outputText id=tittel 
value=#{notices.title}/h:outputText
/h:column
/t:dataTable

h:panelGrid id=panel2 columns=1 styleClass=scrollerTable2 
columnClasses=standardTable_ColumnCentered 
t:dataScroller id=varselscroller
for=adminliste
fastStep=3
pageCountVar=pageCount
pageIndexVar=pageIndex
styleClass=scroller
paginator=true
paginatorMaxPages=20
paginatorTableClass=paginator
paginatorActiveColumnStyle=font-weight:bold;
 
f:facet name=firstfacet
t:graphicImage url=../images/arrow-first.gif border=1 id=first/
/f:facet
f:facet name=lastfacet
t:graphicImage url=../images/arrow-last.gif border=1 id=last/
/f:facet
f:facet name=previousfacet
t:graphicImage url=../images/arrow-previous.gif border=1 
id=previous/
/f:facet
f:facet name=nextfacet
t:graphicImage url=../images/arrow-next.gif border=1 id=next/
/f:facet
f:facet name=fastforwardfacet
t:graphicImage url=../images/arrow-ff.gif border=1 id=fastf/
/f:facet
f:facet name=fastrewindfacet
t:graphicImage url=../images/arrow-fr.gif border=1 id=fastr/
/f:facet
/t:dataScroller
/h:panelGrid


/h:panelGroup
/div
/div

/h:form


   

Sé un Mejor Amante del Cine 
¿Quieres saber cómo? ¡Deja que otras personas te ayuden!
http://advision.webevents.yahoo.com/reto/entretenimiento.html

rendered problem

2007-07-04 Thread Angel Miralles Arevalo
Hi everybody, how can I send request parameters inside a panelGrid with 
rendered attribute?. This rendered attribute is controlled by a boolean and I 
have an inputHidden with the boolean in order to control when is true or false.

The problem is the request is always null (all attributes in request).

Thanks!!!


   

¡Descubre una nueva forma de obtener respuestas a tus preguntas!
Entra en Yahoo! Respuestas.
http://es.answers.yahoo.com/info/welcome

Re: rendered problem

2007-07-04 Thread Angel Miralles Arevalo
I forget the code:

!-- Detalle Impacto Automatico --
h:panelGrid columns=1 cellpadding=15 cellspacing=0 border=0 
styleClass=porcen100 rendered=#{automaticImpactsListBean.showDetail}
h:panelGroup
h:panelGrid columns=2 columnClasses=porcen25 hleft, porcen75 hleft 
cellpadding=0 cellspacing=0 border=0 styleClass=porcen100
h:panelGroup 
h:outputLabel for=newCode value=#{msg.code} 
styleClass=tit_tab/h:outputLabel
f:verbatimbr/f:verbatim
h:inputText id=newCode value=#{automaticImpactsListBean.code} 
styleClass=porcen60/h:inputText
/h:panelGroup
.

code attribute is always null!

Thanks

- Mensaje original 
De: Angel Miralles Arevalo [EMAIL PROTECTED]
Para: users@myfaces.apache.org
Enviado: miércoles, 4 de julio, 2007 15:38:11
Asunto: rendered problem


Hi everybody, how can I send request parameters inside a panelGrid with 
rendered attribute?. This rendered attribute is controlled by a boolean and I 
have an inputHidden with the boolean in order to control when is true or false.
 
The problem is the request is always null (all attributes in request).
 
Thanks!!!




¡Descubre una nueva forma de obtener respuestas a tus preguntas!
Entra en Yahoo! Respuestas.


   

¡Descubre una nueva forma de obtener respuestas a tus preguntas!
Entra en Yahoo! Respuestas.
http://es.answers.yahoo.com/info/welcome

Re: rendered problem

2007-07-04 Thread Angel Miralles Arevalo
I forget the code:
 
!-- Detalle Impacto Automatico --
h:panelGrid columns=1 cellpadding=15 cellspacing=0 border=0 
styleClass=porcen100 rendered=#{automaticImpactsListBean.showDetail}
h:panelGroup
h:panelGrid columns=2 columnClasses=porcen25 hleft, porcen75 hleft 
cellpadding=0 cellspacing=0 border=0 styleClass=porcen100
h:panelGroup 
h:outputLabel for=newCode value=#{msg.code} 
styleClass=tit_tab/h:outputLabel
f:verbatimbr/f:verbatim
h:inputText id=newCode value=#{automaticImpactsListBean.code} 
styleClass=porcen60/h:inputText
/h:panelGroup
.

See h:panelGrid rendered=#{bean.showDetail}. Inside this panelGrid code 
attribute is always null when you try to send by request!
 
Thanks



- Mensaje original 
De: Arvind Pandey [EMAIL PROTECTED]
Para: MyFaces Discussion users@myfaces.apache.org
Enviado: jueves, 5 de julio, 2007 6:37:15
Asunto: RE: rendered problem


Hi Angel ,
Can you elaborate your problem in more details?
Also send the part of your code , bean and jsp... so we can help it.
 
regards
Arvind
 
-Original Message-
From: Angel Miralles Arevalo [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 04, 2007 7:08 PM
To: users@myfaces.apache.org
Subject: rendered problem


Hi everybody, how can I send request parameters inside a panelGrid with 
rendered attribute?. This rendered attribute is controlled by a boolean and I 
have an inputHidden with the boolean in order to control when is true or false.
 
The problem is the request is always null (all attributes in request).
 
Thanks!!!




¡Descubre una nueva forma de obtener respuestas a tus preguntas!
Entra en Yahoo! Respuestas.



 



Disclaimer: The information contained in this e-mail and attachments if any are 
privileged and confidential and are intended for the individual(s) or 
entity(ies) named in this e-mail. If the reader or recipient is not the 
intended recipient, or employee or agent responsible for delivering to the 
intended recipient, you are hereby notified that dissemination, distribution or 
copying of this communication or attachments thereof is strictly prohibited. IF 
YOU RECEIVE this communication in error, please immediately notify the sender 
and return the original message.



__ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com

invoke s:modalDialog

2007-07-02 Thread Angel Miralles Arevalo
Hi everybody, I have a little problem while trying to invoke a s:modalDialog 
. I try with a h:commandButtom and h:commandLink to invoke it but when you 
use them then you get a request cycle, i.e. page get updated after 5 seconds. 

Using an h:outputText onclick=dojoDialogForm.show() there is no request 
until you click on s:modalDialog  hiderIds=cancelButtom  espicifed buttom 
but it generate a javascript error:

Error: bad srcObj for srcFunc: onclick
Archivo de origen: 
http://www.irian.at/myfaces-sandbox/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11831103/dojo.DojoResourceLoader/dojo.js
Línea: 94

Anybody to help me? Thanks!!


   

¡Descubre una nueva forma de obtener respuestas a tus preguntas!
Entra en Yahoo! Respuestas.
http://es.answers.yahoo.com/info/welcome

Re: [Tobago] Urgent please Help

2007-06-26 Thread Angel Miralles Arevalo
I had the same problem. My tree shows a lot information so charge time was too 
large. What I did was set treeHandler(Managed bean that controls tree) in 
session scope then when you make some operation and the tree is going to be 
recalculated check if it is in session. If it is then all the logic is 
ignored...

Only when you make some operation over the tree like update a branch you apply 
the logic...

Here is my code:

/**
* This Method create the tree structure.
* @author seami
* @return TreeNode
*/
public TreeNode getTreeData(){ 
if (this.treeData == null)
{
recreateTreeData();
}
return this.treeData;
}

public void recreateTreeData(){ ..}


- Mensaje original 
De: yazid [EMAIL PROTECTED]
Para: users@myfaces.apache.org
Enviado: martes, 26 de junio, 2007 14:06:29
Asunto: Re: [Tobago] Urgent please Help


yazid wrote:
 
 I'm using tree in many page in my application; on any click in any page
 all the tree are  reloaded, 
 Is there a solution to avoid this.
 

-- 
View this message in context: 
http://www.nabble.com/-Tobago--Is-it-possible-to-avoid-tree-refresh-tf3967204.html#a11304437
Sent from the MyFaces - Users mailing list archive at Nabble.com.



__ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com

Re: t:dataScroller doesn't work

2007-06-25 Thread Angel Miralles Arevalo
Try to delete immediate=true attribute from dataScroller. I have the same 
code as you and it works.


- Mensaje original 
De: Brummeline Braaten [EMAIL PROTECTED]
Para: users@myfaces.apache.org
Enviado: lunes, 25 de junio, 2007 8:33:27
Asunto: Re: t:dataScroller doesn't work


Brummeline Braaten brummeline at gmail.com writes:

 
 I can't get the t:dataScroller to work. 
 I use tomahawk 1.1.5 and myfaces 1.1.5. The error I get is this:
 javax.servlet.ServletException: /innhold/metodevarselliste2.jsp(47,12) 
 Unable to find setter method for attribute: immediate
 javax.faces.webapp.FacesServlet.service(FacesServlet.java:154)
 
 What is causing this? Do I need to make a tomahawk.taglib? 
 
 

I forgot to ad my code:
[EMAIL PROTECTED] uri=http://java.sun.com/jsf/core;; prefix=f%
[EMAIL PROTECTED] uri=http://java.sun.com/jsf/html;; prefix=h%
%@ taglib uri=http://myfaces.apache.org/tomahawk;; prefix=t%
[EMAIL PROTECTED] buffer=none%
f:loadBundle var=msg basename=no.naks.web.jsf.messages/
h:form
div id=fane
div class=faneinnhold
div id=overskriftRegistrerte metodevarsler/div
 h:panelGroup id=body
t:dataTable var=notices id=notices binding=#{notice.noticeTable}
rows=#{notice.numNoticePage} styleClass=metodevarselliste 
h:column id=idkolonne
  f:facet name=header
h:outputText id=idheader 
value=#{msg.varsel_id}/h:outputText
/f:facet 
  h:commandLink id=noteclink binding=#{notice.noticeLink}
action=#{notice.getNoticeDetail} 
h:outputText id=adminident 
value=#{notices.noticeId}/h:outputText
/h:commandLink
/h:column
 h:column id=tittelkolonne 
  f:facet name=header
   h:outputText id=tittelheader 
value=#{msg.varsel_tittel}/h:outputText
/f:facet 
h:outputText id=tittel 
value=#{notices.title}/h:outputText
/h:column
 h:column id=datokolonne 
  f:facet name=header
h:outputText id=datoheader
value=#{msg.varsel_utarbeidelsesdato}/h:outputText
/f:facet 
h:outputText id=produsertdato value=#{notices.produceDate}
f:convertDateTime//h:outputText
/h:column
h:column id=datopubkolonne 
  f:facet name=header
h:outputText id=datopubheader
value=#{msg.varsel_publisertdato}/h:outputText
/f:facet 
h:outputText id=publisertdato value=#{notices.produceDate}
f:convertDateTime//h:outputText
/h:column
h:column id=eierkolonne 
  f:facet name=header
   h:outputText id=eierheader
value=#{msg.varsel_metodeeier}/h:outputText
/f:facet 
h:outputText id=owner 
value=#{notices.ownerName}/h:outputText
/h:column
/t:dataTable

h:panelGrid columns=1 
t:dataScroller id=scroll_1
for=notices
fastStep=10
pageCountVar=pageCount
pageIndexVar=pageIndex
styleClass=scroller
paginator=true
paginatorMaxPages=9
paginatorTableClass=paginator
paginatorActiveColumnStyle=font-weight:bold;
immediate=true
actionListener=#{scrollerList.scrollerAction}

f:facet name=first 
t:graphicImage url=images/arrow-first.gif border=1 /
/f:facet
f:facet name=last
t:graphicImage url=images/arrow-last.gif border=1 /
/f:facet
f:facet name=previous
t:graphicImage url=images/arrow-previous.gif border=1 
/
/f:facet
f:facet name=next
t:graphicImage url=images/arrow-next.gif border=1 /
/f:facet
f:facet name=fastforward
t:graphicImage url=images/arrow-ff.gif border=1 /
/f:facet
f:facet name=fastrewind
t:graphicImage url=images/arrow-fr.gif border=1 /
/f:facet
/t:dataScroller
t:dataScroller id=scroll_2
for=notices
rowsCountVar=rowsCount
displayedRowsCountVar=displayedRowsCountVar
firstRowIndexVar=firstRowIndex
lastRowIndexVar=lastRowIndex
pageCountVar=pageCount
immediate=true
pageIndexVar=pageIndex

h:outputFormat value= styleClass=standard 
f:param value=#{rowsCount} /
f:param value=#{displayedRowsCountVar} /

Re: t:dataScroller doesn't work

2007-06-25 Thread Angel Miralles Arevalo
Here, you can see what code I have, I hope it will help you: 

t:dataTable styleClass=porcen100 vtop 
id=serviceIdDocument_tab 
bgcolor=#AEB8D4 cellspacing=1 cellpadding=0 border=0
headerClass=list-header 
rowClasses=datos_impar_off,datos_par_off 
var=serviceIdDocumentList
value=#{servicesServiceByPkBean.serviceIdDocumentList}
binding=#{servicesServiceByPkBean.lstServiceIdDocumentData}
preserveDataModel=true
rows=5
sortColumn=#{servicesServiceByPkBean.column} 
sortAscending=#{servicesServiceByPkBean.ascending}
preserveSort=true
columnClasses=hleft porcen45, hleft porcen45, hcenter porcen10
f:facet name=header
t:outputText value=#{msg.documentos_servicio} styleClass=tab3_on /
/f:facet
%-- Referencia Documento --%
h:column
f:facet name=header
t:commandSortHeader columnName=idDocument arrow=true immediate=false
t:outputText value=#{msg.referencia} styleClass=tab3_on /
/t:commandSortHeader
/f:facet
h:outputText value=#{serviceIdDocumentList.sid} 
styleClass=text_popup_miembros/
/h:column
%-- Nombre Documento --%
h:column
f:facet name=header
t:commandSortHeader columnName=idDocumentDM arrow=true immediate=false
t:outputText value=#{msg.documento} styleClass=tab3_on /
/t:commandSortHeader
/f:facet
t:popup styleClass=popup_miembros 
closePopupOnExitingElement=true
closePopupOnExitingPopup=true
displayAtDistanceX=10
displayAtDistanceY=10 
t:outputText id=description value=#{serviceIdDocumentList.idDocumentDM} 
escape=false
xxx:truncateOutput truncateAt=35 continuationMark=.../
/t:outputText
f:facet name=popup
h:panelGroup 
h:panelGrid columns=1 
h:outputText value=#{serviceIdDocumentList.idDocumentDM} 
styleClass=text_popup_miembros/
/h:panelGrid
/h:panelGroup
/f:facet
/t:popup
/h:column
!-- Boton Ver Documentos --
h:column
f:facet name=header
t:outputText value= styleClass=tab3_on /
/f:facet
h:selectBooleanCheckbox id=sel 
value=#{serviceIdDocumentList.selected}/h:selectBooleanCheckbox
/h:column
/t:dataTable
%-- Paginacion --%
t:dataScroller for=serviceIdDocument_tab
pageCountVar=pageCount
pageIndexVar=pageIndex
styleClass=tit_tab hcenter
paginator=false
paginatorTableClass=tit_tab porcen100
paginatorActiveColumnStyle=font-weight:bold;
rowsCountVar=rowsCount
f:facet name=first 
t:popup styleClass=popup_miembros closePopupOnExitingElement=true
closePopupOnExitingPopup=true
displayAtDistanceX=10
displayAtDistanceY=10 
t:graphicImage url=/imagenes/btn_ini_pag.gif border=0 
style=margin-left:310px; /
f:facet name=popup
h:panelGroup 
h:panelGrid columns=1 
h:outputText value=#{msg.primera} styleClass=text_popup_miembros/
/h:panelGrid
/h:panelGroup
/f:facet
/t:popup
/f:facet
f:facet name=last
t:popup styleClass=popup_miembros closePopupOnExitingElement=true
closePopupOnExitingPopup=true
displayAtDistanceX=10
displayAtDistanceY=10 
t:graphicImage url=/imagenes/btn_fin_pag.gif border=0 /
f:facet name=popup
h:panelGroup 
h:panelGrid columns=1 
h:outputText value=#{msg.ultima} styleClass=text_popup_miembros/
/h:panelGrid
/h:panelGroup
/f:facet
/t:popup
/f:facet
f:facet name=previous
t:popup styleClass=popup_miembros closePopupOnExitingElement=true
closePopupOnExitingPopup=true
displayAtDistanceX=10
displayAtDistanceY=10 
t:graphicImage url=/imagenes/btn_ant_pag.gif border=0 /
f:facet name=popup
h:panelGroup 
h:panelGrid columns=1 
h:outputText value=#{msg.anterior} styleClass=text_popup_miembros/
/h:panelGrid
/h:panelGroup
/f:facet
/t:popup
/f:facet
f:facet name=next
t:popup styleClass=popup_miembros closePopupOnExitingElement=true
closePopupOnExitingPopup=true
displayAtDistanceX=10
displayAtDistanceY=10 
t:graphicImage url=/imagenes/btn_prox_pag.gif border=0 /
f:facet name=popup
h:panelGroup 
h:panelGrid columns=1 
h:outputText value=#{msg.siguiente} styleClass=text_popup_miembros/
/h:panelGrid
/h:panelGroup
/f:facet
/t:popup
/f:facet
h:outputFormat value=Pág {0} de {1} ( {2} registros) styleClass=hcenter 
tit_tab 
f:param value=#{pageIndex} /
f:param value=#{pageCount} /
f:param value=#{rowsCount} /
/h:outputFormat
/t:dataScroller

I only have a datascroller, I read once having two could create some problem...

Good luck!!



- Mensaje original 
De: Brummeline Braaten [EMAIL PROTECTED]
Para: users@myfaces.apache.org
Enviado: lunes, 25 de junio, 2007 9:51:31
Asunto: Re: t:dataScroller doesn't work


 Try to delete immediate=true attribute from dataScroller. I have the same
code as you and it works.- Mensaje original 

I tried to delete the immediate=true but then I get this error: 
javax.servlet.ServletException: /innhold/metodevarselliste2.jsp(47,12) 
Unable to find setter method for attribute: actionListener
javax.faces.webapp.FacesServlet.service(FacesServlet.java:154)





__ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com

toggleDuration problem in s:modalDialog

2007-06-21 Thread Angel Miralles Arevalo
Hi everyone, can anybody tell me how can I elminate toggleDuration in a modal 
dialog? In Irian's example you open the modal dialog and it doesn't expires. 
Moreover when you close modal dialog it doesn't make request (server side).

Thank you very much.


   

¡Descubre una nueva forma de obtener respuestas a tus preguntas!
Entra en Yahoo! Respuestas.
http://es.answers.yahoo.com/info/welcome

Using modal dialog from Sandbox!

2007-06-20 Thread Angel Miralles Arevalo
Hi everyone, please someone who uses modal dialog from Sandbox...

I'm trying to send some information (inputText) from a modal dialog (like Irian 
example). It is possible?

Thank you very much.


   

¡Descubre una nueva forma de obtener respuestas a tus preguntas!
Entra en Yahoo! Respuestas.
http://es.answers.yahoo.com/info/welcome

Re: Using modal dialog from Sandbox!

2007-06-20 Thread Angel Miralles Arevalo
Thank you very much Werner for answering me. I'm new on JSF and I'm a bite 
loose. I had the modal dialog box embebed inside the same form that's why I 
couldn't get request parameters.

Another question for you, can you execute an action or actionListener from 
modal dialog and redisplay the modal dialog with new data without close it? 

Thanks again.


- Mensaje original 
De: Werner Punz [EMAIL PROTECTED]
Para: users@myfaces.apache.org
Enviado: miércoles, 20 de junio, 2007 13:28:08
Asunto: Re: Using modal dialog from Sandbox!


Angel Miralles Arevalo schrieb:
 Hi everyone, please someone who uses modal dialog from Sandbox...
  
 I'm trying to send some information (inputText) from a modal dialog
 (like Irian example). It is possible?
  
 Thank you very much.
 

Yes you can do it the following ways
define the modal dialog box in its own form (never embed it in a form
that does not work) and then do a simple submit...

Use saveState or other techniques to keep the values outside of the form
which you want to preserve

Alternatively you can use javascript, you can define a javaScriptVar
name and use a javascript with a hide statement  to close the dialog
but then you have to move the values into their corresponding fields
in your main form.

Either way works.



__ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com

Re: Using modal dialog from Sandbox!

2007-06-20 Thread Angel Miralles Arevalo
Thanks for all Werner.


- Mensaje original 
De: Werner Punz [EMAIL PROTECTED]
Para: users@myfaces.apache.org
Enviado: miércoles, 20 de junio, 2007 14:03:34
Asunto: Re: Using modal dialog from Sandbox!


Angel Miralles Arevalo schrieb:
 Thank you very much Werner for answering me. I'm new on JSF and I'm a
 bite loose. I had the modal dialog box embebed inside the same form
 that's why I couldn't get request parameters.
  
 Another question for you, can you execute an action or actionListener
 from modal dialog and redisplay the modal dialog with new data without
 close it?
  

Well yes and no...
The probably easiest way to work with this is to use iframes and embed
separate jsf pages.

I once programmed a small wizard using this technique, I was embedding
iframes to do everything.
But the trick to do this is to either use something which keeps your
data stateful.
saveState is probably the easiest way, Orchestra a more sophisticated way.


   

¡Descubre una nueva forma de obtener respuestas a tus preguntas!
Entra en Yahoo! Respuestas.
http://es.answers.yahoo.com/info/welcome

s:modalDialog

2007-06-18 Thread Angel Miralles Arevalo
Hi everyone, can anybody tell me if it's possible to have an inputText inside a 
modal dialog and regard it when we close the dialog. 

I'm trying but the value is always empty. It is impossible to call an action 
method or an action listener too.

Thanks a lot!!!


   

¡Descubre una nueva forma de obtener respuestas a tus preguntas!
Entra en Yahoo! Respuestas.
http://es.answers.yahoo.com/info/welcome

Re: DataScroller - Rendering/Pagination problem when rendered attribute is set to a conditional EL expression

2007-05-29 Thread Angel Miralles Arevalo
I suppose you are paging with t:dataScroller. Then try with the next 
datascroller's attribute: 

renderFacetsIfSinglePage=

I think you have to put it to false...



- Mensaje original 
De: Torsten Krah [EMAIL PROTECTED]
Para: [EMAIL PROTECTED]
CC: MyFaces Discussion users@myfaces.apache.org
Enviado: lunes, 28 de mayo, 2007 19:19:50
Asunto: Re: DataScroller - Rendering/Pagination problem when rendered attribute 
is set to a conditional EL expression


This rendered stuff has even more problems:

Using:

rendered=#{not empty @managed-bean-name.users}

at my t:dataTable, does result in breaking all actions, the table might
emit (deleting rows, editing some).
Using facestrace and message tag, no errors - lifecycle does complete
all 6 phases - but nothing happens - my bean methods aren't invoked.
Navigation actions neither.
No exceptions - all looks good, but nothing is done.

If i remove the rendered attribute of the table - stuff works again.

Did i miss something about the rendered attribute?

Torsten

Am Montag, den 28.05.2007, 18:44 +0200 schrieb Torsten Krah:
 I want to render the paginator only, if the actual datasize is greater
 than the actual row size.
 
 
 Setting 
 
 rendered=[EMAIL PROTECTED] gt @managed-bean-name.rows}
 
 does reflect that and works, but if i got a list size of 2 and changing
 the rows to 1 - paginator shows 2 pages. 
 But you can't change the page - you are bound to page 1.
 
 Deleting the rendered EL expression - paginator works again, but is
 there all the time.
 
 Should be a bug, shouldn't it?
 
 Torsten


   

¡Descubre una nueva forma de obtener respuestas a tus preguntas!
Entra en Yahoo! Respuestas.
http://es.answers.yahoo.com/info/welcome

Re: problem with using style sheets in faces frame work.

2007-05-22 Thread Angel Miralles Arevalo
The problem could be you aren't specifying the right route to image directory:

Where have you defined the  image directory in your project structure???

Moreover try: 

.bg{
background-image:url(image.jpg);
}

with doble quote.


- Mensaje original 
De: shree [EMAIL PROTECTED]
Para: users@myfaces.apache.org
Enviado: martes, 22 de mayo, 2007 11:25:18
Asunto: problem with using style sheets in faces frame work.


hi all,
i am using jsf frame work.
i am trying to apply background-image for a page using style sheets.
my code for style class is like below.

.bg{
background-image:url(image.jpg);
}

This is not getting applied to my jsf page.
but it is working fine for an html page.

how can i solve this problem.
some body please help me.

thanks in advace,
shree.

-- 
View this message in context: 
http://www.nabble.com/problem-with-using-style-sheets-in-faces-frame-work.-tf3795181.html#a10734373
Sent from the MyFaces - Users mailing list archive at Nabble.com.





__ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com

Re: problem with using style sheets in faces frame work.

2007-05-22 Thread Angel Miralles Arevalo
where are the images directories from WEB-INF?


- Mensaje original 
De: shree [EMAIL PROTECTED]
Para: users@myfaces.apache.org
Enviado: martes, 22 de mayo, 2007 12:19:37
Asunto: Re: problem with using style sheets in faces frame work.


my images r in different folder.
i hv provided the correct path only...like below

background-image:url(/resources/images/image.jpg);

with quotations also it is not getting applied.

-- 
View this message in context: 
http://www.nabble.com/problem-with-using-style-sheets-in-faces-frame-work.-tf3795181.html#a10735085
Sent from the MyFaces - Users mailing list archive at Nabble.com.



__ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com

Re: s:pprPanelGroup and datascroller

2007-05-21 Thread Angel Miralles Arevalo
Don´t worry about the problem. It works!!! The solution was establish: 
preserveDataModel=false and sent binding values at inputText field in order to 
reset datascroller.

There are two execution of methods (can you explain why is this happening? 
lifeCycle???). At first execution you recieve binding values, in this step you 
can reset datascroller internal variables (pageIndex, rowsCount, ...) depending 
from previous binding values

Thanks for your interest Ernst. Only one thing, can you explain me why the two 
execution of methods when you go to server (Request - Response). Thank you very 
much!!!


- Mensaje original 
De: Ernst Fastl [EMAIL PROTECTED]
Para: MyFaces Discussion users@myfaces.apache.org
Enviado: sábado, 19 de mayo, 2007 15:52:11
Asunto: Re: s:pprPanelGroup and datascroller


Thanks for the detailed information,

I will try to reproduce the problem. Am I correctly asuming
that the inputText you are referring to is some sort of a search string
which shrinks the list of the datatable to matching entries?

and i guess you are using something like onchange=submit(this); for
the inputText right?

kind regards

Ernst

On 5/17/07, Angel Miralles Arevalo [EMAIL PROTECTED] wrote:

 Let me explain, I have a paged datatable. I'm trying to refresh datalist
 trhough an inputText, when user insert some text (trigger) my datatable get
 refresh by ajax (s:pprPanelGroup).

 All work perfect, datalist get updated, datamodel seems to update new
 variables (pageIndex, rowsCount, ...) but when you click on last buttom
 (paginator) it drive you through last page from old search, ie:

 rows = 5
 initial results --- 25 / 5 = 5 pages.
 filter results  15 / 5 = 3 pages.
 click last buttom -- you go to page 5 of 3 (15 results)

 Thanks for all!!!

 - Mensaje original 
 De: Ernst Fastl [EMAIL PROTECTED]
 Para: MyFaces Discussion users@myfaces.apache.org
 Enviado: martes, 15 de mayo, 2007 23:20:28
 Asunto: Re: s:pprPanelGroup and datascroller



 Seems to work fine for me on:

 http://example.irian.at/example-sandbox-20070514/pprPanelGroupDataScroller.jsf

 what exactly do you mean?

 On 5/11/07, Angel Miralles Arevalo [EMAIL PROTECTED] wrote:
 
  Hi everybody,
 
  can anybody tell me why, when you have a datatable with datascroller
 inside
  label: s:pprPanelGroup/s:pprPanelGroup the internal
  datascroller variables (pageIndex,...) don't refresh until you go to
 server.
 
  Thank you very much...
 
   
 
  LLama Gratis a cualquier PC del Mundo.
  Llamadas a fijos y móviles desde 1 céntimo por minuto.
  http://es.voice.yahoo.com


  

 ¡Descubre una nueva forma de obtener respuestas a tus preguntas!
 Entra en Yahoo! Respuestas.



   

¡Descubre una nueva forma de obtener respuestas a tus preguntas!
Entra en Yahoo! Respuestas.
http://es.answers.yahoo.com/info/welcome

sending binding values!

2007-05-21 Thread Angel Miralles Arevalo
Hi everybody,

can anyone explain me when exactly are binding values sent? I have the 
scenario: 

s:pprPanelGroup id=TableGroupsPPR partialTriggers=buscaPor,buscaDescPor 
inlineLoadingMessage=Cargando...
...
h:inputHidden id=buscaDescPorHidden  
 
value=#{authorizationAllGroupsBean.buscaDescPorHidden} 
 
binding=#{authorizationAllGroupsBean.buscaDescPorHidBin}/h:inputHidden
/s:pprPanelGroup

Binding value is always =null. I get updated 

value=#{authorizationAllGroupsBean.buscaDescPorHidden} 

but binding value is null.

Thanks a lot


   

¡Descubre una nueva forma de obtener respuestas a tus preguntas!
Entra en Yahoo! Respuestas.
http://es.answers.yahoo.com/info/welcome

Re: s:pprPanelGroup and datascroller

2007-05-17 Thread Angel Miralles Arevalo
Let me explain, I have a paged datatable. I'm trying to refresh datalist 
trhough an inputText, when user insert some text (trigger) my datatable get 
refresh by ajax (s:pprPanelGroup). 

All work perfect, datalist get updated, datamodel seems to update new variables 
(pageIndex, rowsCount, ...) but when you click on last buttom (paginator) it 
drive you through last page from old search, ie:

rows = 5
initial results --- 25 / 5 = 5 pages.
filter results  15 / 5 = 3 pages.
click last buttom -- you go to page 5 of 3 (15 results)

Thanks for all!!!

- Mensaje original 
De: Ernst Fastl [EMAIL PROTECTED]
Para: MyFaces Discussion users@myfaces.apache.org
Enviado: martes, 15 de mayo, 2007 23:20:28
Asunto: Re: s:pprPanelGroup and datascroller


Seems to work fine for me on:

http://example.irian.at/example-sandbox-20070514/pprPanelGroupDataScroller.jsf

what exactly do you mean?

On 5/11/07, Angel Miralles Arevalo [EMAIL PROTECTED] wrote:

 Hi everybody,

 can anybody tell me why, when you have a datatable with datascroller inside
 label: s:pprPanelGroup/s:pprPanelGroup the internal
 datascroller variables (pageIndex,...) don't refresh until you go to server.

 Thank you very much...

  

 LLama Gratis a cualquier PC del Mundo.
 Llamadas a fijos y móviles desde 1 céntimo por minuto.
 http://es.voice.yahoo.com


   

¡Descubre una nueva forma de obtener respuestas a tus preguntas!
Entra en Yahoo! Respuestas.
http://es.answers.yahoo.com/info/welcome

Re: Sandbox behaviour!!

2007-05-16 Thread Angel Miralles Arevalo
Hi evrybody,

I have configured it:


application
view-handler
org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl
/view-handler
locale-config
default-localees/default-locale
/locale-config
message-bundle
servidesk.messages.MessageResources
/message-bundle
/application

But still necesary to put:




- Mensaje original 
De: Adam Winer [EMAIL PROTECTED]
Para: MyFaces Discussion users@myfaces.apache.org
Enviado: miércoles, 16 de mayo, 2007 9:06:14
Asunto: Re: Sandbox behaviour!!


Yes, in JSF 1.2 you can add a resource-bundle tag to
faces-config.xml, which will add a ResourceBundle as
if it were a managed bean available on all pages.  This
is more efficient than f:loadBundle, and also makes the
resource bundle available at all parts of the JSF lifecycle
(instead of just during Render Response).

-- Adam Winer


On 5/15/07, Mario Ivankovits [EMAIL PROTECTED] wrote:
 Hi!
  try using s:loadBundle instead of f:loadBundle for your messages
 If there is only one bundle for your application I'd suggest to
 configure it as managed bean (implementing the map interface).

 That way you
 * can get rid of configuring it on each page
 * have it available even for ajax requests
 * it is JSF 1.2 like (as far as I know you can configure it there with a
 special managed-bean entry)

 Ciao,
 Mario
 
  regards
 
  Ernst
 
  On 5/15/07, Angel Miralles Arevalo [EMAIL PROTECTED] wrote:
 
  Hi everybody,
 
  can anybody explain me, what are functionalities for sandbox
  components? For
  example if you put a message from a .properties inside a
  s:pprPanelGroup/s:pprPanelGroup. When you execute the
  component (ajax) the message has disappeared!
 
  Thank you very much!!
 
   
 
  LLama Gratis a cualquier PC del Mundo.
  Llamadas a fijos y móviles desde 1 céntimo por minuto.
  http://es.voice.yahoo.com
 




   

¡Descubre una nueva forma de obtener respuestas a tus preguntas!
Entra en Yahoo! Respuestas.
http://es.answers.yahoo.com/info/welcome

Re: Sandbox behaviour!!

2007-05-16 Thread Angel Miralles Arevalo
Hi evrybody,
 
I have configured it:
 

application
view-handler
org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl
/view-handler
locale-config
default-localees/default-locale
/locale-config
message-bundle
servidesk.messages.MessageResources
/message-bundle
/application
 
But still necesary to write?

s:loadBundle var=msg basename=servidesk.messages.MessageResources/



- Mensaje original 
De: Angel Miralles Arevalo [EMAIL PROTECTED]
Para: MyFaces Discussion users@myfaces.apache.org
Enviado: miércoles, 16 de mayo, 2007 12:48:42
Asunto: Re: Sandbox behaviour!!


Hi evrybody,
 
I have configured it:
 

application
view-handler
org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl
/view-handler
locale-config
default-localees/default-locale
/locale-config
message-bundle
servidesk.messages.MessageResources
/message-bundle
/application
 
But still necesary to put:
 



- Mensaje original 
De: Adam Winer [EMAIL PROTECTED]
Para: MyFaces Discussion users@myfaces.apache.org
Enviado: miércoles, 16 de mayo, 2007 9:06:14
Asunto: Re: Sandbox behaviour!!


Yes, in JSF 1.2 you can add a resource-bundle tag to
faces-config.xml, which will add a ResourceBundle as
if it were a managed bean available on all pages.  This
is more efficient than f:loadBundle, and also makes the
resource bundle available at all parts of the JSF lifecycle
(instead of just during Render Response).

-- Adam Winer


On 5/15/07, Mario Ivankovits [EMAIL PROTECTED] wrote:
 Hi!
  try using s:loadBundle instead of f:loadBundle for your messages
 If there is only one bundle for your application I'd suggest to
 configure it as managed bean (implementing the map interface).

 That way you
 * can get rid of configuring it on each page
 * have it available even for ajax requests
 * it is JSF 1.2 like (as far as I know you can configure it there with a
 special managed-bean entry)

 Ciao,
 Mario
 
  regards
 
  Ernst
 
  On 5/15/07, Angel Miralles Arevalo [EMAIL PROTECTED] wrote:
 
  Hi everybody,
 
  can anybody explain me, what are functionalities for sandbox
  components? For
  example if you put a message from a .properties inside a
  s:pprPanelGroup/s:pprPanelGroup. When you execute the
  component (ajax) the message has disappeared!
 
  Thank you very much!!
 
   
 
  LLama Gratis a cualquier PC del Mundo.
  Llamadas a fijos y móviles desde 1 céntimo por minuto.
  http://es.voice.yahoo.com
 








¡Descubre una nueva forma de obtener respuestas a tus preguntas!
Entra en Yahoo! Respuestas.



__ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com

Re: configure language bundle as managed bean (was: Sandbox behaviour!!)

2007-05-16 Thread Angel Miralles Arevalo
I tried with s:loadBundle but it doesn`t work. There is no message where use 
to be with f:loadBundle .
 I'll try your solution!!

Thanks Mario!!!


- Mensaje original 
De: Mario Ivankovits [EMAIL PROTECTED]
Para: MyFaces Discussion users@myfaces.apache.org
Enviado: miércoles, 16 de mayo, 2007 14:39:08
Asunto: configure language bundle as managed bean (was: Sandbox behaviour!!)


Hi!

I meant you create a managed bean entry, something like:

managed-bean
managed-bean-namebundle/managed-bean-name
   
managed-bean-classyour.package.name.LanguageBundler/managed-bean-class
managed-bean-scopeapplication/managed-bean-scope
/managed-bean

where LanguageBundler is a class implementing the Map interface and the
methods
containsKey and get - the rest can throw an UnsupportedOperationException
In get() read from your ResourceBundle.

That way you are close to JSF 1.2 and the problems outlined previously
are gone.

Hope this helps!

Ciao,
Mario
 Hi evrybody,
  
 I have configured it:
  


 application

 view-handler

 org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl

 /view-handler

 locale-config

 default-localees/default-locale

 /locale-config

 message-bundle

 servidesk.messages.MessageResources

 /message-bundle

 /application

  

 But still necesary to put:

  



 - Mensaje original 
 De: Adam Winer [EMAIL PROTECTED]
 Para: MyFaces Discussion users@myfaces.apache.org
 Enviado: miércoles, 16 de mayo, 2007 9:06:14
 Asunto: Re: Sandbox behaviour!!

 Yes, in JSF 1.2 you can add a resource-bundle tag to
 faces-config.xml, which will add a ResourceBundle as
 if it were a managed bean available on all pages.  This
 is more efficient than f:loadBundle, and also makes the
 resource bundle available at all parts of the JSF lifecycle
 (instead of just during Render Response).

 -- Adam Winer


 On 5/15/07, Mario Ivankovits [EMAIL PROTECTED] wrote:
  Hi!
   try using s:loadBundle instead of f:loadBundle for your messages
  If there is only one bundle for your application I'd suggest to
  configure it as managed bean (implementing the map interface).
 
  That way you
  * can get rid of configuring it on each page
  * have it available even for ajax requests
  * it is JSF 1.2 like (as far as I know you can configure it there with a
  special managed-bean entry)
 
  Ciao,
  Mario
  
   regards
  
   Ernst
  
   On 5/15/07, Angel Miralles Arevalo [EMAIL PROTECTED] wrote:
  
   Hi everybody,
  
   can anybody explain me, what are functionalities for sandbox
   components? For
   example if you put a message from a .properties inside a
   s:pprPanelGroup/s:pprPanelGroup. When you execute the
   component (ajax) the message has disappeared!
  
   Thank you very much!!
  

  
   LLama Gratis a cualquier PC del Mundo.
   Llamadas a fijos y móviles desde 1 céntimo por minuto.
   http://es.voice.yahoo.com http://es.voice.yahoo.com/
  
 
 


 

 ¡Descubre una nueva forma de obtener respuestas a tus preguntas!
 Entra en Yahoo! Respuestas
 http://es.answers.yahoo.com/;_ylc=X3oDMTEzNWwxbTZtBF9TAzIxMTQ3MTQxOTAEc2VjA01haWwEc2xrA3RhZ2xpbmVz.



__ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com

Sandbox behaviour!!

2007-05-15 Thread Angel Miralles Arevalo
Hi everybody,

can anybody explain me, what are functionalities for sandbox components? For 
example if you put a message from a .properties inside a 
s:pprPanelGroup/s:pprPanelGroup. When you execute the component (ajax) the 
message has disappeared!

Thank you very much!!





__ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com

s:pprPanelGroup and datascroller

2007-05-11 Thread Angel Miralles Arevalo
Hi everybody,

can anybody tell me why, when you have a datatable with datascroller inside 
label: s:pprPanelGroup/s:pprPanelGroup the internal datascroller variables 
(pageIndex,...) don't refresh until you go to server.

Thank you very much...




   

LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com

Tiles - binding from different h:form

2007-05-07 Thread Angel Miralles Arevalo
Hi everybody,

anybody working with tiles? I´m trying to get all values sent by binding.. the 
problem is than when you generate an event from a h:form you only can get 
binding values from this form. 

How can I get all values sent by binding although they depends on different 
managed-beans (different h:form)..?

Thnaks in advance...



__ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com

panelGrid scroll as frames!

2007-05-03 Thread Angel Miralles Arevalo
Hi everyone, is there any way of applaying scroll to a panelGroup or a 
PanelGrid? I'm trying to make the same as working with frames.

Thanks a lot.


   

LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com

Re: panelGrid scroll as frames!

2007-05-03 Thread Angel Miralles Arevalo
Thanks for your help, I had tried your solution but it doesn't work!! I will 
try with a iFrame but I don't know if it`s possible than the iframe will be 
handler like an independient page...

Thanks...


- Mensaje original 
De: Brummeline Braathen [EMAIL PROTECTED]
Para: users@myfaces.apache.org
Enviado: jueves, 3 de mayo, 2007 11:31:11
Asunto: Re: panelGrid scroll as frames!


Angel Miralles Arevalo anmiralles at yahoo.es writes:

 
 
 
 Hi everyone, is there any way of applaying scroll to a panelGroup or a
PanelGrid? I'm trying to make the same as working with frames.
  
 Thanks a lot.
 
 LLama Gratis a cualquier PC del Mundo.Llamadas a fijos y móviles desde 1
céntimo por minuto.http://es.voice.yahoo.com
 


I dont know if this works, but you can try to add the 
style attribute like this:

h:panelgrid style=overflow:auto


   

LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com

Re: panelGrid scroll as frames!

2007-05-03 Thread Angel Miralles Arevalo
Thanks a lot, that was the solution, use a t:div and apply style on it. It 
works!!


- Mensaje original 
De: Brummeline Braathen [EMAIL PROTECTED]
Para: users@myfaces.apache.org
Enviado: jueves, 3 de mayo, 2007 12:15:51
Asunto: Re: panelGrid scroll as frames!


Angel Miralles Arevalo anmiralles at yahoo.es writes:

 
 
 
 Thanks for your help, I had tried your solution but it doesn't work!! I will
try with a iFrame but I don't know if it`s possible than the iframe will be
handler like an independient page...
  
 Thanks...
 
 - Mensaje original De: Brummeline Braathen brummeline at
gmail.comPara: users at myfaces.apache.orgEnviado: jueves, 3 de mayo, 2007
11:31:11Asunto: Re: panelGrid scroll as frames!Angel Miralles Arevalo
anmiralles at yahoo.es writes:Hi everyone, is there any way of
applaying scroll to a panelGroup or aPanelGrid? I'm trying to make the same as
working with frames.   Thanks a lot.  LLama Gratis a cualquier PC del
Mundo.Llamadas a fijos y móviles desde 1céntimo por
minuto.http://es.voice.yahoo.com I dont know if this works, but you can try to
add the style attribute like this:h:panelgrid style=overflow:auto
 
 
 
 LLama Gratis a cualquier PC del Mundo.Llamadas a fijos y móviles desde 1
céntimo por minuto.http://es.voice.yahoo.com
 

Scrolling on div tags works, so if you add a div around the panelgrid, that
could perhaps work.


   

LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com

Select a tree node

2007-04-11 Thread Angel Miralles Arevalo
Hi everybody, someone can help me with the following problem? I have a tree as 
left menu and I'm trying to expand and select a node from the detail. 

I can expand the node through method: 


this.tree.expandPath(this.tree.getPathInformation(0:1:+gBean.getNodePath()));


But can't select the node because the method:

this.tree.setNodeSelected(event); 

Requires an ActionEvent.

Thank you!!!


   

LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com

Re: datatable paging problem!

2007-04-04 Thread Angel Miralles Arevalo
Thank you Mike for answer me but this is not the problem my list is in 
session-scope. Let me show you how I get the result list:

managed-bean
descriptionManejador para la creacion del arbol de autorizacion de 
usuarios/description
managed-bean-nameauthorizationTreeHandler/managed-bean-name
managed-bean-class
es.juntadeandalucia.servicedesk.view.bean.AuthorizationTreeHandler
/managed-bean-class
managed-bean-scopesession/managed-bean-scope
managed-property
property-nameserviceLocator/property-name
value#{serviceLocatorBean}/value
/managed-property
/managed-bean

This is the managed-bean where a obtain my list from database, and I pass it to 
another managed-bean as:

managed-property
property-namelstUsuarios/property-name
value#{sessionScope.lstUsuarios}/value
/managed-property

I don't know what's happening but sometimes when I click the last page buttom 
it shows some results but the paging is lost.

Thank you very much for helping me, I'm new in JSF and I have to learn a lot. I 
hope people this mailing list introduce me in JSF...




- Mensaje original 
De: Mike Kienenberger [EMAIL PROTECTED]
Para: MyFaces Discussion users@myfaces.apache.org
Enviado: miércoles, 4 de abril, 2007 0:42:21
Asunto: Re: datatable paging problem!


Having two datascrollers shouldn't matter.

Probably the error is because
#{authorizationResultListBean.lstUsuarios} is request-scoped and the
list no longer exists once you render the page.



__ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com

Master/detail in a tree2

2007-04-04 Thread Angel Miralles Arevalo
Hi, I'm trying to select a tree node from a detail page. Let me explain, I have 
a tree2 structure as left menu. The parent tree node represents a users list. 
His children are all the users logged in the portal. 

When I show the user's list as detail, I'd like to click in one row of the list 
and the user node will be expanded (I got it) and selected (seeing his detail).

The problem is than I need to generate a ActionEvent to navigate  in order to 
use the function: 

private HtmlTree tree;
tree.setNodeSelected(ActionEvent event)

Somebody to help me? Thank you...



__ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com

datatable paging problem!

2007-04-03 Thread Angel Miralles Arevalo
Hi , my name is Angel and I have some problems with datatable paging. The 
problem is than only can list the first page, when I move next page list has 
desappeared. 

I've been reading several post about this problem but nothing seems to work. I 
read that the error came from two datascroller. I've deleted one of them and 
the problem is still there.

My code is:

%/* Lista de Usuarios */%
h:panelGrid columns=1 columnClasses=vtop hcenter cellpadding=0 
cellspacing=0 border=0 styleClass=porcen100 hcenter vtop
t:panelTab id=tab1 label=Listado de Usuarios  styleClass=porcen100 
hcenter vtop
t:dataTable styleClass=porcen100 vtop id=data border=0 bgcolor=#AEB8D4 
cellspacing=1 
cellpadding=0 
headerClass=list-header 
rowClasses=datos_impar_off,datos_par_off 
rows=5
var=usersList 
value=#{authorizationResultListBean.lstUsuarios} 
preserveDataModel=true
%/* Columna Id de Usuario */%
h:column
f:facet name=header
t:outputText value=Id Usuario styleClass=tab3_on /
/f:facet
t:commandLink action=#{usersList.sid} style=text-decoration:none
t:outputText id=id value=#{usersList.sid} escape=false/
/t:commandLink
/h:column
%/* Columna Nombre de Usuario */%
h:column
f:facet name=header
t:outputText value=Nombre styleClass=tab3_on /
/f:facet
t:commandLink action=#{usersList.name} style=text-decoration:none
t:outputText id=name value=#{usersList.name} escape=false/
/t:commandLink 
/h:column
%/* Columna Organizacion de Usuario */%
h:column
f:facet name=header
t:outputText value=Organización styleClass=tab3_on /
/f:facet
t:commandLink action=#{usersList.organization} style=text-decoration:none
t:outputText id=organization value=#{usersList.organization} 
escape=false/
/t:commandLink 
/h:column
/t:dataTable
%/* Paginacion */%
t:dataScroller id=scroll_1 
for=data
pageCountVar=pageCount
pageIndexVar=pageIndex
styleClass=tit_tab
paginator=true
paginatorMaxPages=9
paginatorTableClass=hcenter tit_tab porcen100
paginatorActiveColumnStyle=font-weight:bold;
rowsCountVar=rowsCount
f:facet name=first 
t:graphicImage url=/imagenes/btn_ini_pag.gif border=0 
style=margin-left:175px; /
/f:facet
f:facet name=last
t:graphicImage url=/imagenes/btn_fin_pag.gif border=0 /
/f:facet
f:facet name=previous
t:graphicImage url=/imagenes/btn_ant_pag.gif border=0 /
/f:facet
f:facet name=next
t:graphicImage url=/imagenes/btn_prox_pag.gif border=0 /
/f:facet
h:outputFormat value=({0} registros encontrados) styleClass=hcenter 
tit_tab 
f:param value=#{rowsCount} /
/h:outputFormat
/t:dataScroller
/t:panelTab
/h:panelGrid

Please somebody can help me? Thanks a lot!!!





__ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com