new component using panelTabbedPane

2006-08-09 Thread Hans Sowa
Hi all

I want to write a component with following behaviour:
Avery tabbedPane should be added dynamically during runtime with a given jsp as content. The information about the number of tabbedPane and the jsp should be contained in the model for this component (managed bean).


For this I want to use the panelTabbedPane internal in my component but I'm not sure how I can do this. First I'm not sure how I can create the panelTabbedPane in my component. Any ideas or experiences?

Thanks in advance.-- mfg/best regardsHans Sowamailto:[EMAIL PROTECTED] 


Re: Alternative to tree2

2006-05-31 Thread Hans Sowa
Hi SeanI guess I could solve the #5 with checkboxes and an attribute selected for every node so it should not be a problem.But I don't know how I can solve #1 to #4. I tried but I didn't work. So is there a example around where I can have a look or a description about this topic.
Thanks.best regardsOn 5/30/06, Sean Schofield [EMAIL PROTECTED] wrote:
Tree2 basically can do everything but #5.With some work I'm sure #5would be possible although I can't say that I would find it very
useful.You would need a submit button to tell the tree componentthat you are done selecting.Otherwise how would the component handleyour selections?Seems awkward.SeanOn 5/29/06, Hans Sowa 
[EMAIL PROTECTED] wrote: So, I always get an error-message If I try to send to users@myfaces.apache.org. This is my last try:
 Hi Andrew Here are the points which I hade/have problems: 1) The possibility to close the whole tree. 2) The possibility to open a certain path. 3) If the tree is created the first time we would like to open the first
 level. 4) The possiblity to close the last path if the user opens an other path. (This means only one path should open at any time and all other paths should be closed). 5) Multiselect should work. (Maybe with checkboxes).
 6) The created HTML code should be as small as possible. (I don't think if this is really possible but it is not so important for me yet). The really important thinks for me are 1,2, 3 and 4.
 Becuase of 5) I think this should work with checkboxes without any problems but I had not try it so far. Because of 6) The created HTML Code is really to much. I saw a .NET Tree
 from a colleague and the created code are really small. So it would be great if the tree2 could make a diet for the future. So, it would be great if I could help for this items. Thanks in advance.
 best regards Hans On 5/26/06, Andrew Robinson [EMAIL PROTECTED] wrote:  A good thought, but not always very practical. If there are a lot of
  visible nodes, and the visible nodes have a lot of children, the  performance would be really bad. With the work Jacob and others are  doing on the Avatar front, an AJAX request to get the nodes could take
  milliseconds, so the user wouldn't really notice it.   Perhaps we can make sure that someone could extend the tree and do  this if they want under specific circumstances where they know it
  would work.   -Andrew   On 5/25/06, Sean Schofield [EMAIL PROTECTED] wrote:   Here's something to think about in your free time.I was thinking
   that all nodes one level below all visible closed nodes should be   buffered and made visible instanly via DHTML.Then an AJAX request   goes out and creates a buffer for the nodes below the one you just
   opened.It should be as fast as client side toggle that way but   without the overhead of tens of thousands of nodes in your DOM that   never get shown anyways.  
   Sean On 5/25/06, Andrew Robinson  [EMAIL PROTECTED] wrote:Will do, just may be a month or two before I have time for some open
source development.   On 5/25/06, Sean Schofield  [EMAIL PROTECTED] wrote: I'm definitely interested in adding AJAX support to tree2.Perhaps
 you would like to help me with it?As a starting point you should familiarize yourself with the realtively new TreeWalker stuff if you are not already.
 My thinking with the TreeWalker is that it will ultimately be easier to render a portion of the Tree during AJAX requests b/c you can
 specify a start and end point, etc.Let me know how serious you are about helping and I can make some time for it. Sean
 On 5/25/06, Andrew Robinson  [EMAIL PROTECTED] wrote:  I have used AjaxAnywhere and put a aa:zoneJSF tag around the
 tree.  With the Ajax4Jsf library getting some press, it would be interesting  to see how to make tree2 have AJAX support built in, or to create
 a  new tree component that extends or is similar to tree2 that would  support AJAX natively.   I have avoided non-JSF AJAX solutions (like DOJO integration?) as
 I  want the full JSF lifecycle (no hacks) and AjaxAnywhere supports it  (and it looks from the website that Ajax4Jsf does as well - and does
  it better).   Who knows, maybe we can scrounge up a team of volunteers to integrate  Ajax4Jsf into some new Tomahawk and/or Sandbox components. Once I
 get  some of the projects I am working on, on the side, done I may be  interested in looking into this (too bad writing open source code  doesn't pay well - or at all).
   -Andrew   PS - I think we need a tax amendment in the US to get tax breaks for
  open source development   On 5/25/06, Vesa Lindfors [EMAIL PROTECTED] wrote:
 We have also used tree2 successfully, with more or less similar requirements - but only for small trees(100 nodes)  In the near future we will also need tree for quite large
 amount of data ( 10 000 nodes).  Andrew

Alternative to tree2

2006-05-24 Thread Hans Sowa
Hi allWe had a lot of problems with the tree2 component and we search now for an alternative. The tree component is the most important component in our webapplication and therefore this is a big risk in our application.
Following behaviour to we need:- The possibility to klick on every node and to be able to react (ActionListener).- The possibility to show graphics on the right side of the node.- The possibility to close the whole tree.
- The possibility to open a certain path.- The possiblity to close the last path if the user opens an other path. (This means only one path should open at any time and all other paths should be closed).- Multiselect should work. (Maybe with checkboxes).
- The created HTML code should be as small as possible.- If the tree is created the first time we would like to open the first level.It would be great if someone has experience with an other tree component and could help me.
Thanks in advance.-- mfg Hans Sowamailto:[EMAIL PROTECTED]


Re: DataTable and Lazy-Loading

2006-05-24 Thread Hans Sowa
Hi CosmaThanks for the hint but both are always null.I found out that I could use an actionlister. The ScrollerActionEvent contains the attributes mPageIndex and mScrollerfacet. It the user clicks directly to the page the attribute mPageIndex contains the pagenumber. It the user clicks on the next button or what ever the mScrollerfacet contains next, ... and the mPageIndex contains -1. So, with this actually I could calculate the current page and could find out which lins are shown but I can't believe that there is not a better way to find out which lins are currently shown in a scrollable datatable.
I hope you or another person has an better idea.Thanks a lot.HansOn 5/19/06, Cosma Colanicchia 
[EMAIL PROTECTED] wrote:If you are using a dataScroller, you can try to take a look at its
firstRowIndexVar and lastRowIndexVar.2006/5/19, Hans Sowa [EMAIL PROTECTED]: Hi Cosma I need to know that in my backing bean.
 On 5/19/06, Cosma Colanicchia [EMAIL PROTECTED] wrote:  Hi Hans,   where you need to know that? In your backing bean? In your page?
 2006/5/19, Hans Sowa [EMAIL PROTECTED]:   Hi Cosma Thanks a lot. This should help me.
 I have a further question independent from this here. If I have a Data Table   without lazy loading and I want to know which rows are currently shown how
   can I do this? I don't have an idea so far! Thanks a lot. Hans   On 5/18/06, Cosma Colanicchia  
[EMAIL PROTECTED] wrote:See this wiki entry:   
http://wiki.apache.org/myfaces/WorkingWithLargeTables  Cosma  2006/5/18, Hans Sowa  
[EMAIL PROTECTED]: Hi all First following Scenario: I know that I will have to load 20.000
 Records   and I want to display it with a scrollable Datatable. Is it possible to load only the first page and then if the user
 klicks   on the scroller the correct page will load from the table? Thanks in advance.
 -- mfg Hans Sowa mailto: [EMAIL PROTECTED]   
 -- mfg Hans Sowa   mailto:[EMAIL PROTECTED]  --
 mfg Hans Sowa mailto:[EMAIL PROTECTED]-- mfg Hans Sowamailto:[EMAIL PROTECTED]



Re: Myfaces 1.1.3 Sources

2006-05-24 Thread Hans Sowa
HiUse SVN. The Repository root url is http://svn.apache.org/repos/asf. Then follow the path myfaces/core/branches/1_1_3. Check it out and you have the source.Hope, this help.
HansOn 5/24/06, Patrick Dalla Bernardina [EMAIL PROTECTED] wrote:
Where do I find myfaces 1.1.3 source files?-- mfg Hans Sowamailto:[EMAIL PROTECTED]


Re: DataTable and Lazy-Loading

2006-05-19 Thread Hans Sowa
Hi CosmaThanks a lot. This should help me.I have a further question independent from this here. If I have a Data Table without lazy loading and I want to know which rows are currently shown how can I do this? I don't have an idea so far!
Thanks a lot.HansOn 5/18/06, Cosma Colanicchia [EMAIL PROTECTED] wrote:
See this wiki entry:http://wiki.apache.org/myfaces/WorkingWithLargeTablesCosma2006/5/18, Hans Sowa 
[EMAIL PROTECTED]: Hi all First following Scenario: I know that I will have to load 20.000 Records and I want to display it with a scrollable Datatable. Is it possible to load only the first page and then if the user klicks on
 the scroller the correct page will load from the table? Thanks in advance. -- mfg Hans Sowa mailto:[EMAIL PROTECTED]
-- mfg Hans Sowamailto:[EMAIL PROTECTED]


Re: DataTable and Lazy-Loading

2006-05-19 Thread Hans Sowa
Hi CosmaI need to know that in my backing bean.On 5/19/06, Cosma Colanicchia [EMAIL PROTECTED] wrote:
Hi Hans,where you need to know that? In your backing bean? In your page?
2006/5/19, Hans Sowa [EMAIL PROTECTED]: Hi Cosma Thanks a lot. This should help me. I have a further question independent from this here. If I have a Data Table
 without lazy loading and I want to know which rows are currently shown how can I do this? I don't have an idea so far! Thanks a lot. Hans On 5/18/06, Cosma Colanicchia 
[EMAIL PROTECTED] wrote:  See this wiki entry:   http://wiki.apache.org/myfaces/WorkingWithLargeTables
Cosma2006/5/18, Hans Sowa  [EMAIL PROTECTED]:   Hi all  
   First following Scenario: I know that I will have to load 20.000 Records and   I want to display it with a scrollable Datatable. Is it possible to load only the first page and then if the user klicks
 on   the scroller the correct page will load from the table? Thanks in advance. --   mfg Hans Sowa   mailto:
[EMAIL PROTECTED]  -- mfg Hans Sowa mailto:[EMAIL PROTECTED]
-- mfg Hans Sowamailto:[EMAIL PROTECTED]


DataTable and Lazy-Loading

2006-05-18 Thread Hans Sowa
Hi allFirst following Scenario: I know that I will have to load 20.000 Records and I want to display it with a scrollable Datatable. Is it possible to load only the first page and then if the user klicks on the scroller the correct page will load from the table? 
Thanks in advance.-- mfg Hans Sowamailto:[EMAIL PROTECTED]



Source Code for MyFaces 1.1.3

2006-05-16 Thread Hans Sowa
HiI'm a little bit confused. I wanted to download the source for MyFaces Core 1.1.3. I checked the explanation from MyFaces about Subversion. I found this explanation:If you are looking for a stable release of the source code, you
should download it from the distribution directory.  The
Subversion repository should only be used if you want to be on the
bleeding-edge of the development effort.
The code contained in them may fail to work, or it may even
eat your hard drive.But in the distibution directory I can just find the source for 1.1.1 but not for 1.1.3. So, I checked with Subversion and checked out the branch 1.1.3 but I'm not sure if this is really a stable version or the working version for the MyFaces Dev Team.
So, my question is where can I find the corresponding source code to MyFaces Core 1.1.3?Thanks in advance.-- mfg Hans Sowamailto:[EMAIL PROTECTED]



WMS (Web Map Service) - JSf

2006-05-09 Thread Hans Sowa
Hi all,Has somebody experiences with WMS and JSF? Is there a existing component which can be used or something similiar?Thanks in advance.-- mfg Hans Sowamailto:
[EMAIL PROTECTED]


Problem wit textfield and commandButton

2006-04-28 Thread Hans Sowa
HiI have following situation. I klick on a textfield, write a text and press enter. What happend is that in Netscape Navigator the event behind the commandButton calls my method. Great. But on Internet Explorer the event doesn't call my method. But on another side a similar combination works also for Internet Explorer. I can't find a difference.
Maybe someone has a similar problem and has an idea?Thanks in advance.-- mfg Hans Sowamailto:[EMAIL PROTECTED]


Re: Problem wit textfield and commandButton

2006-04-28 Thread Hans Sowa
Thanks for the answer.Here is the code. The commandButton with the id mainSearchButton has the problem. If I click on the button with the mouse then the method is called.div class=hori
   h:form id=mainSearchFormh:outputText value=#{labels.suchMainMessage} /f:verbatim
 br / br //f:verbatimh:outputText value=#{
labels.danke} /f:verbatim br / br //f:verbatim
f:verbatim br //f:verbatimh:selectOneMenu value=#{
search.aktuellesSuchAttribut} f:selectItems value=#{search.moeglicheSuchAttribute} //h:selectOneMenuh:inputText value=#{
search.suchLiterale} /h:commandButton id=mainSearchButton value=#{labels.suche} actionListener=#{search.suche} /h:panelGroup rendered=#{
search.inLetzterSuche} f:verbatim  br / /f:verbatim h:selectBooleanCheckbox value=#{
search.letzteSuche}  h:outputText value=#{labels.inLetztemErgebnis}: / /h:selectBooleanCheckbox/h:panelGroup
f:verbatim br //f:verbatimh:commandButton id=coBuSearchMain5 value=#{
labels.zurueck} actionListener=#{search.alteSuche} rendered=#{search.alteSuche} /f:verbatim br /
/f:verbatimh:message for="" styleClass=fehlermeldung /h:panelGroup rendered=#{
search.inLetzterSuche} f:verbatim  br / /f:verbatim h:outputText value=#{
labels.gefunden}: #{search.anzahlSucheGefundene} //h:panelGroupf:verbatim hr /
/f:verbatimh:selectOneMenu id=selone_menu_panelSearch value=#{search.aktuellerStack} 
['mainSearch:mainSearchForm'].submit(); f:selectItems id=selItemsStackSearch value=#{search.moeglicheStacks} //h:selectOneMenu
t:panelStack id=stackMain selectedPanel=#{search.aktuellerStack} h:panelGroup id=stackListe
  [EMAIL PROTECTED] file=searchListe.jsp% /h:panelGroup h:panelGroup id=stackBaum
  [EMAIL PROTECTED] file=searchTree.jsp% /h:panelGroup h:panelGroup id=stackServer
  [EMAIL PROTECTED] file=searchTreeServer.jsp% /h:panelGroup/t:panelStack
h:commandButton id=goSelektionSearchMain6 value=#{labels.geheSelektion} action="" /   /h:form
  /divOn 4/28/06, CD [EMAIL PROTECTED] wrote:
Can you post sample code here? 
On 4/28/06, Hans Sowa [EMAIL PROTECTED] wrote:


HiI have following situation. I klick on a textfield, write a text and press enter. What happend is that in Netscape Navigator the event behind the commandButton calls my method. Great. But on Internet Explorer the event doesn't call my method. But on another side a similar combination works also for Internet Explorer. I can't find a difference. 
Maybe someone has a similar problem and has an idea?Thanks in advance.
-- mfg Hans Sowamailto:[EMAIL PROTECTED] 


-- mfg Hans Sowamailto:[EMAIL PROTECTED]


Re: TabbedPane selectedIndex not working.

2006-04-27 Thread Hans Sowa
HiIn which way do you you use the tabbedPane because there is the possibilty to use client side or server side, this means the tabchange is driven by client side or server side. You can switch this with an attribute (I don't know which one). If you don't use the attribute then you use the client side. Maybe there is the problem. Because just the server side works correct with the selectedIndex and tabechange listener as I know. Try to change it to server side and I think it will work. But I'm not sure, this is just an idea.
best regards HansOn 4/26/06, Julian Ray [EMAIL PROTECTED] wrote:





I'm having problems 
trying to get the tabbedPane to select the selectedIndex from a backing bean 
using a ValueBinding

I have just 
downloaded and compliled the latest from the svn repository and am 
using

Version Tomahawk 
1.1.3, Myfaces 1.1.4 on Tomcat 5.15

Has anyone 
experience with this?

Thanks
Julian 
Ray

-- mfg Hans Sowamailto:[EMAIL PROTECTED]


tree 2 - getScrolling Function

2006-04-20 Thread Hans Sowa
HiI have following situation: I don't want to use the getScrolling Function. This is simple change the flag AUTO SCROLL to false. But my problem is if a user open a path or close a path in the tree then I would need the auto scroll function. Is there a possibility to have this behaviour?
Thanks a lot.-- mfg Hans Sowamailto:[EMAIL PROTECTED]


Re: tree 2 - getScrolling Function

2006-04-20 Thread Hans Sowa
HiIs there a possibiltiy to implement an attribute like immediate. Where the autoscroll function is ignored?Thanks.On 4/20/06, Hans Sowa
 [EMAIL PROTECTED] wrote:
HiI have following situation: I don't want to use the getScrolling Function. This is simple change the flag AUTO SCROLL to false. But my problem is if a user open a path or close a path in the tree then I would need the auto scroll function. Is there a possibility to have this behaviour?
Thanks a lot.-- mfg Hans Sowamailto:
[EMAIL PROTECTED]

-- mfg Hans Sowamailto:[EMAIL PROTECTED]


Re: tree2 in MyFaces 1.1.1 and expanding

2006-04-10 Thread Hans Sowa
HiI have the same problem so it would be great if anyone could answer. I'm sure that I give the path correctly but the tree doesn't expand the path and I can't find a problem on my side.Thanks.
2006/4/8, Andrew Robinson [EMAIL PROTECTED]:
I am stumped on tree2 and expanding. I've looked through the sourceand I can't figure out what is wrong.I have a backing bean tied to the user's session. That bean has a treemodel that is TreeModelBase. The value of my tree2 component is tied
to my backing bean's model instance. I have server side expansionworking as I am lazy-loading my tree nodes (I can have over 100,000nodes).When I use the UI to expand/collapse the nodes, everything is working
fine. Even across multiple server calls, the expanded state is beingtracked fine.I have a search button that is searching the tree and when found,selects and highlights the tree node. The nodes are not being expanded
in the view though. Here is the code (inside of an action listenermethod that is NOT immediate):ListString ids = new ArrayListString();for (DimensionMember member = selectedMember; member != null;
member = member.getParent())ids.add(0, member.getId());// add the root nodeids.add(0, root: + dimension.getName());for (String id : ids){
System.out.println(A: Adding ID to expanded:  + id);}for (String id : ids.toArray(new String[ids.size()])){System.out.println(B: Adding ID to expanded:  + id);
}treeModel.getTreeState().expandPath(ids.toArray(new String[ids.size()]));As you can see, I am doing so printing to the console for sanitychecks. The correct node IDs are being added to the expanded state,
yet the nodes are still collapsed in the rendered HTML.I have tried setting the transient flag on the state to make sure itis using the backing bean, but that made no difference. Code:treeModel = new TreeModelBase(new MemberTreeRootNode());
treeModel.getTreeState().setTransient(true);I just can't figure out why the tree refuses to expand my nodes whenexecuted programmatically.Any ideas?Thanks,Andrew
-- mfg Hans Sowamailto:[EMAIL PROTECTED]


Re: Tree 2 Question

2006-04-04 Thread Hans Sowa
HiHas anybody an idea?2006/4/3, Hans Sowa [EMAIL PROTECTED]:
Hi allI want to collapse the whole tree. Is there a method like expandAll which I can call?Thanks in advance.
-- mfg Hans Sowamailto:[EMAIL PROTECTED]


-- mfg Hans Sowamailto:[EMAIL PROTECTED]


Tree 2 Question

2006-04-03 Thread Hans Sowa
Hi allI want to collapse the whole tree. Is there a method like expandAll which I can call?Thanks in advance.-- mfg Hans Sowamailto:[EMAIL PROTECTED]



Re: missing row attribute in a datatable using a datascroller causes by zero exception

2006-03-28 Thread Hans Sowa
Ah, super, thanks a lot. This is really helpfull.2006/3/28, Mike Kienenberger [EMAIL PROTECTED]:
Fixed as of March 1st.http://issues.apache.org/jira/browse/TOMAHAWK-104On 3/27/06, Hans Sowa [EMAIL PROTECTED]
 wrote: Hi Is there a possibility to enhance the code of this method? My Problem is if there the row attribute is missing in the datatable (using datascroller) you will always get an by zero exception because of the line if (
 uiData.getFirst() % rows  0). It would be very helpfull to have a more specific Exception. Many thanks in advance. class: HtmlDataScroller /*** @return the page index of the uidata
*/ public int getPageIndex() { UIData uiData = getUIData(); int rows = uiData.getRows(); int pageIndex; if (rows  0)
 { pageIndex = uiData.getFirst () / rows + 1; } else { log.warn(DataTable  + uiData.getClientId(FacesContext.getCurrentInstance
()) +  has invalid rows attribute.); pageIndex = 0; } if (uiData.getFirst() % rows  0) { pageIndex++;
 } return pageIndex; } -- mfg Hans Sowa mailto:[EMAIL PROTECTED]
-- mfg Hans Sowamailto:[EMAIL PROTECTED]


missing row attribute in a datatable using a datascroller causes by zero exception

2006-03-27 Thread Hans Sowa
HiIs there a possibility to enhance the code of this method? My Problem is if there the row attribute is missing in the datatable (using datascroller) you will always get an by zero exception because of the line if (
uiData.getFirst() % rows  0). It would be very helpfull to have a more specific Exception.Many thanks in advance.class: HtmlDataScroller/** * @return the page index of the uidata */
 public int getPageIndex() {  UIData uiData = getUIData();  int rows = uiData.getRows();  int pageIndex;  if (rows  0)  {   pageIndex = uiData.getFirst
() / rows + 1;  }  else  {   log.warn(DataTable  + uiData.getClientId(FacesContext.getCurrentInstance())   +  has invalid rows attribute.);
   pageIndex = 0;  }  if (uiData.getFirst() % rows  0)  {   pageIndex++;  }  return pageIndex; }-- mfg Hans Sowa
mailto:[EMAIL PROTECTED]


Tree 2 - ArithmeticException: / by zero

2006-03-22 Thread Hans Sowa
HiI use the tree2 and sometime if I click on a element of the tree I got this Exception. Had somebody a similar problem and could solve it?thanks in advance.2006-03-22 15:35:21 ApplicationDispatcher[/eMORIS] 
Servlet.service() for servlet jsp threw exceptionjava.lang.ArithmeticException: / by zero at org.apache.myfaces.custom.datascroller.HtmlDataScroller.getPageIndex(HtmlDataScroller.java:222) at org.apache.myfaces.custom.datascroller.HtmlDataScrollerRenderer.setVariables
(HtmlDataScrollerRenderer.java:105) at org.apache.myfaces.custom.datascroller.HtmlDataScrollerRenderer.encodeBegin(HtmlDataScrollerRenderer.java:185) at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java
:491) at org.apache.myfaces.renderkit.RendererUtils.renderChild(RendererUtils.java:435) at org.apache.myfaces.renderkit.RendererUtils.renderChildren(RendererUtils.java:421) at org.apache.myfaces.renderkit.RendererUtils.renderChild
(RendererUtils.java:442) at org.apache.myfaces.renderkit.RendererUtils.renderChildren(RendererUtils.java:421) at org.apache.myfaces.renderkit.html.HtmlGroupRendererBase.encodeEnd(HtmlGroupRendererBase.java:74)
 at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:515) at org.apache.myfaces.renderkit.RendererUtils.renderChild(RendererUtils.java:444) at org.apache.myfaces.custom.panelstack.HtmlPanelStackRenderer.encodeEnd
(HtmlPanelStackRenderer.java:79) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:515) at org.apache.myfaces.renderkit.RendererUtils.renderChild(RendererUtils.java:444) at org.apache.myfaces.renderkit.RendererUtils.renderChildren
(RendererUtils.java:421) at org.apache.myfaces.renderkit.RendererUtils.renderChild(RendererUtils.java:442) at org.apache.myfaces.renderkit.RendererUtils.renderChildren(RendererUtils.java:421) at org.apache.myfaces.renderkit.html.HtmlGroupRendererBase.encodeEnd
(HtmlGroupRendererBase.java:74) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:515) at org.apache.myfaces.renderkit.RendererUtils.renderChild(RendererUtils.java:444) at org.apache.myfaces.custom.tabbedpane.HtmlTabbedPaneRenderer.writeTabsContents
(HtmlTabbedPaneRenderer.java:543) at org.apache.myfaces.custom.tabbedpane.HtmlTabbedPaneRenderer.encodeEnd(HtmlTabbedPaneRenderer.java:235) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java
:515) at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:475) at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:356) at org.apache.myfaces.taglib.UIComponentBodyTagBase.doEndTag
(UIComponentBodyTagBase.java:55) at org.apache.jsp.jsp.auswahl.auswahl_jsp._jspx_meth_t_panelTabbedPane_0(auswahl_jsp.java:4337) at org.apache.jsp.jsp.auswahl.auswahl_jsp._jspService(auswahl_jsp.java:607)
 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 org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java
:416) at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:373) at javax.faces.webapp.FacesServlet.service
(FacesServlet.java:107) 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:123) 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 

Re: Tree 2 - ArithmeticException: / by zero

2006-03-22 Thread Hans Sowa
HalloHas someone an idea?Thanks a lot.2006/3/22, Hans Sowa [EMAIL PROTECTED]:
HiI use the tree2 and sometime if I click on a element of the tree I got this Exception. Had somebody a similar problem and could solve it?thanks in advance.2006-03-22 15:35:21 ApplicationDispatcher[/eMORIS] 
Servlet.service() for servlet jsp threw exceptionjava.lang.ArithmeticException: / by zero at org.apache.myfaces.custom.datascroller.HtmlDataScroller.getPageIndex(HtmlDataScroller.java:222) at org.apache.myfaces.custom.datascroller.HtmlDataScrollerRenderer.setVariables

(HtmlDataScrollerRenderer.java:105) at org.apache.myfaces.custom.datascroller.HtmlDataScrollerRenderer.encodeBegin(HtmlDataScrollerRenderer.java:185) at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java

:491) at org.apache.myfaces.renderkit.RendererUtils.renderChild(RendererUtils.java:435) at org.apache.myfaces.renderkit.RendererUtils.renderChildren(RendererUtils.java:421) at org.apache.myfaces.renderkit.RendererUtils.renderChild

(RendererUtils.java:442) at org.apache.myfaces.renderkit.RendererUtils.renderChildren(RendererUtils.java:421) at org.apache.myfaces.renderkit.html.HtmlGroupRendererBase.encodeEnd(HtmlGroupRendererBase.java:74)
 at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:515) at org.apache.myfaces.renderkit.RendererUtils.renderChild(RendererUtils.java:444) at org.apache.myfaces.custom.panelstack.HtmlPanelStackRenderer.encodeEnd

(HtmlPanelStackRenderer.java:79) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:515) at org.apache.myfaces.renderkit.RendererUtils.renderChild(RendererUtils.java:444) at org.apache.myfaces.renderkit.RendererUtils.renderChildren

(RendererUtils.java:421) at org.apache.myfaces.renderkit.RendererUtils.renderChild(RendererUtils.java:442) at org.apache.myfaces.renderkit.RendererUtils.renderChildren(RendererUtils.java:421) at org.apache.myfaces.renderkit.html.HtmlGroupRendererBase.encodeEnd

(HtmlGroupRendererBase.java:74) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:515) at org.apache.myfaces.renderkit.RendererUtils.renderChild(RendererUtils.java:444) at org.apache.myfaces.custom.tabbedpane.HtmlTabbedPaneRenderer.writeTabsContents

(HtmlTabbedPaneRenderer.java:543) at org.apache.myfaces.custom.tabbedpane.HtmlTabbedPaneRenderer.encodeEnd(HtmlTabbedPaneRenderer.java:235) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java

:515) at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:475) at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:356) at org.apache.myfaces.taglib.UIComponentBodyTagBase.doEndTag

(UIComponentBodyTagBase.java:55) at org.apache.jsp.jsp.auswahl.auswahl_jsp._jspx_meth_t_panelTabbedPane_0(auswahl_jsp.java:4337) at org.apache.jsp.jsp.auswahl.auswahl_jsp._jspService(auswahl_jsp.java:607)

 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 org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java

:416) at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:373) at javax.faces.webapp.FacesServlet.service

(FacesServlet.java:107) 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:123) 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

Re: Issues with Tree2 - Heap Space Probleme - HTML Code

2006-03-13 Thread Hans Sowa
Thanks a lot.First the heap space problem just appears in the client side handling of the tree if I use it in the server side handling there is no heapspace problem. So, I have now a logic which change to the server side logik if there are too many nodes.
But I have an other issue. I would like to have following behavior:A user open a couple of nodes which exists in the same path of the tree. Then the user open a node in a new path. For this case I would like to have that the nodes in the other path are closed. Is this behavior possible for the tree 2?
Thanks in advance.2006/2/22, Onur Tokan [EMAIL PROTECTED]:
Hi,You can try disable extension filter, and add necessary resources toyou web root which are avaible in the jar file. Because extensionfilter adds it's filter URL to every resouces in the html.Regards,
OnurOn 2/22/06, Hans Sowa [EMAIL PROTECTED] wrote: Hm, ok, but why do I have the heap space problem because I also have it if I use the server-side toggle. I can create the 
26.000 nodes without any heap space problems but then if the tree2 controls tries to create the visible part of the tree I get a heap space problem. Can you imagine what the problem is? 2006/2/22, Sean Schofield 
[EMAIL PROTECTED]:  The tree already ignores nodes that are not expanded (in the  server-side toggle.)Its only the server-side toggle that does not
  ignore them and that's because it can't.It needs the whole tree b/c  it needs to be able to show any/all nodes the user might decide to  expand.   Sean 
  On 2/22/06, Hans Sowa [EMAIL PROTECTED] wrote:   Hi My heapspace configuration is min 32 max 128.  
   Maybe it is a good idea to partially load the data. This should solve the   problem with the heap space. But if I use the server side toogle I think it   would be a good idea if the tree component would ignore the nodes which
 are   not shown in the tree. Maybe this is an idea for a future enhancement. The other issue is the html code. Is there a possiblity to decrease the   htmloutput. The html code for one node is really large and a big problem
 for   the browser (especially for IE). Thanks in advance.   2006/2/22, Mario Ivankovits 
[EMAIL PROTECTED]:Hi! Eventually I envision an Ajax version of the tree2 component.+1It will definitely be great to have a ajaxed tree2.
  Ciao,Mario   --
 mfg Hans Sowa   mailto:[EMAIL PROTECTED]  -- mfg Hans Sowa mailto:
[EMAIL PROTECTED]-- mfg Hans Sowamailto:[EMAIL PROTECTED]


normal Link

2006-03-07 Thread Hans Sowa
HiI want to add a normal link like http:// to my jsf site. This link should go to a non-jsf site. The link should be open in a new browser independent from the browser wich the link was called. How can I do this? With a commandLink and if yes where should I add the http link?
Thanks in advance.-- mfg Hans Sowamailto:[EMAIL PROTECTED]


Re: normal Link

2006-03-07 Thread Hans Sowa
Thanks a lot.It works!2006/3/7, Ken McArthur [EMAIL PROTECTED]:
Try something like this:

h:outputLink value=http://www.domainName.com

title=#{bundle.link_name}

>
 target=myId
   styleClass=lnk01 borderLeft
 h:outputText id=termsText

value=#{bundle.link_name}/
/h:outputLink

where popup01 = 

function popup02(id,width,height) {
 winOptions=eval('width=+ width
+,height=+height+,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no');
 popup = window.open(,id,winOptions);
 popup.openerFormId = id;
 popup.focus();
}


On 3/7/06, Volker Weber 
[EMAIL PROTECTED] wrote:
Hi Hans,seehttp://java.sun.com/javaee/javaserverfaces/1.2/docs/tlddocs/h/outputLink.html
Regards,Volker
Hans Sowa wrote: Hi I want to add a normal link like http:// to my jsf site. This link should go to a non-jsf site. The link should be open in a new browser independent from the browser wich the link was called. How can I do this?
 With a commandLink and if yes where should I add the http link? Thanks in advance. -- mfg Hans Sowa mailto:
[EMAIL PROTECTED]
--Don't answer to From: address!Mail to this account are droped if not recieved via mailinglist.To contact me direct create the mail address byconcatenating my forename to my senders domain.


-- mfg Hans Sowamailto:[EMAIL PROTECTED]


Issues with Tree2 - Heap Space Probleme - HTML Code

2006-02-22 Thread Hans Sowa
HiI need to realize a tree which can have about 30.000 nodes and every node is clickable. I know this is a lot but this is my requirement from the business. I have now the situation that it is not possible at the moment so we have a workaround: Up 250 nodes we will show a scrollable list instead of the tree. But for the future I need a tree solution.
I have now two issues with the tree2.1. The html code which is created is very large and the browser runs in trouble.2. There is a heap space problem in MyFaces for a certain number of nodes ( 250).
My actually questions areIs there a solution for such large trees? Should I use an other tree instead of tree2? Is there anybody who has a similar problem and solved it?Thanks in advance.
-- mfg Hans Sowamailto:[EMAIL PROTECTED]


Re: Issues with Tree2 - Heap Space Probleme - HTML Code

2006-02-22 Thread Hans Sowa
HiThanks, I know that I can you clientSideToggle but this doesn't solve my problem with the heap space. I tried it but it seams myfaces has problem with too much nodes.2006/2/22, Onur Tokan 
[EMAIL PROTECTED]:Make the tree2 attribute to clientSideToggle=false.
Regards,OnurOn 2/22/06, Hans Sowa [EMAIL PROTECTED] wrote: Hi I need to realize a tree which can have about 30.000 nodes and every node is
 clickable. I know this is a lot but this is my requirement from the business. I have now the situation that it is not possible at the moment so we have a workaround: Up 250 nodes we will show a scrollable list instead of
 the tree. But for the future I need a tree solution. I have now two issues with the tree2. 1. The html code which is created is very large and the browser runs in trouble. 2. There is a heap space problem in MyFaces for a certain number of nodes (
 250). My actually questions are Is there a solution for such large trees? Should I use an other tree instead of tree2? Is there anybody who has a similar problem and solved it?
 Thanks in advance. -- mfg Hans Sowa mailto:[EMAIL PROTECTED]-- mfg Hans Sowamailto:
[EMAIL PROTECTED]


Question about panelTab.

2006-02-22 Thread Hans Sowa
HiIs there a way to add a panelTab during runtime?-- mfg Hans Sowamailto:[EMAIL PROTECTED]


Re: Issues with Tree2 - Heap Space Probleme - HTML Code

2006-02-22 Thread Hans Sowa
HiMy heapspace configuration is min 32 max 128. Maybe it is a good idea to partially load the data. This should solve the problem with the heap space. But if I use the server side toogle I think it would be a good idea if the tree component would ignore the nodes which are not shown in the tree. Maybe this is an idea for a future enhancement.
The other issue is the html code. Is there a possiblity to decrease the htmloutput. The html code for one node is really large and a big problem for the browser (especially for IE).Thanks in advance.
2006/2/22, Mario Ivankovits [EMAIL PROTECTED]:
Hi! Eventually I envision an Ajax version of the tree2 component.+1It will definitely be great to have a ajaxed tree2.Ciao,Mario-- 
mfg Hans Sowamailto:[EMAIL PROTECTED]


Re: Issues with Tree2 - Heap Space Probleme - HTML Code

2006-02-22 Thread Hans Sowa
Hm,ok, but why do I have the heap space problem because I also have it if I use the server-side toggle. I can create the 26.000 nodes without any heap space problems but then if the tree2 controls tries to create the visible part of the tree I get a heap space problem. Can you imagine what the problem is?
2006/2/22, Sean Schofield [EMAIL PROTECTED]:
The tree already ignores nodes that are not expanded (in theserver-side toggle.)Its only the server-side toggle that does notignore them and that's because it can't.It needs the whole tree b/cit needs to be able to show any/all nodes the user might decide to
expand.SeanOn 2/22/06, Hans Sowa [EMAIL PROTECTED] wrote: Hi My heapspace configuration is min 32 max 128. Maybe it is a good idea to partially load the data. This should solve the
 problem with the heap space. But if I use the server side toogle I think it would be a good idea if the tree component would ignore the nodes which are not shown in the tree. Maybe this is an idea for a future enhancement.
 The other issue is the html code. Is there a possiblity to decrease the htmloutput. The html code for one node is really large and a big problem for the browser (especially for IE).
 Thanks in advance. 2006/2/22, Mario Ivankovits [EMAIL PROTECTED]:  Hi!   Eventually I envision an Ajax version of the tree2 component.
+1  It will definitely be great to have a ajaxed tree2.Ciao,  Mario   --
 mfg Hans Sowa mailto:[EMAIL PROTECTED]-- mfg Hans Sowamailto:[EMAIL PROTECTED]



Re: h:message problem

2006-02-09 Thread Hans Sowa
Hm, This code should work it looks my code except one but I think this should not be the problem but maybe:FacesMessage errMsg = new FacesMessage( FacesMessage.SEVERITY_INFO, shortMsg,
 longMsg);I used an other Constructor. Maybe there is a problem with missing Severtiy.best regards Hans
2006/2/9, Andrew Robinson [EMAIL PROTECTED]:
Are you using subviews or tiles perhaps? Before I switched to facelets I saw many problems like this where components fell out of local scope and the message tag could not locate a component due to the view/subview structure of a page.
On 2/9/06, Virtudazo, Dennis (Exchange) 
[EMAIL PROTECTED] wrote:
Adding a message to the context for a clientId is not working. I saw inthe wiki page that the example matches my code. Can somebody give me ahint what may be wrong?Jsp:h:inputText id=refreshminutesbinding=#{
backingBean.myComponent}size=5 value=#{backingBean.refreshMinutes} /h:message for="" showDetail=true/Code:FacesContext context = 
FacesContext.getCurrentInstance();context.addMessage(myComponent.getClientId(context), newFacesMessage(test, test));The test message never displays. But error messages from the validator
do, for example, when I enter a non-numeric value into therefreshMinutes inputText.Btw, if I use h:messages globalOnly=false, then the test messagedisplays.I tried version 1.09-m9

 and 1.1.1.***Bear Stearns is not responsible for any recommendation, solicitation,offer or agreement or any information about any transaction, customer
account or account activity contained in this communication.***

-- mfg Hans Sowamailto:[EMAIL PROTECTED]


Problem with dataTable and dataScroller

2006-02-08 Thread Hans Sowa
HiI realised a weird behaviour from the dataTable and DataScroller.e.g. There are 4 pages to be scrolled and the user go to 4th page. So becuase of an user action the data changed and there are now just 2 pages to be scrolled. The problem now is that the 4th page is still selected and no dataTable is shown but the scroller is still shown. When the user then go to the 1th page the data is shown.
I would like to have the behaviour that the scroller goes automatically to the first page.My question now is, is this a bug or is there are flag to be set that I have this behaviour.Thanks a lot.
-- mfg Hans Sowamailto:[EMAIL PROTECTED]


Re: jspx commandLink not working

2006-02-08 Thread Hans Sowa
HiI saw that you used the attribute immediate=true. I guess this is the problem because if I understand it correctly immediate means that after process validiations it goes directly to the phase Render Response.
If you don't have a good reason for it, delete it.Hope, this will help you.best regards Hans2006/2/8, Martin Marinschek 
[EMAIL PROTECTED]:No clue.JSPX is not the problem, I'm using JSPX a lot in my current project.
Can you do some debuggin by checking into FacesServlet and goingthrough the lifecycle?regards,MartinOn 2/8/06, ::SammyRulez:: [EMAIL PROTECTED]
 wrote: I have a siple page like this jsp:root xmlns:jsp=http://java.sun.com/JSP/Page xmlns=
http://www.w3.org/1999/xhtml xmlns:h=http://java.sun.com/jsf/html xmlns:f=http://java.sun.com/jsf/core
 version=2.0 f:viewhtml xmlns=http://www.w3.org/1999/xhtml lang=it xml:lang=it
 headtitleSimple jspx page/title/head body h:form id=linkameh:commandLink action="" immediate=true
f:param name=pnum value=200590802524177/h:outputText value=view/ /h:commandLink
/h:form /body /html /f:view /jsp:root and this is the genereted html html xmlns=
http://www.w3.org/1999/xhtml xml:lang=it lang=itheadtitleSimple jspx page/title/head body
 form id=linkame name=linkame method=post action=""> enctype=application/x-www-form-urlencodeda href=""
 
['linkame'].onsubmit){document.forms['linkame'].onsubmit();}document.forms['linkame'].submit();return false; id=linkame:_id0visualizza/ainput type=hidden
name=linkame_SUBMITvalue=1/input type=hidden name=linkame:_link_hidden_/input
 type=hidden name=numeroFattura/script type=text/_javascript_!-- function clear_linkame() { var f = document.forms['linkame'];
 f.elements['linkame:_link_hidden_'].value=''; f.elements['numeroFattura'].value=''; f.target=''; } clear_linkame(); --/script/form /body/html
 the command link is not working.. it is displaied but when clicked do not submit the form... any ideas? -- ::SammyRulez:: 
http://sammyprojectz.blogspot.com--http://www.irian.atYour JSF powerhouse -JSF Consulting, Development andCourses in English and German
Professional Support for Apache MyFaces-- mfg Hans Sowamailto:[EMAIL PROTECTED]


Re: Base is Null

2006-02-03 Thread Hans Sowa
HiI'm not familiar with Tiles but in the last days I had a problem with a tree2 component and other components in combination. Nothing worked after I added an other MyFaces component. So, first I was wondering than I found out during a big debugging session that I had a null issue. I also saw that MyFaces wrote a message because of this problem but I couldn't see it because I didn't use a message tag on this side and also saw in the logs an exception.
So I would propose to check first the logs from your server and then to add a message tab maybe you have a similiar problem. I hope this will help.best regards Hans2006/2/3, Cristofer Weber 
[EMAIL PROTECTED]:Hi friends!
Another day, another problem...Now I'm working in a Tiles + JSF application, and there's a strange situation: the main page have a Tree2 component and before de Tiles inclusion this tree works fine. But after Tiles my managed bean with the TreeModel simply not instantiate, or something else.
When using a inputDate with a simply bean that have only an accessor to a Date object it works... So, I think the Tiles integration is Ok. I'm learning to like JSF, but... it's hard to understand these problems.
ThanksCristofer

-- mfg Hans Sowamailto:[EMAIL PROTECTED]


Problem with form and commandButton

2006-02-01 Thread Hans Sowa
HalloI have a site with one form tag and within the form tag I have a tree2, panelTabbedPane and a lot of commandButtons and also commandNavigation.My Problem is that the commandButtons doesn't work the methods behind it which are binded with action or actionListener are not called. I can't see a problem. The strength think is that this site is called from an other site and here I have also one form and a tree2, panelTabbedPane, commandButtons etc but it works.
I use a nigthly build from 1.1.1 but I don't know which one.thanks in advance.-- mfg Hans Sowamailto:[EMAIL PROTECTED]


Re: Problem with form and commandButton

2006-02-01 Thread Hans Sowa
I checked the log and I got this message2006-02-01 16:14:26,437 ERROR [http-8080-Processor23] navigation.HtmlPanelNavigation (HtmlPanelNavigation.java:92) - Navigation item auswahlForm:auswahlNav:coNa_1_1 not found in previous view.
But the funny thing is that the navigation time coNa_1_1 works. This is commandNavigation but for instance a commandButton on this site doesn't work.Maybe this information helps?thanks
2006/2/1, Hans Sowa [EMAIL PROTECTED]:
HalloI have a site with one form tag and within the form tag I have a tree2, panelTabbedPane and a lot of commandButtons and also commandNavigation.My Problem is that the commandButtons doesn't work the methods behind it which are binded with action or actionListener are not called. I can't see a problem. The strength think is that this site is called from an other site and here I have also one form and a tree2, panelTabbedPane, commandButtons etc but it works.
I use a nigthly build from 1.1.1 but I don't know which one.thanks in advance.-- mfg Hans Sowamailto:
[EMAIL PROTECTED]

-- mfg Hans Sowamailto:[EMAIL PROTECTED]


Re: Problem with form and commandButton

2006-02-01 Thread Hans Sowa
HiI also found this message2006-02-01 16:37:24,546 DEBUG [http-8080-Processor25] lifecycle.LifecycleImpl (LifecycleImpl.java:409) - exiting from lifecycle.execute in processValidations because getRenderResponse is true from one of the after listeners
I think this is the reason why my action methods or actionlistener are not called.Is there a good point in the myfaces code where I can see what really happens?Thanks.best regards Hans
2006/2/1, Hans Sowa [EMAIL PROTECTED]:
I checked the log and I got this message2006-02-01 16:14:26,437 ERROR [http-8080-Processor23] navigation.HtmlPanelNavigation (HtmlPanelNavigation.java:92) - Navigation item auswahlForm:auswahlNav:coNa_1_1 not found in previous view.
But the funny thing is that the navigation time coNa_1_1 works. This is commandNavigation but for instance a commandButton on this site doesn't work.Maybe this information helps?thanks

2006/2/1, Hans Sowa [EMAIL PROTECTED]:

HalloI have a site with one form tag and within the form tag I have a tree2, panelTabbedPane and a lot of commandButtons and also commandNavigation.My Problem is that the commandButtons doesn't work the methods behind it which are binded with action or actionListener are not called. I can't see a problem. The strength think is that this site is called from an other site and here I have also one form and a tree2, panelTabbedPane, commandButtons etc but it works.
I use a nigthly build from 1.1.1 but I don't know which one.thanks in advance.-- mfg Hans Sowamailto:

[EMAIL PROTECTED]

-- mfg Hans Sowamailto:
[EMAIL PROTECTED]

-- mfg Hans Sowamailto:[EMAIL PROTECTED]


Re: show an expanded tree2 (MyFaces-1.1.1 on JDeveloper 10.1.3 EA)

2006-01-27 Thread Hans Sowa
Hi CristoferI know way which is also explain in the examples as I know (I think, I believe,..)First you have to to a binding to the tree2 component.t:tree2 ... binding=#{
managed-been.tree}Then you have to implement the following code in your managed bean:/** Reference to the tree. */ private HtmlTree tree;/** * @return Returns the tree.
 */ public HtmlTree getTree() { return this.tree; } /** * @param tree The tree to set. */ public void setTree(final HtmlTree tree) { this.tree = tree;
 } /** * Öffnet den gesamten Baum. * */ public void expandAll() { this.getTree().expandAll(); }So, with the expandAll fuction you can expand the whole tree.
Hope this helps.best regards Hans2006/1/27, Cristofer Weber [EMAIL PROTECTED]:
Hi friendsafter some days using the examples, I'm trying to create a page with an expanded tree2 component, but I'm with some difficults to do so.My first try was a PhaseListener getting the ViewRoot and navigating to the tree2 component for send a expandAll message, but without success.
Then, I create my TreeModel extending the TreeModelBase and after the load of my nodes I search for all leafNodes to send a expandPath using the getPathInformation for each node, also without success.

In both tries the tree2 loads correctly, but in the collapsed state.I'm in the way or there's another way to do it?Thanks a lot!Cristofer

-- mfg Hans Sowamailto:[EMAIL PROTECTED]


Re: show an expanded tree2 (MyFaces-1.1.1 on JDeveloper 10.1.3 EA)

2006-01-27 Thread Hans Sowa
HmI'm not sure wheter I understand you correctly. You don't need a action like commandlink, etc. For instance in the code where you provide the data for the tree you can call the function afterwards. This should work.
2006/1/27, Cristofer Weber [EMAIL PROTECTED]:
Hi Hans! First, thanks.When I´ve created a page whith a commandLink this way works fine, but how can I call the expandAll method without an action like the commandLink? How can I load the page with the tree2 in the expanded state without start an event? I did'nt find examples or information.
Thanks a lot.[]'sCristofer2006/1/27, Hans Sowa 
[EMAIL PROTECTED]:
Hi CristoferI know way which is also explain in the examples as I know (I think, I believe,..)First you have to to a binding to the tree2 component.t:tree2 ... 

binding=#{
managed-been.tree}Then you have to implement the following code in your managed bean:/** Reference to the tree. */ private HtmlTree tree;/** * @return Returns the tree.
 */ public HtmlTree getTree() { return this.tree; } /** * @param tree The tree to set. */ public void setTree(final HtmlTree tree) { this.tree

 = tree;
 } /** * Öffnet den gesamten Baum. * */ public void expandAll() { this.getTree().expandAll(); }So, with the expandAll fuction you can expand the whole tree.
Hope this helps.best regards Hans2006/1/27, Cristofer Weber 

[EMAIL PROTECTED]:
Hi friendsafter some days using the examples, I'm trying to create a page with an expanded tree2 component, but I'm with some difficults to do so.My first try was a PhaseListener getting the ViewRoot and navigating to the tree2 component for send a expandAll message, but without success.
Then, I create my TreeModel extending the TreeModelBase and after the load of my nodes I search for all leafNodes to send a expandPath using the getPathInformation for each node, also without success.



In both tries the tree2 loads correctly, but in the collapsed state.I'm in the way or there's another way to do it?Thanks a lot!Cristofer

-- mfg Hans Sowamailto:[EMAIL PROTECTED]




-- mfg Hans Sowamailto:[EMAIL PROTECTED]


Re: Problem with cookies

2006-01-24 Thread Hans Sowa
Hi DavidThanks for your help.First the ladeCookie() was just for testing and not part of my Solution. After your mail I checked my code again and checked if the cookie is really saved. In Firefox I could see my cookie but my ladeCookie() function could not read it. So I checked all attributes of the cookie and found the path attribute. Here I could see that through a wrong path my code was not able to read it. I changed the path and now it works.
thanksHans2006/1/23, David G. Friedman [EMAIL PROTECTED]:





Hans,

Adding a cookie to the Response 
object does not automatically add it to the Request object. You have to 
wait until your page finishes so the client can receive the cookie. Requests 
AFTER that will have the cookie. In your code, I see you setting a cookie in speichereCookies() but 
immediately checking for it in the Request object by invoking ladeCookie() at the end of that method. The 
problem is you just created the cookie in the HttpServletResponse and the client 
didn't get it yet. Remember the Request and Response objects are not tied 
together. Again, the NEXT client 
submit should have your cookie set and readable in the Request 
object.

Regards,
David Friedman / [EMAIL PROTECTED]


-Original Message-From: 
Hans Sowa [mailto:[EMAIL PROTECTED]]Sent: Monday, January 23, 2006 
5:49 AMTo: MyFaces DiscussionSubject: Re: Problem with 
cookies
Hi allCan somebody help me?Thanks in 
  advance.
  2006/1/20, Hans Sowa [EMAIL PROTECTED]:
  HiI 
try to save and load cookies from my Myfaces projekt. I see that I save the 
cookies in the response but if I load the cookies again I can just find the 
myfaces cookies but not my ones.Here is the code which I use: 
load 
code: public void ladeCookie() 
{ Cookie[] 
cookies; FacesContext 
faces = 
FacesContext.getCurrentInstance(); 
HttpServletRequest request = (HttpServletRequest) 
faces 
.getExternalContext().getRequest(); 
cookies = 
request.getCookies(); for 
(int i = 0; i  cookies.length; i++) { 
 if 
(cookies[i].getName().equals(SessionUser.DATENBANK)) 
{ 
this.setDatenBank(cookies[i].getValue()); 
} } 
}save 
code: public void speichereCookies() 
{ Cookie c = new 
Cookie(SessionUser.DATENBANK, 
this.getDatenBank()); 
c.setMaxAge(-1); FacesContext 
faces = FacesContext.getCurrentInstance 
(); HttpServletResponse 
response = (HttpServletResponse) 
faces 
.getExternalContext().getResponse(); 
response.addCookie(c); 
this.ladeCookie(); }Hope this is enough to 
find the problem.Thanks in 
advance.

-- mfg Hans Sowamailto:[EMAIL PROTECTED]


Re: apache myfaces mailing list

2006-01-24 Thread Hans Sowa
Write a note to users@myfaces.apache.org2006/1/24, Reiche,Werner [CIS] [EMAIL PROTECTED]
:Hi,I have subscribed to the mailing list, but I cannot post new threads.
What do I have to do to post?Werner Reiche-- mfg Hans Sowamailto:[EMAIL PROTECTED]


Re: Problem with cookies

2006-01-23 Thread Hans Sowa
Hi allCan somebody help me?Thanks in advance.2006/1/20, Hans Sowa [EMAIL PROTECTED]:
HiI try to save and load cookies from my Myfaces projekt. I see that I save the cookies in the response but if I load the cookies again I can just find the myfaces cookies but not my ones.Here is the code which I use:
load code: public void ladeCookie() { Cookie[] cookies; FacesContext faces = FacesContext.getCurrentInstance();

 HttpServletRequest request = (HttpServletRequest) faces .getExternalContext().getRequest(); cookies = request.getCookies(); for (int i = 0; i  cookies.length; i++) {
 if (cookies[i].getName().equals(SessionUser.DATENBANK)) { this.setDatenBank(cookies[i].getValue()); } } }

save code: public void speichereCookies() { Cookie c = new Cookie(SessionUser.DATENBANK, this.getDatenBank()); c.setMaxAge(-1); FacesContext faces = FacesContext.getCurrentInstance

(); HttpServletResponse response = (HttpServletResponse) faces .getExternalContext().getResponse(); response.addCookie(c); this.ladeCookie(); }

Hope this is enough to find the problem.Thanks in advance.-- mfg Hans Sowamailto:
[EMAIL PROTECTED]

-- mfg Hans Sowamailto:[EMAIL PROTECTED]


Problem with cookies

2006-01-20 Thread Hans Sowa
HiI try to save and load cookies from my Myfaces projekt. I see that I save the cookies in the response but if I load the cookies again I can just find the myfaces cookies but not my ones.Here is the code which I use:
load code: public void ladeCookie() { Cookie[] cookies; FacesContext faces = FacesContext.getCurrentInstance();
 HttpServletRequest request = (HttpServletRequest) faces .getExternalContext().getRequest(); cookies = request.getCookies(); for (int i = 0; i  cookies.length; i++) {
 if (cookies[i].getName().equals(SessionUser.DATENBANK)) { this.setDatenBank(cookies[i].getValue()); } } }
save code: public void speichereCookies() { Cookie c = new Cookie(SessionUser.DATENBANK, this.getDatenBank()); c.setMaxAge(-1); FacesContext faces = FacesContext.getCurrentInstance
(); HttpServletResponse response = (HttpServletResponse) faces .getExternalContext().getResponse(); response.addCookie(c); this.ladeCookie(); }
Hope this is enough to find the problem.Thanks in advance.-- mfg Hans Sowamailto:[EMAIL PROTECTED]


Re: Can panelTabbedPane remember the last selected index?

2006-01-10 Thread Hans Sowa
Hi MatthiasIf you use the server side driven panelTabbedPane you can use the TabChangeListener.This should solve your problem.best regardsHans2006/1/10, Matthias Kahlau 
[EMAIL PROTECTED]:Many thanks for your advice...
Regards,Matthias -Ursprüngliche Nachricht- Von: users-return-14969-mkahlau=[EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED]]Im Auftrag von Dennis Byrne Gesendet: Montag, 9. Januar 2006 22:11 An: MyFaces Discussion Betreff: Re: Can panelTabbedPane remember the last selected index?
 I know some people who have bound the index to a session scoped integer.This has some obvious trade offs.Another way to approach this is to bind the index to a request scoped integer,
 and manually set the integer in an action listener that is tied to the command.This becomes tedious however if there are a lot of entry points to the tabbed view . -Original Message-
 From: Matthias Kahlau [mailto:[EMAIL PROTECTED]] Sent: Monday, January 9, 2006 03:03 PM To: 'Users MyFaces' Subject: Can panelTabbedPane remember the last selected index?
  Hi!   Does anybody know if the panelTabbedPane can provide a facility to remember the last selectedIndex. That would be fine if the user returns to the
 panelTabbedPane which he has left from a tab != default selectedIndex... Without any modifications, always the default tab is shown again.Regards,
  Matthias  -- mfg Hans Sowamailto:[EMAIL PROTECTED]


Re: Null child not allowed on DataTable

2005-12-22 Thread Hans Sowa
HiI'm a little bit confused. You want to use the datatable component and as Model for it you use the DefaultTreeModel made with a TreeNode.What do you want exactly?A datatable? If yes, then use a DataModel 
e.g. ListDataModel. A tree (e.g. tree2)? If yes, then use a TreeModel.Maybe therefore you have the problem. But I'm not sure if understand you correctly.Hope, this will help.
2005/12/22, Sébastien Marin [EMAIL PROTECTED]:
Hello, i would like to use the Datatable Componant.When i try to display it on a JSP, i have an error :Null child not allowedBut when i look at the structure of my objet, there is no null child.
I return a DefaultTreeModel made with a TreeNode.Thank for your help.|Cordialement, Sébastien MARIN.|-- mfg Hans Sowamailto:
[EMAIL PROTECTED]


Re: Javascript problems with inputDate with calendar enabled

2005-12-21 Thread Hans Sowa
Hi LuizI'm not sure why you get this error message but you told us that you use myfaces-all.jar and tomahawk.jar but this should not be necessary because the tomahawk.jar is included in the myfaces-all.jar. I can remeber there was a old build where the 
tomahawk.jar was not included. Therefore I guess you use an old MyFaces version and maybe the jscalendarSetImageDirectory and so on is not defined there. Try to use a newer Version if it is possible for your projekt.
Hope this will helpbest regards Hans2005/12/21, Luiz Carlos Geron [EMAIL PROTECTED]:
Hi All,I'm using this tag on my jsp:t:inputDate id=date1 value=#{date1} popupCalendar=true/This is outputed by this tag:link rel=stylesheet
href="">type=text/css /link rel=stylesheethref=""
type=text/css /scriptsrc="">type=text/_javascript_!--
//--/scriptscript type=text/_javascript_!--jscalendarSetImageDirectory('/sagweb/faces/myFacesExtensionResource/calendar.HtmlCalendarRenderer/11302665/DB/');//--/script
script type=text/_javascript_!--jscalendarMonthName = newArray(Janeiro,Fevereiro,Mar\u00E7o,Abril,Maio,Junho,Julho,Agosto,Setembro,Outubro,Novembro,Dezembro);jscalendarMonthName2
= newArray(Janeiro,Fevereiro,Mar\u00E7o,Abril,Maio,Junho,Julho,Agosto,Setembro,Outubro,Novembro,Dezembro);jscalendarDayName
= new Array(Seg,Ter,Qua,Qui,Sex,S\u00E1b,Dom);jscalendarStartAt= 1;//--/scriptscriptsrc=""
type=text/_javascript_!--//--/scriptI seems to be ok, but when the page loads I get these js errors:jscalendarSetImageDirectory is not definedloadPopupScript is not defined
And when I click on the ... button to show the calendar, I get this error:jscalendarPopUpCalendarForInputDate is not definedI saw a page [1] on myfaces site saying that I need to use the extensions
filter, so I added these lines to my web.xml:filterfilter-nameMyFacesExtensionsFilter/filter-namefilter-classorg.apache.myfaces.component.html.util.ExtensionsFilter
/filter-class/filterfilter-mappingfilter-nameMyFacesExtensionsFilter/filter-nameurl-pattern*.faces/url-pattern/filter-mapping
these are almost the same of the page, but I cutted off the part aboutfileupload limit, since I don't need it (yes, I've tried with and withoutit). I'm using myfaces-all and tomahawk.jar.What may be the cause of this problem? What can I do to solve it?
Thanks,Luiz Carlos Geron[1] http://myfaces.apache.org/tomahawk/extensionsFilter.html
-- mfg Hans Sowamailto:[EMAIL PROTECTED]


Tablistener

2005-12-21 Thread Hans Sowa
HalloI have a question about the Listerner of the panelTabbedPane.As I know the last status is that we can use it in two ways.1. Tabchange is with serverrequest (Tabchangelistener works)2. Tabchange is without serverrequest (Tabchangelistener doesn't work).
My application use the tabchange without serverrequest an so the Tabchangelistener doesn't work. I know that there was an idea with an ajax solution. I would need this solution because I need the tabchangelistener but a tabchange with serverrequest would be very uncomfortable for my users and would affect the usability. Is something working on that or maybe is there a nighlty build with a solution?
Many thanks.-- mfg Hans Sowamailto:[EMAIL PROTECTED]


Re: How to get currently selected node of tree2 component

2005-12-20 Thread Hans Sowa
Hi

I have an other solution for you. Use the updateActionListener tag
(just available for MyFaces) within the comamandLink tag. With this tag
you can set properties.

t:updateActionListener value=#{node} property=#{bean.node} /

In case of a click to a node the updateActionListener is called and set the attribute node in the bean to the value node.

Then use in the commanlink the attribute styleClass as follows:
styleClass=#{node == bean.node ? 'blackbold':'blue'}

This is very simple and works.

Hopefully this will help.

best regards Hans
2005/12/19, Kurt Edegger [EMAIL PROTECTED]:
Hi Daniel,thank you for your answer. That's probably a better way than usinganother bean property to store the selected node in the listener. Butwhy and when is the tree.getNode() reset? If you set the node
explicitely by tree.setNodeSelected(evt) is this persistent until thenext node is selected?Thank you again and sorry for the late response,Kurton 12/14/2005 2:53 AM Lefevre, Daniel stated:
 Hello, My (short) experiences shows that the getNode() method returns the node which is selected in the htmlTree. Then the getNode() method returns the selected node only in your selection event or via the htmlTree, when you
 have set it explicitely. What I do is as follows: - in my selectNode method (actionListener), I take the selectedNodeId and set the selected node of the htmlTree. public void selectNode(ActionEvent event)
 { // set the selected status on the node of the tree htmlTree.setNodeSelected(event); selectedNodeId = htmlTree.getNodeId(); } - in the other actionListeners, I access the selected node by using the
 selectedNodeId. public void addNode(ActionEvent event) { // get access to the selected node htmlTree.setNodeId(selectedNodeId); MyTreeNode node = ((MyTreeNode) 
treeModel.getNode()); . . . } The used variables being declared as follows (with getters and setters of course):
private
TreeModel
treeModel; private transient HtmlTreehtmlTree;
private
MyTreeNodeselectedNode;
private
StringselectedNodeId; This is maybe not THE solution, but it works. Hope this helps, Bye, Dan
-- mfg Hans Sowamailto:[EMAIL PROTECTED]


Re: Newbie actionListener attribute question

2005-12-15 Thread Hans Sowa
Hi

You can use more than 1 actionListener:

h:commandLink
h:outputText value=dummy/
 f:actionListener type=blalbla /
 f:actionListener type=blalbla /
/h:commandLink

Instead of using the attribute actionListener use the tag actionListener.

best regards Hans
2005/12/15, Saumil Mehta [EMAIL PROTECTED]:
Quick question - is it possible to attach more than one action listenermethod to a commandLink component using the JSF EL? Effectively, could Ido something like this?h:commandLink actionListener=#{EL gobbledygook here}
h:outputText value=dummy//h:commandLinkI have two separate backing beans that provide separate functionalitywhen the *same* ActionEvent fires. It seems reasonable to allow more
than one listener on an event, I just don't know how to write the JSF_expression_ for it, and documentation on the EL that I've found so fardoesn't discuss this. Obviously, I know how to write expressions to
register one listener with #{beanName.methodName}.Any clues?Thanks so much in advance for your time and help.Regards,Saumil Mehta-- mfg Hans Sowa
mailto:[EMAIL PROTECTED]


AW: TabbedPanel state

2005-11-10 Thread Hans Sowa








Hi



First Im afraid to
say this but you need a nightly build because the flag is not part of MyFaces
1.1.1.

Then you can use it in
this way:



t:panelTabbedPane
width=100% id=TabbedPane serverSideTabSwitch=true

    t:tabChangeListener type=Listener/

    

I never tried it so far but it should work.  



Hope this will help. 





mfg Hans Sowa

PROCON DATA Datenverarbeitung Ges.m.b.H.
mailto:[EMAIL PROTECTED]
http://www.procon.co.at





-Ursprüngliche Nachricht-
Von: Burke, Rodney
[mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 09. November
2005 20:00
An: MyFaces Discussion
Betreff: RE: TabbedPanel state



Hans,



Im new to myfaces and not sure how to change panelTabbedPane to server side.

Can you please explain how to do this?



Thank You,

Rodney











From:
Hans Sowa [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 09, 2005
3:23 AM
To: 'MyFaces Discussion'
Subject: AW: TabbedPanel state





Hi



There is no problem with your Listener. The problem is that your
panelTabbedPane works client side and the listener doesnt work for
client side panelTabbedPane. Change your panelTabbedPane to server side and
your listener will work.









mfg Hans Sowa

PROCON
DATA Datenverarbeitung Ges.m.b.H.
mailto:[EMAIL PROTECTED]
http://www.procon.co.at





-Ursprüngliche Nachricht-
Von: Louis Burroughs
[mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 08. November
2005 20:47
An: MyFaces Discussion
Betreff: TabbedPanel state




I am trying to
save the state of my tabbed panel, but for some reason my tabChageListener is
not catching the tab change event. My ProjectPanelListener implements
TabChangeListener and I looked for a place in my faces-config to register my
listener to no avail. Can someone tell me where I went wrong here or if
there is a better way to maintain the state of my tabbed pane?  
   

 
  t:panelTabbedPane selectedIndex=#{project.selectedTab}  

  
  
 t:panelTab title=Info label=Project Info 

  
  
 jsp:include page=project.jsp / 

  
  
 /t:panelTab 

  
  
 t:panelTab title=Databases label=Databases 

  
  
 jsp:include page=db_view.jsp / 

  
  
 /t:panelTab 

  
  
 t:panelTab title=Notes label=Notes 

  
  
 jsp:include page=notes.jsp / 

  
  
 /t:panelTab 

  
  
 t:panelTab title=Issues label=Issues 

  
  
 jsp:include page=issues.jsp / 

  
  
 /t:panelTab 

  
  
 t:panelTab title=Junctions label=Junctions 

  
  
 jsp:include page=junctions.jsp / 

  
  
 /t:panelTab 

  
  
 t:tabChangeListener type=com.xxx.ptw.ui.ProjectPanelListener / 

  
/t:panelTabbedPane 




Louis
M. Burroughs III








AW: TabbedPanel state

2005-11-09 Thread Hans Sowa








Hi



There is no problem with
your Listener. The problem is that your panelTabbedPane works client side and
the listener doesnt work for client side panelTabbedPane. Change your panelTabbedPane
to server side and your listener will work.









mfg Hans Sowa

PROCON DATA Datenverarbeitung Ges.m.b.H.
mailto:[EMAIL PROTECTED]
http://www.procon.co.at





-Ursprngliche
Nachricht-
Von: Louis Burroughs
[mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 08. November
2005 20:47
An: MyFaces Discussion
Betreff: TabbedPanel state




I am trying to
save the state of my tabbed panel, but for some reason my tabChageListener is
not catching the tab change event. My ProjectPanelListener implements
TabChangeListener and I looked for a place in my faces-config to register my
listener to no avail. Can someone tell me where I went wrong here or if
there is a better way to maintain the state of my tabbed pane?  
   

 
  t:panelTabbedPane selectedIndex=#{project.selectedTab}  

  
  
 t:panelTab title=Info label=Project Info 

  
  
 jsp:include page=project.jsp / 

  
  
 /t:panelTab 

  
  
 t:panelTab title=Databases label=Databases 

  
  
 jsp:include page=db_view.jsp / 

  
  
 /t:panelTab 

  
  
 t:panelTab title=Notes label=Notes 

  
  
 jsp:include page=notes.jsp / 

  
  
 /t:panelTab 

  
  
 t:panelTab title=Issues label=Issues 

  
  
 jsp:include page=issues.jsp / 

  
  
 /t:panelTab 

  
  
 t:panelTab title=Junctions label=Junctions 

  
  
 jsp:include page=junctions.jsp / 

  
  
 /t:panelTab 

  
  
 t:tabChangeListener type=com.xxx.ptw.ui.ProjectPanelListener / 

  
/t:panelTabbedPane 




Louis
M. Burroughs III








still problem with illogical state (tree2)

2005-11-07 Thread Hans Sowa








Hi



I have also the problem with the illogical state a
long time now and it will become a big problem for me soon.



So I checked My-Faces-568 http://issues.apache.org/jira/browse/MYFACES-568?page=comments#action_12330672
and this is still open. Is there any chance that somebody will solve the
problem or is there a proper workaround which I can use.



Thanks in advance.



mfg Hans Sowa

PROCON DATA Datenverarbeitung Ges.m.b.H.
mailto:[EMAIL PROTECTED]
http://www.procon.co.at










AW: File Download responseComplete Problem

2005-10-28 Thread Hans Sowa
Title: RE: File Download responseComplete Problem









Thanks too.



We got the same problem
and this line solved our problem.



But I would like to know
why we need this line exactly???



Thanks in advance.





mfg Hans Sowa

PROCON DATA Datenverarbeitung Ges.m.b.H.
mailto:[EMAIL PROTECTED]
http://www.procon.co.at





-Ursprüngliche Nachricht-
Von: Rogerio Saulo (P)
[mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 28. Oktober
2005 15:50
An: MyFaces Discussion
Betreff: RE: File Download
responseComplete Problem



Yes, it works! 

Thanks Martin, this save me a lot of work to construct
an servlet to run out of the faces context. 

-Original Message- 
From: Martin Koci [mailto:[EMAIL PROTECTED]] 
Sent: Friday, October 28, 2005 9:39
AM 
To: MyFaces Discussion

Subject: Re: File Download
responseComplete Problem 

Put this before responseComplete: 

context.getApplication().getStateManager().saveSerializedView(context);

... 
context.responseComplete();


Martin 





Essa mensagem é destinada
exclusivamente ao seu destinatário e pode conter informações confidenciais,
protegidas por sigilo profissional ou cuja divulgação seja
proibida por lei. O uso não autorizado de tais 

informações é proibido e
está sujeito às penalidades cabíveis. 

This message is intended exclusively for its addressee
and may contain information that is confidential
and protected by a professional privilege or whose
disclosure is prohibited by law. Unauthorized use of such information
is prohibited and subject to applicable penalties.



Essa mensagem é destinada
exclusivamente ao seu destinatário e pode 
conter informações confidenciais,
protegidas por sigilo profissional ou 
cuja divulgação
seja proibida por lei. O uso não autorizado de tais 
informações é
proibido e está sujeito às penalidades
cabíveis. 

This message is intended exclusively for its addressee
and may contain 
information that is
confidential and protected by a professional 
privilege or whose disclosure is
prohibited by law. Unauthorized use of 
such information is
prohibited and subject to applicable penalties. 








AW: PanelTabbedPane validation problem

2005-10-28 Thread Hans Sowa
Hi,

The next problem is here that the tabChanged listener doesn't work for the
client-side tab. Does the listener work for the new server-side? And is
there a plan to implement the listener also for the client-side tab?

Thanks a lot.

mfg Hans Sowa
PROCON DATA Datenverarbeitung Ges.m.b.H.
mailto:[EMAIL PROTECTED]
http://www.procon.co.at


-Ursprüngliche Nachricht-
Von: Mike Kienenberger [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 28. Oktober 2005 16:52
An: MyFaces Discussion
Betreff: Re: PanelTabbedPane validation problem

The hard way to do this is to try to use the OptionalValidationFramework.

However, I think you could also make this work by switching back to
server-side tab switching.   I'm not positive, but I think server-side
switching works by not rendering the other tabs.  Since the other
panes aren't rendered, it's as if they don't exist and they won't be
validated

I don't think this changes to reenable this have be committed yet. 
Hopefully Sylvain or one of the other committers will commit them
soon, but until that happens, you can grab the patches from here and
apply them yourself.

http://issues.apache.org/jira/browse/MYFACES-756

-MIke

On 10/28/05, Turgay Zengin [EMAIL PROTECTED] wrote:
 Hi,
 Is it possible to get the effect described below programatically?

 Say I have three panelTabs in a panelTabbedPane. They are named
 Search, Update and New. I have an inputText component in the
 New panelTab, and I want it to have a validator of required=true.
 But when I set required=true for that component, it effects all
 panelTabs, because when a button in any of the tabs is pressed, all
 components in all panelTabs get validated. So, I get
 errors/nonfunctionality from the dataTable component present in the
 Search panelTab.

 I want to learn if the following is possible with setting some
 property of the panelTab:
 When a button is pressed which is in a panelTab, only the components
 present in that panelTab must be validated. Other components present
 in other panelTabs will not be validated.

 Regards,
 Turgay

 --
 Eric Kelm wrote on 2005-07-26 21:50:
 --
 Hi,

 I am having a problem with the validation of components in
 HtmlPanelTabbedPane. Only the components on the first pane are validated,
if
 only the first pane is displayed before from submission.  If other tabs
are
 selected before form submission, components on those panes will be
 validated.  I have seen others have had this problem.  Is there a
solution?
 If so, is it included in the nightly builds? Thanks.

 -
 Eric Kelm




AW: Getting the index of the clicked image

2005-10-27 Thread Hans Sowa
Hi Patricia

You can use the method getRowData() of the class DataModel. The method
returns the clicked row in the datatable. Maybe this helps.

mfg Hans Sowa
PROCON DATA Datenverarbeitung Ges.m.b.H.
mailto:[EMAIL PROTECTED]
http://www.procon.co.at


-Ursprüngliche Nachricht-
Von: PATRICIA GUEDES [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 27. Oktober 2005 13:55
An: users@myfaces.apache.org
Betreff: Getting the index of the clicked image

Hi everyone,

I am using a dataTable with a dataModel (my remessaBean.valuesEmbque
is a DataModel). Each line of my dataTable has an image. How can I get
the index of the clicked image?

Ex:

x:dataTable value=#{remessaBean.valuesEmbque} var=values 
   x:column
f:facet name=header
h:outputText value=Excluir styleClass=forms/
/f:facet
h:commandButton actionListener=#{remessaBean.delEmbque}

image=/eServices/eservices/images/trash.gif /
   /x:column
/x:dataTable

Thanks.
Guedes



AW: Problems with setting Variable in Bean

2005-10-24 Thread Hans Sowa
HI

I would like to have a look at the JsfUtil class but I can't find it. Please
could explain it in more detail where we can find it.
 
Thanks a lot.

mfg Hans Sowa
PROCON DATA Datenverarbeitung Ges.m.b.H.
mailto:[EMAIL PROTECTED]
http://www.procon.co.at


-Ursprüngliche Nachricht-
Von: news [mailto:[EMAIL PROTECTED] Im Auftrag von Werner Punz
Gesendet: Montag, 24. Oktober 2005 12:57
An: users@myfaces.apache.org
Betreff: Re: Problems with setting Variable in Bean

QueryHelper qh = new QueryHelper();   --- HERE I'm making a new Object
of the second bean!!! The methods of the object qh fill some
SelectItem[] Variables...

this is your problem, you should use the jsf variable resolver mechanism
to take care of the backend bean generation.

I can recommend to use the excellent JsfUtil class you can find
on www.javaworld.com and in appfuse, which encapsules all the
mechanisms. This class has a getManagedBean method which takes care
of all that.



Werner



[EMAIL PROTECTED] wrote:
 I have problems setting values in a backing bean.
 
 In my JSF Page a method is called through an action attribute. This
 method calls* another* method from* another bean*.
 In this second method some variables for the JSF Page are set. The
 Problem now is, that the new JSF Page doesn't display these variables
 and I get an error stack.
 
 Could it be, that the new Object which I create is another object than
 the JSF page has... How can I do that, that it works?
 
 I hope this isn't too confusing.. Here is the code.
 
 *This is the method of the first bean(newPartner), which is called by
 the action attribute of the first JSF Page:*
 
 /public String listforeditContact() {/
 /String returnstring = ;/
 /QueryHelper qh = new QueryHelper();   ---__//_* HERE I'm making a new
 Object of the second bean!!! The methods of the object qh fill some
 SelectItem[] Variables...*_**/
 
 /try {/
 /if (contacttypeArt.equalsIgnoreCase(gateway)) {/
 /logger.info(Contacttypeart: GATEWAY);/
 /qh.listContactTypes(0);/
 /returnstring = popupContactGA;/
 /}/
 /if (contacttypeArt.equalsIgnoreCase(datenart)) {/
 /logger.info(Contacttypeart: DATENART);/
 /qh.listContactTypes(1);/
 /returnstring = popupContactDA;/
 /}/
 /qh.listPhonePrefix();/
 /qh.listFaxPrefix();/
 /qh.listGeschlecht();/
 
 /}/
 /catch (Exception e1) {/
 /e1.printStackTrace();/
 /}/
 
 *One of the methods of the second bean(QueryHelper) look like this:*
 
/  public void listGeschlecht() throws Exception {/
 
 /Session session = HibernateUtil.currentSession();/
 /Transaction tx = null;/
 /try {/
 /tx = session.beginTransaction();/
 /Query q = session.createQuery(from
 EtGendertype et);/
 /querylist = q.list();/
 
 /geschlecht = new SelectItem[querylist.size()];/
 
 /int i = 0;/
 /for (Iterator it = querylist.iterator();
 it.hasNext();) {/
 /EtGendertype gender = (EtGendertype)
 it.next();/
 /geschlecht[i] = new
 SelectItem(gender.getgId(), gender/
 /.getGender());/
 /i++;/
 /}/
 
 /tx.commit();/
 
 /}/
 /catch (Exception ex) {/
 /if (tx != null)/
 /tx.rollback();/
 /msg = bundle.getString(selectboxGeschlecht);/
 /context.addMessage(null, new FacesMessage(/
 /FacesMessage.SEVERITY_WARN,
 msg, null));/
 /throw ex;/
 
 /}/
 /finally {/
 /HibernateUtil.closeSession();/
 /}/
 
 /}/
 
 
 *On the second JSF Page I have the following: (JUST one snippet)*
 
 tdh:selectOneMenu id=geschlecht styleClass=mustfield
 value=#{newPartnerDto.geschlechtId} required=true
 f:selectItems value=#{queryHelper.geschlecht}
 /  --HERE I'm trying to get the SELECTITEM VARIABLE OF THE BEAN
 QUERYHELPER!!!
 
 /h:selectOneMenu/td
 
 Thx!
 
 Regards
 Andy
 
 
 __
 This email and any files transmitted with it are confidential and
 intended solely for the use of the individual or entity to whom they are
 addressed. If you have received this email in error please notify your
 system manager. This footnote also confirms that this email message has
 been