SCHEDULE >> custom entry problem with div tag

2006-08-13 Thread Adrien FOURES




 Hi,

I try to create my own method renderContent. I have a
problem in putting a div tag in the entry of schedule. 
For selected entry it works normaly, but for unselected entry, it
doesn't work.
After source code, i finded that the schedule render an anchor tag for
unselected entry in ScheduleDetailedDayRenderer:writeEntries
when readonly is false.
But in this case my div tag is rendered outside of this anchor tag, so
the schedule does not be shown correctly.
I don't know whether it is a bug of tomahawk's schedule or if jsf
ResponseWriter close anchor tag automatically. 

I tried replace the div tag with table tag, but i have the same
problem. But it works with span tag.


ResponseWriter writer

code:
    public void renderContent( ... ) throws IOException
    {
          writer.startElement(HTML.DIV_ELEM,
null);
             
          writer.endElement(HTML.DIV_ELEM);
    }

What i want :



...




What i got:




...



Thanks a lot for your repply.

Adrien 




No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.7/410 - Release Date: 05/08/2006






SCHEDULE >> custom entry problem with div tag

2006-08-11 Thread Adrien FOURES




Hi,

I try to create my own method renderContent. I have a
problem in putting a div tag in the entry of schedule. 
For selected entry it works normaly, but for unselected entry, it
doesn't work.
After source code, i finded that the schedule render an anchor tag for
unselected entry in ScheduleDetailedDayRenderer:writeEntries
when readonly is false.
But in this case my div tag is rendered outside of this anchor tag, so
the schedule does not be shown correctly.
I don't know whether it is a bug of tomahawk's schedule or if jsf
ResponseWriter close anchor tag automatically. 

I tried replace the div tag with table tag, but i have the same
problem. But it works with span tag.


ResponseWriter writer

code:
    public void renderContent( ... ) throws IOException
    {
          writer.startElement(HTML.DIV_ELEM,
null);
             
          writer.endElement(HTML.DIV_ELEM);
    }

What i want :



...




What i got:




...



Thanks a lot for your repply.

Adrien 




Problem beetween the detailStamp's facet and the popup's facet

2006-07-28 Thread Adrien FOURES




Hello!

I wanted to use datatable with master detail and popup components, but
i have problem : the popup doesn't work, i can see anything.
It is working well if i delete detailstamp facet. Is it a bug, with
facet popup in facet detailstamp ??


            
                varDetailToggler="detailToggler"
renderedIfEmpty="false" width="100%" border="0"
columnClasses=",,width100">
                
                
                    
                        rendered="#{ordo.renderCheck}"
                       
/>
                
               
                
                    
                        headerClass="standardTable_SortHeader_presc"
                       
rowClasses="standardTable_Row2_presc,standardTable_Row1_presc"
                        value="#{ordo.dataM}"
                        preserveDataModel="false"
renderedIfEmpty="false" var="presc">
                       
                        
                            
                                
                            
                     
                        closePopupOnExitingElement="true"
                        closePopupOnExitingPopup="true"
                        displayAtDistanceX="5"
                        displayAtDistanceY="5" >
                        
                       

                        
                                
                        
                       

                     
                       
                   
            

            


Thanks,





AJAX4JSF + DataTable DetailStamp Facet

2006-07-19 Thread Adrien FOURES

Hello,

Is it possible to use AJAX4JSF with DataTable DetailStamp's Facet. I 
don't want to reload all the page when a detail is opened.


Thanks

Adrien


DataTable detailStamp facet

2006-07-18 Thread Adrien FOURES

Hello!

I use the detailStamp's facet, and i want to know if it is possible to 
control on server side which detail to open on loading the page.


Thanks a lot for your answer.

Adrien


Master-detail datatable

2006-06-29 Thread Adrien FOURES

Hi,

I want to know how can I show the detail of some lines at begining with 
master-detail datatable?


Thanks

Adrien



Re: tree2 expand/collapse

2006-05-23 Thread Adrien FOURES

Hi Chris,
I have the same problem, and i found a solution to pass over. i delete 
my myfaces tree : name "tree1", in the jsf tree component, and its works 
now fine.


   // delete component "tree1" directly in the jsf tree 
component
   
if(FacesContext.getCurrentInstance().getViewRoot().findComponent("tree1") 
!= null){
   List listTmp = 
FacesContext.getCurrentInstance().getViewRoot().findComponent("tree1").getParent().getChildren();
   if(listTmp!=null)   
   
listTmp.remove(FacesContext.getCurrentInstance().getViewRoot().findComponent("tree1"));

   }
  
   treeData1 = . // load data

   treeModel1 = new TreeModelBase(treeData1); // load model
   treeHtml1 = new HtmlTree(); // create new instance for 
binding



   

   


Adrien



Sean Schofield wrote:


I think this is the issue:

http://issues.apache.org/jira/browse/TOMAHAWK-437

Its on my list of tree2 issues to address.  Right now we're sorting
through some big picture tomahawk and core issues.

Sean


On 5/23/06, Chris Hane <[EMAIL PROTECTED]> wrote:


This isn't going to help too much; but I started to run into the same
things when I was using tree2 and client side expand/collapse.

What I tracked it down to was the expand/collapse state is stored in a
cookie that is relevant for a the tree2 component on a specific screen.
For me that meant when I had to the same screen open in two windows
(different records though), they "shared" the expand/collapse state.
This causes weird looking behavior (e.g., expand three node in one
screen, go to the second screen and expand a node and three are expanded
(the same three from the first screen)).

At the time I wasn't setup to explore the tomahawk code so I found a
work around for my specific case (I expand all nodes all the time and
don't let the user collapse). I opened a JIRA on this issue - the
archives have the specific #.

Having said that, I'm not an expert with tomahawk - actually just
starting so I might be doing something wrong...

Chris

Christopher J. Bowerman wrote:
>
> Hi,
>
> I'm using a tree2 component. My problem seems to have to do with tree
> state. The tree works fine the first time I render it, but I have a
> "home" button that starts the user input over again and builds a new
> tree. When the new tree is rendered the nodes that were expanded in
> the earlier tree are expanded in this one as well. I'd like the tree
> to be fully collapsed whenever I've built a new tree. Can anybody
> actually tell me how I can do this? I've seen other mention of it on
> previous posts, but they were almost a year ago and no mention how to
> actually go about it. Any help would be greatly appreciated.
>
> Thanks.
>
> ==
>
> Christopher J. Bowerman
>
> Internet Applications Developer
>
> SAIC-Frederick
>
> phone: 301.846.5275
>
> email: [EMAIL PROTECTED]
> 
>
> 


>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.392 / Virus Database: 268.7.0/345 - Release Date: 
5/22/2006

>


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.7.0/345 - Release Date: 5/22/2006







Tomahawk's example 1.1.2

2006-05-16 Thread Adrien FOURES

Hello!

When tomahawk's example 1.1.2 is available?

Thanks a lot for your help

Adrien



Re: Tomahawk 1.1.2

2006-05-04 Thread Adrien FOURES

It's a very good news, thanks a lot for the myfaces team's job

Sean Schofield wrote:


We are targeting next Monday for the official release.

Sean

On 5/3/06, pmuir <[EMAIL PROTECTED]> wrote:



I don't think 1.1.2 has been released yet.  I've used the svn source 
to build

a copy or you can download the latest (binary) snapshot (1.1.3) here:

http://cvs.apache.org/builds/myfaces/nightly/

HTH
--
View this message in context: 
http://www.nabble.com/Sandbox-form-component-bug-t1539106.html#a4206616

Sent from the MyFaces - Users forum at Nabble.com.







Tomahawk 1.1.2

2006-05-03 Thread Adrien FOURES


Hello,

I wanted to know when the 1.1.2 tomahawk can be download, beacause i use 
tree2 component and the 1.1.2 resolve a lot of questions :-)


Thanks a lot for your help

Adrien


Tree2 > ToggleExpandedEvent

2006-04-05 Thread Adrien FOURES

Hello
I use tree2 , and i want to kown how use toggleExpandedEvent? can i 
catch the node expanded with this event?
I build tree2 with database, and to an good optimisation, i need to 
build child node when is expanded.


Thanks,


When myFaces1.1.2 stable release available ?

2006-03-03 Thread Adrien FOURES

Hello!

I want to know when i can download the 1.1.2 myfaces version?
I don't understand why a 1.1.3 snapshot version of myfaces is available, 
whereas the 1.1.2 stable release is not available? it is a over branch 
of project?


Thanks

Adrien


myfaces 1.1.2 SNAPSHOT > HtmlOutputTextTag Exception

2006-02-22 Thread Adrien FOURES

Hello !

When i load the first page of my application, I have sometimes this 
exception, since myfaces 1.0.8 and jsf 1.1.0_1.
But now i use myFaces 1.1.2 without jsf jar, and i still have this 
Exception.

Can somebody tell me why? and what i have to do to stop it.

I use a filter for authentification : 
dosmed.security.LoginFilter.doFilter(LoginFilter.java:66)



javax.servlet.ServletException: 
org.apache.myfaces.taglib.html.HtmlOutputTextTag

   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:123)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
   at 
org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:129)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)

   at dosmed.security.LoginFilter.doFilter(LoginFilter.java:66)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
   at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
   at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
   at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
   at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
   at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
   at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
   at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)

   at java.lang.Thread.run(Thread.java:534)



Thanks.




TREE BUG 103 > IDEA TO FIXED

2006-01-26 Thread Adrien FOURES




Hello i have strated to build my application with the myfaces tree
component since the 2004, before the tree2 was build, and i have not
enough time to change.
But i find bug in the tree component, Oliver Rossmueller have add this
bug in jira list with 103 codename.
I have download source code, and i thinks i have found something which
maybe not solve problem, but will maybe stop the exception.
Please Please Please, Can you bring this modification in the next nightly
version

Thanks,


HtmlTreeNode > translatePath > line 528
    protected static TreePath translatePath(int[] path, TreeModel model)
    {
    Object[] translated = new Object[path.length + 1];
    Object parent = model.getRoot();

    translated[0] = parent;

    for (int i = 0; i < path.length; i++)
    {
/***ADD/
if( (TreeNode)parent.getChildCount()>=index ){
/***ADD/

    int index = path[i];
    translated[i + 1] = model.getChild(parent, index);
    parent = translated[i + 1];

/***ADD/
}
/***ADD/

    }
    return new TreePath(translated);
    }




Exception

java.lang.IndexOutOfBoundsException: Index: 1, Size: 0
   at java.util.ArrayList.RangeCheck(ArrayList.java:507)
   at java.util.ArrayList.get(ArrayList.java:324)
   at
org.apache.myfaces.custom.tree.DefaultMutableTreeNode.getChildAt(DefaultMutableTreeNode.java:154)
   at
org.apache.myfaces.custom.tree.model.DefaultTreeModel.getChild(DefaultTreeModel.java:81)
   at
org.apache.myfaces.custom.tree.HtmlTreeNode.translatePath(HtmlTreeNode.java:537)
   at
org.apache.myfaces.custom.tree.HtmlTree.selectionChanged(HtmlTree.java:586)
   at
org.apache.myfaces.custom.tree.HtmlTreeNode.setSelected(HtmlTreeNode.java:412)
   at
org.apache.myfaces.custom.tree.HtmlTreeNode.setExpanded(HtmlTreeNode.java:331)
   at
org.apache.myfaces.custom.tree.HtmlTree.collapsePath(HtmlTree.java:536)
   at
org.apache.myfaces.custom.tree.HtmlTree.treeStructureChanged(HtmlTree.java:817)
   at
org.apache.myfaces.custom.tree.HtmlTree$Event.process(HtmlTree.java:1044)
   at
org.apache.myfaces.custom.tree.HtmlTree.processModelEvents(HtmlTree.java:879)
   at
org.apache.myfaces.custom.tree.HtmlTree.encodeBegin(HtmlTree.java:721)
   at
javax.faces.webapp.UIComponentTag.encodeBegin(UIComponentTag.java:591)
   at
javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:543)
   at
org.apache.jsp.page.private_.tree1_jsp._jspx_meth_x_tree_0(tree1_jsp.java:430)
   at
org.apache.jsp.page.private_.tree1_jsp._jspx_meth_f_view_0(tree1_jsp.java:181)
   at
org.apache.jsp.page.private_.tree1_jsp._jspService(tree1_jsp.java:138)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
   at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
   at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
   at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
   at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474)
   at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409)
   at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
   at
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
   at
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
   at
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
   at
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
   at
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
   at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
   at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
   at dosmed.security.LoginFilter.doFilter(LoginFilter.java:60)
   at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
   at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
   at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
   at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
   at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValv

Re: How to install myfaces 1.1.2

2006-01-26 Thread Adrien FOURES

Thanks a lot for your repply

Bruno Aranda wrote:


You have to put all the myfaces*.ar and tomahawk*.jar. You don't need
to change nothing in the configuration file.

myfaces-api-1.1.2-SNAPSHOT.jar
myfaces-impl-1.1.2-SNAPSHOT.jar
myfaces-commons-1.1.2-SNAPSHOT.jar
tomahawk-1.1.2-SNAPSHOT.jar

Jars are available in the nightly build section [1], where you can
also obtain the examples. The examples are prepared to be deployed, in
war format.

Regards,

Bruno

[1] http://cvs.apache.org/builds/myfaces/nightly/


 



How to install myfaces 1.1.2

2006-01-25 Thread Adrien FOURES

Hello

I use 1.1.1 version, and i would like to test the 1.1.2, which jar i 
have to put all myfaces*.jar, with tomahawk*.jar or just myfaces*.jar

Have i to change anything in configuration file?

Thanks


Re: Link

2006-01-24 Thread Adrien FOURES

Thanks a lot for your help, it's a very old bug, and jsf 1.2 is very late



Martin Marinschek wrote:


It is not only fixed in JSF 1.2, but also in the current MyFaces
Nightly version.

regards,

Martin

On 1/24/06, Adrien FOURES <[EMAIL PROTECTED]> wrote:
 


Hello Kasper , i have exactly the same problem, I am very interested if
you find any solution.

Adrien

Kasper Hansen wrote:

   


Changing the javax.faces.STATE_SAVING_METHOD is not working for me --> I get
an Exception. Will it work if the bean is Serializable?

FATAL [StateUtils] Cannot encode Object with Base64
java.io.NotSerializableException




 




--

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces


 



Re: Link

2006-01-24 Thread Adrien FOURES
It's true with DataModel i have no problem to build page with 
t:datatable, but with vector of my own objet (integer, string, and own 
object attribut) t:datatable give me not serializable exeception, if i 
put client state saving and not with server.



Dennis Byrne wrote:


In order to save the state on the client, the state must be Serializable .  
Most often this is a DataModel ( the value attribute of a dataTable ) .  Which 
object is not serializable?

Dennis Byrne

 


-Original Message-
From: Kasper Hansen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 24, 2006 03:00 AM
To: users@myfaces.apache.org
Subject: Re: Link

Changing the javax.faces.STATE_SAVING_METHOD is not working for me --> I get 
an Exception. Will it work if the bean is Serializable?


FATAL [StateUtils] Cannot encode Object with Base64
java.io.NotSerializableException

   






 



Re: Link

2006-01-24 Thread Adrien FOURES
Hello Kasper , i have exactly the same problem, I am very interested if 
you find any solution.


Adrien

Kasper Hansen wrote:

Changing the javax.faces.STATE_SAVING_METHOD is not working for me --> I get 
an Exception. Will it work if the bean is Serializable?


FATAL [StateUtils] Cannot encode Object with Base64
java.io.NotSerializableException


 



Re: Problem in displaying dates(Locale)

2006-01-20 Thread Adrien FOURES
Look MYFACES-656  in 
myfaces' bug database (jira)





Nikita Shah wrote:


Hi

Am having a problem in displaying the date of curent locale in jsf 
tags. I think by default the locale EN_US is taken. But i want it to 
be currentLocale.
Please guide me if I am wrong. And also please help me i n getting the 
current date according to the locale.

The following is jsp page where i want to display the date in table.

align="center" > 




  ;   




Yahoo! Autos 
. 
Looking for a sweet ride? Get pricing, reviews, & more on new and used 
c ars.




No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.14.21/235 - Release Date: 19/01/2006

 



Bad config web.xml > no getscrolling() function in html page

2006-01-13 Thread Adrien FOURES

Hello

I have try to pass to myFaces 1.0.8 to 1.1.1 and with ADF faces ea19, 
component works but i have got a problem.
In final html page in navigator i have javascript error, because render 
component call javascript function, that is no insert in page, like 
getscrolling().


I build my configuration with your web site help and with simple 
application, but i don't see where i have wrong, some boby can tell me 
what is it wrong with my config , is it the listener in tld that is no 
call ??



thanks,

Adrien


Oracle ADF in the next myfaces version ??

2006-01-09 Thread Adrien FOURES

Hello

I allready use myFaces component , but  I have read on the web, that 
oracle give his JSF component to myFaces project,
and i would like to know, when and how can i use it, in the future 
version of myFaces?


Thanks,

Adrien


Submit form problem with frame

2005-11-29 Thread Adrien FOURES

Hello !
I am sorry it's not exactly a myfaces question, but it's an very good 
mailling list, and i thinks that some can give a solution, or a way to 
follow..


I am building a web application with JSF 1.1_01 and myFaces 1.08 ... 
very old version 8-), and tomcat 5.0.28
I need to use frame in my web interface, so i have a form in the frame 
1, and when this form is submited, it is loading in frame 2 the page result

I have adding target attribut in form, which go to frame 2.

[..]
 
 
  
 
 
[..]

It's working well, but in random times when the form in frame 1 is 
submitted, it is repeat the frame1 page in frame2.

Why , can i do something to stop it.

Thanks for your repply

Adrian



Re: Submitting a form automatically (without user clicking a button)

2005-06-17 Thread Adrien FOURES

Hello Randahl,

If i have understand your question, try this:


[...]

function test(){
   document.getElementById('mySecretAndHiddenForm:sendProperties').click();
}



or


[...]